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"
18318 if test x${prefix} = xNONE ; then
18319 if test `eval echo ${datarootdir}` = NONE/share ; then
18320 datarootdir=/usr/share
18324 if test x${prefix} = xNONE ; then
18325 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18326 sysconfdir=/etc/bacula
18329 if test `eval echo ${libdir}` = NONE/lib ; then
18333 if test `eval echo ${includedir}` = NONE/include ; then
18334 includedir=/usr/include
18340 if test x${exec_prefix} = xNONE ; then
18341 exec_prefix=${prefix}
18344 sysconfdir=`eval echo ${sysconfdir}`
18345 datarootdir=`eval echo ${datarootdir}`
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 for ac_prog in msgfmt
18369 # Extract the first word of "$ac_prog", so it can be a program name with args.
18370 set dummy $ac_prog; ac_word=$2
18371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18373 if test "${ac_cv_path_MSGFMT+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18382 for as_dir in $PATH
18385 test -z "$as_dir" && as_dir=.
18386 for ac_exec_ext in '' $ac_executable_extensions; do
18387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18388 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18399 MSGFMT=$ac_cv_path_MSGFMT
18400 if test -n "$MSGFMT"; then
18401 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18402 echo "${ECHO_T}$MSGFMT" >&6; }
18404 { echo "$as_me:$LINENO: result: no" >&5
18405 echo "${ECHO_T}no" >&6; }
18409 test -n "$MSGFMT" && break
18411 test -n "$MSGFMT" || MSGFMT="no"
18413 if test "$MSGFMT" = "no"
18415 echo 'msgfmt program not found, disabling NLS !'
18417 USE_INCLUDED_LIBINTL=no
18420 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18421 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18422 if test "${ac_cv_gnu_library_2+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18432 #include <features.h>
18433 #ifdef __GNU_LIBRARY__
18434 #if (__GLIBC__ >= 2)
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18442 ac_cv_gnu_library_2=yes
18444 ac_cv_gnu_library_2=no
18451 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18452 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18454 GLIBC2="$ac_cv_gnu_library_2"
18457 if test -n "$ac_tool_prefix"; then
18458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18462 if test "${ac_cv_prog_RANLIB+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 if test -n "$RANLIB"; then
18466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469 for as_dir in $PATH
18472 test -z "$as_dir" && as_dir=.
18473 for ac_exec_ext in '' $ac_executable_extensions; do
18474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18485 RANLIB=$ac_cv_prog_RANLIB
18486 if test -n "$RANLIB"; then
18487 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18488 echo "${ECHO_T}$RANLIB" >&6; }
18490 { echo "$as_me:$LINENO: result: no" >&5
18491 echo "${ECHO_T}no" >&6; }
18496 if test -z "$ac_cv_prog_RANLIB"; then
18497 ac_ct_RANLIB=$RANLIB
18498 # Extract the first word of "ranlib", so it can be a program name with args.
18499 set dummy ranlib; ac_word=$2
18500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18502 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 if test -n "$ac_ct_RANLIB"; then
18506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18509 for as_dir in $PATH
18512 test -z "$as_dir" && as_dir=.
18513 for ac_exec_ext in '' $ac_executable_extensions; do
18514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18515 ac_cv_prog_ac_ct_RANLIB="ranlib"
18516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18525 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18526 if test -n "$ac_ct_RANLIB"; then
18527 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18528 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18530 { echo "$as_me:$LINENO: result: no" >&5
18531 echo "${ECHO_T}no" >&6; }
18534 if test "x$ac_ct_RANLIB" = x; then
18537 case $cross_compiling:$ac_tool_warned in
18539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18540 whose name does not start with the host triplet. If you think this
18541 configuration is useful to you, please write to autoconf@gnu.org." >&5
18542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18543 whose name does not start with the host triplet. If you think this
18544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18545 ac_tool_warned=yes ;;
18547 RANLIB=$ac_ct_RANLIB
18550 RANLIB="$ac_cv_prog_RANLIB"
18554 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18555 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18556 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-lcposix $LIBS"
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18568 /* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18578 return strerror ();
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_link") 2>conftest.er1
18592 grep -v '^ *+' conftest.er1 >conftest.err
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } && {
18597 test -z "$ac_c_werror_flag" ||
18598 test ! -s conftest.err
18599 } && test -s conftest$ac_exeext &&
18600 $as_test_x conftest$ac_exeext; then
18601 ac_cv_lib_cposix_strerror=yes
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_cv_lib_cposix_strerror=no
18609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18610 conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18613 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18614 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18615 if test $ac_cv_lib_cposix_strerror = yes; then
18616 LIBS="$LIBS -lcposix"
18621 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18623 if test "${ac_cv_c_const+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 cat >conftest.$ac_ext <<_ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18636 /* FIXME: Include the comments suggested by Paul. */
18637 #ifndef __cplusplus
18638 /* Ultrix mips cc rejects this. */
18639 typedef int charset[2];
18641 /* SunOS 4.1.1 cc rejects this. */
18642 char const *const *pcpcc;
18644 /* NEC SVR4.0.2 mips cc rejects this. */
18645 struct point {int x, y;};
18646 static struct point const zero = {0,0};
18647 /* AIX XL C 1.02.0.0 rejects this.
18648 It does not let you subtract one const X* pointer from another in
18649 an arm of an if-expression whose if-part is not a constant
18651 const char *g = "string";
18652 pcpcc = &g + (g ? g-g : 0);
18653 /* HPUX 7.0 cc rejects these. */
18655 ppc = (char**) pcpcc;
18656 pcpcc = (char const *const *) ppc;
18657 { /* SCO 3.2v4 cc rejects this. */
18659 char const *s = 0 ? (char *) 0 : (char const *) 0;
18664 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18665 int x[] = {25, 17};
18666 const int *foo = &x[0];
18669 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18670 typedef const int *iptr;
18674 { /* AIX XL C 1.02.0.0 rejects this saying
18675 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18676 struct s { int j; const int *ap[3]; };
18677 struct s *b; b->j = 5;
18679 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18680 const int foo = 10;
18681 if (!foo) return 0;
18683 return !cs[0] && !zero.x;
18690 rm -f conftest.$ac_objext
18691 if { (ac_try="$ac_compile"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_compile") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest.$ac_objext; then
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18718 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18719 if test $ac_cv_c_const = no; then
18721 cat >>confdefs.h <<\_ACEOF
18728 { echo "$as_me:$LINENO: checking for signed" >&5
18729 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18730 if test "${bh_cv_c_signed+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 cat >conftest.$ac_ext <<_ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_compile") 2>conftest.er1
18757 grep -v '^ *+' conftest.er1 >conftest.err
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 } && test -s conftest.$ac_objext; then
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18776 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18777 if test $bh_cv_c_signed = no; then
18779 cat >>confdefs.h <<\_ACEOF
18785 { echo "$as_me:$LINENO: checking for inline" >&5
18786 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18787 if test "${ac_cv_c_inline+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 for ac_kw in inline __inline__ __inline; do
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 #ifndef __cplusplus
18800 static $ac_kw foo_t static_foo () {return 0; }
18801 $ac_kw foo_t foo () {return 0; }
18805 rm -f conftest.$ac_objext
18806 if { (ac_try="$ac_compile"
18807 case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_compile") 2>conftest.er1
18814 grep -v '^ *+' conftest.er1 >conftest.err
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } && {
18819 test -z "$ac_c_werror_flag" ||
18820 test ! -s conftest.err
18821 } && test -s conftest.$ac_objext; then
18822 ac_cv_c_inline=$ac_kw
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18831 test "$ac_cv_c_inline" != no && break
18835 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18836 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18839 case $ac_cv_c_inline in
18842 case $ac_cv_c_inline in
18844 *) ac_val=$ac_cv_c_inline;;
18846 cat >>confdefs.h <<_ACEOF
18847 #ifndef __cplusplus
18848 #define inline $ac_val
18854 { echo "$as_me:$LINENO: checking for off_t" >&5
18855 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18856 if test "${ac_cv_type_off_t+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 cat >conftest.$ac_ext <<_ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 $ac_includes_default
18866 typedef off_t ac__type_new_;
18870 if ((ac__type_new_ *) 0)
18872 if (sizeof (ac__type_new_))
18878 rm -f conftest.$ac_objext
18879 if { (ac_try="$ac_compile"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_compile") 2>conftest.er1
18887 grep -v '^ *+' conftest.er1 >conftest.err
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } && {
18892 test -z "$ac_c_werror_flag" ||
18893 test ! -s conftest.err
18894 } && test -s conftest.$ac_objext; then
18895 ac_cv_type_off_t=yes
18897 echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18900 ac_cv_type_off_t=no
18903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18905 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18906 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18907 if test $ac_cv_type_off_t = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define off_t long int
18917 { echo "$as_me:$LINENO: checking for size_t" >&5
18918 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18919 if test "${ac_cv_type_size_t+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 $ac_includes_default
18929 typedef size_t ac__type_new_;
18933 if ((ac__type_new_ *) 0)
18935 if (sizeof (ac__type_new_))
18941 rm -f conftest.$ac_objext
18942 if { (ac_try="$ac_compile"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_compile") 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } && {
18955 test -z "$ac_c_werror_flag" ||
18956 test ! -s conftest.err
18957 } && test -s conftest.$ac_objext; then
18958 ac_cv_type_size_t=yes
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 ac_cv_type_size_t=no
18966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18968 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18969 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18970 if test $ac_cv_type_size_t = yes; then
18974 cat >>confdefs.h <<_ACEOF
18975 #define size_t unsigned int
18981 { echo "$as_me:$LINENO: checking for long long" >&5
18982 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18983 if test "${ac_cv_type_long_long+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 long long ll = 1LL; int i = 63;
18996 long long llmax = (long long) -1;
18997 return ll << i | ll >> i | llmax / ll | llmax % ll;
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19011 grep -v '^ *+' conftest.er1 >conftest.err
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && {
19016 test -z "$ac_c_werror_flag" ||
19017 test ! -s conftest.err
19018 } && test -s conftest$ac_exeext &&
19019 $as_test_x conftest$ac_exeext; then
19020 ac_cv_type_long_long=yes
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_cv_type_long_long=no
19028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19029 conftest$ac_exeext conftest.$ac_ext
19031 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19032 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19033 if test $ac_cv_type_long_long = yes; then
19035 cat >>confdefs.h <<\_ACEOF
19036 #define HAVE_LONG_LONG 1
19042 { echo "$as_me:$LINENO: checking for long double" >&5
19043 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19044 if test "${gt_cv_c_long_double+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 if test "$GCC" = yes; then
19048 gt_cv_c_long_double=yes
19050 cat >conftest.$ac_ext <<_ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19057 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19058 long double foo = 0.0;
19059 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19060 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19070 rm -f conftest.$ac_objext
19071 if { (ac_try="$ac_compile"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_compile") 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest.$ac_objext; then
19087 gt_cv_c_long_double=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 gt_cv_c_long_double=no
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19099 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19100 if test $gt_cv_c_long_double = yes; then
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE_LONG_DOUBLE 1
19109 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19110 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19111 if test "${gt_cv_c_wchar_t+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 #include <stddef.h>
19121 wchar_t foo = (wchar_t)'\0';
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_compile") 2>conftest.er1
19139 grep -v '^ *+' conftest.er1 >conftest.err
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } && {
19144 test -z "$ac_c_werror_flag" ||
19145 test ! -s conftest.err
19146 } && test -s conftest.$ac_objext; then
19147 gt_cv_c_wchar_t=yes
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19157 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19158 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19159 if test $gt_cv_c_wchar_t = yes; then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_WCHAR_T 1
19168 { echo "$as_me:$LINENO: checking for wint_t" >&5
19169 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19170 if test "${gt_cv_c_wint_t+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19180 wint_t foo = (wchar_t)'\0';
19189 rm -f conftest.$ac_objext
19190 if { (ac_try="$ac_compile"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_compile") 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest.$ac_objext; then
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19217 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19218 if test $gt_cv_c_wint_t = yes; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE_WINT_T 1
19227 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19228 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19229 if test "${gl_cv_header_inttypes_h+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <sys/types.h>
19239 #include <inttypes.h>
19243 uintmax_t i = (uintmax_t) -1;
19248 rm -f conftest.$ac_objext
19249 if { (ac_try="$ac_compile"
19250 case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_compile") 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest.$ac_objext; then
19265 gl_cv_header_inttypes_h=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 gl_cv_header_inttypes_h=no
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19275 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19276 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19277 if test $gl_cv_header_inttypes_h = yes; then
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19286 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19287 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19288 if test "${gl_cv_header_stdint_h+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #include <sys/types.h>
19298 #include <stdint.h>
19302 uintmax_t i = (uintmax_t) -1;
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_compile") 2>conftest.er1
19316 grep -v '^ *+' conftest.er1 >conftest.err
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } && {
19321 test -z "$ac_c_werror_flag" ||
19322 test ! -s conftest.err
19323 } && test -s conftest.$ac_objext; then
19324 gl_cv_header_stdint_h=yes
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 gl_cv_header_stdint_h=no
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19334 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19335 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19336 if test $gl_cv_header_stdint_h = yes; then
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_STDINT_H_WITH_UINTMAX 1
19347 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19348 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19349 if test "${gt_cv_c_intmax_t+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19359 #include <stddef.h>
19360 #include <stdlib.h>
19361 #if HAVE_STDINT_H_WITH_UINTMAX
19362 #include <stdint.h>
19364 #if HAVE_INTTYPES_H_WITH_UINTMAX
19365 #include <inttypes.h>
19376 rm -f conftest.$ac_objext
19377 if { (ac_try="$ac_compile"
19378 case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_compile") 2>conftest.er1
19385 grep -v '^ *+' conftest.er1 >conftest.err
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } && {
19390 test -z "$ac_c_werror_flag" ||
19391 test ! -s conftest.err
19392 } && test -s conftest.$ac_objext; then
19393 gt_cv_c_intmax_t=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 gt_cv_c_intmax_t=no
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19403 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19404 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19405 if test $gt_cv_c_intmax_t = yes; then
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_INTMAX_T 1
19415 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19416 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19417 if test "${gt_cv_func_printf_posix+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 if test "$cross_compiling" = yes; then
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19430 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19436 $EGREP "notposix" >/dev/null 2>&1; then
19437 gt_cv_func_printf_posix="guessing no"
19439 gt_cv_func_printf_posix="guessing yes"
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19453 #include <string.h>
19454 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19455 dollar expansion (possibly an autoconf bug). */
19456 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19457 static char buf[100];
19460 sprintf (buf, format, 33, 55);
19461 return (strcmp (buf, "55 33") != 0);
19464 rm -f conftest$ac_exeext
19465 if { (ac_try="$ac_link"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 gt_cv_func_printf_posix=yes
19486 echo "$as_me: program exited with status $ac_status" >&5
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ( exit $ac_status )
19491 gt_cv_func_printf_posix=no
19493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19499 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19500 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19501 case $gt_cv_func_printf_posix in
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_POSIX_PRINTF 1
19511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19512 # for constant arguments. Useless!
19513 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19514 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19515 if test "${ac_cv_working_alloca_h+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524 #include <alloca.h>
19528 char *p = (char *) alloca (2 * sizeof (int));
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_link") 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } && {
19548 test -z "$ac_c_werror_flag" ||
19549 test ! -s conftest.err
19550 } && test -s conftest$ac_exeext &&
19551 $as_test_x conftest$ac_exeext; then
19552 ac_cv_working_alloca_h=yes
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ac_cv_working_alloca_h=no
19560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19561 conftest$ac_exeext conftest.$ac_ext
19563 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19564 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19565 if test $ac_cv_working_alloca_h = yes; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_ALLOCA_H 1
19573 { echo "$as_me:$LINENO: checking for alloca" >&5
19574 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19575 if test "${ac_cv_func_alloca_works+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 cat >conftest.$ac_ext <<_ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19585 # define alloca __builtin_alloca
19588 # include <malloc.h>
19589 # define alloca _alloca
19591 # ifdef HAVE_ALLOCA_H
19592 # include <alloca.h>
19597 # ifndef alloca /* predefined by HP cc +Olibcalls */
19608 char *p = (char *) alloca (1);
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_link") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest$ac_exeext &&
19631 $as_test_x conftest$ac_exeext; then
19632 ac_cv_func_alloca_works=yes
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_func_alloca_works=no
19640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19641 conftest$ac_exeext conftest.$ac_ext
19643 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19646 if test $ac_cv_func_alloca_works = yes; then
19648 cat >>confdefs.h <<\_ACEOF
19649 #define HAVE_ALLOCA 1
19653 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19654 # that cause trouble. Some versions do not even contain alloca or
19655 # contain a buggy version. If you still want to use their alloca,
19656 # use ar to extract alloca.o from them instead of compiling alloca.c.
19658 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19660 cat >>confdefs.h <<\_ACEOF
19665 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19666 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19667 if test "${ac_cv_os_cray+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #if defined CRAY && ! defined CRAY2
19683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19684 $EGREP "webecray" >/dev/null 2>&1; then
19692 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19693 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19694 if test $ac_cv_os_cray = yes; then
19695 for ac_func in _getb67 GETB67 getb67; do
19696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19710 #define $ac_func innocuous_$ac_func
19712 /* System header to define __stub macros and hopefully few prototypes,
19713 which can conflict with char $ac_func (); below.
19714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19715 <limits.h> exists even on freestanding compilers. */
19718 # include <limits.h>
19720 # include <assert.h>
19725 /* Override any GCC internal prototype to avoid an error.
19726 Use char because int might match the return type of a GCC
19727 builtin and then its argument prototype would still apply. */
19732 /* The GNU C library defines this for functions which it implements
19733 to always fail with ENOSYS. Some functions are actually named
19734 something starting with __ and the normal name is an alias. */
19735 #if defined __stub_$ac_func || defined __stub___$ac_func
19742 return $ac_func ();
19747 rm -f conftest.$ac_objext conftest$ac_exeext
19748 if { (ac_try="$ac_link"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_link") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } && {
19761 test -z "$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19763 } && test -s conftest$ac_exeext &&
19764 $as_test_x conftest$ac_exeext; then
19765 eval "$as_ac_var=yes"
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 eval "$as_ac_var=no"
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774 conftest$ac_exeext conftest.$ac_ext
19776 ac_res=`eval echo '${'$as_ac_var'}'`
19777 { echo "$as_me:$LINENO: result: $ac_res" >&5
19778 echo "${ECHO_T}$ac_res" >&6; }
19779 if test `eval echo '${'$as_ac_var'}'` = yes; then
19781 cat >>confdefs.h <<_ACEOF
19782 #define CRAY_STACKSEG_END $ac_func
19791 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19792 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19793 if test "${ac_cv_c_stack_direction+set}" = set; then
19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 if test "$cross_compiling" = yes; then
19797 ac_cv_c_stack_direction=0
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 $ac_includes_default
19807 find_stack_direction ()
19809 static char *addr = 0;
19814 return find_stack_direction ();
19817 return (&dummy > addr) ? 1 : -1;
19823 return find_stack_direction () < 0;
19826 rm -f conftest$ac_exeext
19827 if { (ac_try="$ac_link"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_link") 2>&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 ac_cv_c_stack_direction=1
19848 echo "$as_me: program exited with status $ac_status" >&5
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 ( exit $ac_status )
19853 ac_cv_c_stack_direction=-1
19855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19860 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19861 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19863 cat >>confdefs.h <<_ACEOF
19864 #define STACK_DIRECTION $ac_cv_c_stack_direction
19872 for ac_header in stdlib.h unistd.h
19874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 ac_res=`eval echo '${'$as_ac_Header'}'`
19882 { echo "$as_me:$LINENO: result: $ac_res" >&5
19883 echo "${ECHO_T}$ac_res" >&6; }
19885 # Is the header compilable?
19886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 $ac_includes_default
19895 #include <$ac_header>
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_header_compiler=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_header_compiler=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <$ac_header>
19937 if { (ac_try="$ac_cpp conftest.$ac_ext"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } >/dev/null && {
19950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19951 test ! -s conftest.err
19953 ac_header_preproc=yes
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_header_preproc=no
19961 rm -f conftest.err conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19963 echo "${ECHO_T}$ac_header_preproc" >&6; }
19965 # So? What about this header?
19966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19972 ac_header_preproc=yes
19975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 eval "$as_ac_Header=\$ac_header_preproc"
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20012 for ac_func in getpagesize
20014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20028 #define $ac_func innocuous_$ac_func
20030 /* System header to define __stub macros and hopefully few prototypes,
20031 which can conflict with char $ac_func (); below.
20032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033 <limits.h> exists even on freestanding compilers. */
20036 # include <limits.h>
20038 # include <assert.h>
20043 /* Override any GCC internal prototype to avoid an error.
20044 Use char because int might match the return type of a GCC
20045 builtin and then its argument prototype would still apply. */
20050 /* The GNU C library defines this for functions which it implements
20051 to always fail with ENOSYS. Some functions are actually named
20052 something starting with __ and the normal name is an alias. */
20053 #if defined __stub_$ac_func || defined __stub___$ac_func
20060 return $ac_func ();
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (ac_try="$ac_link"
20067 case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_link") 2>conftest.er1
20074 grep -v '^ *+' conftest.er1 >conftest.err
20076 cat conftest.err >&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest$ac_exeext &&
20082 $as_test_x conftest$ac_exeext; then
20083 eval "$as_ac_var=yes"
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20088 eval "$as_ac_var=no"
20091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20092 conftest$ac_exeext conftest.$ac_ext
20094 ac_res=`eval echo '${'$as_ac_var'}'`
20095 { echo "$as_me:$LINENO: result: $ac_res" >&5
20096 echo "${ECHO_T}$ac_res" >&6; }
20097 if test `eval echo '${'$as_ac_var'}'` = yes; then
20098 cat >>confdefs.h <<_ACEOF
20099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20105 { echo "$as_me:$LINENO: checking for working mmap" >&5
20106 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20107 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 if test "$cross_compiling" = yes; then
20111 ac_cv_func_mmap_fixed_mapped=no
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 $ac_includes_default
20120 /* malloc might have been renamed as rpl_malloc. */
20123 /* Thanks to Mike Haertel and Jim Avera for this test.
20124 Here is a matrix of mmap possibilities:
20125 mmap private not fixed
20126 mmap private fixed at somewhere currently unmapped
20127 mmap private fixed at somewhere already mapped
20128 mmap shared not fixed
20129 mmap shared fixed at somewhere currently unmapped
20130 mmap shared fixed at somewhere already mapped
20131 For private mappings, we should verify that changes cannot be read()
20132 back from the file, nor mmap's back from the file at a different
20133 address. (There have been systems where private was not correctly
20134 implemented like the infamous i386 svr4.0, and systems where the
20135 VM page cache was not coherent with the file system buffer cache
20136 like early versions of FreeBSD and possibly contemporary NetBSD.)
20137 For shared mappings, we should conversely verify that changes get
20138 propagated back to all the places they're supposed to be.
20140 Grep wants private fixed already mapped.
20141 The main things grep needs to know about mmap are:
20142 * does it exist and is it safe to write into the mmap'd area
20143 * how to use it (BSD variants) */
20146 #include <sys/mman.h>
20148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20152 /* This mess was copied from the GNU getpagesize.h. */
20153 #ifndef HAVE_GETPAGESIZE
20154 /* Assume that all systems that can run configure have sys/param.h. */
20155 # ifndef HAVE_SYS_PARAM_H
20156 # define HAVE_SYS_PARAM_H 1
20159 # ifdef _SC_PAGESIZE
20160 # define getpagesize() sysconf(_SC_PAGESIZE)
20161 # else /* no _SC_PAGESIZE */
20162 # ifdef HAVE_SYS_PARAM_H
20163 # include <sys/param.h>
20164 # ifdef EXEC_PAGESIZE
20165 # define getpagesize() EXEC_PAGESIZE
20166 # else /* no EXEC_PAGESIZE */
20168 # define getpagesize() NBPG * CLSIZE
20171 # endif /* no CLSIZE */
20172 # else /* no NBPG */
20174 # define getpagesize() NBPC
20175 # else /* no NBPC */
20177 # define getpagesize() PAGESIZE
20178 # endif /* PAGESIZE */
20179 # endif /* no NBPC */
20180 # endif /* no NBPG */
20181 # endif /* no EXEC_PAGESIZE */
20182 # else /* no HAVE_SYS_PARAM_H */
20183 # define getpagesize() 8192 /* punt totally */
20184 # endif /* no HAVE_SYS_PARAM_H */
20185 # endif /* no _SC_PAGESIZE */
20187 #endif /* no HAVE_GETPAGESIZE */
20192 char *data, *data2, *data3;
20196 pagesize = getpagesize ();
20198 /* First, make a file with some known garbage in it. */
20199 data = (char *) malloc (pagesize);
20202 for (i = 0; i < pagesize; ++i)
20203 *(data + i) = rand ();
20205 fd = creat ("conftest.mmap", 0600);
20208 if (write (fd, data, pagesize) != pagesize)
20212 /* Next, try to mmap the file at a fixed address which already has
20213 something else allocated at it. If we can, also make sure that
20214 we see the same garbage. */
20215 fd = open ("conftest.mmap", O_RDWR);
20218 data2 = (char *) malloc (2 * pagesize);
20221 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20222 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20223 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20225 for (i = 0; i < pagesize; ++i)
20226 if (*(data + i) != *(data2 + i))
20229 /* Finally, make sure that changes to the mapped area do not
20230 percolate back to the file as seen by read(). (This is a bug on
20231 some variants of i386 svr4.0.) */
20232 for (i = 0; i < pagesize; ++i)
20233 *(data2 + i) = *(data2 + i) + 1;
20234 data3 = (char *) malloc (pagesize);
20237 if (read (fd, data3, pagesize) != pagesize)
20239 for (i = 0; i < pagesize; ++i)
20240 if (*(data + i) != *(data3 + i))
20246 rm -f conftest$ac_exeext
20247 if { (ac_try="$ac_link"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_link") 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; }; then
20266 ac_cv_func_mmap_fixed_mapped=yes
20268 echo "$as_me: program exited with status $ac_status" >&5
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ( exit $ac_status )
20273 ac_cv_func_mmap_fixed_mapped=no
20275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20280 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20281 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20282 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20284 cat >>confdefs.h <<\_ACEOF
20285 #define HAVE_MMAP 1
20289 rm -f conftest.mmap
20292 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20293 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20294 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20304 #include <features.h>
20305 #ifdef __GNU_LIBRARY__
20306 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20313 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20314 ac_cv_gnu_library_2_1=yes
20316 ac_cv_gnu_library_2_1=no
20323 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20324 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20326 GLIBC21="$ac_cv_gnu_library_2_1"
20331 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20332 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20333 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 if test "$cross_compiling" = yes; then
20339 # Guess based on the CPU.
20340 case "$host_cpu" in
20341 alpha* | i3456786 | m68k | s390*)
20342 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20344 gt_cv_int_divbyzero_sigfpe="guessing no";;
20348 cat >conftest.$ac_ext <<_ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20355 #include <stdlib.h>
20356 #include <signal.h>
20360 sigfpe_handler (int sig)
20362 sigfpe_handler (sig) int sig;
20365 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20366 exit (sig != SIGFPE);
20376 signal (SIGFPE, sigfpe_handler);
20377 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20378 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20379 signal (SIGTRAP, sigfpe_handler);
20381 /* Linux/SPARC yields signal SIGILL. */
20382 #if defined (__sparc__) && defined (__linux__)
20383 signal (SIGILL, sigfpe_handler);
20392 rm -f conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_link") 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 gt_cv_int_divbyzero_sigfpe=yes
20414 echo "$as_me: program exited with status $ac_status" >&5
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ( exit $ac_status )
20419 gt_cv_int_divbyzero_sigfpe=no
20421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20427 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20428 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20429 case "$gt_cv_int_divbyzero_sigfpe" in
20434 cat >>confdefs.h <<_ACEOF
20435 #define INTDIV0_RAISES_SIGFPE $value
20440 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20441 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20442 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 unsigned long long ull = 1ULL; int i = 63;
20455 unsigned long long ullmax = (unsigned long long) -1;
20456 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_link") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest$ac_exeext &&
20478 $as_test_x conftest$ac_exeext; then
20479 ac_cv_type_unsigned_long_long=yes
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 ac_cv_type_unsigned_long_long=no
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488 conftest$ac_exeext conftest.$ac_ext
20490 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20491 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20492 if test $ac_cv_type_unsigned_long_long = yes; then
20494 cat >>confdefs.h <<\_ACEOF
20495 #define HAVE_UNSIGNED_LONG_LONG 1
20503 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20505 test $ac_cv_type_unsigned_long_long = yes \
20506 && ac_type='unsigned long long' \
20507 || ac_type='unsigned long'
20509 cat >>confdefs.h <<_ACEOF
20510 #define uintmax_t $ac_type
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_UINTMAX_T 1
20522 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20523 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20524 if test "${gt_cv_header_inttypes_h+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 #include <sys/types.h>
20535 #include <inttypes.h>
20544 rm -f conftest.$ac_objext
20545 if { (ac_try="$ac_compile"
20546 case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_compile") 2>conftest.er1
20553 grep -v '^ *+' conftest.er1 >conftest.err
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } && {
20558 test -z "$ac_c_werror_flag" ||
20559 test ! -s conftest.err
20560 } && test -s conftest.$ac_objext; then
20561 gt_cv_header_inttypes_h=yes
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 gt_cv_header_inttypes_h=no
20569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20573 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20574 if test $gt_cv_header_inttypes_h = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 #define HAVE_INTTYPES_H 1
20584 if test $gt_cv_header_inttypes_h = yes; then
20585 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20586 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20587 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 #include <inttypes.h>
20610 rm -f conftest.$ac_objext
20611 if { (ac_try="$ac_compile"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } && {
20624 test -z "$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 } && test -s conftest.$ac_objext; then
20627 gt_cv_inttypes_pri_broken=no
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 gt_cv_inttypes_pri_broken=yes
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20639 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20641 if test "$gt_cv_inttypes_pri_broken" = yes; then
20643 cat >>confdefs.h <<_ACEOF
20644 #define PRI_MACROS_BROKEN 1
20651 for ac_header in stdint.h
20653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661 { echo "$as_me:$LINENO: result: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20664 # Is the header compilable?
20665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 $ac_includes_default
20674 #include <$ac_header>
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_compile") 2>conftest.er1
20685 grep -v '^ *+' conftest.er1 >conftest.err
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest.$ac_objext; then
20693 ac_header_compiler=yes
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_header_compiler=no
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20703 echo "${ECHO_T}$ac_header_compiler" >&6; }
20705 # Is the header present?
20706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 #include <$ac_header>
20716 if { (ac_try="$ac_cpp conftest.$ac_ext"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } >/dev/null && {
20729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20732 ac_header_preproc=yes
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ac_header_preproc=no
20740 rm -f conftest.err conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20742 echo "${ECHO_T}$ac_header_preproc" >&6; }
20744 # So? What about this header?
20745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20751 ac_header_preproc=yes
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 eval "$as_ac_Header=\$ac_header_preproc"
20776 ac_res=`eval echo '${'$as_ac_Header'}'`
20777 { echo "$as_me:$LINENO: result: $ac_res" >&5
20778 echo "${ECHO_T}$ac_res" >&6; }
20781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20782 cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20790 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20791 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20800 #include <limits.h>
20802 #include <stdint.h>
20809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20810 $EGREP "Found it" >/dev/null 2>&1; then
20815 if test -z "$result"; then
20816 if test "$cross_compiling" = yes; then
20817 # Depending upon the size, compute the lo and hi bounds.
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 #include <stddef.h>
20828 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest.$ac_objext; then
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 #include <stddef.h>
20864 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest.$ac_objext; then
20888 ac_hi=$ac_mid; break
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_lo=`expr $ac_mid + 1`
20894 if test $ac_lo -le $ac_mid; then
20898 ac_mid=`expr 2 '*' $ac_mid + 1`
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 #include <stddef.h>
20917 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20933 grep -v '^ *+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && {
20938 test -z "$ac_c_werror_flag" ||
20939 test ! -s conftest.err
20940 } && test -s conftest.$ac_objext; then
20943 cat >conftest.$ac_ext <<_ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 #include <stddef.h>
20953 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_compile") 2>conftest.er1
20969 grep -v '^ *+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && {
20974 test -z "$ac_c_werror_flag" ||
20975 test ! -s conftest.err
20976 } && test -s conftest.$ac_objext; then
20977 ac_lo=$ac_mid; break
20979 echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ac_hi=`expr '(' $ac_mid ')' - 1`
20983 if test $ac_mid -le $ac_hi; then
20987 ac_mid=`expr 2 '*' $ac_mid`
20990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 # Binary search between lo and hi bounds.
21004 while test "x$ac_lo" != "x$ac_hi"; do
21005 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <stddef.h>
21016 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21023 rm -f conftest.$ac_objext
21024 if { (ac_try="$ac_compile"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_compile") 2>conftest.er1
21032 grep -v '^ *+' conftest.er1 >conftest.err
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest.$ac_objext; then
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21045 ac_lo=`expr '(' $ac_mid ')' + 1`
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051 ?*) res_hi=$ac_lo;;
21055 cat >conftest.$ac_ext <<_ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 #include <stddef.h>
21062 static long int longval () { return ~(size_t)0 / 10; }
21063 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21065 #include <stdlib.h>
21070 FILE *f = fopen ("conftest.val", "w");
21073 if ((~(size_t)0 / 10) < 0)
21075 long int i = longval ();
21076 if (i != (~(size_t)0 / 10))
21078 fprintf (f, "%ld\n", i);
21082 unsigned long int i = ulongval ();
21083 if (i != (~(size_t)0 / 10))
21085 fprintf (f, "%lu\n", i);
21087 return ferror (f) || fclose (f) != 0;
21093 rm -f conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_link") 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 res_hi=`cat conftest.val`
21115 echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 ( exit $ac_status )
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21126 if test "$cross_compiling" = yes; then
21127 # Depending upon the size, compute the lo and hi bounds.
21128 cat >conftest.$ac_ext <<_ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 #include <stddef.h>
21138 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21164 cat >conftest.$ac_ext <<_ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <stddef.h>
21174 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21181 rm -f conftest.$ac_objext
21182 if { (ac_try="$ac_compile"
21183 case "(($ac_try" in
21184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 *) ac_try_echo=$ac_try;;
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 (eval "$ac_compile") 2>conftest.er1
21190 grep -v '^ *+' conftest.er1 >conftest.err
21192 cat conftest.err >&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } && {
21195 test -z "$ac_c_werror_flag" ||
21196 test ! -s conftest.err
21197 } && test -s conftest.$ac_objext; then
21198 ac_hi=$ac_mid; break
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21203 ac_lo=`expr $ac_mid + 1`
21204 if test $ac_lo -le $ac_mid; then
21208 ac_mid=`expr 2 '*' $ac_mid + 1`
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 cat >conftest.$ac_ext <<_ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <stddef.h>
21227 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_compile") 2>conftest.er1
21243 grep -v '^ *+' conftest.er1 >conftest.err
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } && {
21248 test -z "$ac_c_werror_flag" ||
21249 test ! -s conftest.err
21250 } && test -s conftest.$ac_objext; then
21253 cat >conftest.$ac_ext <<_ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21259 #include <stddef.h>
21263 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_compile") 2>conftest.er1
21279 grep -v '^ *+' conftest.er1 >conftest.err
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && {
21284 test -z "$ac_c_werror_flag" ||
21285 test ! -s conftest.err
21286 } && test -s conftest.$ac_objext; then
21287 ac_lo=$ac_mid; break
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_hi=`expr '(' $ac_mid ')' - 1`
21293 if test $ac_mid -le $ac_hi; then
21297 ac_mid=`expr 2 '*' $ac_mid`
21300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 # Binary search between lo and hi bounds.
21314 while test "x$ac_lo" != "x$ac_hi"; do
21315 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 #include <stddef.h>
21326 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_compile") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1 >conftest.err
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest.$ac_objext; then
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_lo=`expr '(' $ac_mid ')' + 1`
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 ?*) res_lo=$ac_lo;;
21365 cat >conftest.$ac_ext <<_ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 #include <stddef.h>
21372 static long int longval () { return ~(size_t)0 % 10; }
21373 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21375 #include <stdlib.h>
21380 FILE *f = fopen ("conftest.val", "w");
21383 if ((~(size_t)0 % 10) < 0)
21385 long int i = longval ();
21386 if (i != (~(size_t)0 % 10))
21388 fprintf (f, "%ld\n", i);
21392 unsigned long int i = ulongval ();
21393 if (i != (~(size_t)0 % 10))
21395 fprintf (f, "%lu\n", i);
21397 return ferror (f) || fclose (f) != 0;
21403 rm -f conftest$ac_exeext
21404 if { (ac_try="$ac_link"
21405 case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_link") 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 res_lo=`cat conftest.val`
21425 echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ( exit $ac_status )
21432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21436 if test "$cross_compiling" = yes; then
21437 # Depending upon the size, compute the lo and hi bounds.
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <stddef.h>
21448 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21464 grep -v '^ *+' conftest.er1 >conftest.err
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest.$ac_objext; then
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 #include <stddef.h>
21484 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest.$ac_objext; then
21508 ac_hi=$ac_mid; break
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 ac_lo=`expr $ac_mid + 1`
21514 if test $ac_lo -le $ac_mid; then
21518 ac_mid=`expr 2 '*' $ac_mid + 1`
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <stddef.h>
21537 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.$ac_objext; then
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 #include <stddef.h>
21573 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_compile") 2>conftest.er1
21589 grep -v '^ *+' conftest.er1 >conftest.err
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest.$ac_objext; then
21597 ac_lo=$ac_mid; break
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ac_hi=`expr '(' $ac_mid ')' - 1`
21603 if test $ac_mid -le $ac_hi; then
21607 ac_mid=`expr 2 '*' $ac_mid`
21610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 # Binary search between lo and hi bounds.
21624 while test "x$ac_lo" != "x$ac_hi"; do
21625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 #include <stddef.h>
21636 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21643 rm -f conftest.$ac_objext
21644 if { (ac_try="$ac_compile"
21645 case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650 (eval "$ac_compile") 2>conftest.er1
21652 grep -v '^ *+' conftest.er1 >conftest.err
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && {
21657 test -z "$ac_c_werror_flag" ||
21658 test ! -s conftest.err
21659 } && test -s conftest.$ac_objext; then
21662 echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21665 ac_lo=`expr '(' $ac_mid ')' + 1`
21668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21671 ?*) fits_in_uint=$ac_lo;;
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 #include <stddef.h>
21682 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21683 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21685 #include <stdlib.h>
21690 FILE *f = fopen ("conftest.val", "w");
21693 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21695 long int i = longval ();
21696 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21698 fprintf (f, "%ld\n", i);
21702 unsigned long int i = ulongval ();
21703 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21705 fprintf (f, "%lu\n", i);
21707 return ferror (f) || fclose (f) != 0;
21713 rm -f conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_link") 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 fits_in_uint=`cat conftest.val`
21735 echo "$as_me: program exited with status $ac_status" >&5
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ( exit $ac_status )
21742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21746 if test "$fits_in_uint" = 1; then
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 #include <stddef.h>
21755 extern unsigned long foo;
21765 rm -f conftest.$ac_objext
21766 if { (ac_try="$ac_compile"
21767 case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_compile") 2>conftest.er1
21774 grep -v '^ *+' conftest.er1 >conftest.err
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && {
21779 test -z "$ac_c_werror_flag" ||
21780 test ! -s conftest.err
21781 } && test -s conftest.$ac_objext; then
21784 echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792 if test -z "$result"; then
21793 if test "$fits_in_uint" = 1; then
21794 result="$res_hi$res_lo"U
21796 result="$res_hi$res_lo"UL
21799 result='~(size_t)0'
21802 { echo "$as_me:$LINENO: result: $result" >&5
21803 echo "${ECHO_T}$result" >&6; }
21804 if test "$result" != yes; then
21806 cat >>confdefs.h <<_ACEOF
21807 #define SIZE_MAX $result
21816 for ac_header in stdint.h
21818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 ac_res=`eval echo '${'$as_ac_Header'}'`
21826 { echo "$as_me:$LINENO: result: $ac_res" >&5
21827 echo "${ECHO_T}$ac_res" >&6; }
21829 # Is the header compilable?
21830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21832 cat >conftest.$ac_ext <<_ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21838 $ac_includes_default
21839 #include <$ac_header>
21841 rm -f conftest.$ac_objext
21842 if { (ac_try="$ac_compile"
21843 case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848 (eval "$ac_compile") 2>conftest.er1
21850 grep -v '^ *+' conftest.er1 >conftest.err
21852 cat conftest.err >&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } && {
21855 test -z "$ac_c_werror_flag" ||
21856 test ! -s conftest.err
21857 } && test -s conftest.$ac_objext; then
21858 ac_header_compiler=yes
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21863 ac_header_compiler=no
21866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21868 echo "${ECHO_T}$ac_header_compiler" >&6; }
21870 # Is the header present?
21871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21873 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 #include <$ac_header>
21881 if { (ac_try="$ac_cpp conftest.$ac_ext"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21889 grep -v '^ *+' conftest.er1 >conftest.err
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } >/dev/null && {
21894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21897 ac_header_preproc=yes
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 ac_header_preproc=no
21905 rm -f conftest.err conftest.$ac_ext
21906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21907 echo "${ECHO_T}$ac_header_preproc" >&6; }
21909 # So? What about this header?
21910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21916 ac_header_preproc=yes
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 eval "$as_ac_Header=\$ac_header_preproc"
21941 ac_res=`eval echo '${'$as_ac_Header'}'`
21942 { echo "$as_me:$LINENO: result: $ac_res" >&5
21943 echo "${ECHO_T}$ac_res" >&6; }
21946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21947 cat >>confdefs.h <<_ACEOF
21948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21962 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21963 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21964 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 $ac_includes_default
21974 typedef ptrdiff_t ac__type_new_;
21978 if ((ac__type_new_ *) 0)
21980 if (sizeof (ac__type_new_))
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } && {
22000 test -z "$ac_c_werror_flag" ||
22001 test ! -s conftest.err
22002 } && test -s conftest.$ac_objext; then
22003 ac_cv_type_ptrdiff_t=yes
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22008 ac_cv_type_ptrdiff_t=no
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22014 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22015 if test $ac_cv_type_ptrdiff_t = yes; then
22019 cat >>confdefs.h <<\_ACEOF
22020 #define ptrdiff_t long
22036 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22037 stdlib.h string.h unistd.h sys/param.h
22039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22046 ac_res=`eval echo '${'$as_ac_Header'}'`
22047 { echo "$as_me:$LINENO: result: $ac_res" >&5
22048 echo "${ECHO_T}$ac_res" >&6; }
22050 # Is the header compilable?
22051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22053 cat >conftest.$ac_ext <<_ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22060 #include <$ac_header>
22062 rm -f conftest.$ac_objext
22063 if { (ac_try="$ac_compile"
22064 case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_compile") 2>conftest.er1
22071 grep -v '^ *+' conftest.er1 >conftest.err
22073 cat conftest.err >&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } && {
22076 test -z "$ac_c_werror_flag" ||
22077 test ! -s conftest.err
22078 } && test -s conftest.$ac_objext; then
22079 ac_header_compiler=yes
22081 echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22084 ac_header_compiler=no
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22089 echo "${ECHO_T}$ac_header_compiler" >&6; }
22091 # Is the header present?
22092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22094 cat >conftest.$ac_ext <<_ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h. */
22100 #include <$ac_header>
22102 if { (ac_try="$ac_cpp conftest.$ac_ext"
22103 case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22110 grep -v '^ *+' conftest.er1 >conftest.err
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } >/dev/null && {
22115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22118 ac_header_preproc=yes
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_header_preproc=no
22126 rm -f conftest.err conftest.$ac_ext
22127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22128 echo "${ECHO_T}$ac_header_preproc" >&6; }
22130 # So? What about this header?
22131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22137 ac_header_preproc=yes
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22158 echo $ECHO_N "(cached) $ECHO_C" >&6
22160 eval "$as_ac_Header=\$ac_header_preproc"
22162 ac_res=`eval echo '${'$as_ac_Header'}'`
22163 { echo "$as_me:$LINENO: result: $ac_res" >&5
22164 echo "${ECHO_T}$ac_res" >&6; }
22167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22168 cat >>confdefs.h <<_ACEOF
22169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22199 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22200 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22201 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22208 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22218 #define $ac_func innocuous_$ac_func
22220 /* System header to define __stub macros and hopefully few prototypes,
22221 which can conflict with char $ac_func (); below.
22222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22223 <limits.h> exists even on freestanding compilers. */
22226 # include <limits.h>
22228 # include <assert.h>
22233 /* Override any GCC internal prototype to avoid an error.
22234 Use char because int might match the return type of a GCC
22235 builtin and then its argument prototype would still apply. */
22240 /* The GNU C library defines this for functions which it implements
22241 to always fail with ENOSYS. Some functions are actually named
22242 something starting with __ and the normal name is an alias. */
22243 #if defined __stub_$ac_func || defined __stub___$ac_func
22250 return $ac_func ();
22255 rm -f conftest.$ac_objext conftest$ac_exeext
22256 if { (ac_try="$ac_link"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_link") 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest$ac_exeext &&
22272 $as_test_x conftest$ac_exeext; then
22273 eval "$as_ac_var=yes"
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 eval "$as_ac_var=no"
22281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22282 conftest$ac_exeext conftest.$ac_ext
22284 ac_res=`eval echo '${'$as_ac_var'}'`
22285 { echo "$as_me:$LINENO: result: $ac_res" >&5
22286 echo "${ECHO_T}$ac_res" >&6; }
22287 if test `eval echo '${'$as_ac_var'}'` = yes; then
22288 cat >>confdefs.h <<_ACEOF
22289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22297 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22298 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22299 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22302 cat >conftest.$ac_ext <<_ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22314 char *p = (char *) _snprintf;
22321 rm -f conftest.$ac_objext
22322 if { (ac_try="$ac_compile"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_cv_have_decl__snprintf=yes
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_cv_have_decl__snprintf=no
22346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22349 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22350 if test $ac_cv_have_decl__snprintf = yes; then
22356 cat >>confdefs.h <<_ACEOF
22357 #define HAVE_DECL__SNPRINTF $gt_value
22362 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22363 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22364 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 cat >conftest.$ac_ext <<_ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22379 char *p = (char *) _snwprintf;
22386 rm -f conftest.$ac_objext
22387 if { (ac_try="$ac_compile"
22388 case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_compile") 2>conftest.er1
22395 grep -v '^ *+' conftest.er1 >conftest.err
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } && {
22400 test -z "$ac_c_werror_flag" ||
22401 test ! -s conftest.err
22402 } && test -s conftest.$ac_objext; then
22403 ac_cv_have_decl__snwprintf=yes
22405 echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22408 ac_cv_have_decl__snwprintf=no
22411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22414 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22415 if test $ac_cv_have_decl__snwprintf = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define HAVE_DECL__SNWPRINTF $gt_value
22428 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22429 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22430 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22431 echo $ECHO_N "(cached) $ECHO_C" >&6
22433 cat >conftest.$ac_ext <<_ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22444 #ifndef feof_unlocked
22445 char *p = (char *) feof_unlocked;
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_compile") 2>conftest.er1
22461 grep -v '^ *+' conftest.er1 >conftest.err
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest.$ac_objext; then
22469 ac_cv_have_decl_feof_unlocked=yes
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ac_cv_have_decl_feof_unlocked=no
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22480 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22481 if test $ac_cv_have_decl_feof_unlocked = yes; then
22487 cat >>confdefs.h <<_ACEOF
22488 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22493 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22494 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22495 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 cat >conftest.$ac_ext <<_ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22509 #ifndef fgets_unlocked
22510 char *p = (char *) fgets_unlocked;
22517 rm -f conftest.$ac_objext
22518 if { (ac_try="$ac_compile"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_compile") 2>conftest.er1
22526 grep -v '^ *+' conftest.er1 >conftest.err
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } && {
22531 test -z "$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 } && test -s conftest.$ac_objext; then
22534 ac_cv_have_decl_fgets_unlocked=yes
22536 echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_cv_have_decl_fgets_unlocked=no
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22544 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22545 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22546 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22552 cat >>confdefs.h <<_ACEOF
22553 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22558 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22559 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22560 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 cat >conftest.$ac_ext <<_ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22574 #ifndef getc_unlocked
22575 char *p = (char *) getc_unlocked;
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_compile") 2>conftest.er1
22591 grep -v '^ *+' conftest.er1 >conftest.err
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest.$ac_objext; then
22599 ac_cv_have_decl_getc_unlocked=yes
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_cv_have_decl_getc_unlocked=no
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22610 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22611 if test $ac_cv_have_decl_getc_unlocked = yes; then
22617 cat >>confdefs.h <<_ACEOF
22618 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22623 case $gt_cv_func_printf_posix in
22624 *yes) HAVE_POSIX_PRINTF=1 ;;
22625 *) HAVE_POSIX_PRINTF=0 ;;
22628 if test "$ac_cv_func_asprintf" = yes; then
22634 if test "$ac_cv_func_snprintf" = yes; then
22640 if test "$ac_cv_func_wprintf" = yes; then
22652 am_save_CPPFLAGS="$CPPFLAGS"
22654 for element in $INCICONV; do
22656 for x in $CPPFLAGS; do
22658 acl_save_prefix="$prefix"
22659 prefix="$acl_final_prefix"
22660 acl_save_exec_prefix="$exec_prefix"
22661 exec_prefix="$acl_final_exec_prefix"
22663 exec_prefix="$acl_save_exec_prefix"
22664 prefix="$acl_save_prefix"
22666 if test "X$x" = "X$element"; then
22671 if test -z "$haveit"; then
22672 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22677 { echo "$as_me:$LINENO: checking for iconv" >&5
22678 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22679 if test "${am_cv_func_iconv+set}" = set; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22683 am_cv_func_iconv="no, consider installing GNU libiconv"
22685 cat >conftest.$ac_ext <<_ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22691 #include <stdlib.h>
22696 iconv_t cd = iconv_open("","");
22697 iconv(cd,NULL,NULL,NULL,NULL);
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (ac_try="$ac_link"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_link") 2>conftest.er1
22712 grep -v '^ *+' conftest.er1 >conftest.err
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } && {
22717 test -z "$ac_c_werror_flag" ||
22718 test ! -s conftest.err
22719 } && test -s conftest$ac_exeext &&
22720 $as_test_x conftest$ac_exeext; then
22721 am_cv_func_iconv=yes
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22730 conftest$ac_exeext conftest.$ac_ext
22731 if test "$am_cv_func_iconv" != yes; then
22732 am_save_LIBS="$LIBS"
22733 LIBS="$LIBS $LIBICONV"
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 #include <stdlib.h>
22745 iconv_t cd = iconv_open("","");
22746 iconv(cd,NULL,NULL,NULL,NULL);
22752 rm -f conftest.$ac_objext conftest$ac_exeext
22753 if { (ac_try="$ac_link"
22754 case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759 (eval "$ac_link") 2>conftest.er1
22761 grep -v '^ *+' conftest.er1 >conftest.err
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest$ac_exeext &&
22769 $as_test_x conftest$ac_exeext; then
22770 am_cv_lib_iconv=yes
22771 am_cv_func_iconv=yes
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22780 conftest$ac_exeext conftest.$ac_ext
22781 LIBS="$am_save_LIBS"
22785 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22786 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22787 if test "$am_cv_func_iconv" = yes; then
22789 cat >>confdefs.h <<\_ACEOF
22790 #define HAVE_ICONV 1
22794 if test "$am_cv_lib_iconv" = yes; then
22795 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22796 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22797 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22798 echo "${ECHO_T}$LIBICONV" >&6; }
22800 CPPFLAGS="$am_save_CPPFLAGS"
22807 if test "$am_cv_func_iconv" = yes; then
22808 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22809 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22810 if test "${am_cv_proto_iconv+set}" = set; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22814 cat >conftest.$ac_ext <<_ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22821 #include <stdlib.h>
22827 #if defined(__STDC__) || defined(__cplusplus)
22828 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22841 rm -f conftest.$ac_objext
22842 if { (ac_try="$ac_compile"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22858 am_cv_proto_iconv_arg1=""
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 am_cv_proto_iconv_arg1="const"
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 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);"
22870 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22871 { echo "$as_me:$LINENO: result: ${ac_t:-
22872 }$am_cv_proto_iconv" >&5
22873 echo "${ECHO_T}${ac_t:-
22874 }$am_cv_proto_iconv" >&6; }
22876 cat >>confdefs.h <<_ACEOF
22877 #define ICONV_CONST $am_cv_proto_iconv_arg1
22883 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22884 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22885 if test "${am_cv_langinfo_codeset+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 cat >conftest.$ac_ext <<_ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 #include <langinfo.h>
22898 char* cs = nl_langinfo(CODESET);
22903 rm -f conftest.$ac_objext conftest$ac_exeext
22904 if { (ac_try="$ac_link"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_link") 2>conftest.er1
22912 grep -v '^ *+' conftest.er1 >conftest.err
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } && {
22917 test -z "$ac_c_werror_flag" ||
22918 test ! -s conftest.err
22919 } && test -s conftest$ac_exeext &&
22920 $as_test_x conftest$ac_exeext; then
22921 am_cv_langinfo_codeset=yes
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 am_cv_langinfo_codeset=no
22929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22930 conftest$ac_exeext conftest.$ac_ext
22933 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22934 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22935 if test $am_cv_langinfo_codeset = yes; then
22937 cat >>confdefs.h <<\_ACEOF
22938 #define HAVE_LANGINFO_CODESET 1
22943 if test $ac_cv_header_locale_h = yes; then
22945 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22946 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22947 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 cat >conftest.$ac_ext <<_ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h. */
22956 #include <locale.h>
22965 rm -f conftest.$ac_objext conftest$ac_exeext
22966 if { (ac_try="$ac_link"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_link") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest$ac_exeext &&
22982 $as_test_x conftest$ac_exeext; then
22983 gt_cv_val_LC_MESSAGES=yes
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 gt_cv_val_LC_MESSAGES=no
22991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22992 conftest$ac_exeext conftest.$ac_ext
22994 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22995 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22996 if test $gt_cv_val_LC_MESSAGES = yes; then
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_LC_MESSAGES 1
23006 if test -n "$INTL_MACOSX_LIBS"; then
23007 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23010 for ac_prog in bison
23012 # Extract the first word of "$ac_prog", so it can be a program name with args.
23013 set dummy $ac_prog; ac_word=$2
23014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23016 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 if test -n "$INTLBISON"; then
23020 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23023 for as_dir in $PATH
23026 test -z "$as_dir" && as_dir=.
23027 for ac_exec_ext in '' $ac_executable_extensions; do
23028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23029 ac_cv_prog_INTLBISON="$ac_prog"
23030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23039 INTLBISON=$ac_cv_prog_INTLBISON
23040 if test -n "$INTLBISON"; then
23041 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23042 echo "${ECHO_T}$INTLBISON" >&6; }
23044 { echo "$as_me:$LINENO: result: no" >&5
23045 echo "${ECHO_T}no" >&6; }
23049 test -n "$INTLBISON" && break
23052 if test -z "$INTLBISON"; then
23055 { echo "$as_me:$LINENO: checking version of bison" >&5
23056 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23057 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23058 case $ac_prog_version in
23059 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23060 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23061 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23062 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23064 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23065 echo "${ECHO_T}$ac_prog_version" >&6; }
23067 if test $ac_verc_fail = yes; then
23086 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23087 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23088 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 gt_save_CPPFLAGS="$CPPFLAGS"
23092 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23093 gt_save_LIBS="$LIBS"
23094 LIBS="$LIBS -framework CoreFoundation"
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 #include <CFPreferences.h>
23105 CFPreferencesCopyAppValue(NULL, NULL)
23110 rm -f conftest.$ac_objext conftest$ac_exeext
23111 if { (ac_try="$ac_link"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_link") 2>conftest.er1
23119 grep -v '^ *+' conftest.er1 >conftest.err
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } && {
23124 test -z "$ac_c_werror_flag" ||
23125 test ! -s conftest.err
23126 } && test -s conftest$ac_exeext &&
23127 $as_test_x conftest$ac_exeext; then
23128 gt_cv_func_CFPreferencesCopyAppValue=yes
23130 echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23133 gt_cv_func_CFPreferencesCopyAppValue=no
23136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23137 conftest$ac_exeext conftest.$ac_ext
23138 CPPFLAGS="$gt_save_CPPFLAGS"
23139 LIBS="$gt_save_LIBS"
23141 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23142 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23143 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23145 cat >>confdefs.h <<\_ACEOF
23146 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23150 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23151 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23152 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 gt_save_CPPFLAGS="$CPPFLAGS"
23156 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23157 gt_save_LIBS="$LIBS"
23158 LIBS="$LIBS -framework CoreFoundation"
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 #include <CFLocale.h>
23169 CFLocaleCopyCurrent();
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178 *) ac_try_echo=$ac_try;;
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_link") 2>conftest.er1
23183 grep -v '^ *+' conftest.er1 >conftest.err
23185 cat conftest.err >&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest$ac_exeext &&
23191 $as_test_x conftest$ac_exeext; then
23192 gt_cv_func_CFLocaleCopyCurrent=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 gt_cv_func_CFLocaleCopyCurrent=no
23200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23201 conftest$ac_exeext conftest.$ac_ext
23202 CPPFLAGS="$gt_save_CPPFLAGS"
23203 LIBS="$gt_save_LIBS"
23205 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23206 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23207 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23209 cat >>confdefs.h <<\_ACEOF
23210 #define HAVE_CFLOCALECOPYCURRENT 1
23215 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23216 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23222 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23223 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23224 # Check whether --enable-nls was given.
23225 if test "${enable_nls+set}" = set; then
23226 enableval=$enable_nls; USE_NLS=$enableval
23231 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23232 echo "${ECHO_T}$USE_NLS" >&6; }
23237 BUILD_INCLUDED_LIBINTL=no
23238 USE_INCLUDED_LIBINTL=no
23244 if test "$USE_NLS" = "yes"; then
23245 gt_use_preinstalled_gnugettext=no
23247 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23248 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23250 # Check whether --with-included-gettext was given.
23251 if test "${with_included_gettext+set}" = set; then
23252 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23254 nls_cv_force_use_gnu_gettext=no
23257 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23258 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23260 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23261 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23268 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23269 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23270 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23271 echo $ECHO_N "(cached) $ECHO_C" >&6
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 #include <libintl.h>
23280 extern int _nl_msg_cat_cntr;
23281 extern int *_nl_domain_bindings;
23285 bindtextdomain ("", "");
23286 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23291 rm -f conftest.$ac_objext conftest$ac_exeext
23292 if { (ac_try="$ac_link"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_link") 2>conftest.er1
23300 grep -v '^ *+' conftest.er1 >conftest.err
23302 cat conftest.err >&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } && {
23305 test -z "$ac_c_werror_flag" ||
23306 test ! -s conftest.err
23307 } && test -s conftest$ac_exeext &&
23308 $as_test_x conftest$ac_exeext; then
23309 gt_cv_func_gnugettext1_libc=yes
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 gt_cv_func_gnugettext1_libc=no
23317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23318 conftest$ac_exeext conftest.$ac_ext
23320 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23321 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23323 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23329 acl_save_prefix="$prefix"
23330 prefix="$acl_final_prefix"
23331 acl_save_exec_prefix="$exec_prefix"
23332 exec_prefix="$acl_final_exec_prefix"
23334 eval additional_includedir=\"$includedir\"
23335 eval additional_libdir=\"$libdir\"
23337 exec_prefix="$acl_save_exec_prefix"
23338 prefix="$acl_save_prefix"
23341 # Check whether --with-libintl-prefix was given.
23342 if test "${with_libintl_prefix+set}" = set; then
23343 withval=$with_libintl_prefix;
23344 if test "X$withval" = "Xno"; then
23347 if test "X$withval" = "X"; then
23349 acl_save_prefix="$prefix"
23350 prefix="$acl_final_prefix"
23351 acl_save_exec_prefix="$exec_prefix"
23352 exec_prefix="$acl_final_exec_prefix"
23354 eval additional_includedir=\"$includedir\"
23355 eval additional_libdir=\"$libdir\"
23357 exec_prefix="$acl_save_exec_prefix"
23358 prefix="$acl_save_prefix"
23361 additional_includedir="$withval/include"
23362 additional_libdir="$withval/lib"
23373 names_already_handled=
23374 names_next_round='intl '
23375 while test -n "$names_next_round"; do
23376 names_this_round="$names_next_round"
23378 for name in $names_this_round; do
23380 for n in $names_already_handled; do
23381 if test "$n" = "$name"; then
23382 already_handled=yes
23386 if test -z "$already_handled"; then
23387 names_already_handled="$names_already_handled $name"
23388 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23389 eval value=\"\$HAVE_LIB$uppername\"
23390 if test -n "$value"; then
23391 if test "$value" = yes; then
23392 eval value=\"\$LIB$uppername\"
23393 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23394 eval value=\"\$LTLIB$uppername\"
23395 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23404 if test $use_additional = yes; then
23405 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23406 found_dir="$additional_libdir"
23407 found_so="$additional_libdir/lib$name.$shlibext"
23408 if test -f "$additional_libdir/lib$name.la"; then
23409 found_la="$additional_libdir/lib$name.la"
23412 if test -f "$additional_libdir/lib$name.$libext"; then
23413 found_dir="$additional_libdir"
23414 found_a="$additional_libdir/lib$name.$libext"
23415 if test -f "$additional_libdir/lib$name.la"; then
23416 found_la="$additional_libdir/lib$name.la"
23421 if test "X$found_dir" = "X"; then
23422 for x in $LDFLAGS $LTLIBINTL; do
23424 acl_save_prefix="$prefix"
23425 prefix="$acl_final_prefix"
23426 acl_save_exec_prefix="$exec_prefix"
23427 exec_prefix="$acl_final_exec_prefix"
23429 exec_prefix="$acl_save_exec_prefix"
23430 prefix="$acl_save_prefix"
23434 dir=`echo "X$x" | sed -e 's/^X-L//'`
23435 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23437 found_so="$dir/lib$name.$shlibext"
23438 if test -f "$dir/lib$name.la"; then
23439 found_la="$dir/lib$name.la"
23442 if test -f "$dir/lib$name.$libext"; then
23444 found_a="$dir/lib$name.$libext"
23445 if test -f "$dir/lib$name.la"; then
23446 found_la="$dir/lib$name.la"
23452 if test "X$found_dir" != "X"; then
23457 if test "X$found_dir" != "X"; then
23458 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23459 if test "X$found_so" != "X"; then
23460 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23464 for x in $ltrpathdirs; do
23465 if test "X$x" = "X$found_dir"; then
23470 if test -z "$haveit"; then
23471 ltrpathdirs="$ltrpathdirs $found_dir"
23473 if test "$hardcode_direct" = yes; then
23474 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23476 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23477 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23479 for x in $rpathdirs; do
23480 if test "X$x" = "X$found_dir"; then
23485 if test -z "$haveit"; then
23486 rpathdirs="$rpathdirs $found_dir"
23490 for x in $LDFLAGS $LIBINTL; do
23492 acl_save_prefix="$prefix"
23493 prefix="$acl_final_prefix"
23494 acl_save_exec_prefix="$exec_prefix"
23495 exec_prefix="$acl_final_exec_prefix"
23497 exec_prefix="$acl_save_exec_prefix"
23498 prefix="$acl_save_prefix"
23500 if test "X$x" = "X-L$found_dir"; then
23505 if test -z "$haveit"; then
23506 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23508 if test "$hardcode_minus_L" != no; then
23509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23511 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23517 if test "X$found_a" != "X"; then
23518 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23520 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23523 additional_includedir=
23524 case "$found_dir" in
23526 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23527 additional_includedir="$basedir/include"
23530 if test "X$additional_includedir" != "X"; then
23531 if test "X$additional_includedir" != "X/usr/include"; then
23533 if test "X$additional_includedir" = "X/usr/local/include"; then
23534 if test -n "$GCC"; then
23536 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23540 if test -z "$haveit"; then
23541 for x in $CPPFLAGS $INCINTL; do
23543 acl_save_prefix="$prefix"
23544 prefix="$acl_final_prefix"
23545 acl_save_exec_prefix="$exec_prefix"
23546 exec_prefix="$acl_final_exec_prefix"
23548 exec_prefix="$acl_save_exec_prefix"
23549 prefix="$acl_save_prefix"
23551 if test "X$x" = "X-I$additional_includedir"; then
23556 if test -z "$haveit"; then
23557 if test -d "$additional_includedir"; then
23558 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23564 if test -n "$found_la"; then
23565 save_libdir="$libdir"
23566 case "$found_la" in
23567 */* | *\\*) . "$found_la" ;;
23568 *) . "./$found_la" ;;
23570 libdir="$save_libdir"
23571 for dep in $dependency_libs; do
23574 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23575 if test "X$additional_libdir" != "X/usr/lib"; then
23577 if test "X$additional_libdir" = "X/usr/local/lib"; then
23578 if test -n "$GCC"; then
23580 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23584 if test -z "$haveit"; then
23586 for x in $LDFLAGS $LIBINTL; do
23588 acl_save_prefix="$prefix"
23589 prefix="$acl_final_prefix"
23590 acl_save_exec_prefix="$exec_prefix"
23591 exec_prefix="$acl_final_exec_prefix"
23593 exec_prefix="$acl_save_exec_prefix"
23594 prefix="$acl_save_prefix"
23596 if test "X$x" = "X-L$additional_libdir"; then
23601 if test -z "$haveit"; then
23602 if test -d "$additional_libdir"; then
23603 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23607 for x in $LDFLAGS $LTLIBINTL; do
23609 acl_save_prefix="$prefix"
23610 prefix="$acl_final_prefix"
23611 acl_save_exec_prefix="$exec_prefix"
23612 exec_prefix="$acl_final_exec_prefix"
23614 exec_prefix="$acl_save_exec_prefix"
23615 prefix="$acl_save_prefix"
23617 if test "X$x" = "X-L$additional_libdir"; then
23622 if test -z "$haveit"; then
23623 if test -d "$additional_libdir"; then
23624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23631 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23632 if test "$enable_rpath" != no; then
23634 for x in $rpathdirs; do
23635 if test "X$x" = "X$dir"; then
23640 if test -z "$haveit"; then
23641 rpathdirs="$rpathdirs $dir"
23644 for x in $ltrpathdirs; do
23645 if test "X$x" = "X$dir"; then
23650 if test -z "$haveit"; then
23651 ltrpathdirs="$ltrpathdirs $dir"
23656 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23659 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23662 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23663 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23669 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23670 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23676 if test "X$rpathdirs" != "X"; then
23677 if test -n "$hardcode_libdir_separator"; then
23679 for found_dir in $rpathdirs; do
23680 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23682 acl_save_libdir="$libdir"
23684 eval flag=\"$hardcode_libdir_flag_spec\"
23685 libdir="$acl_save_libdir"
23686 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23688 for found_dir in $rpathdirs; do
23689 acl_save_libdir="$libdir"
23690 libdir="$found_dir"
23691 eval flag=\"$hardcode_libdir_flag_spec\"
23692 libdir="$acl_save_libdir"
23693 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23697 if test "X$ltrpathdirs" != "X"; then
23698 for found_dir in $ltrpathdirs; do
23699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23703 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23704 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23705 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23708 gt_save_CPPFLAGS="$CPPFLAGS"
23709 CPPFLAGS="$CPPFLAGS $INCINTL"
23710 gt_save_LIBS="$LIBS"
23711 LIBS="$LIBS $LIBINTL"
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include <libintl.h>
23719 extern int _nl_msg_cat_cntr;
23724 const char *_nl_expand_alias (const char *);
23728 bindtextdomain ("", "");
23729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (ac_try="$ac_link"
23736 case "(($ac_try" in
23737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738 *) ac_try_echo=$ac_try;;
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741 (eval "$ac_link") 2>conftest.er1
23743 grep -v '^ *+' conftest.er1 >conftest.err
23745 cat conftest.err >&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && {
23748 test -z "$ac_c_werror_flag" ||
23749 test ! -s conftest.err
23750 } && test -s conftest$ac_exeext &&
23751 $as_test_x conftest$ac_exeext; then
23752 gt_cv_func_gnugettext1_libintl=yes
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23757 gt_cv_func_gnugettext1_libintl=no
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23762 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23763 LIBS="$LIBS $LIBICONV"
23764 cat >conftest.$ac_ext <<_ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 #include <libintl.h>
23771 extern int _nl_msg_cat_cntr;
23776 const char *_nl_expand_alias (const char *);
23780 bindtextdomain ("", "");
23781 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23786 rm -f conftest.$ac_objext conftest$ac_exeext
23787 if { (ac_try="$ac_link"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_link") 2>conftest.er1
23795 grep -v '^ *+' conftest.er1 >conftest.err
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && {
23800 test -z "$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 } && test -s conftest$ac_exeext &&
23803 $as_test_x conftest$ac_exeext; then
23804 LIBINTL="$LIBINTL $LIBICONV"
23805 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23806 gt_cv_func_gnugettext1_libintl=yes
23809 echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23816 conftest$ac_exeext conftest.$ac_ext
23818 CPPFLAGS="$gt_save_CPPFLAGS"
23819 LIBS="$gt_save_LIBS"
23821 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23822 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23825 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23826 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23827 && test "$PACKAGE" != gettext-runtime \
23828 && test "$PACKAGE" != gettext-tools; }; then
23829 gt_use_preinstalled_gnugettext=yes
23837 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23838 nls_cv_use_gnu_gettext=yes
23842 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23843 BUILD_INCLUDED_LIBINTL=yes
23844 USE_INCLUDED_LIBINTL=yes
23845 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23846 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23847 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23851 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23852 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23857 if test -n "$INTL_MACOSX_LIBS"; then
23858 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23859 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23860 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23861 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23865 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23866 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23868 cat >>confdefs.h <<\_ACEOF
23869 #define ENABLE_NLS 1
23877 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23878 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23879 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23880 echo "${ECHO_T}$USE_NLS" >&6; }
23881 if test "$USE_NLS" = "yes"; then
23882 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23883 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23884 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23885 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23886 gt_source="external libintl"
23891 gt_source="included intl directory"
23893 { echo "$as_me:$LINENO: result: $gt_source" >&5
23894 echo "${ECHO_T}$gt_source" >&6; }
23897 if test "$USE_NLS" = "yes"; then
23899 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23902 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23903 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23904 echo "${ECHO_T}$LIBINTL" >&6; }
23906 for element in $INCINTL; do
23908 for x in $CPPFLAGS; do
23910 acl_save_prefix="$prefix"
23911 prefix="$acl_final_prefix"
23912 acl_save_exec_prefix="$exec_prefix"
23913 exec_prefix="$acl_final_exec_prefix"
23915 exec_prefix="$acl_save_exec_prefix"
23916 prefix="$acl_save_prefix"
23918 if test "X$x" = "X$element"; then
23923 if test -z "$haveit"; then
23924 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23931 cat >>confdefs.h <<\_ACEOF
23932 #define HAVE_GETTEXT 1
23936 cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_DCGETTEXT 1
23946 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23947 BUILD_INCLUDED_LIBINTL=yes
23954 nls_cv_header_intl=
23955 nls_cv_header_libgt=
23967 if test "$USE_INCLUDED_LIBINTL" = yes; then
23968 INTLOBJS="\$(GETTOBJS)"
23972 INTL_LIBTOOL_SUFFIX_PREFIX=
23976 INTLLIBS="$LIBINTL"
23988 support_postgresql=no
23990 support_smartalloc=yes
23991 support_readline=yes
23995 support_wx_console=no
23996 support_tray_monitor=no
24001 support_static_tools=no
24002 support_static_fd=no
24003 support_static_sd=no
24004 support_static_dir=no
24005 support_static_cons=no
24007 build_client_only=no
24016 # Check whether --enable-gnome was given.
24017 if test "${enable_gnome+set}" = set; then
24018 enableval=$enable_gnome;
24019 if test x$enableval = xyes; then
24028 if test x$support_gnome = xyes; then
24029 abc=`$PKGCONFIG --exists libgnomeui-2.0`
24031 if test $pkg = 0; then
24032 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24033 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24034 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24035 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24040 GNOME_DIR=src/gnome2-console
24041 gnome_version="Version 2.x"
24043 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24044 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24045 { (exit 1); exit 1; }; }
24050 # Check whether --enable-bat was given.
24051 if test "${enable_bat+set}" = set; then
24052 enableval=$enable_bat;
24053 if test x$enableval = xyes; then
24055 cat >>confdefs.h <<\_ACEOF
24067 if test x$support_bat = xyes; then
24068 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24070 if test $pkg = 0; then
24071 BAT_DIR=src/qt-console
24073 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24074 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24075 { (exit 1); exit 1; }; }
24085 if test x$support_bat = xyes; then
24086 { echo "$as_me:$LINENO: checking for qwt support" >&5
24087 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24089 # Check whether --with-qwt was given.
24090 if test "${with_qwt+set}" = set; then
24092 case "$with_qwt" in
24097 if test -f ${with_qwt}/include/qwt.h; then
24098 QWT_INC="${with_qwt}/include"
24099 QWT_LDFLAGS="-L${with_qwt}/lib"
24110 if test $no_qwt = no; then
24111 if test x$QWT_INC = x; then
24112 for root in /usr /usr/local; do
24113 for ver in qwt qwt5 qwt-qt4; do
24114 if test -f ${root}/include/${ver}/qwt.h; then
24115 QWT_INC="${root}/include/${ver}"
24116 if test -d ${root}/lib64/; then
24117 QWT_LDFLAGS="-L${root}/lib64"
24118 elif test -d ${root}/lib/64/; then
24119 QWT_LDFLAGS="-L${root}/64"
24121 QWT_LDFLAGS="-L${root}/lib"
24132 if test x$QWT_INC = x; then
24133 { echo "$as_me:$LINENO: result: no" >&5
24134 echo "${ECHO_T}no" >&6; }
24137 cat >>confdefs.h <<\_ACEOF
24141 { echo "$as_me:$LINENO: result: yes" >&5
24142 echo "${ECHO_T}yes" >&6; }
24152 # Check whether --enable-bwx-console was given.
24153 if test "${enable_bwx_console+set}" = set; then
24154 enableval=$enable_bwx_console;
24155 if test x$enableval = xyes; then
24156 support_wx_console=yes
24164 if test x$support_wx_console = xyes; then
24165 abc=`$WXCONFIG $WXFLAGS --cppflags`
24167 if test $pkg = 0; then
24168 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24169 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24170 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24174 WX_DIR=src/wx-console
24177 echo "wx-config program not found. bwx-console disabled."
24179 support_wx_console=no
24184 # Check whether --enable-tray-monitor was given.
24185 if test "${enable_tray_monitor+set}" = set; then
24186 enableval=$enable_tray_monitor;
24187 if test x$enableval = xyes; then
24188 support_tray_monitor=yes
24196 if test x$support_tray_monitor = xyes; then
24197 abc=`$PKGCONFIG --exists gtk+-2.0`
24199 if test $pkg = 0; then
24200 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24201 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24204 TRAY_MONITOR_DIR=src/tray-monitor
24205 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24207 if test $pkg = 0; then
24209 cat >>confdefs.h <<\_ACEOF
24210 #define HAVE_GTK_2_4 1
24218 # Check whether --enable-smartalloc was given.
24219 if test "${enable_smartalloc+set}" = set; then
24220 enableval=$enable_smartalloc;
24221 if test x$enableval = xno; then
24222 support_smartalloc=no
24229 if test x$support_smartalloc = xyes; then
24231 cat >>confdefs.h <<\_ACEOF
24232 #define SMARTALLOC 1
24237 # Check whether --enable-lockmgr was given.
24238 if test "${enable_lockmgr+set}" = set; then
24239 enableval=$enable_lockmgr;
24240 if test x$enableval = xyes; then
24241 support_lockmgr=yes
24248 if test x$support_lockmgr = xyes; then
24250 cat >>confdefs.h <<\_ACEOF
24251 #define _USE_LOCKMGR 1
24257 # Check whether --enable-static-tools was given.
24258 if test "${enable_static_tools+set}" = set; then
24259 enableval=$enable_static_tools;
24260 if test x$enableval = xyes; then
24261 support_static_tools=yes
24269 if test x$support_static_tools = xyes; then
24270 TTOOL_LDFLAGS="-static"
24274 # Check whether --enable-static-fd was given.
24275 if test "${enable_static_fd+set}" = set; then
24276 enableval=$enable_static_fd;
24277 if test x$enableval = xyes; then
24278 support_static_fd=yes
24286 if test x$support_static_fd = xyes; then
24287 STATIC_FD="static-bacula-fd"
24291 # Check whether --enable-static-sd was given.
24292 if test "${enable_static_sd+set}" = set; then
24293 enableval=$enable_static_sd;
24294 if test x$enableval = xyes; then
24295 support_static_sd=yes
24303 if test x$support_static_sd = xyes; then
24304 STATIC_SD="static-bacula-sd"
24308 # Check whether --enable-static-dir was given.
24309 if test "${enable_static_dir+set}" = set; then
24310 enableval=$enable_static_dir;
24311 if test x$enableval = xyes; then
24312 support_static_dir=yes
24320 if test x$support_static_dir = xyes; then
24321 STATIC_DIR="static-bacula-dir"
24325 # Check whether --enable-static-cons was given.
24326 if test "${enable_static_cons+set}" = set; then
24327 enableval=$enable_static_cons;
24328 if test x$enableval = xyes; then
24329 support_static_cons=yes
24339 if test x$support_static_cons = xyes; then
24340 STATIC_CONS="static-bconsole"
24341 STATIC_GNOME_CONS="static-bgnome-console"
24342 STATIC_WX_CONS="static-bwx-console"
24348 # Check whether --enable-client-only was given.
24349 if test "${enable_client_only+set}" = set; then
24350 enableval=$enable_client_only;
24351 if test x$enableval = xyes; then
24352 build_client_only=yes
24360 if test x$build_client_only = xno; then
24367 # Check whether --enable-build-dird was given.
24368 if test "${enable_build_dird+set}" = set; then
24369 enableval=$enable_build_dird;
24370 if test x$enableval = xno; then
24377 if test x$build_dird = xyes; then
24378 DIRD_DIR="src/dird"
24379 DIR_TOOLS="DIRTOOLS"
24382 DIR_TOOLS="NODIRTOOLS"
24387 # Check whether --enable-build-stored was given.
24388 if test "${enable_build_stored+set}" = set; then
24389 enableval=$enable_build_stored;
24390 if test x$enableval = xno; then
24397 if test x$build_stored = xyes; then
24398 STORED_DIR="src/stored"
24404 # Check whether --enable-conio was given.
24405 if test "${enable_conio+set}" = set; then
24406 enableval=$enable_conio;
24407 if test x$enableval = xno; then
24417 # Check whether --enable-ipv6 was given.
24418 if test "${enable_ipv6+set}" = set; then
24419 enableval=$enable_ipv6;
24420 if test x$enableval = xno; then
24428 if test x$support_ipv6 = xyes; then
24429 cat >conftest.$ac_ext <<_ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 #include <sys/types.h>
24436 #include <sys/socket.h>
24437 #include <netinet/in.h>
24441 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (ac_try="$ac_link"
24448 case "(($ac_try" in
24449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450 *) ac_try_echo=$ac_try;;
24452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24453 (eval "$ac_link") 2>conftest.er1
24455 grep -v '^ *+' conftest.er1 >conftest.err
24457 cat conftest.err >&5
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); } && {
24460 test -z "$ac_c_werror_flag" ||
24461 test ! -s conftest.err
24462 } && test -s conftest$ac_exeext &&
24463 $as_test_x conftest$ac_exeext; then
24466 echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24473 conftest$ac_exeext conftest.$ac_ext
24476 if test x$support_ipv6 = xyes; then
24478 cat >>confdefs.h <<\_ACEOF
24479 #define HAVE_IPV6 1
24485 if test x$support_conio = xyes; then
24486 if test "${ac_cv_header_termcap_h+set}" = set; then
24487 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24488 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24489 if test "${ac_cv_header_termcap_h+set}" = set; then
24490 echo $ECHO_N "(cached) $ECHO_C" >&6
24492 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24493 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24495 # Is the header compilable?
24496 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24497 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24498 cat >conftest.$ac_ext <<_ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h. */
24504 $ac_includes_default
24505 #include <termcap.h>
24507 rm -f conftest.$ac_objext
24508 if { (ac_try="$ac_compile"
24509 case "(($ac_try" in
24510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24511 *) ac_try_echo=$ac_try;;
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514 (eval "$ac_compile") 2>conftest.er1
24516 grep -v '^ *+' conftest.er1 >conftest.err
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && {
24521 test -z "$ac_c_werror_flag" ||
24522 test ! -s conftest.err
24523 } && test -s conftest.$ac_objext; then
24524 ac_header_compiler=yes
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24529 ac_header_compiler=no
24532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24534 echo "${ECHO_T}$ac_header_compiler" >&6; }
24536 # Is the header present?
24537 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24538 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24539 cat >conftest.$ac_ext <<_ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 #include <termcap.h>
24547 if { (ac_try="$ac_cpp conftest.$ac_ext"
24548 case "(($ac_try" in
24549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24555 grep -v '^ *+' conftest.er1 >conftest.err
24557 cat conftest.err >&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } >/dev/null && {
24560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24563 ac_header_preproc=yes
24565 echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24568 ac_header_preproc=no
24571 rm -f conftest.err conftest.$ac_ext
24572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24573 echo "${ECHO_T}$ac_header_preproc" >&6; }
24575 # So? What about this header?
24576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24578 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24579 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24580 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24581 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24582 ac_header_preproc=yes
24585 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24586 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24588 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24589 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24590 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24591 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24592 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24594 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24596 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24600 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24601 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24602 if test "${ac_cv_header_termcap_h+set}" = set; then
24603 echo $ECHO_N "(cached) $ECHO_C" >&6
24605 ac_cv_header_termcap_h=$ac_header_preproc
24607 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24608 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24611 if test $ac_cv_header_termcap_h = yes; then
24612 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24613 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24614 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24615 echo $ECHO_N "(cached) $ECHO_C" >&6
24617 ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-ltermcap $LIBS"
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24626 /* Override any GCC internal prototype to avoid an error.
24627 Use char because int might match the return type of a GCC
24628 builtin and then its argument prototype would still apply. */
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (ac_try="$ac_link"
24643 case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_link") 2>conftest.er1
24650 grep -v '^ *+' conftest.er1 >conftest.err
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } && {
24655 test -z "$ac_c_werror_flag" ||
24656 test ! -s conftest.err
24657 } && test -s conftest$ac_exeext &&
24658 $as_test_x conftest$ac_exeext; then
24659 ac_cv_lib_termcap_tgetent=yes
24661 echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24664 ac_cv_lib_termcap_tgetent=no
24667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24668 conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24671 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24672 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24673 if test $ac_cv_lib_termcap_tgetent = yes; then
24674 CONS_LIBS="-ltermcap"
24678 support_readline=no
24680 cat >>confdefs.h <<\_ACEOF
24681 #define HAVE_CONIO 1
24686 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24687 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24688 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 ac_check_lib_save_LIBS=$LIBS
24692 LIBS="-lncurses $LIBS"
24693 cat >conftest.$ac_ext <<_ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h. */
24700 /* Override any GCC internal prototype to avoid an error.
24701 Use char because int might match the return type of a GCC
24702 builtin and then its argument prototype would still apply. */
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_link") 2>conftest.er1
24724 grep -v '^ *+' conftest.er1 >conftest.err
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } && {
24729 test -z "$ac_c_werror_flag" ||
24730 test ! -s conftest.err
24731 } && test -s conftest$ac_exeext &&
24732 $as_test_x conftest$ac_exeext; then
24733 ac_cv_lib_ncurses_tgetent=yes
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ac_cv_lib_ncurses_tgetent=no
24741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24742 conftest$ac_exeext conftest.$ac_ext
24743 LIBS=$ac_check_lib_save_LIBS
24745 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24746 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24747 if test $ac_cv_lib_ncurses_tgetent = yes; then
24748 CONS_LIBS="-lncurses"
24752 support_readline=no
24754 cat >>confdefs.h <<\_ACEOF
24755 #define HAVE_CONIO 1
24768 for ac_header in curses.h
24770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24777 ac_res=`eval echo '${'$as_ac_Header'}'`
24778 { echo "$as_me:$LINENO: result: $ac_res" >&5
24779 echo "${ECHO_T}$ac_res" >&6; }
24781 # Is the header compilable?
24782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24784 cat >conftest.$ac_ext <<_ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h. */
24790 $ac_includes_default
24791 #include <$ac_header>
24793 rm -f conftest.$ac_objext
24794 if { (ac_try="$ac_compile"
24795 case "(($ac_try" in
24796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797 *) ac_try_echo=$ac_try;;
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800 (eval "$ac_compile") 2>conftest.er1
24802 grep -v '^ *+' conftest.er1 >conftest.err
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } && {
24807 test -z "$ac_c_werror_flag" ||
24808 test ! -s conftest.err
24809 } && test -s conftest.$ac_objext; then
24810 ac_header_compiler=yes
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24815 ac_header_compiler=no
24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24820 echo "${ECHO_T}$ac_header_compiler" >&6; }
24822 # Is the header present?
24823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24825 cat >conftest.$ac_ext <<_ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24831 #include <$ac_header>
24833 if { (ac_try="$ac_cpp conftest.$ac_ext"
24834 case "(($ac_try" in
24835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836 *) ac_try_echo=$ac_try;;
24838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24841 grep -v '^ *+' conftest.er1 >conftest.err
24843 cat conftest.err >&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); } >/dev/null && {
24846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24847 test ! -s conftest.err
24849 ac_header_preproc=yes
24851 echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24854 ac_header_preproc=no
24857 rm -f conftest.err conftest.$ac_ext
24858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24859 echo "${ECHO_T}$ac_header_preproc" >&6; }
24861 # So? What about this header?
24862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24868 ac_header_preproc=yes
24871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24889 echo $ECHO_N "(cached) $ECHO_C" >&6
24891 eval "$as_ac_Header=\$ac_header_preproc"
24893 ac_res=`eval echo '${'$as_ac_Header'}'`
24894 { echo "$as_me:$LINENO: result: $ac_res" >&5
24895 echo "${ECHO_T}$ac_res" >&6; }
24898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24899 cat >>confdefs.h <<_ACEOF
24900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24907 { echo "$as_me:$LINENO: checking for term.h" >&5
24908 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24909 if test "${ac_cv_header_term_h+set}" = set; then
24910 echo $ECHO_N "(cached) $ECHO_C" >&6
24912 cat >conftest.$ac_ext <<_ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24919 #include <curses.h>
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24932 (eval "$ac_compile") 2>conftest.er1
24934 grep -v '^ *+' conftest.er1 >conftest.err
24936 cat conftest.err >&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } && {
24939 test -z "$ac_c_werror_flag" ||
24940 test ! -s conftest.err
24941 } && test -s conftest.$ac_objext; then
24942 ac_cv_header_term_h=yes
24944 echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24947 ac_cv_header_term_h=no
24950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24953 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24954 if test $ac_cv_header_term_h = yes; then
24955 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24956 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24957 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24958 echo $ECHO_N "(cached) $ECHO_C" >&6
24960 ac_check_lib_save_LIBS=$LIBS
24961 LIBS="-lcurses $LIBS"
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24969 /* Override any GCC internal prototype to avoid an error.
24970 Use char because int might match the return type of a GCC
24971 builtin and then its argument prototype would still apply. */
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (ac_try="$ac_link"
24986 case "(($ac_try" in
24987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_link") 2>conftest.er1
24993 grep -v '^ *+' conftest.er1 >conftest.err
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } && {
24998 test -z "$ac_c_werror_flag" ||
24999 test ! -s conftest.err
25000 } && test -s conftest$ac_exeext &&
25001 $as_test_x conftest$ac_exeext; then
25002 ac_cv_lib_curses_tgetent=yes
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007 ac_cv_lib_curses_tgetent=no
25010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011 conftest$ac_exeext conftest.$ac_ext
25012 LIBS=$ac_check_lib_save_LIBS
25014 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25015 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25016 if test $ac_cv_lib_curses_tgetent = yes; then
25017 CONS_LIBS="-lcurses"
25021 support_readline=no
25023 cat >>confdefs.h <<\_ACEOF
25024 #define HAVE_CONIO 1
25032 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25043 # Check whether --enable-readline was given.
25044 if test "${enable_readline+set}" = set; then
25045 enableval=$enable_readline;
25046 if test x$enableval = xno; then
25047 support_readline=no
25056 if test x$support_readline = xyes; then
25058 # Check whether --with-readline was given.
25059 if test "${with_readline+set}" = set; then
25060 withval=$with_readline;
25061 case "$with_readline" in
25066 if test -f ${with_readline}/readline.h; then
25067 CONS_INC="-I${with_readline}"
25068 CONS_LDFLAGS="-L$with_readline"
25069 elif test -f ${with_readline}/include/readline/readline.h; then
25070 CONS_INC="-I${with_readline}/include/readline"
25071 CONS_LDFLAGS="-L${with_readline}/lib"
25072 with_readline="${with_readline}/include/readline"
25074 with_readline="/usr/include/readline"
25077 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25079 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25080 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25082 echo $ECHO_N "(cached) $ECHO_C" >&6
25084 ac_res=`eval echo '${'$as_ac_Header'}'`
25085 { echo "$as_me:$LINENO: result: $ac_res" >&5
25086 echo "${ECHO_T}$ac_res" >&6; }
25088 # Is the header compilable?
25089 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25090 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25097 $ac_includes_default
25098 #include <${with_readline}/readline.h>
25100 rm -f conftest.$ac_objext
25101 if { (ac_try="$ac_compile"
25102 case "(($ac_try" in
25103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_compile") 2>conftest.er1
25109 grep -v '^ *+' conftest.er1 >conftest.err
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } && {
25114 test -z "$ac_c_werror_flag" ||
25115 test ! -s conftest.err
25116 } && test -s conftest.$ac_objext; then
25117 ac_header_compiler=yes
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25122 ac_header_compiler=no
25125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25127 echo "${ECHO_T}$ac_header_compiler" >&6; }
25129 # Is the header present?
25130 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25131 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25132 cat >conftest.$ac_ext <<_ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25138 #include <${with_readline}/readline.h>
25140 if { (ac_try="$ac_cpp conftest.$ac_ext"
25141 case "(($ac_try" in
25142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25143 *) ac_try_echo=$ac_try;;
25145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25148 grep -v '^ *+' conftest.er1 >conftest.err
25150 cat conftest.err >&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } >/dev/null && {
25153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25154 test ! -s conftest.err
25156 ac_header_preproc=yes
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 ac_header_preproc=no
25164 rm -f conftest.err conftest.$ac_ext
25165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25166 echo "${ECHO_T}$ac_header_preproc" >&6; }
25168 # So? What about this header?
25169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25171 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25172 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25173 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25174 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25175 ac_header_preproc=yes
25178 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25179 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25181 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25182 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25183 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25184 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25185 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25186 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25187 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25188 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25189 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25193 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25194 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25196 echo $ECHO_N "(cached) $ECHO_C" >&6
25198 eval "$as_ac_Header=\$ac_header_preproc"
25200 ac_res=`eval echo '${'$as_ac_Header'}'`
25201 { echo "$as_me:$LINENO: result: $ac_res" >&5
25202 echo "${ECHO_T}$ac_res" >&6; }
25205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25208 cat >>confdefs.h <<\_ACEOF
25209 #define HAVE_READLINE 1
25212 CONS_LIBS="-lreadline -lhistory -ltermcap"
25218 echo "readline.h not found. readline turned off ..."
25230 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25231 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25232 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25233 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25237 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25239 # Is the header compilable?
25240 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25241 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25242 cat >conftest.$ac_ext <<_ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h. */
25248 $ac_includes_default
25249 #include </usr/include/readline/readline.h>
25251 rm -f conftest.$ac_objext
25252 if { (ac_try="$ac_compile"
25253 case "(($ac_try" in
25254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255 *) ac_try_echo=$ac_try;;
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258 (eval "$ac_compile") 2>conftest.er1
25260 grep -v '^ *+' conftest.er1 >conftest.err
25262 cat conftest.err >&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); } && {
25265 test -z "$ac_c_werror_flag" ||
25266 test ! -s conftest.err
25267 } && test -s conftest.$ac_objext; then
25268 ac_header_compiler=yes
25270 echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25273 ac_header_compiler=no
25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25278 echo "${ECHO_T}$ac_header_compiler" >&6; }
25280 # Is the header present?
25281 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25282 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25283 cat >conftest.$ac_ext <<_ACEOF
25286 cat confdefs.h >>conftest.$ac_ext
25287 cat >>conftest.$ac_ext <<_ACEOF
25288 /* end confdefs.h. */
25289 #include </usr/include/readline/readline.h>
25291 if { (ac_try="$ac_cpp conftest.$ac_ext"
25292 case "(($ac_try" in
25293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294 *) ac_try_echo=$ac_try;;
25296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25299 grep -v '^ *+' conftest.er1 >conftest.err
25301 cat conftest.err >&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } >/dev/null && {
25304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25305 test ! -s conftest.err
25307 ac_header_preproc=yes
25309 echo "$as_me: failed program was:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25312 ac_header_preproc=no
25315 rm -f conftest.err conftest.$ac_ext
25316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25317 echo "${ECHO_T}$ac_header_preproc" >&6; }
25319 # So? What about this header?
25320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25322 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25323 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25324 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25325 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25326 ac_header_preproc=yes
25329 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25330 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25331 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25332 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25333 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25334 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25335 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25336 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25337 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25338 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25339 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25340 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25344 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25345 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25346 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25347 echo $ECHO_N "(cached) $ECHO_C" >&6
25349 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25351 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25352 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25355 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25358 cat >>confdefs.h <<\_ACEOF
25359 #define HAVE_READLINE 1
25363 CONS_INC="-I/usr/include/readline"
25364 CONS_LIBS="-lreadline -ltermcap"
25368 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25370 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25371 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25375 ac_res=`eval echo '${'$as_ac_Header'}'`
25376 { echo "$as_me:$LINENO: result: $ac_res" >&5
25377 echo "${ECHO_T}$ac_res" >&6; }
25379 # Is the header compilable?
25380 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25381 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25382 cat >conftest.$ac_ext <<_ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h. */
25388 $ac_includes_default
25389 #include <${TOP_DIR}/depkgs/readline/readline.h>
25391 rm -f conftest.$ac_objext
25392 if { (ac_try="$ac_compile"
25393 case "(($ac_try" in
25394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25395 *) ac_try_echo=$ac_try;;
25397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25398 (eval "$ac_compile") 2>conftest.er1
25400 grep -v '^ *+' conftest.er1 >conftest.err
25402 cat conftest.err >&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } && {
25405 test -z "$ac_c_werror_flag" ||
25406 test ! -s conftest.err
25407 } && test -s conftest.$ac_objext; then
25408 ac_header_compiler=yes
25410 echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25413 ac_header_compiler=no
25416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25418 echo "${ECHO_T}$ac_header_compiler" >&6; }
25420 # Is the header present?
25421 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25422 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25423 cat >conftest.$ac_ext <<_ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h. */
25429 #include <${TOP_DIR}/depkgs/readline/readline.h>
25431 if { (ac_try="$ac_cpp conftest.$ac_ext"
25432 case "(($ac_try" in
25433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25434 *) ac_try_echo=$ac_try;;
25436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25439 grep -v '^ *+' conftest.er1 >conftest.err
25441 cat conftest.err >&5
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); } >/dev/null && {
25444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25445 test ! -s conftest.err
25447 ac_header_preproc=yes
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25452 ac_header_preproc=no
25455 rm -f conftest.err conftest.$ac_ext
25456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25457 echo "${ECHO_T}$ac_header_preproc" >&6; }
25459 # So? What about this header?
25460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25462 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25463 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25464 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25465 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25466 ac_header_preproc=yes
25469 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25475 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25477 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25478 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25479 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25480 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25484 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25485 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25487 echo $ECHO_N "(cached) $ECHO_C" >&6
25489 eval "$as_ac_Header=\$ac_header_preproc"
25491 ac_res=`eval echo '${'$as_ac_Header'}'`
25492 { echo "$as_me:$LINENO: result: $ac_res" >&5
25493 echo "${ECHO_T}$ac_res" >&6; }
25496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25499 cat >>confdefs.h <<\_ACEOF
25500 #define HAVE_READLINE 1
25504 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25505 CONS_LIBS="-lreadline -lhistory -ltermcap"
25506 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25507 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25512 echo "readline.h not found. readline turned off ..."
25539 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25540 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25541 if test "${ac_cv_header_stat_broken+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 cat >conftest.$ac_ext <<_ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25550 #include <sys/types.h>
25551 #include <sys/stat.h>
25553 #if defined S_ISBLK && defined S_IFDIR
25554 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25557 #if defined S_ISBLK && defined S_IFCHR
25558 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25561 #if defined S_ISLNK && defined S_IFREG
25562 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25565 #if defined S_ISSOCK && defined S_IFREG
25566 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25570 rm -f conftest.$ac_objext
25571 if { (ac_try="$ac_compile"
25572 case "(($ac_try" in
25573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25574 *) ac_try_echo=$ac_try;;
25576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25577 (eval "$ac_compile") 2>conftest.er1
25579 grep -v '^ *+' conftest.er1 >conftest.err
25581 cat conftest.err >&5
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && {
25584 test -z "$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25586 } && test -s conftest.$ac_objext; then
25587 ac_cv_header_stat_broken=no
25589 echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 ac_cv_header_stat_broken=yes
25595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25598 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25599 if test $ac_cv_header_stat_broken = yes; then
25601 cat >>confdefs.h <<\_ACEOF
25602 #define STAT_MACROS_BROKEN 1
25612 ac_header_dirent=no
25613 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25614 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25615 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25616 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25618 echo $ECHO_N "(cached) $ECHO_C" >&6
25620 cat >conftest.$ac_ext <<_ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 #include <sys/types.h>
25638 rm -f conftest.$ac_objext
25639 if { (ac_try="$ac_compile"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_compile") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest.$ac_objext; then
25655 eval "$as_ac_Header=yes"
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25660 eval "$as_ac_Header=no"
25663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25665 ac_res=`eval echo '${'$as_ac_Header'}'`
25666 { echo "$as_me:$LINENO: result: $ac_res" >&5
25667 echo "${ECHO_T}$ac_res" >&6; }
25668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25669 cat >>confdefs.h <<_ACEOF
25670 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25673 ac_header_dirent=$ac_hdr; break
25677 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25678 if test $ac_header_dirent = dirent.h; then
25679 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25680 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25681 if test "${ac_cv_search_opendir+set}" = set; then
25682 echo $ECHO_N "(cached) $ECHO_C" >&6
25684 ac_func_search_save_LIBS=$LIBS
25685 cat >conftest.$ac_ext <<_ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25692 /* Override any GCC internal prototype to avoid an error.
25693 Use char because int might match the return type of a GCC
25694 builtin and then its argument prototype would still apply. */
25707 for ac_lib in '' dir; do
25708 if test -z "$ac_lib"; then
25709 ac_res="none required"
25712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25714 rm -f conftest.$ac_objext conftest$ac_exeext
25715 if { (ac_try="$ac_link"
25716 case "(($ac_try" in
25717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25718 *) ac_try_echo=$ac_try;;
25720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25721 (eval "$ac_link") 2>conftest.er1
25723 grep -v '^ *+' conftest.er1 >conftest.err
25725 cat conftest.err >&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } && {
25728 test -z "$ac_c_werror_flag" ||
25729 test ! -s conftest.err
25730 } && test -s conftest$ac_exeext &&
25731 $as_test_x conftest$ac_exeext; then
25732 ac_cv_search_opendir=$ac_res
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25742 if test "${ac_cv_search_opendir+set}" = set; then
25746 if test "${ac_cv_search_opendir+set}" = set; then
25749 ac_cv_search_opendir=no
25751 rm conftest.$ac_ext
25752 LIBS=$ac_func_search_save_LIBS
25754 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25755 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25756 ac_res=$ac_cv_search_opendir
25757 if test "$ac_res" != no; then
25758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25763 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25765 if test "${ac_cv_search_opendir+set}" = set; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25768 ac_func_search_save_LIBS=$LIBS
25769 cat >conftest.$ac_ext <<_ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25776 /* Override any GCC internal prototype to avoid an error.
25777 Use char because int might match the return type of a GCC
25778 builtin and then its argument prototype would still apply. */
25791 for ac_lib in '' x; do
25792 if test -z "$ac_lib"; then
25793 ac_res="none required"
25796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_link") 2>conftest.er1
25807 grep -v '^ *+' conftest.er1 >conftest.err
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } && {
25812 test -z "$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 } && test -s conftest$ac_exeext &&
25815 $as_test_x conftest$ac_exeext; then
25816 ac_cv_search_opendir=$ac_res
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25826 if test "${ac_cv_search_opendir+set}" = set; then
25830 if test "${ac_cv_search_opendir+set}" = set; then
25833 ac_cv_search_opendir=no
25835 rm conftest.$ac_ext
25836 LIBS=$ac_func_search_save_LIBS
25838 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25839 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25840 ac_res=$ac_cv_search_opendir
25841 if test "$ac_res" != no; then
25842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25855 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25861 echo $ECHO_N "(cached) $ECHO_C" >&6
25863 cat >conftest.$ac_ext <<_ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h. */
25869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25871 #define $ac_func innocuous_$ac_func
25873 /* System header to define __stub macros and hopefully few prototypes,
25874 which can conflict with char $ac_func (); below.
25875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25876 <limits.h> exists even on freestanding compilers. */
25879 # include <limits.h>
25881 # include <assert.h>
25886 /* Override any GCC internal prototype to avoid an error.
25887 Use char because int might match the return type of a GCC
25888 builtin and then its argument prototype would still apply. */
25893 /* The GNU C library defines this for functions which it implements
25894 to always fail with ENOSYS. Some functions are actually named
25895 something starting with __ and the normal name is an alias. */
25896 #if defined __stub_$ac_func || defined __stub___$ac_func
25903 return $ac_func ();
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (ac_try="$ac_link"
25910 case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915 (eval "$ac_link") 2>conftest.er1
25917 grep -v '^ *+' conftest.er1 >conftest.err
25919 cat conftest.err >&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); } && {
25922 test -z "$ac_c_werror_flag" ||
25923 test ! -s conftest.err
25924 } && test -s conftest$ac_exeext &&
25925 $as_test_x conftest$ac_exeext; then
25926 eval "$as_ac_var=yes"
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25931 eval "$as_ac_var=no"
25934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25935 conftest$ac_exeext conftest.$ac_ext
25937 ac_res=`eval echo '${'$as_ac_var'}'`
25938 { echo "$as_me:$LINENO: result: $ac_res" >&5
25939 echo "${ECHO_T}$ac_res" >&6; }
25940 if test `eval echo '${'$as_ac_var'}'` = yes; then
25941 cat >>confdefs.h <<_ACEOF
25942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25950 for ac_func in nanosleep nl_langinfo
25952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25958 cat >conftest.$ac_ext <<_ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25966 #define $ac_func innocuous_$ac_func
25968 /* System header to define __stub macros and hopefully few prototypes,
25969 which can conflict with char $ac_func (); below.
25970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25971 <limits.h> exists even on freestanding compilers. */
25974 # include <limits.h>
25976 # include <assert.h>
25981 /* Override any GCC internal prototype to avoid an error.
25982 Use char because int might match the return type of a GCC
25983 builtin and then its argument prototype would still apply. */
25988 /* The GNU C library defines this for functions which it implements
25989 to always fail with ENOSYS. Some functions are actually named
25990 something starting with __ and the normal name is an alias. */
25991 #if defined __stub_$ac_func || defined __stub___$ac_func
25998 return $ac_func ();
26003 rm -f conftest.$ac_objext conftest$ac_exeext
26004 if { (ac_try="$ac_link"
26005 case "(($ac_try" in
26006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007 *) ac_try_echo=$ac_try;;
26009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26010 (eval "$ac_link") 2>conftest.er1
26012 grep -v '^ *+' conftest.er1 >conftest.err
26014 cat conftest.err >&5
26015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016 (exit $ac_status); } && {
26017 test -z "$ac_c_werror_flag" ||
26018 test ! -s conftest.err
26019 } && test -s conftest$ac_exeext &&
26020 $as_test_x conftest$ac_exeext; then
26021 eval "$as_ac_var=yes"
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 eval "$as_ac_var=no"
26029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26030 conftest$ac_exeext conftest.$ac_ext
26032 ac_res=`eval echo '${'$as_ac_var'}'`
26033 { echo "$as_me:$LINENO: result: $ac_res" >&5
26034 echo "${ECHO_T}$ac_res" >&6; }
26035 if test `eval echo '${'$as_ac_var'}'` = yes; then
26036 cat >>confdefs.h <<_ACEOF
26037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26044 for ac_header in varargs.h
26046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26051 echo $ECHO_N "(cached) $ECHO_C" >&6
26053 ac_res=`eval echo '${'$as_ac_Header'}'`
26054 { echo "$as_me:$LINENO: result: $ac_res" >&5
26055 echo "${ECHO_T}$ac_res" >&6; }
26057 # Is the header compilable?
26058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26060 cat >conftest.$ac_ext <<_ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h. */
26066 $ac_includes_default
26067 #include <$ac_header>
26069 rm -f conftest.$ac_objext
26070 if { (ac_try="$ac_compile"
26071 case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_compile") 2>conftest.er1
26078 grep -v '^ *+' conftest.er1 >conftest.err
26080 cat conftest.err >&5
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); } && {
26083 test -z "$ac_c_werror_flag" ||
26084 test ! -s conftest.err
26085 } && test -s conftest.$ac_objext; then
26086 ac_header_compiler=yes
26088 echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26091 ac_header_compiler=no
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26096 echo "${ECHO_T}$ac_header_compiler" >&6; }
26098 # Is the header present?
26099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26101 cat >conftest.$ac_ext <<_ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h. */
26107 #include <$ac_header>
26109 if { (ac_try="$ac_cpp conftest.$ac_ext"
26110 case "(($ac_try" in
26111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26112 *) ac_try_echo=$ac_try;;
26114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26117 grep -v '^ *+' conftest.er1 >conftest.err
26119 cat conftest.err >&5
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } >/dev/null && {
26122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26123 test ! -s conftest.err
26125 ac_header_preproc=yes
26127 echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26130 ac_header_preproc=no
26133 rm -f conftest.err conftest.$ac_ext
26134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26135 echo "${ECHO_T}$ac_header_preproc" >&6; }
26137 # So? What about this header?
26138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26144 ac_header_preproc=yes
26147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26167 eval "$as_ac_Header=\$ac_header_preproc"
26169 ac_res=`eval echo '${'$as_ac_Header'}'`
26170 { echo "$as_me:$LINENO: result: $ac_res" >&5
26171 echo "${ECHO_T}$ac_res" >&6; }
26174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26175 cat >>confdefs.h <<_ACEOF
26176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26185 { echo "$as_me:$LINENO: checking for Python support" >&5
26186 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26188 # Check whether --with-python was given.
26189 if test "${with_python+set}" = set; then
26190 withval=$with_python;
26193 if test "$withval" != "no"; then
26194 if test "$withval" = "yes"; then
26195 for python_root in /usr /usr/local /usr/sfw; do
26196 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26197 if test -f $python_root/include/${ver}/Python.h; then
26198 PYTHON_INCDIR=-I$python_root/include/${ver}
26199 if test -d $python_root/lib64/${ver}/config; then
26200 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26202 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26209 if test x$PYTHON_INCDIR = x; then
26210 if test -f $prefix/include/Python.h; then
26211 PYTHON_INCDIR=-I$prefix/include
26212 if test -d $prefix/lib64/config; then
26213 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26215 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26218 { echo "$as_me:$LINENO: result: no" >&5
26219 echo "${ECHO_T}no" >&6; }
26220 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26221 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26222 { (exit 1); exit 1; }; }
26226 if test -f $withval/Python.h; then
26227 PYTHON_INCDIR=-I$withval
26228 PYTHON_LIBS="-L$withval/config -lpython"
26229 elif test -f $withval/include/Python.h; then
26230 PYTHON_INCDIR=-I$withval/include
26231 if test -d $withval/lib64/config; then
26232 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26234 PYTHON_LIBS="-L$withval/lib/config -lpython"
26236 elif test -f $withval/include/python/Python.h; then
26237 PYTHON_INCDIR=-I$withval/include/python
26238 if test -d $withval/lib64/python/config; then
26239 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26241 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26244 { echo "$as_me:$LINENO: result: no" >&5
26245 echo "${ECHO_T}no" >&6; }
26246 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26247 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26248 { (exit 1); exit 1; }; }
26252 cat >>confdefs.h <<\_ACEOF
26253 #define HAVE_PYTHON 1
26256 { echo "$as_me:$LINENO: result: yes" >&5
26257 echo "${ECHO_T}yes" >&6; }
26259 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26260 echo "$as_me: checking for more Python libs" >&6;}
26261 saved_LIBS="$LIBS"; LIBS=
26262 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26263 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26264 if test "${ac_cv_search_shm_open+set}" = set; then
26265 echo $ECHO_N "(cached) $ECHO_C" >&6
26267 ac_func_search_save_LIBS=$LIBS
26268 cat >conftest.$ac_ext <<_ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h. */
26275 /* Override any GCC internal prototype to avoid an error.
26276 Use char because int might match the return type of a GCC
26277 builtin and then its argument prototype would still apply. */
26285 return shm_open ();
26290 for ac_lib in '' rt; do
26291 if test -z "$ac_lib"; then
26292 ac_res="none required"
26295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26297 rm -f conftest.$ac_objext conftest$ac_exeext
26298 if { (ac_try="$ac_link"
26299 case "(($ac_try" in
26300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26301 *) ac_try_echo=$ac_try;;
26303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26304 (eval "$ac_link") 2>conftest.er1
26306 grep -v '^ *+' conftest.er1 >conftest.err
26308 cat conftest.err >&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); } && {
26311 test -z "$ac_c_werror_flag" ||
26312 test ! -s conftest.err
26313 } && test -s conftest$ac_exeext &&
26314 $as_test_x conftest$ac_exeext; then
26315 ac_cv_search_shm_open=$ac_res
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26325 if test "${ac_cv_search_shm_open+set}" = set; then
26329 if test "${ac_cv_search_shm_open+set}" = set; then
26332 ac_cv_search_shm_open=no
26334 rm conftest.$ac_ext
26335 LIBS=$ac_func_search_save_LIBS
26337 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26338 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26339 ac_res=$ac_cv_search_shm_open
26340 if test "$ac_res" != no; then
26341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26346 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26347 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26348 if test "${ac_cv_lib_util_openpty+set}" = set; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26351 ac_check_lib_save_LIBS=$LIBS
26352 LIBS="-lutil $LIBS"
26353 cat >conftest.$ac_ext <<_ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h. */
26360 /* Override any GCC internal prototype to avoid an error.
26361 Use char because int might match the return type of a GCC
26362 builtin and then its argument prototype would still apply. */
26375 rm -f conftest.$ac_objext conftest$ac_exeext
26376 if { (ac_try="$ac_link"
26377 case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382 (eval "$ac_link") 2>conftest.er1
26384 grep -v '^ *+' conftest.er1 >conftest.err
26386 cat conftest.err >&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); } && {
26389 test -z "$ac_c_werror_flag" ||
26390 test ! -s conftest.err
26391 } && test -s conftest$ac_exeext &&
26392 $as_test_x conftest$ac_exeext; then
26393 ac_cv_lib_util_openpty=yes
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 ac_cv_lib_util_openpty=no
26401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26402 conftest$ac_exeext conftest.$ac_ext
26403 LIBS=$ac_check_lib_save_LIBS
26405 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26406 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26407 if test $ac_cv_lib_util_openpty = yes; then
26408 cat >>confdefs.h <<_ACEOF
26409 #define HAVE_LIBUTIL 1
26412 LIBS="-lutil $LIBS"
26416 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26419 { echo "$as_me:$LINENO: result: no" >&5
26420 echo "${ECHO_T}no" >&6; }
26425 { echo "$as_me:$LINENO: result: no" >&5
26426 echo "${ECHO_T}no" >&6; }
26434 { echo "$as_me:$LINENO: checking for socket" >&5
26435 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26436 if test "${ac_cv_func_socket+set}" = set; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26447 #define socket innocuous_socket
26449 /* System header to define __stub macros and hopefully few prototypes,
26450 which can conflict with char socket (); below.
26451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26452 <limits.h> exists even on freestanding compilers. */
26455 # include <limits.h>
26457 # include <assert.h>
26462 /* Override any GCC internal prototype to avoid an error.
26463 Use char because int might match the return type of a GCC
26464 builtin and then its argument prototype would still apply. */
26469 /* The GNU C library defines this for functions which it implements
26470 to always fail with ENOSYS. Some functions are actually named
26471 something starting with __ and the normal name is an alias. */
26472 #if defined __stub_socket || defined __stub___socket
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26493 grep -v '^ *+' conftest.er1 >conftest.err
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest$ac_exeext &&
26501 $as_test_x conftest$ac_exeext; then
26502 ac_cv_func_socket=yes
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_cv_func_socket=no
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511 conftest$ac_exeext conftest.$ac_ext
26513 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26514 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26515 if test $ac_cv_func_socket = yes; then
26516 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26517 echo "${ECHO_T}using libc's socket" >&6; }
26520 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26521 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26522 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26523 echo $ECHO_N "(cached) $ECHO_C" >&6
26525 ac_check_lib_save_LIBS=$LIBS
26526 LIBS="-lxnet $LIBS"
26527 cat >conftest.$ac_ext <<_ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h. */
26534 /* Override any GCC internal prototype to avoid an error.
26535 Use char because int might match the return type of a GCC
26536 builtin and then its argument prototype would still apply. */
26549 rm -f conftest.$ac_objext conftest$ac_exeext
26550 if { (ac_try="$ac_link"
26551 case "(($ac_try" in
26552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553 *) ac_try_echo=$ac_try;;
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556 (eval "$ac_link") 2>conftest.er1
26558 grep -v '^ *+' conftest.er1 >conftest.err
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } && {
26563 test -z "$ac_c_werror_flag" ||
26564 test ! -s conftest.err
26565 } && test -s conftest$ac_exeext &&
26566 $as_test_x conftest$ac_exeext; then
26567 ac_cv_lib_xnet_socket=yes
26569 echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26572 ac_cv_lib_xnet_socket=no
26575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26576 conftest$ac_exeext conftest.$ac_ext
26577 LIBS=$ac_check_lib_save_LIBS
26579 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26580 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26581 if test $ac_cv_lib_xnet_socket = yes; then
26582 cat >>confdefs.h <<_ACEOF
26583 #define HAVE_LIBXNET 1
26586 LIBS="-lxnet $LIBS"
26591 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26592 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26593 if test "${ac_cv_lib_socket_socket+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26596 ac_check_lib_save_LIBS=$LIBS
26597 LIBS="-lsocket $LIBS"
26598 cat >conftest.$ac_ext <<_ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h. */
26605 /* Override any GCC internal prototype to avoid an error.
26606 Use char because int might match the return type of a GCC
26607 builtin and then its argument prototype would still apply. */
26620 rm -f conftest.$ac_objext conftest$ac_exeext
26621 if { (ac_try="$ac_link"
26622 case "(($ac_try" in
26623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624 *) ac_try_echo=$ac_try;;
26626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26627 (eval "$ac_link") 2>conftest.er1
26629 grep -v '^ *+' conftest.er1 >conftest.err
26631 cat conftest.err >&5
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); } && {
26634 test -z "$ac_c_werror_flag" ||
26635 test ! -s conftest.err
26636 } && test -s conftest$ac_exeext &&
26637 $as_test_x conftest$ac_exeext; then
26638 ac_cv_lib_socket_socket=yes
26640 echo "$as_me: failed program was:" >&5
26641 sed 's/^/| /' conftest.$ac_ext >&5
26643 ac_cv_lib_socket_socket=no
26646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26647 conftest$ac_exeext conftest.$ac_ext
26648 LIBS=$ac_check_lib_save_LIBS
26650 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26651 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26652 if test $ac_cv_lib_socket_socket = yes; then
26653 cat >>confdefs.h <<_ACEOF
26654 #define HAVE_LIBSOCKET 1
26657 LIBS="-lsocket $LIBS"
26662 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26663 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26664 if test "${ac_cv_lib_inet_socket+set}" = set; then
26665 echo $ECHO_N "(cached) $ECHO_C" >&6
26667 ac_check_lib_save_LIBS=$LIBS
26668 LIBS="-linet $LIBS"
26669 cat >conftest.$ac_ext <<_ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26676 /* Override any GCC internal prototype to avoid an error.
26677 Use char because int might match the return type of a GCC
26678 builtin and then its argument prototype would still apply. */
26691 rm -f conftest.$ac_objext conftest$ac_exeext
26692 if { (ac_try="$ac_link"
26693 case "(($ac_try" in
26694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695 *) ac_try_echo=$ac_try;;
26697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26698 (eval "$ac_link") 2>conftest.er1
26700 grep -v '^ *+' conftest.er1 >conftest.err
26702 cat conftest.err >&5
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); } && {
26705 test -z "$ac_c_werror_flag" ||
26706 test ! -s conftest.err
26707 } && test -s conftest$ac_exeext &&
26708 $as_test_x conftest$ac_exeext; then
26709 ac_cv_lib_inet_socket=yes
26711 echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26714 ac_cv_lib_inet_socket=no
26717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26718 conftest$ac_exeext conftest.$ac_ext
26719 LIBS=$ac_check_lib_save_LIBS
26721 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26722 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26723 if test $ac_cv_lib_inet_socket = yes; then
26724 cat >>confdefs.h <<_ACEOF
26725 #define HAVE_LIBINET 1
26728 LIBS="-linet $LIBS"
26738 # Check whether --with-tcp-wrappers was given.
26739 if test "${with_tcp_wrappers+set}" = set; then
26740 withval=$with_tcp_wrappers;
26741 if test "x$withval" != "xno" ; then
26743 LIBS="$saved_LIBS -lwrap"
26744 { echo "$as_me:$LINENO: checking for libwrap" >&5
26745 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26746 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26747 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26748 if test "${ac_cv_search_nanosleep+set}" = set; then
26749 echo $ECHO_N "(cached) $ECHO_C" >&6
26751 ac_func_search_save_LIBS=$LIBS
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26759 /* Override any GCC internal prototype to avoid an error.
26760 Use char because int might match the return type of a GCC
26761 builtin and then its argument prototype would still apply. */
26769 return nanosleep ();
26774 for ac_lib in '' rt; do
26775 if test -z "$ac_lib"; then
26776 ac_res="none required"
26779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26781 rm -f conftest.$ac_objext conftest$ac_exeext
26782 if { (ac_try="$ac_link"
26783 case "(($ac_try" in
26784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785 *) ac_try_echo=$ac_try;;
26787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788 (eval "$ac_link") 2>conftest.er1
26790 grep -v '^ *+' conftest.er1 >conftest.err
26792 cat conftest.err >&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); } && {
26795 test -z "$ac_c_werror_flag" ||
26796 test ! -s conftest.err
26797 } && test -s conftest$ac_exeext &&
26798 $as_test_x conftest$ac_exeext; then
26799 ac_cv_search_nanosleep=$ac_res
26801 echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26809 if test "${ac_cv_search_nanosleep+set}" = set; then
26813 if test "${ac_cv_search_nanosleep+set}" = set; then
26816 ac_cv_search_nanosleep=no
26818 rm conftest.$ac_ext
26819 LIBS=$ac_func_search_save_LIBS
26821 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26822 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26823 ac_res=$ac_cv_search_nanosleep
26824 if test "$ac_res" != no; then
26825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26829 cat >conftest.$ac_ext <<_ACEOF
26832 cat confdefs.h >>conftest.$ac_ext
26833 cat >>conftest.$ac_ext <<_ACEOF
26834 /* end confdefs.h. */
26836 #include <sys/types.h>
26838 int deny_severity = 0;
26839 int allow_severity = 0;
26840 struct request_info *req;
26852 rm -f conftest.$ac_objext conftest$ac_exeext
26853 if { (ac_try="$ac_link"
26854 case "(($ac_try" in
26855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856 *) ac_try_echo=$ac_try;;
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859 (eval "$ac_link") 2>conftest.er1
26861 grep -v '^ *+' conftest.er1 >conftest.err
26863 cat conftest.err >&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); } && {
26866 test -z "$ac_c_werror_flag" ||
26867 test ! -s conftest.err
26868 } && test -s conftest$ac_exeext &&
26869 $as_test_x conftest$ac_exeext; then
26871 { echo "$as_me:$LINENO: result: yes" >&5
26872 echo "${ECHO_T}yes" >&6; }
26874 cat >>confdefs.h <<\_ACEOF
26875 #define HAVE_LIBWRAP 1
26883 echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26887 LIBS="$saved_LIBS -lwrap -lnsl"
26888 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26889 cat >conftest.$ac_ext <<_ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h. */
26896 #include <sys/types.h>
26898 int deny_severity = 0;
26899 int allow_severity = 0;
26900 struct request_info *req;
26912 rm -f conftest.$ac_objext conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916 *) ac_try_echo=$ac_try;;
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919 (eval "$ac_link") 2>conftest.er1
26921 grep -v '^ *+' conftest.er1 >conftest.err
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } && {
26926 test -z "$ac_c_werror_flag" ||
26927 test ! -s conftest.err
26928 } && test -s conftest$ac_exeext &&
26929 $as_test_x conftest$ac_exeext; then
26931 { echo "$as_me:$LINENO: result: yes" >&5
26932 echo "${ECHO_T}yes" >&6; }
26934 cat >>confdefs.h <<\_ACEOF
26935 #define HAVE_LIBWRAP 1
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26947 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26948 echo "$as_me: error: *** libwrap missing" >&2;}
26949 { (exit 1); exit 1; }; }
26954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26955 conftest$ac_exeext conftest.$ac_ext
26960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26961 conftest$ac_exeext conftest.$ac_ext
26968 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26969 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26971 # Check whether --with-openssl was given.
26972 if test "${with_openssl+set}" = set; then
26973 withval=$with_openssl;
26974 with_openssl_directory=${withval}
26980 if test "x$with_openssl_directory" != "xno"; then
26981 OPENSSL_LIBS="-lssl -lcrypto"
26984 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26986 # Make sure the $with_openssl_directory also makes sense
26988 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26989 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26990 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26994 saved_LIBS="${LIBS}"
26995 saved_CFLAGS="${CFLAGS}"
26996 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26997 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26999 cat >conftest.$ac_ext <<_ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h. */
27006 #include <openssl/ssl.h>
27012 CRYPTO_set_id_callback(NULL);
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_link") 2>conftest.er1
27027 grep -v '^ *+' conftest.er1 >conftest.err
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } && {
27032 test -z "$ac_c_werror_flag" ||
27033 test ! -s conftest.err
27034 } && test -s conftest$ac_exeext &&
27035 $as_test_x conftest$ac_exeext; then
27038 support_crypto="yes"
27041 echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27051 conftest$ac_exeext conftest.$ac_ext
27053 cat >conftest.$ac_ext <<_ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h. */
27060 #include <openssl/evp.h>
27072 rm -f conftest.$ac_objext conftest$ac_exeext
27073 if { (ac_try="$ac_link"
27074 case "(($ac_try" in
27075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076 *) ac_try_echo=$ac_try;;
27078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079 (eval "$ac_link") 2>conftest.er1
27081 grep -v '^ *+' conftest.er1 >conftest.err
27083 cat conftest.err >&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } && {
27086 test -z "$ac_c_werror_flag" ||
27087 test ! -s conftest.err
27088 } && test -s conftest$ac_exeext &&
27089 $as_test_x conftest$ac_exeext; then
27091 ac_cv_openssl_sha2="yes"
27094 echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27098 ac_cv_openssl_sha2="no"
27103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27104 conftest$ac_exeext conftest.$ac_ext
27106 cat >conftest.$ac_ext <<_ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27113 #include <openssl/evp.h>
27125 rm -f conftest.$ac_objext conftest$ac_exeext
27126 if { (ac_try="$ac_link"
27127 case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132 (eval "$ac_link") 2>conftest.er1
27134 grep -v '^ *+' conftest.er1 >conftest.err
27136 cat conftest.err >&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } && {
27139 test -z "$ac_c_werror_flag" ||
27140 test ! -s conftest.err
27141 } && test -s conftest$ac_exeext &&
27142 $as_test_x conftest$ac_exeext; then
27144 ac_cv_openssl_export="no"
27147 echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27151 ac_cv_openssl_export="yes"
27156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27157 conftest$ac_exeext conftest.$ac_ext
27159 LIBS="${saved_LIBS}"
27160 CFLAGS="${saved_CFLAGS}"
27162 if test "$support_tls" = "yes"; then
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_OPENSSL 1
27169 cat >>confdefs.h <<\_ACEOF
27174 cat >>confdefs.h <<\_ACEOF
27175 #define HAVE_CRYPTO 1
27180 if test "$ac_cv_openssl_sha2" = "yes"; then
27182 cat >>confdefs.h <<\_ACEOF
27183 #define HAVE_SHA2 1
27188 if test "$ac_cv_openssl_export" = "yes"; then
27190 cat >>confdefs.h <<\_ACEOF
27191 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27197 support_crypto="no"
27202 { echo "$as_me:$LINENO: result: $support_tls" >&5
27203 echo "${ECHO_T}$support_tls" >&6; }
27207 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27208 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27209 if test "${ac_cv_search_dlopen+set}" = set; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27212 ac_func_search_save_LIBS=$LIBS
27213 cat >conftest.$ac_ext <<_ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h. */
27220 /* Override any GCC internal prototype to avoid an error.
27221 Use char because int might match the return type of a GCC
27222 builtin and then its argument prototype would still apply. */
27235 for ac_lib in '' dl; do
27236 if test -z "$ac_lib"; then
27237 ac_res="none required"
27240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (ac_try="$ac_link"
27244 case "(($ac_try" in
27245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246 *) ac_try_echo=$ac_try;;
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249 (eval "$ac_link") 2>conftest.er1
27251 grep -v '^ *+' conftest.er1 >conftest.err
27253 cat conftest.err >&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } && {
27256 test -z "$ac_c_werror_flag" ||
27257 test ! -s conftest.err
27258 } && test -s conftest$ac_exeext &&
27259 $as_test_x conftest$ac_exeext; then
27260 ac_cv_search_dlopen=$ac_res
27262 echo "$as_me: failed program was:" >&5
27263 sed 's/^/| /' conftest.$ac_ext >&5
27268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27270 if test "${ac_cv_search_dlopen+set}" = set; then
27274 if test "${ac_cv_search_dlopen+set}" = set; then
27277 ac_cv_search_dlopen=no
27279 rm conftest.$ac_ext
27280 LIBS=$ac_func_search_save_LIBS
27282 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27283 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27284 ac_res=$ac_cv_search_dlopen
27285 if test "$ac_res" != no; then
27286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27291 working_dir=`eval echo ${prefix}/var/bacula/working`
27293 # Check whether --with-working-dir was given.
27294 if test "${with_working_dir+set}" = set; then
27295 withval=$with_working_dir;
27296 if test "x$withval" != "xno" ; then
27297 working_dir=$withval
27308 # Check whether --with-archivedir was given.
27309 if test "${with_archivedir+set}" = set; then
27310 withval=$with_archivedir;
27311 if test "x$withval" != "xno" ; then
27312 archivedir=$withval
27321 scriptdir=`eval echo ${sysconfdir}`
27323 # Check whether --with-scriptdir was given.
27324 if test "${with_scriptdir+set}" = set; then
27325 withval=$with_scriptdir;
27326 if test "x$withval" != "xno" ; then
27336 # ------------------------------------------
27337 # Where to place plugindir (plugin files)
27338 # ------------------------------------------
27339 plugindir=`eval echo ${sysconfdir}`
27341 # Check whether --with-plugindir was given.
27342 if test "${with_plugindir+set}" = set; then
27343 withval=$with_plugindir;
27344 if test "x$withval" != "xno" ; then
27354 dump_email=root@localhost
27356 # Check whether --with-dump-email was given.
27357 if test "${with_dump_email+set}" = set; then
27358 withval=$with_dump_email;
27359 if test "x$withval" != "xno" ; then
27360 dump_email=$withval
27369 job_email=root@localhost
27371 # Check whether --with-job-email was given.
27372 if test "${with_job_email+set}" = set; then
27373 withval=$with_job_email;
27374 if test "x$withval" != "xno" ; then
27384 smtp_host=localhost
27386 # Check whether --with-smtp_host was given.
27387 if test "${with_smtp_host+set}" = set; then
27388 withval=$with_smtp_host;
27389 if test "x$withval" != "xno" ; then
27401 # Check whether --with-pid-dir was given.
27402 if test "${with_pid_dir+set}" = set; then
27403 withval=$with_pid_dir;
27404 if test "x$withval" != "xno" ; then
27412 cat >>confdefs.h <<_ACEOF
27413 #define _PATH_BACULA_PIDDIR "$piddir"
27418 subsysdir=/var/run/subsys
27419 if test -d /var/run/subsys; then
27420 subsysdir=/var/run/subsys
27421 elif test -d /var/lock/subsys; then
27422 subsysdir=/var/lock/subsys
27424 subsysdir=/var/run/subsys
27427 # Check whether --with-subsys-dir was given.
27428 if test "${with_subsys_dir+set}" = set; then
27429 withval=$with_subsys_dir;
27430 if test "x$withval" != "xno" ; then
27442 # Check whether --with-baseport was given.
27443 if test "${with_baseport+set}" = set; then
27444 withval=$with_baseport;
27445 if test "x$withval" != "xno" ; then
27454 dir_port=`expr $baseport`
27455 fd_port=`expr $baseport + 1`
27456 sd_port=`expr $fd_port + 1`
27464 # Check whether --with-dir-password was given.
27465 if test "${with_dir_password+set}" = set; then
27466 withval=$with_dir_password;
27467 if test "x$withval" != "xno" ; then
27468 dir_password=$withval
27475 if test "x$dir_password" = "x" ; then
27476 if test "x$OPENSSL" = "xnone" ; then
27477 key=`autoconf/randpass 33`
27479 key=`openssl rand -base64 33`
27486 # Check whether --with-fd-password was given.
27487 if test "${with_fd_password+set}" = set; then
27488 withval=$with_fd_password;
27489 if test "x$withval" != "xno" ; then
27490 fd_password=$withval
27497 if test "x$fd_password" = "x" ; then
27498 if test "x$OPENSSL" = "xnone" ; then
27499 key=`autoconf/randpass 37`
27501 key=`openssl rand -base64 33`
27508 # Check whether --with-sd-password was given.
27509 if test "${with_sd_password+set}" = set; then
27510 withval=$with_sd_password;
27511 if test "x$withval" != "xno" ; then
27512 sd_password=$withval
27519 if test "x$sd_password" = "x" ; then
27520 if test "x$OPENSSL" = "xnone" ; then
27521 key=`autoconf/randpass 41`
27523 key=`openssl rand -base64 33`
27530 # Check whether --with-mon-dir-password was given.
27531 if test "${with_mon_dir_password+set}" = set; then
27532 withval=$with_mon_dir_password;
27533 if test "x$withval" != "xno" ; then
27534 mon_dir_password=$withval
27541 if test "x$mon_dir_password" = "x" ; then
27542 if test "x$OPENSSL" = "xnone" ; then
27543 key=`autoconf/randpass 33`
27545 key=`openssl rand -base64 33`
27547 mon_dir_password=$key
27552 # Check whether --with-mon-fd-password was given.
27553 if test "${with_mon_fd_password+set}" = set; then
27554 withval=$with_mon_fd_password;
27555 if test "x$withval" != "xno" ; then
27556 mon_fd_password=$withval
27563 if test "x$mon_fd_password" = "x" ; then
27564 if test "x$OPENSSL" = "xnone" ; then
27565 key=`autoconf/randpass 37`
27567 key=`openssl rand -base64 33`
27569 mon_fd_password=$key
27574 # Check whether --with-mon-sd-password was given.
27575 if test "${with_mon_sd_password+set}" = set; then
27576 withval=$with_mon_sd_password;
27577 if test "x$withval" != "xno" ; then
27578 mon_sd_password=$withval
27585 if test "x$mon_sd_password" = "x" ; then
27586 if test "x$OPENSSL" = "xnone" ; then
27587 key=`autoconf/randpass 41`
27589 key=`openssl rand -base64 33`
27591 mon_sd_password=$key
27603 # Check whether --with-db_name was given.
27604 if test "${with_db_name+set}" = set; then
27605 withval=$with_db_name;
27606 if test "x$withval" != "x" ; then
27617 # Check whether --with-db_user was given.
27618 if test "${with_db_user+set}" = set; then
27619 withval=$with_db_user;
27620 if test "x$withval" != "x" ; then
27631 # Check whether --with-db_password was given.
27632 if test "${with_db_password+set}" = set; then
27633 withval=$with_db_password;
27634 if test "x$withval" != "x" ; then
27635 db_password=$withval
27645 # Check whether --with-db_port was given.
27646 if test "${with_db_port+set}" = set; then
27647 withval=$with_db_port;
27648 if test "x$withval" != "x" ; then
27658 # Handle users and groups for each daemon
27662 # Check whether --with-dir_user was given.
27663 if test "${with_dir_user+set}" = set; then
27664 withval=$with_dir_user;
27665 if test "x$withval" != "x" ; then
27675 # Check whether --with-dir_group was given.
27676 if test "${with_dir_group+set}" = set; then
27677 withval=$with_dir_group;
27678 if test "x$withval" != "x" ; then
27688 # Check whether --with-sd_user was given.
27689 if test "${with_sd_user+set}" = set; then
27690 withval=$with_sd_user;
27691 if test "x$withval" != "x" ; then
27701 # Check whether --with-sd_group was given.
27702 if test "${with_sd_group+set}" = set; then
27703 withval=$with_sd_group;
27704 if test "x$withval" != "x" ; then
27714 # Check whether --with-fd_user was given.
27715 if test "${with_fd_user+set}" = set; then
27716 withval=$with_fd_user;
27717 if test "x$withval" != "x" ; then
27727 # Check whether --with-fd_group was given.
27728 if test "${with_fd_group+set}" = set; then
27729 withval=$with_fd_group;
27730 if test "x$withval" != "x" ; then
27747 # Check whether --with-sbin-perm was given.
27748 if test "${with_sbin_perm+set}" = set; then
27749 withval=$with_sbin_perm;
27750 if test "x$withval" != "x" ; then
27763 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27764 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27766 # Check whether --with-postgresql was given.
27767 if test "${with_postgresql+set}" = set; then
27768 withval=$with_postgresql;
27769 if test "$withval" != "no"; then
27770 if test "$db_found" = "yes"; then
27771 { echo "$as_me:$LINENO: result: error" >&5
27772 echo "${ECHO_T}error" >&6; }
27773 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27774 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27775 { (exit 1); exit 1; }; };
27777 if test "$withval" = "yes"; then
27778 PG_CONFIG=`which pg_config`
27779 if test -n "$PG_CONFIG";then
27780 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27781 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27782 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27783 elif test -f /usr/local/include/libpq-fe.h; then
27784 POSTGRESQL_INCDIR=/usr/local/include
27785 if test -d /usr/local/lib64; then
27786 POSTGRESQL_LIBDIR=/usr/local/lib64
27788 POSTGRESQL_LIBDIR=/usr/local/lib
27790 POSTGRESQL_BINDIR=/usr/local/bin
27791 elif test -f /usr/include/libpq-fe.h; then
27792 POSTGRESQL_INCDIR=/usr/include
27793 if test -d /usr/lib64; then
27794 POSTGRESQL_LIBDIR=/usr/lib64
27796 POSTGRESQL_LIBDIR=/usr/lib
27798 POSTGRESQL_BINDIR=/usr/bin
27799 elif test -f /usr/include/pgsql/libpq-fe.h; then
27800 POSTGRESQL_INCDIR=/usr/include/pgsql
27801 if test -d /usr/lib64/pgsql; then
27802 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27804 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27806 POSTGRESQL_BINDIR=/usr/bin
27807 elif test -f /usr/include/postgresql/libpq-fe.h; then
27808 POSTGRESQL_INCDIR=/usr/include/postgresql
27809 if test -d /usr/lib64/postgresql; then
27810 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27812 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27814 POSTGRESQL_BINDIR=/usr/bin
27816 { echo "$as_me:$LINENO: result: no" >&5
27817 echo "${ECHO_T}no" >&6; }
27818 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27819 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27820 { (exit 1); exit 1; }; }
27822 elif test -f $withval/include/libpq-fe.h; then
27823 POSTGRESQL_INCDIR=$withval/include
27824 POSTGRESQL_LIBDIR=$withval/lib
27825 POSTGRESQL_BINDIR=$withval/bin
27826 elif test -f $withval/include/postgresql/libpq-fe.h; then
27827 POSTGRESQL_INCDIR=$withval/include/postgresql
27828 if test -d $withval/lib64; then
27829 POSTGRESQL_LIBDIR=$withval/lib64
27831 POSTGRESQL_LIBDIR=$withval/lib
27833 POSTGRESQL_BINDIR=$withval/bin
27835 { echo "$as_me:$LINENO: result: no" >&5
27836 echo "${ECHO_T}no" >&6; }
27837 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27838 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27839 { (exit 1); exit 1; }; }
27841 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27842 { echo "$as_me:$LINENO: checking for crypt" >&5
27843 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27844 if test "${ac_cv_func_crypt+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27847 cat >conftest.$ac_ext <<_ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27853 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27855 #define crypt innocuous_crypt
27857 /* System header to define __stub macros and hopefully few prototypes,
27858 which can conflict with char crypt (); below.
27859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27860 <limits.h> exists even on freestanding compilers. */
27863 # include <limits.h>
27865 # include <assert.h>
27870 /* Override any GCC internal prototype to avoid an error.
27871 Use char because int might match the return type of a GCC
27872 builtin and then its argument prototype would still apply. */
27877 /* The GNU C library defines this for functions which it implements
27878 to always fail with ENOSYS. Some functions are actually named
27879 something starting with __ and the normal name is an alias. */
27880 #if defined __stub_crypt || defined __stub___crypt
27892 rm -f conftest.$ac_objext conftest$ac_exeext
27893 if { (ac_try="$ac_link"
27894 case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_link") 2>conftest.er1
27901 grep -v '^ *+' conftest.er1 >conftest.err
27903 cat conftest.err >&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); } && {
27906 test -z "$ac_c_werror_flag" ||
27907 test ! -s conftest.err
27908 } && test -s conftest$ac_exeext &&
27909 $as_test_x conftest$ac_exeext; then
27910 ac_cv_func_crypt=yes
27912 echo "$as_me: failed program was:" >&5
27913 sed 's/^/| /' conftest.$ac_ext >&5
27915 ac_cv_func_crypt=no
27918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27919 conftest$ac_exeext conftest.$ac_ext
27921 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27922 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27923 if test $ac_cv_func_crypt = yes; then
27926 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27927 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27928 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
27931 ac_check_lib_save_LIBS=$LIBS
27932 LIBS="-lcrypt $LIBS"
27933 cat >conftest.$ac_ext <<_ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27940 /* Override any GCC internal prototype to avoid an error.
27941 Use char because int might match the return type of a GCC
27942 builtin and then its argument prototype would still apply. */
27955 rm -f conftest.$ac_objext conftest$ac_exeext
27956 if { (ac_try="$ac_link"
27957 case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_link") 2>conftest.er1
27964 grep -v '^ *+' conftest.er1 >conftest.err
27966 cat conftest.err >&5
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); } && {
27969 test -z "$ac_c_werror_flag" ||
27970 test ! -s conftest.err
27971 } && test -s conftest$ac_exeext &&
27972 $as_test_x conftest$ac_exeext; then
27973 ac_cv_lib_crypt_crypt=yes
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27978 ac_cv_lib_crypt_crypt=no
27981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27982 conftest$ac_exeext conftest.$ac_ext
27983 LIBS=$ac_check_lib_save_LIBS
27985 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27986 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27987 if test $ac_cv_lib_crypt_crypt = yes; then
27988 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27993 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27994 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27995 SQL_BINDIR=$POSTGRESQL_BINDIR
27996 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27998 cat >>confdefs.h <<\_ACEOF
27999 #define HAVE_POSTGRESQL 1
28002 { echo "$as_me:$LINENO: result: yes" >&5
28003 echo "${ECHO_T}yes" >&6; }
28005 support_postgresql=yes
28009 { echo "$as_me:$LINENO: result: no" >&5
28010 echo "${ECHO_T}no" >&6; }
28015 { echo "$as_me:$LINENO: result: no" >&5
28016 echo "${ECHO_T}no" >&6; }
28028 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28029 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28031 # Check whether --with-mysql was given.
28032 if test "${with_mysql+set}" = set; then
28033 withval=$with_mysql;
28034 if test "$withval" != "no"; then
28035 if test "$withval" = "yes"; then
28036 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28037 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28038 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28039 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28040 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28042 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28044 MYSQL_BINDIR=/usr/local/mysql/bin
28045 elif test -f /usr/include/mysql/mysql.h; then
28046 MYSQL_INCDIR=/usr/include/mysql
28047 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28048 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28049 MYSQL_LIBDIR=/usr/lib64/mysql
28050 elif test -f /usr/lib64/libmysqlclient_r.a \
28051 -o -f /usr/lib64/libmysqlclient_r.so; then
28052 MYSQL_LIBDIR=/usr/lib64
28053 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28054 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28055 MYSQL_LIBDIR=/usr/lib/mysql
28057 MYSQL_LIBDIR=/usr/lib
28059 MYSQL_BINDIR=/usr/bin
28060 elif test -f /usr/include/mysql.h; then
28061 MYSQL_INCDIR=/usr/include
28062 if test -f /usr/lib64/libmysqlclient_r.a \
28063 -o -f /usr/lib64/libmysqlclient_r.so; then
28064 MYSQL_LIBDIR=/usr/lib64
28066 MYSQL_LIBDIR=/usr/lib
28068 MYSQL_BINDIR=/usr/bin
28069 elif test -f /usr/local/include/mysql/mysql.h; then
28070 MYSQL_INCDIR=/usr/local/include/mysql
28071 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28072 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28073 MYSQL_LIBDIR=/usr/local/lib64/mysql
28075 MYSQL_LIBDIR=/usr/local/lib/mysql
28077 MYSQL_BINDIR=/usr/local/bin
28078 elif test -f /usr/local/include/mysql.h; then
28079 MYSQL_INCDIR=/usr/local/include
28080 if test -f /usr/local/lib64/libmysqlclient_r.a \
28081 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28082 MYSQL_LIBDIR=/usr/local/lib64
28084 MYSQL_LIBDIR=/usr/local/lib
28086 MYSQL_BINDIR=/usr/local/bin
28088 { echo "$as_me:$LINENO: result: no" >&5
28089 echo "${ECHO_T}no" >&6; }
28090 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28091 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28092 { (exit 1); exit 1; }; }
28095 if test -f $withval/include/mysql/mysql.h; then
28096 MYSQL_INCDIR=$withval/include/mysql
28097 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28098 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28099 MYSQL_LIBDIR=$withval/lib64/mysql
28100 elif test -f $withval/lib64/libmysqlclient_r.a \
28101 -o -f $withval/lib64/libmysqlclient_r.so; then
28102 MYSQL_LIBDIR=$withval/lib64
28103 elif test -f $withval/lib/libmysqlclient_r.a \
28104 -o -f $withval/lib/libmysqlclient_r.so; then
28105 MYSQL_LIBDIR=$withval/lib
28107 MYSQL_LIBDIR=$withval/lib/mysql
28109 MYSQL_BINDIR=$withval/bin
28110 elif test -f $withval/include/mysql.h; then
28111 MYSQL_INCDIR=$withval/include
28112 if test -f $withval/lib64/libmysqlclient_r.a \
28113 -o -f $withval/lib64/libmysqlclient_r.so; then
28114 MYSQL_LIBDIR=$withval/lib64
28116 MYSQL_LIBDIR=$withval/lib
28118 MYSQL_BINDIR=$withval/bin
28120 { echo "$as_me:$LINENO: result: no" >&5
28121 echo "${ECHO_T}no" >&6; }
28122 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28123 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28124 { (exit 1); exit 1; }; }
28127 SQL_INCLUDE=-I$MYSQL_INCDIR
28128 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28129 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28130 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28131 cat >>confdefs.h <<\_ACEOF
28132 #define HAVE_THREAD_SAFE_MYSQL 1
28136 SQL_BINDIR=$MYSQL_BINDIR
28137 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28139 cat >>confdefs.h <<\_ACEOF
28140 #define HAVE_MYSQL 1
28143 { echo "$as_me:$LINENO: result: yes" >&5
28144 echo "${ECHO_T}yes" >&6; }
28151 { echo "$as_me:$LINENO: result: no" >&5
28152 echo "${ECHO_T}no" >&6; }
28160 # Check whether --with-embedded-mysql was given.
28161 if test "${with_embedded_mysql+set}" = set; then
28162 withval=$with_embedded_mysql;
28163 if test "$withval" != "no"; then
28164 if test "$withval" = "yes"; then
28165 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28166 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28167 if test -d /usr/local/mysql/lib64/mysql; then
28168 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28170 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28172 MYSQL_BINDIR=/usr/local/mysql/bin
28173 elif test -f /usr/include/mysql/mysql.h; then
28174 MYSQL_INCDIR=/usr/include/mysql
28175 if test -d /usr/lib64/mysql; then
28176 MYSQL_LIBDIR=/usr/lib64/mysql
28178 MYSQL_LIBDIR=/usr/lib/mysql
28180 MYSQL_BINDIR=/usr/bin
28181 elif test -f /usr/include/mysql.h; then
28182 MYSQL_INCDIR=/usr/include
28183 if test -d /usr/lib64; then
28184 MYSQL_LIBDIR=/usr/lib64
28186 MYSQL_LIBDIR=/usr/lib
28188 MYSQL_BINDIR=/usr/bin
28189 elif test -f /usr/local/include/mysql/mysql.h; then
28190 MYSQL_INCDIR=/usr/local/include/mysql
28191 if test -d /usr/local/lib64/mysql; then
28192 MYSQL_LIBDIR=/usr/local/lib64/mysql
28194 MYSQL_LIBDIR=/usr/local/lib/mysql
28196 MYSQL_BINDIR=/usr/local/bin
28197 elif test -f /usr/local/include/mysql.h; then
28198 MYSQL_INCDIR=/usr/local/include
28199 if test -d /usr/local/lib64; then
28200 MYSQL_LIBDIR=/usr/local/lib64
28202 MYSQL_LIBDIR=/usr/local/lib
28204 MYSQL_BINDIR=/usr/local/bin
28206 { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28208 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28209 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28210 { (exit 1); exit 1; }; }
28213 if test -f $withval/include/mysql/mysql.h; then
28214 MYSQL_INCDIR=$withval/include/mysql
28215 if test -d $withval/lib64/mysql; then
28216 MYSQL_LIBDIR=$withval/lib64/mysql
28218 MYSQL_LIBDIR=$withval/lib/mysql
28220 MYSQL_BINDIR=$withval/bin
28221 elif test -f $withval/include/mysql.h; then
28222 MYSQL_INCDIR=$withval/include
28223 if test -d $withval/lib64; then
28224 MYSQL_LIBDIR=$withval/lib64
28226 MYSQL_LIBDIR=$withval/lib
28228 MYSQL_BINDIR=$withval/bin
28230 { echo "$as_me:$LINENO: result: no" >&5
28231 echo "${ECHO_T}no" >&6; }
28232 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28233 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28234 { (exit 1); exit 1; }; }
28237 SQL_INCLUDE=-I$MYSQL_INCDIR
28238 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28239 SQL_BINDIR=$MYSQL_BINDIR
28240 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28242 cat >>confdefs.h <<\_ACEOF
28243 #define HAVE_MYSQL 1
28246 cat >>confdefs.h <<\_ACEOF
28247 #define HAVE_EMBEDDED_MYSQL 1
28250 { echo "$as_me:$LINENO: result: yes" >&5
28251 echo "${ECHO_T}yes" >&6; }
28258 { echo "$as_me:$LINENO: result: no" >&5
28259 echo "${ECHO_T}no" >&6; }
28275 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28276 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28278 # Check whether --with-sqlite3 was given.
28279 if test "${with_sqlite3+set}" = set; then
28280 withval=$with_sqlite3;
28281 if test "$withval" != "no"; then
28282 if test "$withval" = "yes"; then
28283 if test -f /usr/local/include/sqlite3.h; then
28284 SQLITE_INCDIR=/usr/local/include
28285 if test -d /usr/local/lib64; then
28286 SQLITE_LIBDIR=/usr/local/lib64
28288 SQLITE_LIBDIR=/usr/local/lib
28290 SQLITE_BINDIR=/usr/local/bin
28291 elif test -f /usr/include/sqlite3.h; then
28292 SQLITE_INCDIR=/usr/include
28293 if test -d /usr/lib64; then
28294 SQLITE_LIBDIR=/usr/lib64
28296 SQLITE_LIBDIR=/usr/lib
28298 SQLITE_BINDIR=/usr/bin
28299 elif test -f $prefix/include/sqlite3.h; then
28300 SQLITE_INCDIR=$prefix/include
28301 if test -d $prefix/lib64; then
28302 SQLITE_LIBDIR=$prefix/lib64
28304 SQLITE_LIBDIR=$prefix/lib
28306 SQLITE_BINDIR=$prefix/bin
28308 { echo "$as_me:$LINENO: result: no" >&5
28309 echo "${ECHO_T}no" >&6; }
28310 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28311 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28312 { (exit 1); exit 1; }; }
28315 if test -f $withval/sqlite3.h; then
28316 SQLITE_INCDIR=$withval
28317 SQLITE_LIBDIR=$withval
28318 SQLITE_BINDIR=$withval
28319 elif test -f $withval/include/sqlite3.h; then
28320 SQLITE_INCDIR=$withval/include
28321 if test -d $withval/lib64; then
28322 SQLITE_LIBDIR=$withval/lib64
28324 SQLITE_LIBDIR=$withval/lib
28326 SQLITE_BINDIR=$withval/bin
28328 { echo "$as_me:$LINENO: result: no" >&5
28329 echo "${ECHO_T}no" >&6; }
28330 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28331 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28332 { (exit 1); exit 1; }; }
28335 SQL_INCLUDE=-I$SQLITE_INCDIR
28336 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28337 SQL_BINDIR=$SQLITE_BINDIR
28338 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28340 cat >>confdefs.h <<\_ACEOF
28341 #define HAVE_SQLITE3 1
28344 { echo "$as_me:$LINENO: result: yes" >&5
28345 echo "${ECHO_T}yes" >&6; }
28347 support_sqlite3=yes
28352 { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28358 { echo "$as_me:$LINENO: result: no" >&5
28359 echo "${ECHO_T}no" >&6; }
28371 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28372 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28374 # Check whether --with-sqlite was given.
28375 if test "${with_sqlite+set}" = set; then
28376 withval=$with_sqlite;
28377 if test "$withval" != "no"; then
28378 if test "$withval" = "yes"; then
28379 if test -f /usr/local/include/sqlite.h; then
28380 SQLITE_INCDIR=/usr/local/include
28381 if test -d /usr/local/lib64; then
28382 SQLITE_LIBDIR=/usr/local/lib64
28384 SQLITE_LIBDIR=/usr/local/lib
28386 SQLITE_BINDIR=/usr/local/bin
28387 elif test -f /usr/include/sqlite.h; then
28388 SQLITE_INCDIR=/usr/include
28389 if test -d /usr/lib64; then
28390 SQLITE_LIBDIR=/usr/lib64
28392 SQLITE_LIBDIR=/usr/lib
28394 SQLITE_BINDIR=/usr/bin
28395 elif test -f $prefix/include/sqlite.h; then
28396 SQLITE_INCDIR=$prefix/include
28397 if test -d $prefix/lib64; then
28398 SQLITE_LIBDIR=$prefix/lib64
28400 SQLITE_LIBDIR=$prefix/lib
28402 SQLITE_BINDIR=$prefix/bin
28404 { echo "$as_me:$LINENO: result: no" >&5
28405 echo "${ECHO_T}no" >&6; }
28406 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28407 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28408 { (exit 1); exit 1; }; }
28411 if test -f $withval/sqlite.h; then
28412 SQLITE_INCDIR=$withval
28413 SQLITE_LIBDIR=$withval
28414 SQLITE_BINDIR=$withval
28415 elif test -f $withval/include/sqlite.h; then
28416 SQLITE_INCDIR=$withval/include
28417 if test -d $withval/lib64; then
28418 SQLITE_LIBDIR=$withval/lib64
28420 SQLITE_LIBDIR=$withval/lib
28422 SQLITE_BINDIR=$withval/bin
28424 { echo "$as_me:$LINENO: result: no" >&5
28425 echo "${ECHO_T}no" >&6; }
28426 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28427 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28428 { (exit 1); exit 1; }; }
28431 SQL_INCLUDE=-I$SQLITE_INCDIR
28432 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28433 SQL_BINDIR=$SQLITE_BINDIR
28434 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28436 cat >>confdefs.h <<\_ACEOF
28437 #define HAVE_SQLITE 1
28440 { echo "$as_me:$LINENO: result: yes" >&5
28441 echo "${ECHO_T}yes" >&6; }
28448 { echo "$as_me:$LINENO: result: no" >&5
28449 echo "${ECHO_T}no" >&6; }
28454 { echo "$as_me:$LINENO: result: no" >&5
28455 echo "${ECHO_T}no" >&6; }
28467 { echo "$as_me:$LINENO: checking for DBI support" >&5
28468 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28470 # Check whether --with-dbi was given.
28471 if test "${with_dbi+set}" = set; then
28473 if test "$withval" != "no"; then
28474 if test "$withval" = "yes"; then
28475 if test -f /usr/local/include/dbi/dbi.h; then
28476 DBI_INCDIR=/usr/local/dbi/include
28477 if test -d /usr/local/lib64; then
28478 DBI_LIBDIR=/usr/local/lib64
28480 DBI_LIBDIR=/usr/local/lib
28482 DBI_BINDIR=/usr/local/bin
28483 elif test -f /usr/include/dbi/dbi.h; then
28484 DBI_INCDIR=/usr/include
28485 if test -d /usr/lib64; then
28486 DBI_LIBDIR=/usr/lib64
28488 DBI_LIBDIR=/usr/lib
28490 DBI_BINDIR=/usr/bin
28491 elif test -f $prefix/include/dbi/dbi.h; then
28492 DBI_INCDIR=$prefix/include
28493 if test -d $prefix/lib64; then
28494 DBI_LIBDIR=$prefix/lib64
28496 DBI_LIBDIR=$prefix/lib
28498 DBI_BINDIR=$prefix/bin
28500 { echo "$as_me:$LINENO: result: no" >&5
28501 echo "${ECHO_T}no" >&6; }
28502 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28503 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28504 { (exit 1); exit 1; }; }
28506 if test -d /usr/local/lib/dbd; then
28507 DRIVERDIR=/usr/local/lib/dbd
28508 if test -d /usr/local/lib64/dbd; then
28509 DRIVERDIR=/usr/local/lib64/dbd
28511 DRIVERDIR=/usr/local/lib/dbd
28513 elif test -d /usr/lib/dbd; then
28514 DRIVERDIR=/usr/lib/dbd
28515 if test -d /usr/lib64/dbd; then
28516 DRIVERDIR=/usr/lib64/dbd
28518 DRIVERDIR=/usr/lib/dbd
28520 elif test -d $prefix/lib/dbd; then
28521 if test -d $prefix/lib64/dbd; then
28522 DRIVERDIR=$prefix/lib64/dbd
28524 DRIVERDIR=$prefix/lib/dbd
28527 { echo "$as_me:$LINENO: result: no" >&5
28528 echo "${ECHO_T}no" >&6; }
28529 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28530 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28531 { (exit 1); exit 1; }; }
28534 if test -f $withval/dbi.h; then
28535 DBI_INCDIR=$withval
28536 DBI_LIBDIR=$withval
28537 DBI_BINDIR=$withval
28538 elif test -f $withval/include/dbi/dbi.h; then
28539 DBI_INCDIR=$withval/include
28540 if test -d $withval/lib64; then
28541 DBI_LIBDIR=$withval/lib64
28543 DBI_LIBDIR=$withval/lib
28545 DBI_BINDIR=$withval/bin
28547 { echo "$as_me:$LINENO: result: no" >&5
28548 echo "${ECHO_T}no" >&6; }
28549 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28550 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28551 { (exit 1); exit 1; }; }
28553 if test -d $withval/dbd; then
28554 DRIVERDIR=$withval/dbd
28555 elif test -d $withval/lib/; then
28556 if test -d $withval/lib64/dbd; then
28557 DRIVERDIR=$withval/lib64/dbd
28559 DRIVERDIR=$withval/lib/dbd
28562 { echo "$as_me:$LINENO: result: no" >&5
28563 echo "${ECHO_T}no" >&6; }
28564 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28565 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28566 { (exit 1); exit 1; }; }
28569 SQL_INCLUDE=-I$DBI_INCDIR
28570 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28571 SQL_BINDIR=$DBI_BINDIR
28572 SQL_LIB=$DBI_LIBDIR/libdbi.a
28573 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28576 cat >>confdefs.h <<\_ACEOF
28580 { echo "$as_me:$LINENO: result: yes" >&5
28581 echo "${ECHO_T}yes" >&6; }
28589 { echo "$as_me:$LINENO: result: no" >&5
28590 echo "${ECHO_T}no" >&6; }
28595 { echo "$as_me:$LINENO: result: no" >&5
28596 echo "${ECHO_T}no" >&6; }
28611 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28612 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28614 # Check whether --with-dbi-driver was given.
28615 if test "${with_dbi_driver+set}" = set; then
28616 withval=$with_dbi_driver;
28617 if test "$withval" != "no"; then
28621 if test -f /usr/local/mysql/bin/mysql; then
28622 SQL_BINDIR=/usr/local/mysql/bin
28623 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28624 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28625 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28627 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28629 elif test -f /usr/bin/mysql; then
28630 SQL_BINDIR=/usr/bin
28631 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28632 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28633 SQL_LIBDIR=/usr/lib64/mysql
28634 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28635 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28636 SQL_LIBDIR=/usr/lib/mysql
28638 SQL_LIBDIR=/usr/lib
28640 elif test -f /usr/local/bin/mysql; then
28641 SQL_BINDIR=/usr/local/bin
28642 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28643 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28644 SQL_LIBDIR=/usr/local/lib64/mysql
28645 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28646 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28647 SQL_LIBDIR=/usr/local/lib/mysql
28649 SQL_LIBDIR=/usr/local/lib
28651 elif test -f $withval/bin/mysql; then
28652 SQL_BINDIR=$withval/bin
28653 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28654 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28655 SQL_LIBDIR=$withval/lib64/mysql
28656 elif test -f $withval/lib64/libmysqlclient_r.a \
28657 -o -f $withval/lib64/libmysqlclient_r.so; then
28658 SQL_LIBDIR=$withval/lib64
28659 elif test -f $withval/lib/libmysqlclient_r.a \
28660 -o -f $withval/lib/libmysqlclient_r.so; then
28661 SQL_LIBDIR=$withval/lib/
28663 SQL_LIBDIR=$withval/lib/mysql
28666 { echo "$as_me:$LINENO: result: no" >&5
28667 echo "${ECHO_T}no" >&6; }
28668 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28669 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28670 { (exit 1); exit 1; }; }
28672 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28675 db_prog="postgresql"
28676 PG_CONFIG=`which pg_config`
28677 if test -n "$PG_CONFIG"; then
28678 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28679 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28680 elif test -f /usr/local/bin/psql; then
28681 SQL_BINDIR=/usr/local/bin
28682 if test -d /usr/local/lib64; then
28683 SQL_LIBDIR=/usr/local/lib64
28685 SQL_LIBDIR=/usr/local/lib
28687 elif test -f /usr/bin/psql; then
28688 SQL_BINDIR=/usr/local/bin
28689 if test -d /usr/lib64/postgresql; then
28690 SQL_LIBDIR=/usr/lib64/postgresql
28691 elif test -d /usr/lib/postgresql; then
28692 SQL_LIBDIR=/usr/lib/postgresql
28693 elif test -d /usr/lib64; then
28694 SQL_LIBDIR=/usr/lib64
28696 SQL_LIBDIR=/usr/lib
28698 elif test -f $withval/bin/psql; then
28699 SQL_BINDIR=$withval/bin
28700 if test -d $withval/lib64; then
28701 SQL_LIBDIR=$withval/lib64
28703 SQL_LIBDIR=$withval/lib
28706 { echo "$as_me:$LINENO: result: no" >&5
28707 echo "${ECHO_T}no" >&6; }
28708 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28709 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28710 { (exit 1); exit 1; }; }
28712 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28716 if test -f /usr/local/bin/sqlite; then
28717 SQL_BINDIR=/usr/local/bin
28718 if test -d /usr/local/lib64; then
28719 SQL_LIBDIR=/usr/local/lib64
28721 SQL_LIBDIR=/usr/local/lib
28723 elif test -f /usr/bin/sqlite; then
28724 SQL_BINDIR=/usr/bin
28725 if test -d /usr/lib64; then
28726 SQL_LIBDIR=/usr/lib64
28728 SQL_LIBDIR=/usr/lib
28730 elif test -f $withval/bin/sqlite; then
28731 SQL_BINDIR=$withval/bin
28732 if test -d $withval/lib64; then
28733 SQL_LIBDIR=$withval/lib64
28735 SQL_LIBDIR=$withval/lib
28738 { echo "$as_me:$LINENO: result: no" >&5
28739 echo "${ECHO_T}no" >&6; }
28740 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28741 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28742 { (exit 1); exit 1; }; }
28744 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28748 if test -f /usr/local/bin/sqlite3; then
28749 SQL_BINDIR=/usr/local/bin
28750 if test -d /usr/local/lib64; then
28751 SQL_LIBDIR=/usr/local/lib64
28753 SQL_LIBDIR=/usr/local/lib
28755 elif test -f /usr/bin/sqlite3; then
28756 SQL_BINDIR=/usr/bin
28757 if test -d /usr/lib64; then
28758 SQL_LIBDIR=/usr/lib64
28760 SQL_LIBDIR=/usr/lib
28762 elif test -f $withval/bin/sqlite3; then
28763 SQL_BINDIR=$withval/bin
28764 if test -d $withval/lib64; then
28765 SQL_LIBDIR=$withval/lib64
28767 SQL_LIBDIR=$withval/lib
28770 { echo "$as_me:$LINENO: result: no" >&5
28771 echo "${ECHO_T}no" >&6; }
28772 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28773 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28774 { (exit 1); exit 1; }; }
28776 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28779 { echo "$as_me:$LINENO: result: no" >&5
28780 echo "${ECHO_T}no" >&6; }
28781 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28782 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28783 { (exit 1); exit 1; }; }
28787 { echo "$as_me:$LINENO: result: yes" >&5
28788 echo "${ECHO_T}yes" >&6; }
28791 { echo "$as_me:$LINENO: result: no" >&5
28792 echo "${ECHO_T}no" >&6; }
28797 { echo "$as_me:$LINENO: result: no" >&5
28798 echo "${ECHO_T}no" >&6; }
28811 support_batch_insert=no
28812 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28814 if test $pkg = 0; then
28815 support_batch_insert=yes
28816 # Check whether --enable-batch-insert was given.
28817 if test "${enable_batch_insert+set}" = set; then
28818 enableval=$enable_batch_insert;
28819 if test x$enableval = xno; then
28820 support_batch_insert=no
28822 support_batch_insert=yes
28830 if test x$DB_TYPE = xpostgresql; then
28831 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28833 if test $pkg != 0; then
28834 support_batch_insert=no
28838 if test x$DB_TYPE = xdbi; then
28842 if test $DB_PROG = postgresql; then
28843 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28847 if test $DB_PROG = mysql; then
28848 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28852 if test $DB_PROG = sqlite3; then
28853 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28857 if test $pkg = 0; then
28858 # Check whether --enable-batch-insert was given.
28859 if test "${enable_batch_insert+set}" = set; then
28860 enableval=$enable_batch_insert;
28861 if test x$enableval = xno; then
28862 support_batch_insert=no
28864 support_batch_insert=yes
28877 if test $support_batch_insert = yes ; then
28879 cat >>confdefs.h <<\_ACEOF
28880 #define HAVE_BATCH_FILE_INSERT 1
28885 cat >>confdefs.h <<\_ACEOF
28886 #define PROTOTYPES 1
28890 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28891 if test -z "$CCOPTS"; then
28892 CCOPTS='-g -O2 -Wall'
28899 largefile_support="no"
28901 # Check whether --enable-largefile was given.
28902 if test "${enable_largefile+set}" = set; then
28903 enableval=$enable_largefile;
28906 if test "$enable_largefile" != no; then
28907 if test -n "$ac_tool_prefix"; then
28908 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28909 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28912 if test "${ac_cv_prog_GETCONF+set}" = set; then
28913 echo $ECHO_N "(cached) $ECHO_C" >&6
28915 if test -n "$GETCONF"; then
28916 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28919 for as_dir in $PATH
28922 test -z "$as_dir" && as_dir=.
28923 for ac_exec_ext in '' $ac_executable_extensions; do
28924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28925 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28935 GETCONF=$ac_cv_prog_GETCONF
28936 if test -n "$GETCONF"; then
28937 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28938 echo "${ECHO_T}$GETCONF" >&6; }
28940 { echo "$as_me:$LINENO: result: no" >&5
28941 echo "${ECHO_T}no" >&6; }
28946 if test -z "$ac_cv_prog_GETCONF"; then
28947 ac_ct_GETCONF=$GETCONF
28948 # Extract the first word of "getconf", so it can be a program name with args.
28949 set dummy getconf; ac_word=$2
28950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28952 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28953 echo $ECHO_N "(cached) $ECHO_C" >&6
28955 if test -n "$ac_ct_GETCONF"; then
28956 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28959 for as_dir in $PATH
28962 test -z "$as_dir" && as_dir=.
28963 for ac_exec_ext in '' $ac_executable_extensions; do
28964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28965 ac_cv_prog_ac_ct_GETCONF="getconf"
28966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28975 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28976 if test -n "$ac_ct_GETCONF"; then
28977 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28978 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28980 { echo "$as_me:$LINENO: result: no" >&5
28981 echo "${ECHO_T}no" >&6; }
28984 if test "x$ac_ct_GETCONF" = x; then
28987 case $cross_compiling:$ac_tool_warned in
28989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28990 whose name does not start with the host triplet. If you think this
28991 configuration is useful to you, please write to autoconf@gnu.org." >&5
28992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28993 whose name does not start with the host triplet. If you think this
28994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28995 ac_tool_warned=yes ;;
28997 GETCONF=$ac_ct_GETCONF
29000 GETCONF="$ac_cv_prog_GETCONF"
29003 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29004 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29005 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29008 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29009 ac_cv_sys_largefile_CFLAGS=no
29011 # IRIX 6.2 and later require cc -n32.
29012 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29013 if test "$GCC" != yes; then
29014 ac_cv_sys_largefile_CFLAGS=-n32
29017 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29018 cat >conftest.$ac_ext <<_ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h. */
29033 rm -f conftest.$ac_objext conftest$ac_exeext
29034 if { (ac_try="$ac_link"
29035 case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_link") 2>conftest.er1
29042 grep -v '^ *+' conftest.er1 >conftest.err
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } && {
29047 test -z "$ac_c_werror_flag" ||
29048 test ! -s conftest.err
29049 } && test -s conftest$ac_exeext &&
29050 $as_test_x conftest$ac_exeext; then
29053 echo "$as_me: failed program was:" >&5
29054 sed 's/^/| /' conftest.$ac_ext >&5
29056 ac_cv_sys_largefile_CFLAGS=no
29059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29060 conftest$ac_exeext conftest.$ac_ext
29065 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29066 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29067 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29068 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29069 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29070 echo $ECHO_N "(cached) $ECHO_C" >&6
29072 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29073 ac_cv_sys_largefile_LDFLAGS=no
29077 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29078 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29079 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29080 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29081 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29082 echo $ECHO_N "(cached) $ECHO_C" >&6
29084 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29085 ac_cv_sys_largefile_LIBS=no
29089 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29090 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29092 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29095 -D_FILE_OFFSET_BITS=*) ;;
29096 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29097 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29102 case "$CPPFLAGS" in
29103 '') CPPFLAGS="$ac_flag" ;;
29104 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29112 '') CFLAGS="$ac_flag" ;;
29113 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29118 case "$ac_cv_sys_largefile_LDFLAGS" in
29122 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29123 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29126 case "$ac_cv_sys_largefile_LIBS" in
29130 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29131 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29134 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29135 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29136 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 ac_cv_sys_file_offset_bits=no
29140 ac_cv_sys_file_offset_bits=64
29141 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29143 -D_FILE_OFFSET_BITS)
29144 ac_cv_sys_file_offset_bits=1 ;;
29145 -D_FILE_OFFSET_BITS=*)
29146 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29151 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29152 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29153 if test "$ac_cv_sys_file_offset_bits" != no; then
29155 cat >>confdefs.h <<_ACEOF
29156 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29160 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29161 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29162 if test "${ac_cv_sys_largefile_source+set}" = set; then
29163 echo $ECHO_N "(cached) $ECHO_C" >&6
29165 ac_cv_sys_largefile_source=no
29166 ac_cv_sys_largefile_source=1
29167 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29169 -D_LARGEFILE_SOURCE)
29170 ac_cv_sys_largefile_source=1 ;;
29171 -D_LARGEFILE_SOURCE=*)
29172 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29177 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29178 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29179 if test "$ac_cv_sys_largefile_source" != no; then
29181 cat >>confdefs.h <<_ACEOF
29182 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29186 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29187 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29188 if test "${ac_cv_sys_large_files+set}" = set; then
29189 echo $ECHO_N "(cached) $ECHO_C" >&6
29191 ac_cv_sys_large_files=no
29192 ac_cv_sys_large_files=1
29193 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29196 ac_cv_sys_large_files=1 ;;
29198 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29203 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29204 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29205 if test "$ac_cv_sys_large_files" != no; then
29207 cat >>confdefs.h <<_ACEOF
29208 #define _LARGE_FILES $ac_cv_sys_large_files
29215 { echo "$as_me:$LINENO: checking for X" >&5
29216 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29219 # Check whether --with-x was given.
29220 if test "${with_x+set}" = set; then
29224 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29225 if test "x$with_x" = xno; then
29226 # The user explicitly disabled X.
29229 case $x_includes,$x_libraries in #(
29230 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29231 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29232 { (exit 1); exit 1; }; };; #(
29233 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29234 echo $ECHO_N "(cached) $ECHO_C" >&6
29236 # One or both of the vars are not set, and there is no cached value.
29237 ac_x_includes=no ac_x_libraries=no
29238 rm -f -r conftest.dir
29239 if mkdir conftest.dir; then
29241 cat >Imakefile <<'_ACEOF'
29243 @echo incroot='${INCROOT}'
29245 @echo usrlibdir='${USRLIBDIR}'
29247 @echo libdir='${LIBDIR}'
29249 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29251 for ac_var in incroot usrlibdir libdir; do
29252 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29254 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29255 for ac_extension in a so sl; do
29256 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29257 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29258 ac_im_usrlibdir=$ac_im_libdir; break
29261 # Screen out bogus values from the imake configuration. They are
29262 # bogus both because they are the default anyway, and because
29263 # using them would break gcc on systems where it needs fixed includes.
29264 case $ac_im_incroot in
29265 /usr/include) ac_x_includes= ;;
29266 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29268 case $ac_im_usrlibdir in
29269 /usr/lib | /lib) ;;
29270 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29274 rm -f -r conftest.dir
29277 # Standard set of common directories for X headers.
29278 # Check X11 before X11Rn because it is often a symlink to the current release.
29290 /usr/local/X11/include
29291 /usr/local/X11R6/include
29292 /usr/local/X11R5/include
29293 /usr/local/X11R4/include
29295 /usr/local/include/X11
29296 /usr/local/include/X11R6
29297 /usr/local/include/X11R5
29298 /usr/local/include/X11R4
29302 /usr/XFree86/include/X11
29306 /usr/unsupported/include
29307 /usr/athena/include
29308 /usr/local/x11r5/include
29309 /usr/lpp/Xamples/include
29311 /usr/openwin/include
29312 /usr/openwin/share/include'
29314 if test "$ac_x_includes" = no; then
29315 # Guess where to find include files, by looking for Xlib.h.
29316 # First, try using that file with no special directory specified.
29317 cat >conftest.$ac_ext <<_ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h. */
29323 #include <X11/Xlib.h>
29325 if { (ac_try="$ac_cpp conftest.$ac_ext"
29326 case "(($ac_try" in
29327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328 *) ac_try_echo=$ac_try;;
29330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29333 grep -v '^ *+' conftest.er1 >conftest.err
29335 cat conftest.err >&5
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); } >/dev/null && {
29338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29339 test ! -s conftest.err
29341 # We can compile using X headers with no special include directory.
29344 echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29347 for ac_dir in $ac_x_header_dirs; do
29348 if test -r "$ac_dir/X11/Xlib.h"; then
29349 ac_x_includes=$ac_dir
29355 rm -f conftest.err conftest.$ac_ext
29356 fi # $ac_x_includes = no
29358 if test "$ac_x_libraries" = no; then
29359 # Check for the libraries.
29360 # See if we find them without any special options.
29361 # Don't add to $LIBS permanently.
29364 cat >conftest.$ac_ext <<_ACEOF
29367 cat confdefs.h >>conftest.$ac_ext
29368 cat >>conftest.$ac_ext <<_ACEOF
29369 /* end confdefs.h. */
29370 #include <X11/Xlib.h>
29379 rm -f conftest.$ac_objext conftest$ac_exeext
29380 if { (ac_try="$ac_link"
29381 case "(($ac_try" in
29382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29383 *) ac_try_echo=$ac_try;;
29385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29386 (eval "$ac_link") 2>conftest.er1
29388 grep -v '^ *+' conftest.er1 >conftest.err
29390 cat conftest.err >&5
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } && {
29393 test -z "$ac_c_werror_flag" ||
29394 test ! -s conftest.err
29395 } && test -s conftest$ac_exeext &&
29396 $as_test_x conftest$ac_exeext; then
29398 # We can link X programs with no special library path.
29401 echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29405 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29407 # Don't even attempt the hair of trying to link an X program!
29408 for ac_extension in a so sl; do
29409 if test -r "$ac_dir/libX11.$ac_extension"; then
29410 ac_x_libraries=$ac_dir
29417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29418 conftest$ac_exeext conftest.$ac_ext
29419 fi # $ac_x_libraries = no
29421 case $ac_x_includes,$ac_x_libraries in #(
29422 no,* | *,no | *\'*)
29423 # Didn't find X, or a directory has "'" in its name.
29424 ac_cv_have_x="have_x=no";; #(
29426 # Record where we found X for the cache.
29427 ac_cv_have_x="have_x=yes\
29428 ac_x_includes='$ac_x_includes'\
29429 ac_x_libraries='$ac_x_libraries'"
29435 eval "$ac_cv_have_x"
29438 if test "$have_x" != yes; then
29439 { echo "$as_me:$LINENO: result: $have_x" >&5
29440 echo "${ECHO_T}$have_x" >&6; }
29443 # If each of the values was on the command line, it overrides each guess.
29444 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29445 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29446 # Update the cache value to reflect the command line values.
29447 ac_cv_have_x="have_x=yes\
29448 ac_x_includes='$x_includes'\
29449 ac_x_libraries='$x_libraries'"
29450 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29451 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29454 if test "$no_x" = yes; then
29455 # Not all programs may use this symbol, but it does not hurt to define it.
29457 cat >>confdefs.h <<\_ACEOF
29458 #define X_DISPLAY_MISSING 1
29461 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29463 if test -n "$x_includes"; then
29464 X_CFLAGS="$X_CFLAGS -I$x_includes"
29467 # It would also be nice to do this for all -L options, not just this one.
29468 if test -n "$x_libraries"; then
29469 X_LIBS="$X_LIBS -L$x_libraries"
29470 # For Solaris; some versions of Sun CC require a space after -R and
29471 # others require no space. Words are not sufficient . . . .
29472 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29473 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29474 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29475 ac_xsave_c_werror_flag=$ac_c_werror_flag
29476 ac_c_werror_flag=yes
29477 cat >conftest.$ac_ext <<_ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h. */
29492 rm -f conftest.$ac_objext conftest$ac_exeext
29493 if { (ac_try="$ac_link"
29494 case "(($ac_try" in
29495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496 *) ac_try_echo=$ac_try;;
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499 (eval "$ac_link") 2>conftest.er1
29501 grep -v '^ *+' conftest.er1 >conftest.err
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } && {
29506 test -z "$ac_c_werror_flag" ||
29507 test ! -s conftest.err
29508 } && test -s conftest$ac_exeext &&
29509 $as_test_x conftest$ac_exeext; then
29510 { echo "$as_me:$LINENO: result: no" >&5
29511 echo "${ECHO_T}no" >&6; }
29512 X_LIBS="$X_LIBS -R$x_libraries"
29514 echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29517 LIBS="$ac_xsave_LIBS -R $x_libraries"
29518 cat >conftest.$ac_ext <<_ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29533 rm -f conftest.$ac_objext conftest$ac_exeext
29534 if { (ac_try="$ac_link"
29535 case "(($ac_try" in
29536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29537 *) ac_try_echo=$ac_try;;
29539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29540 (eval "$ac_link") 2>conftest.er1
29542 grep -v '^ *+' conftest.er1 >conftest.err
29544 cat conftest.err >&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); } && {
29547 test -z "$ac_c_werror_flag" ||
29548 test ! -s conftest.err
29549 } && test -s conftest$ac_exeext &&
29550 $as_test_x conftest$ac_exeext; then
29551 { echo "$as_me:$LINENO: result: yes" >&5
29552 echo "${ECHO_T}yes" >&6; }
29553 X_LIBS="$X_LIBS -R $x_libraries"
29555 echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29558 { echo "$as_me:$LINENO: result: neither works" >&5
29559 echo "${ECHO_T}neither works" >&6; }
29562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29563 conftest$ac_exeext conftest.$ac_ext
29566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29567 conftest$ac_exeext conftest.$ac_ext
29568 ac_c_werror_flag=$ac_xsave_c_werror_flag
29569 LIBS=$ac_xsave_LIBS
29572 # Check for system-dependent libraries X programs must link with.
29573 # Do this before checking for the system-independent R6 libraries
29574 # (-lICE), since we may need -lsocket or whatever for X linking.
29576 if test "$ISC" = yes; then
29577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29579 # Martyn Johnson says this is needed for Ultrix, if the X
29580 # libraries were built with DECnet support. And Karl Berry says
29581 # the Alpha needs dnet_stub (dnet does not exist).
29582 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29583 cat >conftest.$ac_ext <<_ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29590 /* Override any GCC internal prototype to avoid an error.
29591 Use char because int might match the return type of a GCC
29592 builtin and then its argument prototype would still apply. */
29596 char XOpenDisplay ();
29600 return XOpenDisplay ();
29605 rm -f conftest.$ac_objext conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_link") 2>conftest.er1
29614 grep -v '^ *+' conftest.er1 >conftest.err
29616 cat conftest.err >&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } && {
29619 test -z "$ac_c_werror_flag" ||
29620 test ! -s conftest.err
29621 } && test -s conftest$ac_exeext &&
29622 $as_test_x conftest$ac_exeext; then
29625 echo "$as_me: failed program was:" >&5
29626 sed 's/^/| /' conftest.$ac_ext >&5
29628 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29629 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29630 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29633 ac_check_lib_save_LIBS=$LIBS
29634 LIBS="-ldnet $LIBS"
29635 cat >conftest.$ac_ext <<_ACEOF
29638 cat confdefs.h >>conftest.$ac_ext
29639 cat >>conftest.$ac_ext <<_ACEOF
29640 /* end confdefs.h. */
29642 /* Override any GCC internal prototype to avoid an error.
29643 Use char because int might match the return type of a GCC
29644 builtin and then its argument prototype would still apply. */
29652 return dnet_ntoa ();
29657 rm -f conftest.$ac_objext conftest$ac_exeext
29658 if { (ac_try="$ac_link"
29659 case "(($ac_try" in
29660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661 *) ac_try_echo=$ac_try;;
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664 (eval "$ac_link") 2>conftest.er1
29666 grep -v '^ *+' conftest.er1 >conftest.err
29668 cat conftest.err >&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } && {
29671 test -z "$ac_c_werror_flag" ||
29672 test ! -s conftest.err
29673 } && test -s conftest$ac_exeext &&
29674 $as_test_x conftest$ac_exeext; then
29675 ac_cv_lib_dnet_dnet_ntoa=yes
29677 echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29680 ac_cv_lib_dnet_dnet_ntoa=no
29683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29684 conftest$ac_exeext conftest.$ac_ext
29685 LIBS=$ac_check_lib_save_LIBS
29687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29688 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29689 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29690 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29693 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29694 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29695 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29696 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29699 ac_check_lib_save_LIBS=$LIBS
29700 LIBS="-ldnet_stub $LIBS"
29701 cat >conftest.$ac_ext <<_ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h. */
29708 /* Override any GCC internal prototype to avoid an error.
29709 Use char because int might match the return type of a GCC
29710 builtin and then its argument prototype would still apply. */
29718 return dnet_ntoa ();
29723 rm -f conftest.$ac_objext conftest$ac_exeext
29724 if { (ac_try="$ac_link"
29725 case "(($ac_try" in
29726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727 *) ac_try_echo=$ac_try;;
29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730 (eval "$ac_link") 2>conftest.er1
29732 grep -v '^ *+' conftest.er1 >conftest.err
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); } && {
29737 test -z "$ac_c_werror_flag" ||
29738 test ! -s conftest.err
29739 } && test -s conftest$ac_exeext &&
29740 $as_test_x conftest$ac_exeext; then
29741 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29743 echo "$as_me: failed program was:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29746 ac_cv_lib_dnet_stub_dnet_ntoa=no
29749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29750 conftest$ac_exeext conftest.$ac_ext
29751 LIBS=$ac_check_lib_save_LIBS
29753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29754 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29755 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29763 conftest$ac_exeext conftest.$ac_ext
29764 LIBS="$ac_xsave_LIBS"
29766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29767 # to get the SysV transport functions.
29768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29770 # The nsl library prevents programs from opening the X display
29771 # on Irix 5.2, according to T.E. Dickey.
29772 # The functions gethostbyname, getservbyname, and inet_addr are
29773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29774 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29775 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29776 if test "${ac_cv_func_gethostbyname+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29779 cat >conftest.$ac_ext <<_ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h. */
29785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29787 #define gethostbyname innocuous_gethostbyname
29789 /* System header to define __stub macros and hopefully few prototypes,
29790 which can conflict with char gethostbyname (); below.
29791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29792 <limits.h> exists even on freestanding compilers. */
29795 # include <limits.h>
29797 # include <assert.h>
29800 #undef gethostbyname
29802 /* Override any GCC internal prototype to avoid an error.
29803 Use char because int might match the return type of a GCC
29804 builtin and then its argument prototype would still apply. */
29808 char gethostbyname ();
29809 /* The GNU C library defines this for functions which it implements
29810 to always fail with ENOSYS. Some functions are actually named
29811 something starting with __ and the normal name is an alias. */
29812 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29819 return gethostbyname ();
29824 rm -f conftest.$ac_objext conftest$ac_exeext
29825 if { (ac_try="$ac_link"
29826 case "(($ac_try" in
29827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828 *) ac_try_echo=$ac_try;;
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831 (eval "$ac_link") 2>conftest.er1
29833 grep -v '^ *+' conftest.er1 >conftest.err
29835 cat conftest.err >&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } && {
29838 test -z "$ac_c_werror_flag" ||
29839 test ! -s conftest.err
29840 } && test -s conftest$ac_exeext &&
29841 $as_test_x conftest$ac_exeext; then
29842 ac_cv_func_gethostbyname=yes
29844 echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29847 ac_cv_func_gethostbyname=no
29850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29851 conftest$ac_exeext conftest.$ac_ext
29853 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29854 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29856 if test $ac_cv_func_gethostbyname = no; then
29857 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29858 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29859 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29860 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 ac_check_lib_save_LIBS=$LIBS
29864 cat >conftest.$ac_ext <<_ACEOF
29867 cat confdefs.h >>conftest.$ac_ext
29868 cat >>conftest.$ac_ext <<_ACEOF
29869 /* end confdefs.h. */
29871 /* Override any GCC internal prototype to avoid an error.
29872 Use char because int might match the return type of a GCC
29873 builtin and then its argument prototype would still apply. */
29877 char gethostbyname ();
29881 return gethostbyname ();
29886 rm -f conftest.$ac_objext conftest$ac_exeext
29887 if { (ac_try="$ac_link"
29888 case "(($ac_try" in
29889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29890 *) ac_try_echo=$ac_try;;
29892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29893 (eval "$ac_link") 2>conftest.er1
29895 grep -v '^ *+' conftest.er1 >conftest.err
29897 cat conftest.err >&5
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); } && {
29900 test -z "$ac_c_werror_flag" ||
29901 test ! -s conftest.err
29902 } && test -s conftest$ac_exeext &&
29903 $as_test_x conftest$ac_exeext; then
29904 ac_cv_lib_nsl_gethostbyname=yes
29906 echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29909 ac_cv_lib_nsl_gethostbyname=no
29912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29913 conftest$ac_exeext conftest.$ac_ext
29914 LIBS=$ac_check_lib_save_LIBS
29916 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29917 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29918 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29922 if test $ac_cv_lib_nsl_gethostbyname = no; then
29923 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29924 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29925 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 ac_check_lib_save_LIBS=$LIBS
29930 cat >conftest.$ac_ext <<_ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h. */
29937 /* Override any GCC internal prototype to avoid an error.
29938 Use char because int might match the return type of a GCC
29939 builtin and then its argument prototype would still apply. */
29943 char gethostbyname ();
29947 return gethostbyname ();
29952 rm -f conftest.$ac_objext conftest$ac_exeext
29953 if { (ac_try="$ac_link"
29954 case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_link") 2>conftest.er1
29961 grep -v '^ *+' conftest.er1 >conftest.err
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } && {
29966 test -z "$ac_c_werror_flag" ||
29967 test ! -s conftest.err
29968 } && test -s conftest$ac_exeext &&
29969 $as_test_x conftest$ac_exeext; then
29970 ac_cv_lib_bsd_gethostbyname=yes
29972 echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29975 ac_cv_lib_bsd_gethostbyname=no
29978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29979 conftest$ac_exeext conftest.$ac_ext
29980 LIBS=$ac_check_lib_save_LIBS
29982 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29983 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29984 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29991 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29992 # socket/setsockopt and other routines are undefined under SCO ODT
29993 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29994 # on later versions), says Simon Leinen: it contains gethostby*
29995 # variants that don't use the name server (or something). -lsocket
29996 # must be given before -lnsl if both are needed. We assume that
29997 # if connect needs -lnsl, so does gethostbyname.
29998 { echo "$as_me:$LINENO: checking for connect" >&5
29999 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30000 if test "${ac_cv_func_connect+set}" = set; then
30001 echo $ECHO_N "(cached) $ECHO_C" >&6
30003 cat >conftest.$ac_ext <<_ACEOF
30006 cat confdefs.h >>conftest.$ac_ext
30007 cat >>conftest.$ac_ext <<_ACEOF
30008 /* end confdefs.h. */
30009 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30011 #define connect innocuous_connect
30013 /* System header to define __stub macros and hopefully few prototypes,
30014 which can conflict with char connect (); below.
30015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30016 <limits.h> exists even on freestanding compilers. */
30019 # include <limits.h>
30021 # include <assert.h>
30026 /* Override any GCC internal prototype to avoid an error.
30027 Use char because int might match the return type of a GCC
30028 builtin and then its argument prototype would still apply. */
30033 /* The GNU C library defines this for functions which it implements
30034 to always fail with ENOSYS. Some functions are actually named
30035 something starting with __ and the normal name is an alias. */
30036 #if defined __stub_connect || defined __stub___connect
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (ac_try="$ac_link"
30050 case "(($ac_try" in
30051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052 *) ac_try_echo=$ac_try;;
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055 (eval "$ac_link") 2>conftest.er1
30057 grep -v '^ *+' conftest.er1 >conftest.err
30059 cat conftest.err >&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } && {
30062 test -z "$ac_c_werror_flag" ||
30063 test ! -s conftest.err
30064 } && test -s conftest$ac_exeext &&
30065 $as_test_x conftest$ac_exeext; then
30066 ac_cv_func_connect=yes
30068 echo "$as_me: failed program was:" >&5
30069 sed 's/^/| /' conftest.$ac_ext >&5
30071 ac_cv_func_connect=no
30074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30075 conftest$ac_exeext conftest.$ac_ext
30077 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30078 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30080 if test $ac_cv_func_connect = no; then
30081 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30082 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30083 if test "${ac_cv_lib_socket_connect+set}" = set; then
30084 echo $ECHO_N "(cached) $ECHO_C" >&6
30086 ac_check_lib_save_LIBS=$LIBS
30087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30088 cat >conftest.$ac_ext <<_ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h. */
30095 /* Override any GCC internal prototype to avoid an error.
30096 Use char because int might match the return type of a GCC
30097 builtin and then its argument prototype would still apply. */
30110 rm -f conftest.$ac_objext conftest$ac_exeext
30111 if { (ac_try="$ac_link"
30112 case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_link") 2>conftest.er1
30119 grep -v '^ *+' conftest.er1 >conftest.err
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } && {
30124 test -z "$ac_c_werror_flag" ||
30125 test ! -s conftest.err
30126 } && test -s conftest$ac_exeext &&
30127 $as_test_x conftest$ac_exeext; then
30128 ac_cv_lib_socket_connect=yes
30130 echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30133 ac_cv_lib_socket_connect=no
30136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30137 conftest$ac_exeext conftest.$ac_ext
30138 LIBS=$ac_check_lib_save_LIBS
30140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30141 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30142 if test $ac_cv_lib_socket_connect = yes; then
30143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30148 # Guillermo Gomez says -lposix is necessary on A/UX.
30149 { echo "$as_me:$LINENO: checking for remove" >&5
30150 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30151 if test "${ac_cv_func_remove+set}" = set; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30154 cat >conftest.$ac_ext <<_ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h. */
30160 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30162 #define remove innocuous_remove
30164 /* System header to define __stub macros and hopefully few prototypes,
30165 which can conflict with char remove (); below.
30166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30167 <limits.h> exists even on freestanding compilers. */
30170 # include <limits.h>
30172 # include <assert.h>
30177 /* Override any GCC internal prototype to avoid an error.
30178 Use char because int might match the return type of a GCC
30179 builtin and then its argument prototype would still apply. */
30184 /* The GNU C library defines this for functions which it implements
30185 to always fail with ENOSYS. Some functions are actually named
30186 something starting with __ and the normal name is an alias. */
30187 #if defined __stub_remove || defined __stub___remove
30199 rm -f conftest.$ac_objext conftest$ac_exeext
30200 if { (ac_try="$ac_link"
30201 case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_link") 2>conftest.er1
30208 grep -v '^ *+' conftest.er1 >conftest.err
30210 cat conftest.err >&5
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } && {
30213 test -z "$ac_c_werror_flag" ||
30214 test ! -s conftest.err
30215 } && test -s conftest$ac_exeext &&
30216 $as_test_x conftest$ac_exeext; then
30217 ac_cv_func_remove=yes
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30222 ac_cv_func_remove=no
30225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30226 conftest$ac_exeext conftest.$ac_ext
30228 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30229 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30231 if test $ac_cv_func_remove = no; then
30232 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30233 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30234 if test "${ac_cv_lib_posix_remove+set}" = set; then
30235 echo $ECHO_N "(cached) $ECHO_C" >&6
30237 ac_check_lib_save_LIBS=$LIBS
30238 LIBS="-lposix $LIBS"
30239 cat >conftest.$ac_ext <<_ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30246 /* Override any GCC internal prototype to avoid an error.
30247 Use char because int might match the return type of a GCC
30248 builtin and then its argument prototype would still apply. */
30261 rm -f conftest.$ac_objext conftest$ac_exeext
30262 if { (ac_try="$ac_link"
30263 case "(($ac_try" in
30264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265 *) ac_try_echo=$ac_try;;
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268 (eval "$ac_link") 2>conftest.er1
30270 grep -v '^ *+' conftest.er1 >conftest.err
30272 cat conftest.err >&5
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } && {
30275 test -z "$ac_c_werror_flag" ||
30276 test ! -s conftest.err
30277 } && test -s conftest$ac_exeext &&
30278 $as_test_x conftest$ac_exeext; then
30279 ac_cv_lib_posix_remove=yes
30281 echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30284 ac_cv_lib_posix_remove=no
30287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30288 conftest$ac_exeext conftest.$ac_ext
30289 LIBS=$ac_check_lib_save_LIBS
30291 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30292 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30293 if test $ac_cv_lib_posix_remove = yes; then
30294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30299 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30300 { echo "$as_me:$LINENO: checking for shmat" >&5
30301 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30302 if test "${ac_cv_func_shmat+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30305 cat >conftest.$ac_ext <<_ACEOF
30308 cat confdefs.h >>conftest.$ac_ext
30309 cat >>conftest.$ac_ext <<_ACEOF
30310 /* end confdefs.h. */
30311 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30313 #define shmat innocuous_shmat
30315 /* System header to define __stub macros and hopefully few prototypes,
30316 which can conflict with char shmat (); below.
30317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30318 <limits.h> exists even on freestanding compilers. */
30321 # include <limits.h>
30323 # include <assert.h>
30328 /* Override any GCC internal prototype to avoid an error.
30329 Use char because int might match the return type of a GCC
30330 builtin and then its argument prototype would still apply. */
30335 /* The GNU C library defines this for functions which it implements
30336 to always fail with ENOSYS. Some functions are actually named
30337 something starting with __ and the normal name is an alias. */
30338 #if defined __stub_shmat || defined __stub___shmat
30350 rm -f conftest.$ac_objext conftest$ac_exeext
30351 if { (ac_try="$ac_link"
30352 case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_link") 2>conftest.er1
30359 grep -v '^ *+' conftest.er1 >conftest.err
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } && {
30364 test -z "$ac_c_werror_flag" ||
30365 test ! -s conftest.err
30366 } && test -s conftest$ac_exeext &&
30367 $as_test_x conftest$ac_exeext; then
30368 ac_cv_func_shmat=yes
30370 echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30373 ac_cv_func_shmat=no
30376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30377 conftest$ac_exeext conftest.$ac_ext
30379 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30380 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30382 if test $ac_cv_func_shmat = no; then
30383 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30384 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30385 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30386 echo $ECHO_N "(cached) $ECHO_C" >&6
30388 ac_check_lib_save_LIBS=$LIBS
30390 cat >conftest.$ac_ext <<_ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30397 /* Override any GCC internal prototype to avoid an error.
30398 Use char because int might match the return type of a GCC
30399 builtin and then its argument prototype would still apply. */
30412 rm -f conftest.$ac_objext conftest$ac_exeext
30413 if { (ac_try="$ac_link"
30414 case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_link") 2>conftest.er1
30421 grep -v '^ *+' conftest.er1 >conftest.err
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } && {
30426 test -z "$ac_c_werror_flag" ||
30427 test ! -s conftest.err
30428 } && test -s conftest$ac_exeext &&
30429 $as_test_x conftest$ac_exeext; then
30430 ac_cv_lib_ipc_shmat=yes
30432 echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30435 ac_cv_lib_ipc_shmat=no
30438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30439 conftest$ac_exeext conftest.$ac_ext
30440 LIBS=$ac_check_lib_save_LIBS
30442 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30443 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30444 if test $ac_cv_lib_ipc_shmat = yes; then
30445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30451 # Check for libraries that X11R6 Xt/Xaw programs need.
30452 ac_save_LDFLAGS=$LDFLAGS
30453 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30454 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30455 # check for ICE first), but we must link in the order -lSM -lICE or
30456 # we get undefined symbols. So assume we have SM if we have ICE.
30457 # These have to be linked with before -lX11, unlike the other
30458 # libraries we check for below, so use a different variable.
30459 # John Interrante, Karl Berry
30460 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30461 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30462 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30463 echo $ECHO_N "(cached) $ECHO_C" >&6
30465 ac_check_lib_save_LIBS=$LIBS
30466 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30467 cat >conftest.$ac_ext <<_ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h. */
30474 /* Override any GCC internal prototype to avoid an error.
30475 Use char because int might match the return type of a GCC
30476 builtin and then its argument prototype would still apply. */
30480 char IceConnectionNumber ();
30484 return IceConnectionNumber ();
30489 rm -f conftest.$ac_objext conftest$ac_exeext
30490 if { (ac_try="$ac_link"
30491 case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_link") 2>conftest.er1
30498 grep -v '^ *+' conftest.er1 >conftest.err
30500 cat conftest.err >&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } && {
30503 test -z "$ac_c_werror_flag" ||
30504 test ! -s conftest.err
30505 } && test -s conftest$ac_exeext &&
30506 $as_test_x conftest$ac_exeext; then
30507 ac_cv_lib_ICE_IceConnectionNumber=yes
30509 echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30512 ac_cv_lib_ICE_IceConnectionNumber=no
30515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30516 conftest$ac_exeext conftest.$ac_ext
30517 LIBS=$ac_check_lib_save_LIBS
30519 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30520 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30521 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30522 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30525 LDFLAGS=$ac_save_LDFLAGS
30591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30596 echo $ECHO_N "(cached) $ECHO_C" >&6
30598 ac_res=`eval echo '${'$as_ac_Header'}'`
30599 { echo "$as_me:$LINENO: result: $ac_res" >&5
30600 echo "${ECHO_T}$ac_res" >&6; }
30602 # Is the header compilable?
30603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30605 cat >conftest.$ac_ext <<_ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h. */
30611 $ac_includes_default
30612 #include <$ac_header>
30614 rm -f conftest.$ac_objext
30615 if { (ac_try="$ac_compile"
30616 case "(($ac_try" in
30617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618 *) ac_try_echo=$ac_try;;
30620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30621 (eval "$ac_compile") 2>conftest.er1
30623 grep -v '^ *+' conftest.er1 >conftest.err
30625 cat conftest.err >&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } && {
30628 test -z "$ac_c_werror_flag" ||
30629 test ! -s conftest.err
30630 } && test -s conftest.$ac_objext; then
30631 ac_header_compiler=yes
30633 echo "$as_me: failed program was:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30636 ac_header_compiler=no
30639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30641 echo "${ECHO_T}$ac_header_compiler" >&6; }
30643 # Is the header present?
30644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30646 cat >conftest.$ac_ext <<_ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h. */
30652 #include <$ac_header>
30654 if { (ac_try="$ac_cpp conftest.$ac_ext"
30655 case "(($ac_try" in
30656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657 *) ac_try_echo=$ac_try;;
30659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30662 grep -v '^ *+' conftest.er1 >conftest.err
30664 cat conftest.err >&5
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); } >/dev/null && {
30667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30668 test ! -s conftest.err
30670 ac_header_preproc=yes
30672 echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30675 ac_header_preproc=no
30678 rm -f conftest.err conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30680 echo "${ECHO_T}$ac_header_preproc" >&6; }
30682 # So? What about this header?
30683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30689 ac_header_preproc=yes
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30712 eval "$as_ac_Header=\$ac_header_preproc"
30714 ac_res=`eval echo '${'$as_ac_Header'}'`
30715 { echo "$as_me:$LINENO: result: $ac_res" >&5
30716 echo "${ECHO_T}$ac_res" >&6; }
30719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30720 cat >>confdefs.h <<_ACEOF
30721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30730 if test "${ac_cv_header_stdc+set}" = set; then
30731 echo $ECHO_N "(cached) $ECHO_C" >&6
30733 cat >conftest.$ac_ext <<_ACEOF
30736 cat confdefs.h >>conftest.$ac_ext
30737 cat >>conftest.$ac_ext <<_ACEOF
30738 /* end confdefs.h. */
30739 #include <stdlib.h>
30740 #include <stdarg.h>
30741 #include <string.h>
30752 rm -f conftest.$ac_objext
30753 if { (ac_try="$ac_compile"
30754 case "(($ac_try" in
30755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756 *) ac_try_echo=$ac_try;;
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759 (eval "$ac_compile") 2>conftest.er1
30761 grep -v '^ *+' conftest.er1 >conftest.err
30763 cat conftest.err >&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } && {
30766 test -z "$ac_c_werror_flag" ||
30767 test ! -s conftest.err
30768 } && test -s conftest.$ac_objext; then
30769 ac_cv_header_stdc=yes
30771 echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30774 ac_cv_header_stdc=no
30777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30779 if test $ac_cv_header_stdc = yes; then
30780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30781 cat >conftest.$ac_ext <<_ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h. */
30787 #include <string.h>
30790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30791 $EGREP "memchr" >/dev/null 2>&1; then
30794 ac_cv_header_stdc=no
30800 if test $ac_cv_header_stdc = yes; then
30801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30802 cat >conftest.$ac_ext <<_ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h. */
30808 #include <stdlib.h>
30811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30812 $EGREP "free" >/dev/null 2>&1; then
30815 ac_cv_header_stdc=no
30821 if test $ac_cv_header_stdc = yes; then
30822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30823 if test "$cross_compiling" = yes; then
30826 cat >conftest.$ac_ext <<_ACEOF
30829 cat confdefs.h >>conftest.$ac_ext
30830 cat >>conftest.$ac_ext <<_ACEOF
30831 /* end confdefs.h. */
30833 #include <stdlib.h>
30834 #if ((' ' & 0x0FF) == 0x020)
30835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30838 # define ISLOWER(c) \
30839 (('a' <= (c) && (c) <= 'i') \
30840 || ('j' <= (c) && (c) <= 'r') \
30841 || ('s' <= (c) && (c) <= 'z'))
30842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30850 for (i = 0; i < 256; i++)
30851 if (XOR (islower (i), ISLOWER (i))
30852 || toupper (i) != TOUPPER (i))
30857 rm -f conftest$ac_exeext
30858 if { (ac_try="$ac_link"
30859 case "(($ac_try" in
30860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861 *) ac_try_echo=$ac_try;;
30863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864 (eval "$ac_link") 2>&5
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30868 { (case "(($ac_try" in
30869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870 *) ac_try_echo=$ac_try;;
30872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30873 (eval "$ac_try") 2>&5
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); }; }; then
30879 echo "$as_me: program exited with status $ac_status" >&5
30880 echo "$as_me: failed program was:" >&5
30881 sed 's/^/| /' conftest.$ac_ext >&5
30883 ( exit $ac_status )
30884 ac_cv_header_stdc=no
30886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30894 if test $ac_cv_header_stdc = yes; then
30896 cat >>confdefs.h <<\_ACEOF
30897 #define STDC_HEADERS 1
30902 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30903 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30904 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30905 echo $ECHO_N "(cached) $ECHO_C" >&6
30907 cat >conftest.$ac_ext <<_ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h. */
30913 #include <sys/types.h>
30917 return makedev(0, 0);
30922 rm -f conftest.$ac_objext conftest$ac_exeext
30923 if { (ac_try="$ac_link"
30924 case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_link") 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } && {
30936 test -z "$ac_c_werror_flag" ||
30937 test ! -s conftest.err
30938 } && test -s conftest$ac_exeext &&
30939 $as_test_x conftest$ac_exeext; then
30940 ac_cv_header_sys_types_h_makedev=yes
30942 echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30945 ac_cv_header_sys_types_h_makedev=no
30948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30949 conftest$ac_exeext conftest.$ac_ext
30952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30953 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30955 if test $ac_cv_header_sys_types_h_makedev = no; then
30956 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30957 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30958 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30959 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30960 echo $ECHO_N "(cached) $ECHO_C" >&6
30962 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30963 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30965 # Is the header compilable?
30966 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30967 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30968 cat >conftest.$ac_ext <<_ACEOF
30971 cat confdefs.h >>conftest.$ac_ext
30972 cat >>conftest.$ac_ext <<_ACEOF
30973 /* end confdefs.h. */
30974 $ac_includes_default
30975 #include <sys/mkdev.h>
30977 rm -f conftest.$ac_objext
30978 if { (ac_try="$ac_compile"
30979 case "(($ac_try" in
30980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30981 *) ac_try_echo=$ac_try;;
30983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30984 (eval "$ac_compile") 2>conftest.er1
30986 grep -v '^ *+' conftest.er1 >conftest.err
30988 cat conftest.err >&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } && {
30991 test -z "$ac_c_werror_flag" ||
30992 test ! -s conftest.err
30993 } && test -s conftest.$ac_objext; then
30994 ac_header_compiler=yes
30996 echo "$as_me: failed program was:" >&5
30997 sed 's/^/| /' conftest.$ac_ext >&5
30999 ac_header_compiler=no
31002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31004 echo "${ECHO_T}$ac_header_compiler" >&6; }
31006 # Is the header present?
31007 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31008 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31009 cat >conftest.$ac_ext <<_ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h. */
31015 #include <sys/mkdev.h>
31017 if { (ac_try="$ac_cpp conftest.$ac_ext"
31018 case "(($ac_try" in
31019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31020 *) ac_try_echo=$ac_try;;
31022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31025 grep -v '^ *+' conftest.er1 >conftest.err
31027 cat conftest.err >&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } >/dev/null && {
31030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31031 test ! -s conftest.err
31033 ac_header_preproc=yes
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 ac_header_preproc=no
31041 rm -f conftest.err conftest.$ac_ext
31042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31043 echo "${ECHO_T}$ac_header_preproc" >&6; }
31045 # So? What about this header?
31046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31048 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31049 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31050 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31051 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31052 ac_header_preproc=yes
31055 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31056 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31057 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31058 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31060 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31062 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31064 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31066 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31070 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31071 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31072 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31073 echo $ECHO_N "(cached) $ECHO_C" >&6
31075 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31078 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31081 if test $ac_cv_header_sys_mkdev_h = yes; then
31083 cat >>confdefs.h <<\_ACEOF
31084 #define MAJOR_IN_MKDEV 1
31091 if test $ac_cv_header_sys_mkdev_h = no; then
31092 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31093 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31094 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31095 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31096 echo $ECHO_N "(cached) $ECHO_C" >&6
31098 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31099 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31101 # Is the header compilable?
31102 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31103 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31104 cat >conftest.$ac_ext <<_ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h. */
31110 $ac_includes_default
31111 #include <sys/sysmacros.h>
31113 rm -f conftest.$ac_objext
31114 if { (ac_try="$ac_compile"
31115 case "(($ac_try" in
31116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31117 *) ac_try_echo=$ac_try;;
31119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31120 (eval "$ac_compile") 2>conftest.er1
31122 grep -v '^ *+' conftest.er1 >conftest.err
31124 cat conftest.err >&5
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); } && {
31127 test -z "$ac_c_werror_flag" ||
31128 test ! -s conftest.err
31129 } && test -s conftest.$ac_objext; then
31130 ac_header_compiler=yes
31132 echo "$as_me: failed program was:" >&5
31133 sed 's/^/| /' conftest.$ac_ext >&5
31135 ac_header_compiler=no
31138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31140 echo "${ECHO_T}$ac_header_compiler" >&6; }
31142 # Is the header present?
31143 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31144 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31145 cat >conftest.$ac_ext <<_ACEOF
31148 cat confdefs.h >>conftest.$ac_ext
31149 cat >>conftest.$ac_ext <<_ACEOF
31150 /* end confdefs.h. */
31151 #include <sys/sysmacros.h>
31153 if { (ac_try="$ac_cpp conftest.$ac_ext"
31154 case "(($ac_try" in
31155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156 *) ac_try_echo=$ac_try;;
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31161 grep -v '^ *+' conftest.er1 >conftest.err
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } >/dev/null && {
31166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31167 test ! -s conftest.err
31169 ac_header_preproc=yes
31171 echo "$as_me: failed program was:" >&5
31172 sed 's/^/| /' conftest.$ac_ext >&5
31174 ac_header_preproc=no
31177 rm -f conftest.err conftest.$ac_ext
31178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31179 echo "${ECHO_T}$ac_header_preproc" >&6; }
31181 # So? What about this header?
31182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31184 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31185 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31186 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31187 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31188 ac_header_preproc=yes
31191 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31192 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31193 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31194 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31195 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31196 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31197 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31198 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31199 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31200 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31201 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31202 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31206 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31207 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31208 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31209 echo $ECHO_N "(cached) $ECHO_C" >&6
31211 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31213 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31214 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31217 if test $ac_cv_header_sys_sysmacros_h = yes; then
31219 cat >>confdefs.h <<\_ACEOF
31220 #define MAJOR_IN_SYSMACROS 1
31234 ac_header_dirent=no
31235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31236 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31237 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31238 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31240 echo $ECHO_N "(cached) $ECHO_C" >&6
31242 cat >conftest.$ac_ext <<_ACEOF
31245 cat confdefs.h >>conftest.$ac_ext
31246 cat >>conftest.$ac_ext <<_ACEOF
31247 /* end confdefs.h. */
31248 #include <sys/types.h>
31260 rm -f conftest.$ac_objext
31261 if { (ac_try="$ac_compile"
31262 case "(($ac_try" in
31263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264 *) ac_try_echo=$ac_try;;
31266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267 (eval "$ac_compile") 2>conftest.er1
31269 grep -v '^ *+' conftest.er1 >conftest.err
31271 cat conftest.err >&5
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); } && {
31274 test -z "$ac_c_werror_flag" ||
31275 test ! -s conftest.err
31276 } && test -s conftest.$ac_objext; then
31277 eval "$as_ac_Header=yes"
31279 echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31282 eval "$as_ac_Header=no"
31285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31287 ac_res=`eval echo '${'$as_ac_Header'}'`
31288 { echo "$as_me:$LINENO: result: $ac_res" >&5
31289 echo "${ECHO_T}$ac_res" >&6; }
31290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31291 cat >>confdefs.h <<_ACEOF
31292 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31295 ac_header_dirent=$ac_hdr; break
31299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31300 if test $ac_header_dirent = dirent.h; then
31301 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31303 if test "${ac_cv_search_opendir+set}" = set; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31306 ac_func_search_save_LIBS=$LIBS
31307 cat >conftest.$ac_ext <<_ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h. */
31314 /* Override any GCC internal prototype to avoid an error.
31315 Use char because int might match the return type of a GCC
31316 builtin and then its argument prototype would still apply. */
31329 for ac_lib in '' dir; do
31330 if test -z "$ac_lib"; then
31331 ac_res="none required"
31334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31336 rm -f conftest.$ac_objext conftest$ac_exeext
31337 if { (ac_try="$ac_link"
31338 case "(($ac_try" in
31339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340 *) ac_try_echo=$ac_try;;
31342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343 (eval "$ac_link") 2>conftest.er1
31345 grep -v '^ *+' conftest.er1 >conftest.err
31347 cat conftest.err >&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); } && {
31350 test -z "$ac_c_werror_flag" ||
31351 test ! -s conftest.err
31352 } && test -s conftest$ac_exeext &&
31353 $as_test_x conftest$ac_exeext; then
31354 ac_cv_search_opendir=$ac_res
31356 echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31364 if test "${ac_cv_search_opendir+set}" = set; then
31368 if test "${ac_cv_search_opendir+set}" = set; then
31371 ac_cv_search_opendir=no
31373 rm conftest.$ac_ext
31374 LIBS=$ac_func_search_save_LIBS
31376 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31377 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31378 ac_res=$ac_cv_search_opendir
31379 if test "$ac_res" != no; then
31380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31385 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31387 if test "${ac_cv_search_opendir+set}" = set; then
31388 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 ac_func_search_save_LIBS=$LIBS
31391 cat >conftest.$ac_ext <<_ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h. */
31398 /* Override any GCC internal prototype to avoid an error.
31399 Use char because int might match the return type of a GCC
31400 builtin and then its argument prototype would still apply. */
31413 for ac_lib in '' x; do
31414 if test -z "$ac_lib"; then
31415 ac_res="none required"
31418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31420 rm -f conftest.$ac_objext conftest$ac_exeext
31421 if { (ac_try="$ac_link"
31422 case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427 (eval "$ac_link") 2>conftest.er1
31429 grep -v '^ *+' conftest.er1 >conftest.err
31431 cat conftest.err >&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } && {
31434 test -z "$ac_c_werror_flag" ||
31435 test ! -s conftest.err
31436 } && test -s conftest$ac_exeext &&
31437 $as_test_x conftest$ac_exeext; then
31438 ac_cv_search_opendir=$ac_res
31440 echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31448 if test "${ac_cv_search_opendir+set}" = set; then
31452 if test "${ac_cv_search_opendir+set}" = set; then
31455 ac_cv_search_opendir=no
31457 rm conftest.$ac_ext
31458 LIBS=$ac_func_search_save_LIBS
31460 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31461 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31462 ac_res=$ac_cv_search_opendir
31463 if test "$ac_res" != no; then
31464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31470 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31471 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31472 if test "${ac_cv_header_stat_broken+set}" = set; then
31473 echo $ECHO_N "(cached) $ECHO_C" >&6
31475 cat >conftest.$ac_ext <<_ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h. */
31481 #include <sys/types.h>
31482 #include <sys/stat.h>
31484 #if defined S_ISBLK && defined S_IFDIR
31485 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31488 #if defined S_ISBLK && defined S_IFCHR
31489 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31492 #if defined S_ISLNK && defined S_IFREG
31493 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31496 #if defined S_ISSOCK && defined S_IFREG
31497 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31501 rm -f conftest.$ac_objext
31502 if { (ac_try="$ac_compile"
31503 case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_compile") 2>conftest.er1
31510 grep -v '^ *+' conftest.er1 >conftest.err
31512 cat conftest.err >&5
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); } && {
31515 test -z "$ac_c_werror_flag" ||
31516 test ! -s conftest.err
31517 } && test -s conftest.$ac_objext; then
31518 ac_cv_header_stat_broken=no
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31523 ac_cv_header_stat_broken=yes
31526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31528 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31529 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31530 if test $ac_cv_header_stat_broken = yes; then
31532 cat >>confdefs.h <<\_ACEOF
31533 #define STAT_MACROS_BROKEN 1
31538 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31539 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31540 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31541 echo $ECHO_N "(cached) $ECHO_C" >&6
31543 cat >conftest.$ac_ext <<_ACEOF
31546 cat confdefs.h >>conftest.$ac_ext
31547 cat >>conftest.$ac_ext <<_ACEOF
31548 /* end confdefs.h. */
31549 #include <sys/types.h>
31550 #include <sys/wait.h>
31551 #ifndef WEXITSTATUS
31552 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31555 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31563 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31568 rm -f conftest.$ac_objext
31569 if { (ac_try="$ac_compile"
31570 case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_compile") 2>conftest.er1
31577 grep -v '^ *+' conftest.er1 >conftest.err
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } && {
31582 test -z "$ac_c_werror_flag" ||
31583 test ! -s conftest.err
31584 } && test -s conftest.$ac_objext; then
31585 ac_cv_header_sys_wait_h=yes
31587 echo "$as_me: failed program was:" >&5
31588 sed 's/^/| /' conftest.$ac_ext >&5
31590 ac_cv_header_sys_wait_h=no
31593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31595 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31596 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31597 if test $ac_cv_header_sys_wait_h = yes; then
31599 cat >>confdefs.h <<\_ACEOF
31600 #define HAVE_SYS_WAIT_H 1
31605 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31606 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31607 if test "${ac_cv_header_time+set}" = set; then
31608 echo $ECHO_N "(cached) $ECHO_C" >&6
31610 cat >conftest.$ac_ext <<_ACEOF
31613 cat confdefs.h >>conftest.$ac_ext
31614 cat >>conftest.$ac_ext <<_ACEOF
31615 /* end confdefs.h. */
31616 #include <sys/types.h>
31617 #include <sys/time.h>
31623 if ((struct tm *) 0)
31629 rm -f conftest.$ac_objext
31630 if { (ac_try="$ac_compile"
31631 case "(($ac_try" in
31632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633 *) ac_try_echo=$ac_try;;
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636 (eval "$ac_compile") 2>conftest.er1
31638 grep -v '^ *+' conftest.er1 >conftest.err
31640 cat conftest.err >&5
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); } && {
31643 test -z "$ac_c_werror_flag" ||
31644 test ! -s conftest.err
31645 } && test -s conftest.$ac_objext; then
31646 ac_cv_header_time=yes
31648 echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.$ac_ext >&5
31651 ac_cv_header_time=no
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31656 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31657 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31658 if test $ac_cv_header_time = yes; then
31660 cat >>confdefs.h <<\_ACEOF
31661 #define TIME_WITH_SYS_TIME 1
31666 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31667 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31668 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31669 echo $ECHO_N "(cached) $ECHO_C" >&6
31671 cat >conftest.$ac_ext <<_ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h. */
31677 $ac_includes_default
31681 static struct stat ac_aggr;
31682 if (ac_aggr.st_blksize)
31688 rm -f conftest.$ac_objext
31689 if { (ac_try="$ac_compile"
31690 case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_compile") 2>conftest.er1
31697 grep -v '^ *+' conftest.er1 >conftest.err
31699 cat conftest.err >&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); } && {
31702 test -z "$ac_c_werror_flag" ||
31703 test ! -s conftest.err
31704 } && test -s conftest.$ac_objext; then
31705 ac_cv_member_struct_stat_st_blksize=yes
31707 echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.$ac_ext >&5
31710 cat >conftest.$ac_ext <<_ACEOF
31713 cat confdefs.h >>conftest.$ac_ext
31714 cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h. */
31716 $ac_includes_default
31720 static struct stat ac_aggr;
31721 if (sizeof ac_aggr.st_blksize)
31727 rm -f conftest.$ac_objext
31728 if { (ac_try="$ac_compile"
31729 case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_compile") 2>conftest.er1
31736 grep -v '^ *+' conftest.er1 >conftest.err
31738 cat conftest.err >&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); } && {
31741 test -z "$ac_c_werror_flag" ||
31742 test ! -s conftest.err
31743 } && test -s conftest.$ac_objext; then
31744 ac_cv_member_struct_stat_st_blksize=yes
31746 echo "$as_me: failed program was:" >&5
31747 sed 's/^/| /' conftest.$ac_ext >&5
31749 ac_cv_member_struct_stat_st_blksize=no
31752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31758 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31759 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31761 cat >>confdefs.h <<_ACEOF
31762 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31766 cat >>confdefs.h <<\_ACEOF
31767 #define HAVE_ST_BLKSIZE 1
31773 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31774 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31775 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31778 cat >conftest.$ac_ext <<_ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h. */
31784 $ac_includes_default
31788 static struct stat ac_aggr;
31789 if (ac_aggr.st_blocks)
31795 rm -f conftest.$ac_objext
31796 if { (ac_try="$ac_compile"
31797 case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_compile") 2>conftest.er1
31804 grep -v '^ *+' conftest.er1 >conftest.err
31806 cat conftest.err >&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); } && {
31809 test -z "$ac_c_werror_flag" ||
31810 test ! -s conftest.err
31811 } && test -s conftest.$ac_objext; then
31812 ac_cv_member_struct_stat_st_blocks=yes
31814 echo "$as_me: failed program was:" >&5
31815 sed 's/^/| /' conftest.$ac_ext >&5
31817 cat >conftest.$ac_ext <<_ACEOF
31820 cat confdefs.h >>conftest.$ac_ext
31821 cat >>conftest.$ac_ext <<_ACEOF
31822 /* end confdefs.h. */
31823 $ac_includes_default
31827 static struct stat ac_aggr;
31828 if (sizeof ac_aggr.st_blocks)
31834 rm -f conftest.$ac_objext
31835 if { (ac_try="$ac_compile"
31836 case "(($ac_try" in
31837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31838 *) ac_try_echo=$ac_try;;
31840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31841 (eval "$ac_compile") 2>conftest.er1
31843 grep -v '^ *+' conftest.er1 >conftest.err
31845 cat conftest.err >&5
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); } && {
31848 test -z "$ac_c_werror_flag" ||
31849 test ! -s conftest.err
31850 } && test -s conftest.$ac_objext; then
31851 ac_cv_member_struct_stat_st_blocks=yes
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31856 ac_cv_member_struct_stat_st_blocks=no
31859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31864 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31865 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31866 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31868 cat >>confdefs.h <<_ACEOF
31869 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31873 cat >>confdefs.h <<\_ACEOF
31874 #define HAVE_ST_BLOCKS 1
31878 case " $LIBOBJS " in
31879 *" fileblocks.$ac_objext "* ) ;;
31880 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31887 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31888 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31889 if test "${ac_cv_struct_tm+set}" = set; then
31890 echo $ECHO_N "(cached) $ECHO_C" >&6
31892 cat >conftest.$ac_ext <<_ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h. */
31898 #include <sys/types.h>
31905 int *p = &tm.tm_sec;
31911 rm -f conftest.$ac_objext
31912 if { (ac_try="$ac_compile"
31913 case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_compile") 2>conftest.er1
31920 grep -v '^ *+' conftest.er1 >conftest.err
31922 cat conftest.err >&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); } && {
31925 test -z "$ac_c_werror_flag" ||
31926 test ! -s conftest.err
31927 } && test -s conftest.$ac_objext; then
31928 ac_cv_struct_tm=time.h
31930 echo "$as_me: failed program was:" >&5
31931 sed 's/^/| /' conftest.$ac_ext >&5
31933 ac_cv_struct_tm=sys/time.h
31936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31938 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31939 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31940 if test $ac_cv_struct_tm = sys/time.h; then
31942 cat >>confdefs.h <<\_ACEOF
31943 #define TM_IN_SYS_TIME 1
31948 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31949 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31950 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31951 echo $ECHO_N "(cached) $ECHO_C" >&6
31953 cat >conftest.$ac_ext <<_ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h. */
31959 #include <sys/types.h>
31960 #include <$ac_cv_struct_tm>
31966 static struct tm ac_aggr;
31967 if (ac_aggr.tm_zone)
31973 rm -f conftest.$ac_objext
31974 if { (ac_try="$ac_compile"
31975 case "(($ac_try" in
31976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977 *) ac_try_echo=$ac_try;;
31979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980 (eval "$ac_compile") 2>conftest.er1
31982 grep -v '^ *+' conftest.er1 >conftest.err
31984 cat conftest.err >&5
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); } && {
31987 test -z "$ac_c_werror_flag" ||
31988 test ! -s conftest.err
31989 } && test -s conftest.$ac_objext; then
31990 ac_cv_member_struct_tm_tm_zone=yes
31992 echo "$as_me: failed program was:" >&5
31993 sed 's/^/| /' conftest.$ac_ext >&5
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32001 #include <sys/types.h>
32002 #include <$ac_cv_struct_tm>
32008 static struct tm ac_aggr;
32009 if (sizeof ac_aggr.tm_zone)
32015 rm -f conftest.$ac_objext
32016 if { (ac_try="$ac_compile"
32017 case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_compile") 2>conftest.er1
32024 grep -v '^ *+' conftest.er1 >conftest.err
32026 cat conftest.err >&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); } && {
32029 test -z "$ac_c_werror_flag" ||
32030 test ! -s conftest.err
32031 } && test -s conftest.$ac_objext; then
32032 ac_cv_member_struct_tm_tm_zone=yes
32034 echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32037 ac_cv_member_struct_tm_tm_zone=no
32040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32045 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32046 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32047 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32049 cat >>confdefs.h <<_ACEOF
32050 #define HAVE_STRUCT_TM_TM_ZONE 1
32056 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32058 cat >>confdefs.h <<\_ACEOF
32059 #define HAVE_TM_ZONE 1
32063 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32064 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32065 if test "${ac_cv_have_decl_tzname+set}" = set; then
32066 echo $ECHO_N "(cached) $ECHO_C" >&6
32068 cat >conftest.$ac_ext <<_ACEOF
32071 cat confdefs.h >>conftest.$ac_ext
32072 cat >>conftest.$ac_ext <<_ACEOF
32073 /* end confdefs.h. */
32087 rm -f conftest.$ac_objext
32088 if { (ac_try="$ac_compile"
32089 case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_compile") 2>conftest.er1
32096 grep -v '^ *+' conftest.er1 >conftest.err
32098 cat conftest.err >&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } && {
32101 test -z "$ac_c_werror_flag" ||
32102 test ! -s conftest.err
32103 } && test -s conftest.$ac_objext; then
32104 ac_cv_have_decl_tzname=yes
32106 echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32109 ac_cv_have_decl_tzname=no
32112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32114 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32115 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32116 if test $ac_cv_have_decl_tzname = yes; then
32118 cat >>confdefs.h <<_ACEOF
32119 #define HAVE_DECL_TZNAME 1
32124 cat >>confdefs.h <<_ACEOF
32125 #define HAVE_DECL_TZNAME 0
32132 { echo "$as_me:$LINENO: checking for tzname" >&5
32133 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32134 if test "${ac_cv_var_tzname+set}" = set; then
32135 echo $ECHO_N "(cached) $ECHO_C" >&6
32137 cat >conftest.$ac_ext <<_ACEOF
32140 cat confdefs.h >>conftest.$ac_ext
32141 cat >>conftest.$ac_ext <<_ACEOF
32142 /* end confdefs.h. */
32144 #if !HAVE_DECL_TZNAME
32145 extern char *tzname[];
32151 return tzname[0][0];
32156 rm -f conftest.$ac_objext conftest$ac_exeext
32157 if { (ac_try="$ac_link"
32158 case "(($ac_try" in
32159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160 *) ac_try_echo=$ac_try;;
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_link") 2>conftest.er1
32165 grep -v '^ *+' conftest.er1 >conftest.err
32167 cat conftest.err >&5
32168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169 (exit $ac_status); } && {
32170 test -z "$ac_c_werror_flag" ||
32171 test ! -s conftest.err
32172 } && test -s conftest$ac_exeext &&
32173 $as_test_x conftest$ac_exeext; then
32174 ac_cv_var_tzname=yes
32176 echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32179 ac_cv_var_tzname=no
32182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32183 conftest$ac_exeext conftest.$ac_ext
32185 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32186 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32187 if test $ac_cv_var_tzname = yes; then
32189 cat >>confdefs.h <<\_ACEOF
32190 #define HAVE_TZNAME 1
32197 { echo "$as_me:$LINENO: checking for utime.h" >&5
32198 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32199 if test "${ba_cv_header_utime_h+set}" = set; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32203 cat >conftest.$ac_ext <<_ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h. */
32210 #include <sys/types.h>
32223 rm -f conftest.$ac_objext
32224 if { (ac_try="$ac_compile"
32225 case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_compile") 2>conftest.er1
32232 grep -v '^ *+' conftest.er1 >conftest.err
32234 cat conftest.err >&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } && {
32237 test -z "$ac_c_werror_flag" ||
32238 test ! -s conftest.err
32239 } && test -s conftest.$ac_objext; then
32241 ba_cv_header_utime_h=yes
32244 echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32248 ba_cv_header_utime_h=no
32253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32258 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32259 test $ba_cv_header_utime_h = yes &&
32260 cat >>confdefs.h <<\_ACEOF
32261 #define HAVE_UTIME_H 1
32265 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32266 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32267 if test "${ba_cv_header_socklen_t+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32271 cat >conftest.$ac_ext <<_ACEOF
32274 cat confdefs.h >>conftest.$ac_ext
32275 cat >>conftest.$ac_ext <<_ACEOF
32276 /* end confdefs.h. */
32278 #include <sys/types.h>
32279 #include <sys/socket.h>
32291 rm -f conftest.$ac_objext
32292 if { (ac_try="$ac_compile"
32293 case "(($ac_try" in
32294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295 *) ac_try_echo=$ac_try;;
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298 (eval "$ac_compile") 2>conftest.er1
32300 grep -v '^ *+' conftest.er1 >conftest.err
32302 cat conftest.err >&5
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); } && {
32305 test -z "$ac_c_werror_flag" ||
32306 test ! -s conftest.err
32307 } && test -s conftest.$ac_objext; then
32309 ba_cv_header_socklen_t=yes
32312 echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32316 ba_cv_header_socklen_t=no
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32325 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32326 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32327 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32328 #define HAVE_SOCKLEN_T 1
32332 { echo "$as_me:$LINENO: checking for bigendian" >&5
32333 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32334 if test "${ba_cv_bigendian+set}" = set; then
32335 echo $ECHO_N "(cached) $ECHO_C" >&6
32338 if test "$cross_compiling" = yes; then
32344 cat >conftest.$ac_ext <<_ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h. */
32351 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32354 rm -f conftest$ac_exeext
32355 if { (ac_try="$ac_link"
32356 case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_link") 2>&5
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32365 { (case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_try") 2>&5
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); }; }; then
32375 ba_cv_bigendian=yes
32378 echo "$as_me: program exited with status $ac_status" >&5
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 ( exit $ac_status )
32387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32394 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32395 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32396 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32397 #define HAVE_BIGENDIAN 1
32402 ac_cpp='$CXXCPP $CPPFLAGS'
32403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32407 { echo "$as_me:$LINENO: checking for typeof" >&5
32408 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32409 if test "${ba_cv_have_typeof+set}" = set; then
32410 echo $ECHO_N "(cached) $ECHO_C" >&6
32413 if test "$cross_compiling" = yes; then
32415 ba_cv_have_typeof=no
32419 cat >conftest.$ac_ext <<_ACEOF
32422 cat confdefs.h >>conftest.$ac_ext
32423 cat >>conftest.$ac_ext <<_ACEOF
32424 /* end confdefs.h. */
32426 main(){char *a = 0; a = (typeof a)a;}
32429 rm -f conftest$ac_exeext
32430 if { (ac_try="$ac_link"
32431 case "(($ac_try" in
32432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433 *) ac_try_echo=$ac_try;;
32435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436 (eval "$ac_link") 2>&5
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32450 ba_cv_have_typeof=yes
32453 echo "$as_me: program exited with status $ac_status" >&5
32454 echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32457 ( exit $ac_status )
32459 ba_cv_have_typeof=no
32462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32469 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32470 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32471 test $ba_cv_have_typeof = yes &&
32472 cat >>confdefs.h <<\_ACEOF
32473 #define HAVE_TYPEOF 1
32477 ac_cpp='$CPP $CPPFLAGS'
32478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32483 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32484 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32485 if test "${ac_cv_c_const+set}" = set; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32488 cat >conftest.$ac_ext <<_ACEOF
32491 cat confdefs.h >>conftest.$ac_ext
32492 cat >>conftest.$ac_ext <<_ACEOF
32493 /* end confdefs.h. */
32498 /* FIXME: Include the comments suggested by Paul. */
32499 #ifndef __cplusplus
32500 /* Ultrix mips cc rejects this. */
32501 typedef int charset[2];
32503 /* SunOS 4.1.1 cc rejects this. */
32504 char const *const *pcpcc;
32506 /* NEC SVR4.0.2 mips cc rejects this. */
32507 struct point {int x, y;};
32508 static struct point const zero = {0,0};
32509 /* AIX XL C 1.02.0.0 rejects this.
32510 It does not let you subtract one const X* pointer from another in
32511 an arm of an if-expression whose if-part is not a constant
32513 const char *g = "string";
32514 pcpcc = &g + (g ? g-g : 0);
32515 /* HPUX 7.0 cc rejects these. */
32517 ppc = (char**) pcpcc;
32518 pcpcc = (char const *const *) ppc;
32519 { /* SCO 3.2v4 cc rejects this. */
32521 char const *s = 0 ? (char *) 0 : (char const *) 0;
32526 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32527 int x[] = {25, 17};
32528 const int *foo = &x[0];
32531 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32532 typedef const int *iptr;
32536 { /* AIX XL C 1.02.0.0 rejects this saying
32537 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32538 struct s { int j; const int *ap[3]; };
32539 struct s *b; b->j = 5;
32541 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32542 const int foo = 10;
32543 if (!foo) return 0;
32545 return !cs[0] && !zero.x;
32552 rm -f conftest.$ac_objext
32553 if { (ac_try="$ac_compile"
32554 case "(($ac_try" in
32555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556 *) ac_try_echo=$ac_try;;
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559 (eval "$ac_compile") 2>conftest.er1
32561 grep -v '^ *+' conftest.er1 >conftest.err
32563 cat conftest.err >&5
32564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565 (exit $ac_status); } && {
32566 test -z "$ac_c_werror_flag" ||
32567 test ! -s conftest.err
32568 } && test -s conftest.$ac_objext; then
32571 echo "$as_me: failed program was:" >&5
32572 sed 's/^/| /' conftest.$ac_ext >&5
32577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32579 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32580 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32581 if test $ac_cv_c_const = no; then
32583 cat >>confdefs.h <<\_ACEOF
32590 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32591 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32593 # The order of these tests is important.
32594 cat >conftest.$ac_ext <<_ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h. */
32601 #include <sys/statvfs.h>
32602 #include <sys/fstyp.h>
32605 if { (ac_try="$ac_cpp conftest.$ac_ext"
32606 case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32613 grep -v '^ *+' conftest.er1 >conftest.err
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } >/dev/null && {
32618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32619 test ! -s conftest.err
32621 cat >>confdefs.h <<\_ACEOF
32622 #define FSTYPE_STATVFS 1
32627 echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32633 rm -f conftest.err conftest.$ac_ext
32634 if test $fstype = no; then
32635 cat >conftest.$ac_ext <<_ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32642 #include <sys/statfs.h>
32643 #include <sys/fstyp.h>
32646 if { (ac_try="$ac_cpp conftest.$ac_ext"
32647 case "(($ac_try" in
32648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649 *) ac_try_echo=$ac_try;;
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32654 grep -v '^ *+' conftest.er1 >conftest.err
32656 cat conftest.err >&5
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } >/dev/null && {
32659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32660 test ! -s conftest.err
32662 cat >>confdefs.h <<\_ACEOF
32663 #define FSTYPE_USG_STATFS 1
32668 echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32674 rm -f conftest.err conftest.$ac_ext
32676 if test $fstype = no; then
32677 cat >conftest.$ac_ext <<_ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h. */
32684 #include <sys/statfs.h>
32685 #include <sys/vmount.h>
32688 if { (ac_try="$ac_cpp conftest.$ac_ext"
32689 case "(($ac_try" in
32690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691 *) ac_try_echo=$ac_try;;
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32696 grep -v '^ *+' conftest.er1 >conftest.err
32698 cat conftest.err >&5
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); } >/dev/null && {
32701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32702 test ! -s conftest.err
32704 cat >>confdefs.h <<\_ACEOF
32705 #define FSTYPE_AIX_STATFS 1
32710 echo "$as_me: failed program was:" >&5
32711 sed 's/^/| /' conftest.$ac_ext >&5
32716 rm -f conftest.err conftest.$ac_ext
32718 if test $fstype = no; then
32719 cat >conftest.$ac_ext <<_ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h. */
32726 #include <mntent.h>
32729 if { (ac_try="$ac_cpp conftest.$ac_ext"
32730 case "(($ac_try" in
32731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732 *) ac_try_echo=$ac_try;;
32734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32737 grep -v '^ *+' conftest.er1 >conftest.err
32739 cat conftest.err >&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } >/dev/null && {
32742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32743 test ! -s conftest.err
32745 cat >>confdefs.h <<\_ACEOF
32746 #define FSTYPE_MNTENT 1
32751 echo "$as_me: failed program was:" >&5
32752 sed 's/^/| /' conftest.$ac_ext >&5
32757 rm -f conftest.err conftest.$ac_ext
32759 if test $fstype = no; then
32760 cat >conftest.$ac_ext <<_ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h. */
32766 #include <sys/mount.h>
32769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32770 $EGREP "f_type;" >/dev/null 2>&1; then
32771 cat >>confdefs.h <<\_ACEOF
32772 #define FSTYPE_STATFS 1
32779 if test $fstype = no; then
32780 cat >conftest.$ac_ext <<_ACEOF
32783 cat confdefs.h >>conftest.$ac_ext
32784 cat >>conftest.$ac_ext <<_ACEOF
32785 /* end confdefs.h. */
32787 #include <sys/mount.h>
32788 #include <sys/fs_types.h>
32791 if { (ac_try="$ac_cpp conftest.$ac_ext"
32792 case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32799 grep -v '^ *+' conftest.er1 >conftest.err
32801 cat conftest.err >&5
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); } >/dev/null && {
32804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32805 test ! -s conftest.err
32807 cat >>confdefs.h <<\_ACEOF
32808 #define FSTYPE_GETMNT 1
32813 echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32819 rm -f conftest.err conftest.$ac_ext
32821 { echo "$as_me:$LINENO: result: $fstype" >&5
32822 echo "${ECHO_T}$fstype" >&6; }
32824 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32825 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32826 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32827 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32828 echo $ECHO_N "(cached) $ECHO_C" >&6
32830 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32831 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32833 # Is the header compilable?
32834 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32835 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32836 cat >conftest.$ac_ext <<_ACEOF
32839 cat confdefs.h >>conftest.$ac_ext
32840 cat >>conftest.$ac_ext <<_ACEOF
32841 /* end confdefs.h. */
32842 $ac_includes_default
32843 #include <sys/statvfs.h>
32845 rm -f conftest.$ac_objext
32846 if { (ac_try="$ac_compile"
32847 case "(($ac_try" in
32848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849 *) ac_try_echo=$ac_try;;
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852 (eval "$ac_compile") 2>conftest.er1
32854 grep -v '^ *+' conftest.er1 >conftest.err
32856 cat conftest.err >&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } && {
32859 test -z "$ac_c_werror_flag" ||
32860 test ! -s conftest.err
32861 } && test -s conftest.$ac_objext; then
32862 ac_header_compiler=yes
32864 echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32867 ac_header_compiler=no
32870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32872 echo "${ECHO_T}$ac_header_compiler" >&6; }
32874 # Is the header present?
32875 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32876 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32877 cat >conftest.$ac_ext <<_ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h. */
32883 #include <sys/statvfs.h>
32885 if { (ac_try="$ac_cpp conftest.$ac_ext"
32886 case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32893 grep -v '^ *+' conftest.er1 >conftest.err
32895 cat conftest.err >&5
32896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897 (exit $ac_status); } >/dev/null && {
32898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32899 test ! -s conftest.err
32901 ac_header_preproc=yes
32903 echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32906 ac_header_preproc=no
32909 rm -f conftest.err conftest.$ac_ext
32910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32911 echo "${ECHO_T}$ac_header_preproc" >&6; }
32913 # So? What about this header?
32914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32916 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32917 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32918 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32919 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32920 ac_header_preproc=yes
32923 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32924 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32925 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32926 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32927 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32928 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32929 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32930 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32931 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32932 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32933 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32934 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32938 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32939 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32940 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32941 echo $ECHO_N "(cached) $ECHO_C" >&6
32943 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32945 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32946 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32949 if test $ac_cv_header_sys_statvfs_h = yes; then
32951 cat >>confdefs.h <<\_ACEOF
32952 #define HAVE_SYS_STATVFS_H 1
32959 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32960 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32961 if test "${ac_cv_type_signal+set}" = set; then
32962 echo $ECHO_N "(cached) $ECHO_C" >&6
32964 cat >conftest.$ac_ext <<_ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h. */
32970 #include <sys/types.h>
32971 #include <signal.h>
32976 return *(signal (0, 0)) (0) == 1;
32981 rm -f conftest.$ac_objext
32982 if { (ac_try="$ac_compile"
32983 case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_compile") 2>conftest.er1
32990 grep -v '^ *+' conftest.er1 >conftest.err
32992 cat conftest.err >&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } && {
32995 test -z "$ac_c_werror_flag" ||
32996 test ! -s conftest.err
32997 } && test -s conftest.$ac_objext; then
32998 ac_cv_type_signal=int
33000 echo "$as_me: failed program was:" >&5
33001 sed 's/^/| /' conftest.$ac_ext >&5
33003 ac_cv_type_signal=void
33006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33008 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33009 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33011 cat >>confdefs.h <<_ACEOF
33012 #define RETSIGTYPE $ac_cv_type_signal
33017 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33018 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33019 if test "${bash_cv_signal_vintage+set}" = set; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33023 cat >conftest.$ac_ext <<_ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h. */
33029 #include <signal.h>
33035 struct sigaction sa;
33036 sigemptyset(&ss); sigsuspend(&ss);
33037 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33038 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33044 rm -f conftest.$ac_objext conftest$ac_exeext
33045 if { (ac_try="$ac_link"
33046 case "(($ac_try" in
33047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048 *) ac_try_echo=$ac_try;;
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051 (eval "$ac_link") 2>conftest.er1
33053 grep -v '^ *+' conftest.er1 >conftest.err
33055 cat conftest.err >&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } && {
33058 test -z "$ac_c_werror_flag" ||
33059 test ! -s conftest.err
33060 } && test -s conftest$ac_exeext &&
33061 $as_test_x conftest$ac_exeext; then
33062 bash_cv_signal_vintage="posix"
33064 echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33068 cat >conftest.$ac_ext <<_ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h. */
33074 #include <signal.h>
33079 int mask = sigmask(SIGINT);
33080 sigsetmask(mask); sigblock(mask); sigpause(mask);
33086 rm -f conftest.$ac_objext conftest$ac_exeext
33087 if { (ac_try="$ac_link"
33088 case "(($ac_try" in
33089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090 *) ac_try_echo=$ac_try;;
33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_link") 2>conftest.er1
33095 grep -v '^ *+' conftest.er1 >conftest.err
33097 cat conftest.err >&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); } && {
33100 test -z "$ac_c_werror_flag" ||
33101 test ! -s conftest.err
33102 } && test -s conftest$ac_exeext &&
33103 $as_test_x conftest$ac_exeext; then
33104 bash_cv_signal_vintage="4.2bsd"
33106 echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33110 cat >conftest.$ac_ext <<_ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h. */
33117 #include <signal.h>
33118 RETSIGTYPE foo() { }
33123 int mask = sigmask(SIGINT);
33124 sigset(SIGINT, foo); sigrelse(SIGINT);
33125 sighold(SIGINT); sigpause(SIGINT);
33131 rm -f conftest.$ac_objext conftest$ac_exeext
33132 if { (ac_try="$ac_link"
33133 case "(($ac_try" in
33134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135 *) ac_try_echo=$ac_try;;
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138 (eval "$ac_link") 2>conftest.er1
33140 grep -v '^ *+' conftest.er1 >conftest.err
33142 cat conftest.err >&5
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } && {
33145 test -z "$ac_c_werror_flag" ||
33146 test ! -s conftest.err
33147 } && test -s conftest$ac_exeext &&
33148 $as_test_x conftest$ac_exeext; then
33149 bash_cv_signal_vintage="svr3"
33151 echo "$as_me: failed program was:" >&5
33152 sed 's/^/| /' conftest.$ac_ext >&5
33154 bash_cv_signal_vintage="v7"
33158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33159 conftest$ac_exeext conftest.$ac_ext
33163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33164 conftest$ac_exeext conftest.$ac_ext
33168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33169 conftest$ac_exeext conftest.$ac_ext
33173 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33174 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33175 if test "$bash_cv_signal_vintage" = "posix"; then
33176 cat >>confdefs.h <<\_ACEOF
33177 #define HAVE_POSIX_SIGNALS 1
33180 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33181 cat >>confdefs.h <<\_ACEOF
33182 #define HAVE_BSD_SIGNALS 1
33185 elif test "$bash_cv_signal_vintage" = "svr3"; then
33186 cat >>confdefs.h <<\_ACEOF
33187 #define HAVE_USG_SIGHOLD 1
33192 { echo "$as_me:$LINENO: checking for mode_t" >&5
33193 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33194 if test "${ac_cv_type_mode_t+set}" = set; then
33195 echo $ECHO_N "(cached) $ECHO_C" >&6
33197 cat >conftest.$ac_ext <<_ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h. */
33203 $ac_includes_default
33204 typedef mode_t ac__type_new_;
33208 if ((ac__type_new_ *) 0)
33210 if (sizeof (ac__type_new_))
33216 rm -f conftest.$ac_objext
33217 if { (ac_try="$ac_compile"
33218 case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_compile") 2>conftest.er1
33225 grep -v '^ *+' conftest.er1 >conftest.err
33227 cat conftest.err >&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); } && {
33230 test -z "$ac_c_werror_flag" ||
33231 test ! -s conftest.err
33232 } && test -s conftest.$ac_objext; then
33233 ac_cv_type_mode_t=yes
33235 echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33238 ac_cv_type_mode_t=no
33241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33243 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33244 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33245 if test $ac_cv_type_mode_t = yes; then
33249 cat >>confdefs.h <<_ACEOF
33255 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33256 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33257 if test "${ac_cv_type_uid_t+set}" = set; then
33258 echo $ECHO_N "(cached) $ECHO_C" >&6
33260 cat >conftest.$ac_ext <<_ACEOF
33263 cat confdefs.h >>conftest.$ac_ext
33264 cat >>conftest.$ac_ext <<_ACEOF
33265 /* end confdefs.h. */
33266 #include <sys/types.h>
33269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33270 $EGREP "uid_t" >/dev/null 2>&1; then
33271 ac_cv_type_uid_t=yes
33273 ac_cv_type_uid_t=no
33278 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33279 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33280 if test $ac_cv_type_uid_t = no; then
33282 cat >>confdefs.h <<\_ACEOF
33287 cat >>confdefs.h <<\_ACEOF
33293 { echo "$as_me:$LINENO: checking for size_t" >&5
33294 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33295 if test "${ac_cv_type_size_t+set}" = set; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33298 cat >conftest.$ac_ext <<_ACEOF
33301 cat confdefs.h >>conftest.$ac_ext
33302 cat >>conftest.$ac_ext <<_ACEOF
33303 /* end confdefs.h. */
33304 $ac_includes_default
33305 typedef size_t ac__type_new_;
33309 if ((ac__type_new_ *) 0)
33311 if (sizeof (ac__type_new_))
33317 rm -f conftest.$ac_objext
33318 if { (ac_try="$ac_compile"
33319 case "(($ac_try" in
33320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33321 *) ac_try_echo=$ac_try;;
33323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33324 (eval "$ac_compile") 2>conftest.er1
33326 grep -v '^ *+' conftest.er1 >conftest.err
33328 cat conftest.err >&5
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); } && {
33331 test -z "$ac_c_werror_flag" ||
33332 test ! -s conftest.err
33333 } && test -s conftest.$ac_objext; then
33334 ac_cv_type_size_t=yes
33336 echo "$as_me: failed program was:" >&5
33337 sed 's/^/| /' conftest.$ac_ext >&5
33339 ac_cv_type_size_t=no
33342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33344 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33345 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33346 if test $ac_cv_type_size_t = yes; then
33350 cat >>confdefs.h <<_ACEOF
33351 #define size_t unsigned int
33356 { echo "$as_me:$LINENO: checking for pid_t" >&5
33357 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33358 if test "${ac_cv_type_pid_t+set}" = set; then
33359 echo $ECHO_N "(cached) $ECHO_C" >&6
33361 cat >conftest.$ac_ext <<_ACEOF
33364 cat confdefs.h >>conftest.$ac_ext
33365 cat >>conftest.$ac_ext <<_ACEOF
33366 /* end confdefs.h. */
33367 $ac_includes_default
33368 typedef pid_t ac__type_new_;
33372 if ((ac__type_new_ *) 0)
33374 if (sizeof (ac__type_new_))
33380 rm -f conftest.$ac_objext
33381 if { (ac_try="$ac_compile"
33382 case "(($ac_try" in
33383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33384 *) ac_try_echo=$ac_try;;
33386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33387 (eval "$ac_compile") 2>conftest.er1
33389 grep -v '^ *+' conftest.er1 >conftest.err
33391 cat conftest.err >&5
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); } && {
33394 test -z "$ac_c_werror_flag" ||
33395 test ! -s conftest.err
33396 } && test -s conftest.$ac_objext; then
33397 ac_cv_type_pid_t=yes
33399 echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33402 ac_cv_type_pid_t=no
33405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33407 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33408 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33409 if test $ac_cv_type_pid_t = yes; then
33413 cat >>confdefs.h <<_ACEOF
33419 { echo "$as_me:$LINENO: checking for off_t" >&5
33420 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33421 if test "${ac_cv_type_off_t+set}" = set; then
33422 echo $ECHO_N "(cached) $ECHO_C" >&6
33424 cat >conftest.$ac_ext <<_ACEOF
33427 cat confdefs.h >>conftest.$ac_ext
33428 cat >>conftest.$ac_ext <<_ACEOF
33429 /* end confdefs.h. */
33430 $ac_includes_default
33431 typedef off_t ac__type_new_;
33435 if ((ac__type_new_ *) 0)
33437 if (sizeof (ac__type_new_))
33443 rm -f conftest.$ac_objext
33444 if { (ac_try="$ac_compile"
33445 case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_compile") 2>conftest.er1
33452 grep -v '^ *+' conftest.er1 >conftest.err
33454 cat conftest.err >&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); } && {
33457 test -z "$ac_c_werror_flag" ||
33458 test ! -s conftest.err
33459 } && test -s conftest.$ac_objext; then
33460 ac_cv_type_off_t=yes
33462 echo "$as_me: failed program was:" >&5
33463 sed 's/^/| /' conftest.$ac_ext >&5
33465 ac_cv_type_off_t=no
33468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33470 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33471 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33472 if test $ac_cv_type_off_t = yes; then
33476 cat >>confdefs.h <<_ACEOF
33477 #define off_t long int
33482 { echo "$as_me:$LINENO: checking for ino_t" >&5
33483 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33484 if test "${ac_cv_type_ino_t+set}" = set; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33487 cat >conftest.$ac_ext <<_ACEOF
33490 cat confdefs.h >>conftest.$ac_ext
33491 cat >>conftest.$ac_ext <<_ACEOF
33492 /* end confdefs.h. */
33493 $ac_includes_default
33494 typedef ino_t ac__type_new_;
33498 if ((ac__type_new_ *) 0)
33500 if (sizeof (ac__type_new_))
33506 rm -f conftest.$ac_objext
33507 if { (ac_try="$ac_compile"
33508 case "(($ac_try" in
33509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33510 *) ac_try_echo=$ac_try;;
33512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33513 (eval "$ac_compile") 2>conftest.er1
33515 grep -v '^ *+' conftest.er1 >conftest.err
33517 cat conftest.err >&5
33518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); } && {
33520 test -z "$ac_c_werror_flag" ||
33521 test ! -s conftest.err
33522 } && test -s conftest.$ac_objext; then
33523 ac_cv_type_ino_t=yes
33525 echo "$as_me: failed program was:" >&5
33526 sed 's/^/| /' conftest.$ac_ext >&5
33528 ac_cv_type_ino_t=no
33531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33533 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33534 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33535 if test $ac_cv_type_ino_t = yes; then
33539 cat >>confdefs.h <<_ACEOF
33540 #define ino_t unsigned long
33545 { echo "$as_me:$LINENO: checking for dev_t" >&5
33546 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33547 if test "${ac_cv_type_dev_t+set}" = set; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33550 cat >conftest.$ac_ext <<_ACEOF
33553 cat confdefs.h >>conftest.$ac_ext
33554 cat >>conftest.$ac_ext <<_ACEOF
33555 /* end confdefs.h. */
33556 $ac_includes_default
33557 typedef dev_t ac__type_new_;
33561 if ((ac__type_new_ *) 0)
33563 if (sizeof (ac__type_new_))
33569 rm -f conftest.$ac_objext
33570 if { (ac_try="$ac_compile"
33571 case "(($ac_try" in
33572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33573 *) ac_try_echo=$ac_try;;
33575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576 (eval "$ac_compile") 2>conftest.er1
33578 grep -v '^ *+' conftest.er1 >conftest.err
33580 cat conftest.err >&5
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } && {
33583 test -z "$ac_c_werror_flag" ||
33584 test ! -s conftest.err
33585 } && test -s conftest.$ac_objext; then
33586 ac_cv_type_dev_t=yes
33588 echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33591 ac_cv_type_dev_t=no
33594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33596 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33597 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33598 if test $ac_cv_type_dev_t = yes; then
33602 cat >>confdefs.h <<_ACEOF
33603 #define dev_t unsigned long
33608 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33609 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33610 if test "${ac_cv_type_daddr_t+set}" = set; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33613 cat >conftest.$ac_ext <<_ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h. */
33619 $ac_includes_default
33620 typedef daddr_t ac__type_new_;
33624 if ((ac__type_new_ *) 0)
33626 if (sizeof (ac__type_new_))
33632 rm -f conftest.$ac_objext
33633 if { (ac_try="$ac_compile"
33634 case "(($ac_try" in
33635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33636 *) ac_try_echo=$ac_try;;
33638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33639 (eval "$ac_compile") 2>conftest.er1
33641 grep -v '^ *+' conftest.er1 >conftest.err
33643 cat conftest.err >&5
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); } && {
33646 test -z "$ac_c_werror_flag" ||
33647 test ! -s conftest.err
33648 } && test -s conftest.$ac_objext; then
33649 ac_cv_type_daddr_t=yes
33651 echo "$as_me: failed program was:" >&5
33652 sed 's/^/| /' conftest.$ac_ext >&5
33654 ac_cv_type_daddr_t=no
33657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33659 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33660 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33661 if test $ac_cv_type_daddr_t = yes; then
33665 cat >>confdefs.h <<_ACEOF
33666 #define daddr_t long
33671 { echo "$as_me:$LINENO: checking for major_t" >&5
33672 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33673 if test "${ac_cv_type_major_t+set}" = set; then
33674 echo $ECHO_N "(cached) $ECHO_C" >&6
33676 cat >conftest.$ac_ext <<_ACEOF
33679 cat confdefs.h >>conftest.$ac_ext
33680 cat >>conftest.$ac_ext <<_ACEOF
33681 /* end confdefs.h. */
33682 $ac_includes_default
33683 typedef major_t ac__type_new_;
33687 if ((ac__type_new_ *) 0)
33689 if (sizeof (ac__type_new_))
33695 rm -f conftest.$ac_objext
33696 if { (ac_try="$ac_compile"
33697 case "(($ac_try" in
33698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33699 *) ac_try_echo=$ac_try;;
33701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33702 (eval "$ac_compile") 2>conftest.er1
33704 grep -v '^ *+' conftest.er1 >conftest.err
33706 cat conftest.err >&5
33707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708 (exit $ac_status); } && {
33709 test -z "$ac_c_werror_flag" ||
33710 test ! -s conftest.err
33711 } && test -s conftest.$ac_objext; then
33712 ac_cv_type_major_t=yes
33714 echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33717 ac_cv_type_major_t=no
33720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33722 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33723 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33724 if test $ac_cv_type_major_t = yes; then
33728 cat >>confdefs.h <<_ACEOF
33729 #define major_t int
33734 { echo "$as_me:$LINENO: checking for minor_t" >&5
33735 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33736 if test "${ac_cv_type_minor_t+set}" = set; then
33737 echo $ECHO_N "(cached) $ECHO_C" >&6
33739 cat >conftest.$ac_ext <<_ACEOF
33742 cat confdefs.h >>conftest.$ac_ext
33743 cat >>conftest.$ac_ext <<_ACEOF
33744 /* end confdefs.h. */
33745 $ac_includes_default
33746 typedef minor_t ac__type_new_;
33750 if ((ac__type_new_ *) 0)
33752 if (sizeof (ac__type_new_))
33758 rm -f conftest.$ac_objext
33759 if { (ac_try="$ac_compile"
33760 case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_compile") 2>conftest.er1
33767 grep -v '^ *+' conftest.er1 >conftest.err
33769 cat conftest.err >&5
33770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771 (exit $ac_status); } && {
33772 test -z "$ac_c_werror_flag" ||
33773 test ! -s conftest.err
33774 } && test -s conftest.$ac_objext; then
33775 ac_cv_type_minor_t=yes
33777 echo "$as_me: failed program was:" >&5
33778 sed 's/^/| /' conftest.$ac_ext >&5
33780 ac_cv_type_minor_t=no
33783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33785 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33786 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33787 if test $ac_cv_type_minor_t = yes; then
33791 cat >>confdefs.h <<_ACEOF
33792 #define minor_t int
33797 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33798 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33799 if test "${ac_cv_type_ssize_t+set}" = set; then
33800 echo $ECHO_N "(cached) $ECHO_C" >&6
33802 cat >conftest.$ac_ext <<_ACEOF
33805 cat confdefs.h >>conftest.$ac_ext
33806 cat >>conftest.$ac_ext <<_ACEOF
33807 /* end confdefs.h. */
33808 $ac_includes_default
33809 typedef ssize_t ac__type_new_;
33813 if ((ac__type_new_ *) 0)
33815 if (sizeof (ac__type_new_))
33821 rm -f conftest.$ac_objext
33822 if { (ac_try="$ac_compile"
33823 case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_compile") 2>conftest.er1
33830 grep -v '^ *+' conftest.er1 >conftest.err
33832 cat conftest.err >&5
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); } && {
33835 test -z "$ac_c_werror_flag" ||
33836 test ! -s conftest.err
33837 } && test -s conftest.$ac_objext; then
33838 ac_cv_type_ssize_t=yes
33840 echo "$as_me: failed program was:" >&5
33841 sed 's/^/| /' conftest.$ac_ext >&5
33843 ac_cv_type_ssize_t=no
33846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33848 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33849 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33850 if test $ac_cv_type_ssize_t = yes; then
33854 cat >>confdefs.h <<_ACEOF
33855 #define ssize_t int
33860 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33861 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33862 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33863 echo $ECHO_N "(cached) $ECHO_C" >&6
33865 cat >conftest.$ac_ext <<_ACEOF
33868 cat confdefs.h >>conftest.$ac_ext
33869 cat >>conftest.$ac_ext <<_ACEOF
33870 /* end confdefs.h. */
33871 $ac_includes_default
33875 static struct stat ac_aggr;
33876 if (ac_aggr.st_blocks)
33882 rm -f conftest.$ac_objext
33883 if { (ac_try="$ac_compile"
33884 case "(($ac_try" in
33885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_compile") 2>conftest.er1
33891 grep -v '^ *+' conftest.er1 >conftest.err
33893 cat conftest.err >&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } && {
33896 test -z "$ac_c_werror_flag" ||
33897 test ! -s conftest.err
33898 } && test -s conftest.$ac_objext; then
33899 ac_cv_member_struct_stat_st_blocks=yes
33901 echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33904 cat >conftest.$ac_ext <<_ACEOF
33907 cat confdefs.h >>conftest.$ac_ext
33908 cat >>conftest.$ac_ext <<_ACEOF
33909 /* end confdefs.h. */
33910 $ac_includes_default
33914 static struct stat ac_aggr;
33915 if (sizeof ac_aggr.st_blocks)
33921 rm -f conftest.$ac_objext
33922 if { (ac_try="$ac_compile"
33923 case "(($ac_try" in
33924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925 *) ac_try_echo=$ac_try;;
33927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928 (eval "$ac_compile") 2>conftest.er1
33930 grep -v '^ *+' conftest.er1 >conftest.err
33932 cat conftest.err >&5
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); } && {
33935 test -z "$ac_c_werror_flag" ||
33936 test ! -s conftest.err
33937 } && test -s conftest.$ac_objext; then
33938 ac_cv_member_struct_stat_st_blocks=yes
33940 echo "$as_me: failed program was:" >&5
33941 sed 's/^/| /' conftest.$ac_ext >&5
33943 ac_cv_member_struct_stat_st_blocks=no
33946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33952 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33953 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33955 cat >>confdefs.h <<_ACEOF
33956 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33960 cat >>confdefs.h <<\_ACEOF
33961 #define HAVE_ST_BLOCKS 1
33965 case " $LIBOBJS " in
33966 *" fileblocks.$ac_objext "* ) ;;
33967 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33974 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33975 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33976 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33977 echo $ECHO_N "(cached) $ECHO_C" >&6
33979 cat >conftest.$ac_ext <<_ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h. */
33985 $ac_includes_default
33989 static struct stat ac_aggr;
33990 if (ac_aggr.st_rdev)
33996 rm -f conftest.$ac_objext
33997 if { (ac_try="$ac_compile"
33998 case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_compile") 2>conftest.er1
34005 grep -v '^ *+' conftest.er1 >conftest.err
34007 cat conftest.err >&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); } && {
34010 test -z "$ac_c_werror_flag" ||
34011 test ! -s conftest.err
34012 } && test -s conftest.$ac_objext; then
34013 ac_cv_member_struct_stat_st_rdev=yes
34015 echo "$as_me: failed program was:" >&5
34016 sed 's/^/| /' conftest.$ac_ext >&5
34018 cat >conftest.$ac_ext <<_ACEOF
34021 cat confdefs.h >>conftest.$ac_ext
34022 cat >>conftest.$ac_ext <<_ACEOF
34023 /* end confdefs.h. */
34024 $ac_includes_default
34028 static struct stat ac_aggr;
34029 if (sizeof ac_aggr.st_rdev)
34035 rm -f conftest.$ac_objext
34036 if { (ac_try="$ac_compile"
34037 case "(($ac_try" in
34038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039 *) ac_try_echo=$ac_try;;
34041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042 (eval "$ac_compile") 2>conftest.er1
34044 grep -v '^ *+' conftest.er1 >conftest.err
34046 cat conftest.err >&5
34047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048 (exit $ac_status); } && {
34049 test -z "$ac_c_werror_flag" ||
34050 test ! -s conftest.err
34051 } && test -s conftest.$ac_objext; then
34052 ac_cv_member_struct_stat_st_rdev=yes
34054 echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34057 ac_cv_member_struct_stat_st_rdev=no
34060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34065 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34066 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34067 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34069 cat >>confdefs.h <<_ACEOF
34070 #define HAVE_STRUCT_STAT_ST_RDEV 1
34074 cat >>confdefs.h <<\_ACEOF
34075 #define HAVE_ST_RDEV 1
34081 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34082 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34083 if test "${ac_cv_struct_tm+set}" = set; then
34084 echo $ECHO_N "(cached) $ECHO_C" >&6
34086 cat >conftest.$ac_ext <<_ACEOF
34089 cat confdefs.h >>conftest.$ac_ext
34090 cat >>conftest.$ac_ext <<_ACEOF
34091 /* end confdefs.h. */
34092 #include <sys/types.h>
34099 int *p = &tm.tm_sec;
34105 rm -f conftest.$ac_objext
34106 if { (ac_try="$ac_compile"
34107 case "(($ac_try" in
34108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34109 *) ac_try_echo=$ac_try;;
34111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34112 (eval "$ac_compile") 2>conftest.er1
34114 grep -v '^ *+' conftest.er1 >conftest.err
34116 cat conftest.err >&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); } && {
34119 test -z "$ac_c_werror_flag" ||
34120 test ! -s conftest.err
34121 } && test -s conftest.$ac_objext; then
34122 ac_cv_struct_tm=time.h
34124 echo "$as_me: failed program was:" >&5
34125 sed 's/^/| /' conftest.$ac_ext >&5
34127 ac_cv_struct_tm=sys/time.h
34130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34132 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34133 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34134 if test $ac_cv_struct_tm = sys/time.h; then
34136 cat >>confdefs.h <<\_ACEOF
34137 #define TM_IN_SYS_TIME 1
34142 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34143 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34144 if test "${ac_cv_c_const+set}" = set; then
34145 echo $ECHO_N "(cached) $ECHO_C" >&6
34147 cat >conftest.$ac_ext <<_ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h. */
34157 /* FIXME: Include the comments suggested by Paul. */
34158 #ifndef __cplusplus
34159 /* Ultrix mips cc rejects this. */
34160 typedef int charset[2];
34162 /* SunOS 4.1.1 cc rejects this. */
34163 char const *const *pcpcc;
34165 /* NEC SVR4.0.2 mips cc rejects this. */
34166 struct point {int x, y;};
34167 static struct point const zero = {0,0};
34168 /* AIX XL C 1.02.0.0 rejects this.
34169 It does not let you subtract one const X* pointer from another in
34170 an arm of an if-expression whose if-part is not a constant
34172 const char *g = "string";
34173 pcpcc = &g + (g ? g-g : 0);
34174 /* HPUX 7.0 cc rejects these. */
34176 ppc = (char**) pcpcc;
34177 pcpcc = (char const *const *) ppc;
34178 { /* SCO 3.2v4 cc rejects this. */
34180 char const *s = 0 ? (char *) 0 : (char const *) 0;
34185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34186 int x[] = {25, 17};
34187 const int *foo = &x[0];
34190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34191 typedef const int *iptr;
34195 { /* AIX XL C 1.02.0.0 rejects this saying
34196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34197 struct s { int j; const int *ap[3]; };
34198 struct s *b; b->j = 5;
34200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34201 const int foo = 10;
34202 if (!foo) return 0;
34204 return !cs[0] && !zero.x;
34211 rm -f conftest.$ac_objext
34212 if { (ac_try="$ac_compile"
34213 case "(($ac_try" in
34214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34215 *) ac_try_echo=$ac_try;;
34217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34218 (eval "$ac_compile") 2>conftest.er1
34220 grep -v '^ *+' conftest.er1 >conftest.err
34222 cat conftest.err >&5
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); } && {
34225 test -z "$ac_c_werror_flag" ||
34226 test ! -s conftest.err
34227 } && test -s conftest.$ac_objext; then
34230 echo "$as_me: failed program was:" >&5
34231 sed 's/^/| /' conftest.$ac_ext >&5
34236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34238 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34239 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34240 if test $ac_cv_c_const = no; then
34242 cat >>confdefs.h <<\_ACEOF
34249 { echo "$as_me:$LINENO: checking for char" >&5
34250 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34251 if test "${ac_cv_type_char+set}" = set; then
34252 echo $ECHO_N "(cached) $ECHO_C" >&6
34254 cat >conftest.$ac_ext <<_ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h. */
34260 $ac_includes_default
34261 typedef char ac__type_new_;
34265 if ((ac__type_new_ *) 0)
34267 if (sizeof (ac__type_new_))
34273 rm -f conftest.$ac_objext
34274 if { (ac_try="$ac_compile"
34275 case "(($ac_try" in
34276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34277 *) ac_try_echo=$ac_try;;
34279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34280 (eval "$ac_compile") 2>conftest.er1
34282 grep -v '^ *+' conftest.er1 >conftest.err
34284 cat conftest.err >&5
34285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286 (exit $ac_status); } && {
34287 test -z "$ac_c_werror_flag" ||
34288 test ! -s conftest.err
34289 } && test -s conftest.$ac_objext; then
34290 ac_cv_type_char=yes
34292 echo "$as_me: failed program was:" >&5
34293 sed 's/^/| /' conftest.$ac_ext >&5
34298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34300 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34301 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34303 # The cast to long int works around a bug in the HP C Compiler
34304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34306 # This bug is HP SR number 8606223364.
34307 { echo "$as_me:$LINENO: checking size of char" >&5
34308 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34309 if test "${ac_cv_sizeof_char+set}" = set; then
34310 echo $ECHO_N "(cached) $ECHO_C" >&6
34312 if test "$cross_compiling" = yes; then
34313 # Depending upon the size, compute the lo and hi bounds.
34314 cat >conftest.$ac_ext <<_ACEOF
34317 cat confdefs.h >>conftest.$ac_ext
34318 cat >>conftest.$ac_ext <<_ACEOF
34319 /* end confdefs.h. */
34320 $ac_includes_default
34321 typedef char ac__type_sizeof_;
34325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34332 rm -f conftest.$ac_objext
34333 if { (ac_try="$ac_compile"
34334 case "(($ac_try" in
34335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34336 *) ac_try_echo=$ac_try;;
34338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34339 (eval "$ac_compile") 2>conftest.er1
34341 grep -v '^ *+' conftest.er1 >conftest.err
34343 cat conftest.err >&5
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); } && {
34346 test -z "$ac_c_werror_flag" ||
34347 test ! -s conftest.err
34348 } && test -s conftest.$ac_objext; then
34351 cat >conftest.$ac_ext <<_ACEOF
34354 cat confdefs.h >>conftest.$ac_ext
34355 cat >>conftest.$ac_ext <<_ACEOF
34356 /* end confdefs.h. */
34357 $ac_includes_default
34358 typedef char ac__type_sizeof_;
34362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34369 rm -f conftest.$ac_objext
34370 if { (ac_try="$ac_compile"
34371 case "(($ac_try" in
34372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34373 *) ac_try_echo=$ac_try;;
34375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34376 (eval "$ac_compile") 2>conftest.er1
34378 grep -v '^ *+' conftest.er1 >conftest.err
34380 cat conftest.err >&5
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); } && {
34383 test -z "$ac_c_werror_flag" ||
34384 test ! -s conftest.err
34385 } && test -s conftest.$ac_objext; then
34386 ac_hi=$ac_mid; break
34388 echo "$as_me: failed program was:" >&5
34389 sed 's/^/| /' conftest.$ac_ext >&5
34391 ac_lo=`expr $ac_mid + 1`
34392 if test $ac_lo -le $ac_mid; then
34396 ac_mid=`expr 2 '*' $ac_mid + 1`
34399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34402 echo "$as_me: failed program was:" >&5
34403 sed 's/^/| /' conftest.$ac_ext >&5
34405 cat >conftest.$ac_ext <<_ACEOF
34408 cat confdefs.h >>conftest.$ac_ext
34409 cat >>conftest.$ac_ext <<_ACEOF
34410 /* end confdefs.h. */
34411 $ac_includes_default
34412 typedef char ac__type_sizeof_;
34416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34423 rm -f conftest.$ac_objext
34424 if { (ac_try="$ac_compile"
34425 case "(($ac_try" in
34426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34427 *) ac_try_echo=$ac_try;;
34429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34430 (eval "$ac_compile") 2>conftest.er1
34432 grep -v '^ *+' conftest.er1 >conftest.err
34434 cat conftest.err >&5
34435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436 (exit $ac_status); } && {
34437 test -z "$ac_c_werror_flag" ||
34438 test ! -s conftest.err
34439 } && test -s conftest.$ac_objext; then
34442 cat >conftest.$ac_ext <<_ACEOF
34445 cat confdefs.h >>conftest.$ac_ext
34446 cat >>conftest.$ac_ext <<_ACEOF
34447 /* end confdefs.h. */
34448 $ac_includes_default
34449 typedef char ac__type_sizeof_;
34453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34460 rm -f conftest.$ac_objext
34461 if { (ac_try="$ac_compile"
34462 case "(($ac_try" in
34463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464 *) ac_try_echo=$ac_try;;
34466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34467 (eval "$ac_compile") 2>conftest.er1
34469 grep -v '^ *+' conftest.er1 >conftest.err
34471 cat conftest.err >&5
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); } && {
34474 test -z "$ac_c_werror_flag" ||
34475 test ! -s conftest.err
34476 } && test -s conftest.$ac_objext; then
34477 ac_lo=$ac_mid; break
34479 echo "$as_me: failed program was:" >&5
34480 sed 's/^/| /' conftest.$ac_ext >&5
34482 ac_hi=`expr '(' $ac_mid ')' - 1`
34483 if test $ac_mid -le $ac_hi; then
34487 ac_mid=`expr 2 '*' $ac_mid`
34490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34493 echo "$as_me: failed program was:" >&5
34494 sed 's/^/| /' conftest.$ac_ext >&5
34499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34503 # Binary search between lo and hi bounds.
34504 while test "x$ac_lo" != "x$ac_hi"; do
34505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34506 cat >conftest.$ac_ext <<_ACEOF
34509 cat confdefs.h >>conftest.$ac_ext
34510 cat >>conftest.$ac_ext <<_ACEOF
34511 /* end confdefs.h. */
34512 $ac_includes_default
34513 typedef char ac__type_sizeof_;
34517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34524 rm -f conftest.$ac_objext
34525 if { (ac_try="$ac_compile"
34526 case "(($ac_try" in
34527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528 *) ac_try_echo=$ac_try;;
34530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531 (eval "$ac_compile") 2>conftest.er1
34533 grep -v '^ *+' conftest.er1 >conftest.err
34535 cat conftest.err >&5
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); } && {
34538 test -z "$ac_c_werror_flag" ||
34539 test ! -s conftest.err
34540 } && test -s conftest.$ac_objext; then
34543 echo "$as_me: failed program was:" >&5
34544 sed 's/^/| /' conftest.$ac_ext >&5
34546 ac_lo=`expr '(' $ac_mid ')' + 1`
34549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34552 ?*) ac_cv_sizeof_char=$ac_lo;;
34553 '') if test "$ac_cv_type_char" = yes; then
34554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34555 See \`config.log' for more details." >&5
34556 echo "$as_me: error: cannot compute sizeof (char)
34557 See \`config.log' for more details." >&2;}
34558 { (exit 77); exit 77; }; }
34560 ac_cv_sizeof_char=0
34564 cat >conftest.$ac_ext <<_ACEOF
34567 cat confdefs.h >>conftest.$ac_ext
34568 cat >>conftest.$ac_ext <<_ACEOF
34569 /* end confdefs.h. */
34570 $ac_includes_default
34571 typedef char ac__type_sizeof_;
34572 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34573 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34575 #include <stdlib.h>
34580 FILE *f = fopen ("conftest.val", "w");
34583 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34585 long int i = longval ();
34586 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34588 fprintf (f, "%ld\n", i);
34592 unsigned long int i = ulongval ();
34593 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34595 fprintf (f, "%lu\n", i);
34597 return ferror (f) || fclose (f) != 0;
34603 rm -f conftest$ac_exeext
34604 if { (ac_try="$ac_link"
34605 case "(($ac_try" in
34606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34607 *) ac_try_echo=$ac_try;;
34609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34610 (eval "$ac_link") 2>&5
34612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34614 { (case "(($ac_try" in
34615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34616 *) ac_try_echo=$ac_try;;
34618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34619 (eval "$ac_try") 2>&5
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); }; }; then
34623 ac_cv_sizeof_char=`cat conftest.val`
34625 echo "$as_me: program exited with status $ac_status" >&5
34626 echo "$as_me: failed program was:" >&5
34627 sed 's/^/| /' conftest.$ac_ext >&5
34629 ( exit $ac_status )
34630 if test "$ac_cv_type_char" = yes; then
34631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34632 See \`config.log' for more details." >&5
34633 echo "$as_me: error: cannot compute sizeof (char)
34634 See \`config.log' for more details." >&2;}
34635 { (exit 77); exit 77; }; }
34637 ac_cv_sizeof_char=0
34640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34644 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34645 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34649 cat >>confdefs.h <<_ACEOF
34650 #define SIZEOF_CHAR $ac_cv_sizeof_char
34654 { echo "$as_me:$LINENO: checking for short int" >&5
34655 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34656 if test "${ac_cv_type_short_int+set}" = set; then
34657 echo $ECHO_N "(cached) $ECHO_C" >&6
34659 cat >conftest.$ac_ext <<_ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h. */
34665 $ac_includes_default
34666 typedef short int ac__type_new_;
34670 if ((ac__type_new_ *) 0)
34672 if (sizeof (ac__type_new_))
34678 rm -f conftest.$ac_objext
34679 if { (ac_try="$ac_compile"
34680 case "(($ac_try" in
34681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34682 *) ac_try_echo=$ac_try;;
34684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34685 (eval "$ac_compile") 2>conftest.er1
34687 grep -v '^ *+' conftest.er1 >conftest.err
34689 cat conftest.err >&5
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } && {
34692 test -z "$ac_c_werror_flag" ||
34693 test ! -s conftest.err
34694 } && test -s conftest.$ac_objext; then
34695 ac_cv_type_short_int=yes
34697 echo "$as_me: failed program was:" >&5
34698 sed 's/^/| /' conftest.$ac_ext >&5
34700 ac_cv_type_short_int=no
34703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34705 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34706 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34708 # The cast to long int works around a bug in the HP C Compiler
34709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34711 # This bug is HP SR number 8606223364.
34712 { echo "$as_me:$LINENO: checking size of short int" >&5
34713 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34714 if test "${ac_cv_sizeof_short_int+set}" = set; then
34715 echo $ECHO_N "(cached) $ECHO_C" >&6
34717 if test "$cross_compiling" = yes; then
34718 # Depending upon the size, compute the lo and hi bounds.
34719 cat >conftest.$ac_ext <<_ACEOF
34722 cat confdefs.h >>conftest.$ac_ext
34723 cat >>conftest.$ac_ext <<_ACEOF
34724 /* end confdefs.h. */
34725 $ac_includes_default
34726 typedef short int ac__type_sizeof_;
34730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34737 rm -f conftest.$ac_objext
34738 if { (ac_try="$ac_compile"
34739 case "(($ac_try" in
34740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34741 *) ac_try_echo=$ac_try;;
34743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34744 (eval "$ac_compile") 2>conftest.er1
34746 grep -v '^ *+' conftest.er1 >conftest.err
34748 cat conftest.err >&5
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); } && {
34751 test -z "$ac_c_werror_flag" ||
34752 test ! -s conftest.err
34753 } && test -s conftest.$ac_objext; then
34756 cat >conftest.$ac_ext <<_ACEOF
34759 cat confdefs.h >>conftest.$ac_ext
34760 cat >>conftest.$ac_ext <<_ACEOF
34761 /* end confdefs.h. */
34762 $ac_includes_default
34763 typedef short int ac__type_sizeof_;
34767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34774 rm -f conftest.$ac_objext
34775 if { (ac_try="$ac_compile"
34776 case "(($ac_try" in
34777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34778 *) ac_try_echo=$ac_try;;
34780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34781 (eval "$ac_compile") 2>conftest.er1
34783 grep -v '^ *+' conftest.er1 >conftest.err
34785 cat conftest.err >&5
34786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787 (exit $ac_status); } && {
34788 test -z "$ac_c_werror_flag" ||
34789 test ! -s conftest.err
34790 } && test -s conftest.$ac_objext; then
34791 ac_hi=$ac_mid; break
34793 echo "$as_me: failed program was:" >&5
34794 sed 's/^/| /' conftest.$ac_ext >&5
34796 ac_lo=`expr $ac_mid + 1`
34797 if test $ac_lo -le $ac_mid; then
34801 ac_mid=`expr 2 '*' $ac_mid + 1`
34804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34807 echo "$as_me: failed program was:" >&5
34808 sed 's/^/| /' conftest.$ac_ext >&5
34810 cat >conftest.$ac_ext <<_ACEOF
34813 cat confdefs.h >>conftest.$ac_ext
34814 cat >>conftest.$ac_ext <<_ACEOF
34815 /* end confdefs.h. */
34816 $ac_includes_default
34817 typedef short int ac__type_sizeof_;
34821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34828 rm -f conftest.$ac_objext
34829 if { (ac_try="$ac_compile"
34830 case "(($ac_try" in
34831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34832 *) ac_try_echo=$ac_try;;
34834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34835 (eval "$ac_compile") 2>conftest.er1
34837 grep -v '^ *+' conftest.er1 >conftest.err
34839 cat conftest.err >&5
34840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34841 (exit $ac_status); } && {
34842 test -z "$ac_c_werror_flag" ||
34843 test ! -s conftest.err
34844 } && test -s conftest.$ac_objext; then
34847 cat >conftest.$ac_ext <<_ACEOF
34850 cat confdefs.h >>conftest.$ac_ext
34851 cat >>conftest.$ac_ext <<_ACEOF
34852 /* end confdefs.h. */
34853 $ac_includes_default
34854 typedef short int ac__type_sizeof_;
34858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34865 rm -f conftest.$ac_objext
34866 if { (ac_try="$ac_compile"
34867 case "(($ac_try" in
34868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34869 *) ac_try_echo=$ac_try;;
34871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34872 (eval "$ac_compile") 2>conftest.er1
34874 grep -v '^ *+' conftest.er1 >conftest.err
34876 cat conftest.err >&5
34877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878 (exit $ac_status); } && {
34879 test -z "$ac_c_werror_flag" ||
34880 test ! -s conftest.err
34881 } && test -s conftest.$ac_objext; then
34882 ac_lo=$ac_mid; break
34884 echo "$as_me: failed program was:" >&5
34885 sed 's/^/| /' conftest.$ac_ext >&5
34887 ac_hi=`expr '(' $ac_mid ')' - 1`
34888 if test $ac_mid -le $ac_hi; then
34892 ac_mid=`expr 2 '*' $ac_mid`
34895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34908 # Binary search between lo and hi bounds.
34909 while test "x$ac_lo" != "x$ac_hi"; do
34910 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34911 cat >conftest.$ac_ext <<_ACEOF
34914 cat confdefs.h >>conftest.$ac_ext
34915 cat >>conftest.$ac_ext <<_ACEOF
34916 /* end confdefs.h. */
34917 $ac_includes_default
34918 typedef short int ac__type_sizeof_;
34922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34929 rm -f conftest.$ac_objext
34930 if { (ac_try="$ac_compile"
34931 case "(($ac_try" in
34932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34933 *) ac_try_echo=$ac_try;;
34935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34936 (eval "$ac_compile") 2>conftest.er1
34938 grep -v '^ *+' conftest.er1 >conftest.err
34940 cat conftest.err >&5
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); } && {
34943 test -z "$ac_c_werror_flag" ||
34944 test ! -s conftest.err
34945 } && test -s conftest.$ac_objext; then
34948 echo "$as_me: failed program was:" >&5
34949 sed 's/^/| /' conftest.$ac_ext >&5
34951 ac_lo=`expr '(' $ac_mid ')' + 1`
34954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34957 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34958 '') if test "$ac_cv_type_short_int" = yes; then
34959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34960 See \`config.log' for more details." >&5
34961 echo "$as_me: error: cannot compute sizeof (short int)
34962 See \`config.log' for more details." >&2;}
34963 { (exit 77); exit 77; }; }
34965 ac_cv_sizeof_short_int=0
34969 cat >conftest.$ac_ext <<_ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h. */
34975 $ac_includes_default
34976 typedef short int ac__type_sizeof_;
34977 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34978 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34980 #include <stdlib.h>
34985 FILE *f = fopen ("conftest.val", "w");
34988 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34990 long int i = longval ();
34991 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34993 fprintf (f, "%ld\n", i);
34997 unsigned long int i = ulongval ();
34998 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35000 fprintf (f, "%lu\n", i);
35002 return ferror (f) || fclose (f) != 0;
35008 rm -f conftest$ac_exeext
35009 if { (ac_try="$ac_link"
35010 case "(($ac_try" in
35011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35012 *) ac_try_echo=$ac_try;;
35014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35015 (eval "$ac_link") 2>&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35019 { (case "(($ac_try" in
35020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35021 *) ac_try_echo=$ac_try;;
35023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35024 (eval "$ac_try") 2>&5
35026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027 (exit $ac_status); }; }; then
35028 ac_cv_sizeof_short_int=`cat conftest.val`
35030 echo "$as_me: program exited with status $ac_status" >&5
35031 echo "$as_me: failed program was:" >&5
35032 sed 's/^/| /' conftest.$ac_ext >&5
35034 ( exit $ac_status )
35035 if test "$ac_cv_type_short_int" = yes; then
35036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35037 See \`config.log' for more details." >&5
35038 echo "$as_me: error: cannot compute sizeof (short int)
35039 See \`config.log' for more details." >&2;}
35040 { (exit 77); exit 77; }; }
35042 ac_cv_sizeof_short_int=0
35045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35049 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35050 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35054 cat >>confdefs.h <<_ACEOF
35055 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35059 { echo "$as_me:$LINENO: checking for int" >&5
35060 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35061 if test "${ac_cv_type_int+set}" = set; then
35062 echo $ECHO_N "(cached) $ECHO_C" >&6
35064 cat >conftest.$ac_ext <<_ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h. */
35070 $ac_includes_default
35071 typedef int ac__type_new_;
35075 if ((ac__type_new_ *) 0)
35077 if (sizeof (ac__type_new_))
35083 rm -f conftest.$ac_objext
35084 if { (ac_try="$ac_compile"
35085 case "(($ac_try" in
35086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35087 *) ac_try_echo=$ac_try;;
35089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35090 (eval "$ac_compile") 2>conftest.er1
35092 grep -v '^ *+' conftest.er1 >conftest.err
35094 cat conftest.err >&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); } && {
35097 test -z "$ac_c_werror_flag" ||
35098 test ! -s conftest.err
35099 } && test -s conftest.$ac_objext; then
35102 echo "$as_me: failed program was:" >&5
35103 sed 's/^/| /' conftest.$ac_ext >&5
35108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35110 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35111 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35113 # The cast to long int works around a bug in the HP C Compiler
35114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35116 # This bug is HP SR number 8606223364.
35117 { echo "$as_me:$LINENO: checking size of int" >&5
35118 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35119 if test "${ac_cv_sizeof_int+set}" = set; then
35120 echo $ECHO_N "(cached) $ECHO_C" >&6
35122 if test "$cross_compiling" = yes; then
35123 # Depending upon the size, compute the lo and hi bounds.
35124 cat >conftest.$ac_ext <<_ACEOF
35127 cat confdefs.h >>conftest.$ac_ext
35128 cat >>conftest.$ac_ext <<_ACEOF
35129 /* end confdefs.h. */
35130 $ac_includes_default
35131 typedef int ac__type_sizeof_;
35135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35142 rm -f conftest.$ac_objext
35143 if { (ac_try="$ac_compile"
35144 case "(($ac_try" in
35145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35146 *) ac_try_echo=$ac_try;;
35148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35149 (eval "$ac_compile") 2>conftest.er1
35151 grep -v '^ *+' conftest.er1 >conftest.err
35153 cat conftest.err >&5
35154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155 (exit $ac_status); } && {
35156 test -z "$ac_c_werror_flag" ||
35157 test ! -s conftest.err
35158 } && test -s conftest.$ac_objext; then
35161 cat >conftest.$ac_ext <<_ACEOF
35164 cat confdefs.h >>conftest.$ac_ext
35165 cat >>conftest.$ac_ext <<_ACEOF
35166 /* end confdefs.h. */
35167 $ac_includes_default
35168 typedef int ac__type_sizeof_;
35172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35179 rm -f conftest.$ac_objext
35180 if { (ac_try="$ac_compile"
35181 case "(($ac_try" in
35182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35183 *) ac_try_echo=$ac_try;;
35185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35186 (eval "$ac_compile") 2>conftest.er1
35188 grep -v '^ *+' conftest.er1 >conftest.err
35190 cat conftest.err >&5
35191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); } && {
35193 test -z "$ac_c_werror_flag" ||
35194 test ! -s conftest.err
35195 } && test -s conftest.$ac_objext; then
35196 ac_hi=$ac_mid; break
35198 echo "$as_me: failed program was:" >&5
35199 sed 's/^/| /' conftest.$ac_ext >&5
35201 ac_lo=`expr $ac_mid + 1`
35202 if test $ac_lo -le $ac_mid; then
35206 ac_mid=`expr 2 '*' $ac_mid + 1`
35209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35212 echo "$as_me: failed program was:" >&5
35213 sed 's/^/| /' conftest.$ac_ext >&5
35215 cat >conftest.$ac_ext <<_ACEOF
35218 cat confdefs.h >>conftest.$ac_ext
35219 cat >>conftest.$ac_ext <<_ACEOF
35220 /* end confdefs.h. */
35221 $ac_includes_default
35222 typedef int ac__type_sizeof_;
35226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35233 rm -f conftest.$ac_objext
35234 if { (ac_try="$ac_compile"
35235 case "(($ac_try" in
35236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35237 *) ac_try_echo=$ac_try;;
35239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35240 (eval "$ac_compile") 2>conftest.er1
35242 grep -v '^ *+' conftest.er1 >conftest.err
35244 cat conftest.err >&5
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); } && {
35247 test -z "$ac_c_werror_flag" ||
35248 test ! -s conftest.err
35249 } && test -s conftest.$ac_objext; then
35252 cat >conftest.$ac_ext <<_ACEOF
35255 cat confdefs.h >>conftest.$ac_ext
35256 cat >>conftest.$ac_ext <<_ACEOF
35257 /* end confdefs.h. */
35258 $ac_includes_default
35259 typedef int ac__type_sizeof_;
35263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35270 rm -f conftest.$ac_objext
35271 if { (ac_try="$ac_compile"
35272 case "(($ac_try" in
35273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35274 *) ac_try_echo=$ac_try;;
35276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35277 (eval "$ac_compile") 2>conftest.er1
35279 grep -v '^ *+' conftest.er1 >conftest.err
35281 cat conftest.err >&5
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); } && {
35284 test -z "$ac_c_werror_flag" ||
35285 test ! -s conftest.err
35286 } && test -s conftest.$ac_objext; then
35287 ac_lo=$ac_mid; break
35289 echo "$as_me: failed program was:" >&5
35290 sed 's/^/| /' conftest.$ac_ext >&5
35292 ac_hi=`expr '(' $ac_mid ')' - 1`
35293 if test $ac_mid -le $ac_hi; then
35297 ac_mid=`expr 2 '*' $ac_mid`
35300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35303 echo "$as_me: failed program was:" >&5
35304 sed 's/^/| /' conftest.$ac_ext >&5
35309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35313 # Binary search between lo and hi bounds.
35314 while test "x$ac_lo" != "x$ac_hi"; do
35315 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35316 cat >conftest.$ac_ext <<_ACEOF
35319 cat confdefs.h >>conftest.$ac_ext
35320 cat >>conftest.$ac_ext <<_ACEOF
35321 /* end confdefs.h. */
35322 $ac_includes_default
35323 typedef int ac__type_sizeof_;
35327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35334 rm -f conftest.$ac_objext
35335 if { (ac_try="$ac_compile"
35336 case "(($ac_try" in
35337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35338 *) ac_try_echo=$ac_try;;
35340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35341 (eval "$ac_compile") 2>conftest.er1
35343 grep -v '^ *+' conftest.er1 >conftest.err
35345 cat conftest.err >&5
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); } && {
35348 test -z "$ac_c_werror_flag" ||
35349 test ! -s conftest.err
35350 } && test -s conftest.$ac_objext; then
35353 echo "$as_me: failed program was:" >&5
35354 sed 's/^/| /' conftest.$ac_ext >&5
35356 ac_lo=`expr '(' $ac_mid ')' + 1`
35359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35362 ?*) ac_cv_sizeof_int=$ac_lo;;
35363 '') if test "$ac_cv_type_int" = yes; then
35364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35365 See \`config.log' for more details." >&5
35366 echo "$as_me: error: cannot compute sizeof (int)
35367 See \`config.log' for more details." >&2;}
35368 { (exit 77); exit 77; }; }
35374 cat >conftest.$ac_ext <<_ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h. */
35380 $ac_includes_default
35381 typedef int ac__type_sizeof_;
35382 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35383 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35385 #include <stdlib.h>
35390 FILE *f = fopen ("conftest.val", "w");
35393 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35395 long int i = longval ();
35396 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35398 fprintf (f, "%ld\n", i);
35402 unsigned long int i = ulongval ();
35403 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35405 fprintf (f, "%lu\n", i);
35407 return ferror (f) || fclose (f) != 0;
35413 rm -f conftest$ac_exeext
35414 if { (ac_try="$ac_link"
35415 case "(($ac_try" in
35416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35417 *) ac_try_echo=$ac_try;;
35419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35420 (eval "$ac_link") 2>&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35424 { (case "(($ac_try" in
35425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35426 *) ac_try_echo=$ac_try;;
35428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35429 (eval "$ac_try") 2>&5
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; }; then
35433 ac_cv_sizeof_int=`cat conftest.val`
35435 echo "$as_me: program exited with status $ac_status" >&5
35436 echo "$as_me: failed program was:" >&5
35437 sed 's/^/| /' conftest.$ac_ext >&5
35439 ( exit $ac_status )
35440 if test "$ac_cv_type_int" = yes; then
35441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35442 See \`config.log' for more details." >&5
35443 echo "$as_me: error: cannot compute sizeof (int)
35444 See \`config.log' for more details." >&2;}
35445 { (exit 77); exit 77; }; }
35450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35454 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35455 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35459 cat >>confdefs.h <<_ACEOF
35460 #define SIZEOF_INT $ac_cv_sizeof_int
35464 { echo "$as_me:$LINENO: checking for long int" >&5
35465 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35466 if test "${ac_cv_type_long_int+set}" = set; then
35467 echo $ECHO_N "(cached) $ECHO_C" >&6
35469 cat >conftest.$ac_ext <<_ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h. */
35475 $ac_includes_default
35476 typedef long int ac__type_new_;
35480 if ((ac__type_new_ *) 0)
35482 if (sizeof (ac__type_new_))
35488 rm -f conftest.$ac_objext
35489 if { (ac_try="$ac_compile"
35490 case "(($ac_try" in
35491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35492 *) ac_try_echo=$ac_try;;
35494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35495 (eval "$ac_compile") 2>conftest.er1
35497 grep -v '^ *+' conftest.er1 >conftest.err
35499 cat conftest.err >&5
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); } && {
35502 test -z "$ac_c_werror_flag" ||
35503 test ! -s conftest.err
35504 } && test -s conftest.$ac_objext; then
35505 ac_cv_type_long_int=yes
35507 echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.$ac_ext >&5
35510 ac_cv_type_long_int=no
35513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35515 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35516 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35518 # The cast to long int works around a bug in the HP C Compiler
35519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35521 # This bug is HP SR number 8606223364.
35522 { echo "$as_me:$LINENO: checking size of long int" >&5
35523 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35524 if test "${ac_cv_sizeof_long_int+set}" = set; then
35525 echo $ECHO_N "(cached) $ECHO_C" >&6
35527 if test "$cross_compiling" = yes; then
35528 # Depending upon the size, compute the lo and hi bounds.
35529 cat >conftest.$ac_ext <<_ACEOF
35532 cat confdefs.h >>conftest.$ac_ext
35533 cat >>conftest.$ac_ext <<_ACEOF
35534 /* end confdefs.h. */
35535 $ac_includes_default
35536 typedef long int ac__type_sizeof_;
35540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35547 rm -f conftest.$ac_objext
35548 if { (ac_try="$ac_compile"
35549 case "(($ac_try" in
35550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35551 *) ac_try_echo=$ac_try;;
35553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35554 (eval "$ac_compile") 2>conftest.er1
35556 grep -v '^ *+' conftest.er1 >conftest.err
35558 cat conftest.err >&5
35559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560 (exit $ac_status); } && {
35561 test -z "$ac_c_werror_flag" ||
35562 test ! -s conftest.err
35563 } && test -s conftest.$ac_objext; then
35566 cat >conftest.$ac_ext <<_ACEOF
35569 cat confdefs.h >>conftest.$ac_ext
35570 cat >>conftest.$ac_ext <<_ACEOF
35571 /* end confdefs.h. */
35572 $ac_includes_default
35573 typedef long int ac__type_sizeof_;
35577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35584 rm -f conftest.$ac_objext
35585 if { (ac_try="$ac_compile"
35586 case "(($ac_try" in
35587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35588 *) ac_try_echo=$ac_try;;
35590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35591 (eval "$ac_compile") 2>conftest.er1
35593 grep -v '^ *+' conftest.er1 >conftest.err
35595 cat conftest.err >&5
35596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597 (exit $ac_status); } && {
35598 test -z "$ac_c_werror_flag" ||
35599 test ! -s conftest.err
35600 } && test -s conftest.$ac_objext; then
35601 ac_hi=$ac_mid; break
35603 echo "$as_me: failed program was:" >&5
35604 sed 's/^/| /' conftest.$ac_ext >&5
35606 ac_lo=`expr $ac_mid + 1`
35607 if test $ac_lo -le $ac_mid; then
35611 ac_mid=`expr 2 '*' $ac_mid + 1`
35614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35617 echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35620 cat >conftest.$ac_ext <<_ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h. */
35626 $ac_includes_default
35627 typedef long int ac__type_sizeof_;
35631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35638 rm -f conftest.$ac_objext
35639 if { (ac_try="$ac_compile"
35640 case "(($ac_try" in
35641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35642 *) ac_try_echo=$ac_try;;
35644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35645 (eval "$ac_compile") 2>conftest.er1
35647 grep -v '^ *+' conftest.er1 >conftest.err
35649 cat conftest.err >&5
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } && {
35652 test -z "$ac_c_werror_flag" ||
35653 test ! -s conftest.err
35654 } && test -s conftest.$ac_objext; then
35657 cat >conftest.$ac_ext <<_ACEOF
35660 cat confdefs.h >>conftest.$ac_ext
35661 cat >>conftest.$ac_ext <<_ACEOF
35662 /* end confdefs.h. */
35663 $ac_includes_default
35664 typedef long int ac__type_sizeof_;
35668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35675 rm -f conftest.$ac_objext
35676 if { (ac_try="$ac_compile"
35677 case "(($ac_try" in
35678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35679 *) ac_try_echo=$ac_try;;
35681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35682 (eval "$ac_compile") 2>conftest.er1
35684 grep -v '^ *+' conftest.er1 >conftest.err
35686 cat conftest.err >&5
35687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688 (exit $ac_status); } && {
35689 test -z "$ac_c_werror_flag" ||
35690 test ! -s conftest.err
35691 } && test -s conftest.$ac_objext; then
35692 ac_lo=$ac_mid; break
35694 echo "$as_me: failed program was:" >&5
35695 sed 's/^/| /' conftest.$ac_ext >&5
35697 ac_hi=`expr '(' $ac_mid ')' - 1`
35698 if test $ac_mid -le $ac_hi; then
35702 ac_mid=`expr 2 '*' $ac_mid`
35705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35708 echo "$as_me: failed program was:" >&5
35709 sed 's/^/| /' conftest.$ac_ext >&5
35714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35718 # Binary search between lo and hi bounds.
35719 while test "x$ac_lo" != "x$ac_hi"; do
35720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35721 cat >conftest.$ac_ext <<_ACEOF
35724 cat confdefs.h >>conftest.$ac_ext
35725 cat >>conftest.$ac_ext <<_ACEOF
35726 /* end confdefs.h. */
35727 $ac_includes_default
35728 typedef long int ac__type_sizeof_;
35732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35739 rm -f conftest.$ac_objext
35740 if { (ac_try="$ac_compile"
35741 case "(($ac_try" in
35742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35743 *) ac_try_echo=$ac_try;;
35745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35746 (eval "$ac_compile") 2>conftest.er1
35748 grep -v '^ *+' conftest.er1 >conftest.err
35750 cat conftest.err >&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } && {
35753 test -z "$ac_c_werror_flag" ||
35754 test ! -s conftest.err
35755 } && test -s conftest.$ac_objext; then
35758 echo "$as_me: failed program was:" >&5
35759 sed 's/^/| /' conftest.$ac_ext >&5
35761 ac_lo=`expr '(' $ac_mid ')' + 1`
35764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35767 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35768 '') if test "$ac_cv_type_long_int" = yes; then
35769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35770 See \`config.log' for more details." >&5
35771 echo "$as_me: error: cannot compute sizeof (long int)
35772 See \`config.log' for more details." >&2;}
35773 { (exit 77); exit 77; }; }
35775 ac_cv_sizeof_long_int=0
35779 cat >conftest.$ac_ext <<_ACEOF
35782 cat confdefs.h >>conftest.$ac_ext
35783 cat >>conftest.$ac_ext <<_ACEOF
35784 /* end confdefs.h. */
35785 $ac_includes_default
35786 typedef long int ac__type_sizeof_;
35787 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35788 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35790 #include <stdlib.h>
35795 FILE *f = fopen ("conftest.val", "w");
35798 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35800 long int i = longval ();
35801 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35803 fprintf (f, "%ld\n", i);
35807 unsigned long int i = ulongval ();
35808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35810 fprintf (f, "%lu\n", i);
35812 return ferror (f) || fclose (f) != 0;
35818 rm -f conftest$ac_exeext
35819 if { (ac_try="$ac_link"
35820 case "(($ac_try" in
35821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35822 *) ac_try_echo=$ac_try;;
35824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35825 (eval "$ac_link") 2>&5
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35829 { (case "(($ac_try" in
35830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35831 *) ac_try_echo=$ac_try;;
35833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35834 (eval "$ac_try") 2>&5
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); }; }; then
35838 ac_cv_sizeof_long_int=`cat conftest.val`
35840 echo "$as_me: program exited with status $ac_status" >&5
35841 echo "$as_me: failed program was:" >&5
35842 sed 's/^/| /' conftest.$ac_ext >&5
35844 ( exit $ac_status )
35845 if test "$ac_cv_type_long_int" = yes; then
35846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35847 See \`config.log' for more details." >&5
35848 echo "$as_me: error: cannot compute sizeof (long int)
35849 See \`config.log' for more details." >&2;}
35850 { (exit 77); exit 77; }; }
35852 ac_cv_sizeof_long_int=0
35855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35859 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35860 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35864 cat >>confdefs.h <<_ACEOF
35865 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35869 { echo "$as_me:$LINENO: checking for long long int" >&5
35870 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35871 if test "${ac_cv_type_long_long_int+set}" = set; then
35872 echo $ECHO_N "(cached) $ECHO_C" >&6
35874 cat >conftest.$ac_ext <<_ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h. */
35880 $ac_includes_default
35881 typedef long long int ac__type_new_;
35885 if ((ac__type_new_ *) 0)
35887 if (sizeof (ac__type_new_))
35893 rm -f conftest.$ac_objext
35894 if { (ac_try="$ac_compile"
35895 case "(($ac_try" in
35896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35897 *) ac_try_echo=$ac_try;;
35899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35900 (eval "$ac_compile") 2>conftest.er1
35902 grep -v '^ *+' conftest.er1 >conftest.err
35904 cat conftest.err >&5
35905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906 (exit $ac_status); } && {
35907 test -z "$ac_c_werror_flag" ||
35908 test ! -s conftest.err
35909 } && test -s conftest.$ac_objext; then
35910 ac_cv_type_long_long_int=yes
35912 echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35915 ac_cv_type_long_long_int=no
35918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35920 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35921 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35923 # The cast to long int works around a bug in the HP C Compiler
35924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35926 # This bug is HP SR number 8606223364.
35927 { echo "$as_me:$LINENO: checking size of long long int" >&5
35928 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35929 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35930 echo $ECHO_N "(cached) $ECHO_C" >&6
35932 if test "$cross_compiling" = yes; then
35933 # Depending upon the size, compute the lo and hi bounds.
35934 cat >conftest.$ac_ext <<_ACEOF
35937 cat confdefs.h >>conftest.$ac_ext
35938 cat >>conftest.$ac_ext <<_ACEOF
35939 /* end confdefs.h. */
35940 $ac_includes_default
35941 typedef long long int ac__type_sizeof_;
35945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35952 rm -f conftest.$ac_objext
35953 if { (ac_try="$ac_compile"
35954 case "(($ac_try" in
35955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35956 *) ac_try_echo=$ac_try;;
35958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35959 (eval "$ac_compile") 2>conftest.er1
35961 grep -v '^ *+' conftest.er1 >conftest.err
35963 cat conftest.err >&5
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); } && {
35966 test -z "$ac_c_werror_flag" ||
35967 test ! -s conftest.err
35968 } && test -s conftest.$ac_objext; then
35971 cat >conftest.$ac_ext <<_ACEOF
35974 cat confdefs.h >>conftest.$ac_ext
35975 cat >>conftest.$ac_ext <<_ACEOF
35976 /* end confdefs.h. */
35977 $ac_includes_default
35978 typedef long long int ac__type_sizeof_;
35982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35989 rm -f conftest.$ac_objext
35990 if { (ac_try="$ac_compile"
35991 case "(($ac_try" in
35992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35993 *) ac_try_echo=$ac_try;;
35995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35996 (eval "$ac_compile") 2>conftest.er1
35998 grep -v '^ *+' conftest.er1 >conftest.err
36000 cat conftest.err >&5
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); } && {
36003 test -z "$ac_c_werror_flag" ||
36004 test ! -s conftest.err
36005 } && test -s conftest.$ac_objext; then
36006 ac_hi=$ac_mid; break
36008 echo "$as_me: failed program was:" >&5
36009 sed 's/^/| /' conftest.$ac_ext >&5
36011 ac_lo=`expr $ac_mid + 1`
36012 if test $ac_lo -le $ac_mid; then
36016 ac_mid=`expr 2 '*' $ac_mid + 1`
36019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022 echo "$as_me: failed program was:" >&5
36023 sed 's/^/| /' conftest.$ac_ext >&5
36025 cat >conftest.$ac_ext <<_ACEOF
36028 cat confdefs.h >>conftest.$ac_ext
36029 cat >>conftest.$ac_ext <<_ACEOF
36030 /* end confdefs.h. */
36031 $ac_includes_default
36032 typedef long long int ac__type_sizeof_;
36036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36043 rm -f conftest.$ac_objext
36044 if { (ac_try="$ac_compile"
36045 case "(($ac_try" in
36046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36047 *) ac_try_echo=$ac_try;;
36049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36050 (eval "$ac_compile") 2>conftest.er1
36052 grep -v '^ *+' conftest.er1 >conftest.err
36054 cat conftest.err >&5
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); } && {
36057 test -z "$ac_c_werror_flag" ||
36058 test ! -s conftest.err
36059 } && test -s conftest.$ac_objext; then
36062 cat >conftest.$ac_ext <<_ACEOF
36065 cat confdefs.h >>conftest.$ac_ext
36066 cat >>conftest.$ac_ext <<_ACEOF
36067 /* end confdefs.h. */
36068 $ac_includes_default
36069 typedef long long int ac__type_sizeof_;
36073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36080 rm -f conftest.$ac_objext
36081 if { (ac_try="$ac_compile"
36082 case "(($ac_try" in
36083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36084 *) ac_try_echo=$ac_try;;
36086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36087 (eval "$ac_compile") 2>conftest.er1
36089 grep -v '^ *+' conftest.er1 >conftest.err
36091 cat conftest.err >&5
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); } && {
36094 test -z "$ac_c_werror_flag" ||
36095 test ! -s conftest.err
36096 } && test -s conftest.$ac_objext; then
36097 ac_lo=$ac_mid; break
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36102 ac_hi=`expr '(' $ac_mid ')' - 1`
36103 if test $ac_mid -le $ac_hi; then
36107 ac_mid=`expr 2 '*' $ac_mid`
36110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36113 echo "$as_me: failed program was:" >&5
36114 sed 's/^/| /' conftest.$ac_ext >&5
36119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36123 # Binary search between lo and hi bounds.
36124 while test "x$ac_lo" != "x$ac_hi"; do
36125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36126 cat >conftest.$ac_ext <<_ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h. */
36132 $ac_includes_default
36133 typedef long long int ac__type_sizeof_;
36137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36144 rm -f conftest.$ac_objext
36145 if { (ac_try="$ac_compile"
36146 case "(($ac_try" in
36147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148 *) ac_try_echo=$ac_try;;
36150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36151 (eval "$ac_compile") 2>conftest.er1
36153 grep -v '^ *+' conftest.er1 >conftest.err
36155 cat conftest.err >&5
36156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157 (exit $ac_status); } && {
36158 test -z "$ac_c_werror_flag" ||
36159 test ! -s conftest.err
36160 } && test -s conftest.$ac_objext; then
36163 echo "$as_me: failed program was:" >&5
36164 sed 's/^/| /' conftest.$ac_ext >&5
36166 ac_lo=`expr '(' $ac_mid ')' + 1`
36169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36172 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36173 '') if test "$ac_cv_type_long_long_int" = yes; then
36174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36175 See \`config.log' for more details." >&5
36176 echo "$as_me: error: cannot compute sizeof (long long int)
36177 See \`config.log' for more details." >&2;}
36178 { (exit 77); exit 77; }; }
36180 ac_cv_sizeof_long_long_int=0
36184 cat >conftest.$ac_ext <<_ACEOF
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h. */
36190 $ac_includes_default
36191 typedef long long int ac__type_sizeof_;
36192 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36193 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36195 #include <stdlib.h>
36200 FILE *f = fopen ("conftest.val", "w");
36203 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36205 long int i = longval ();
36206 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36208 fprintf (f, "%ld\n", i);
36212 unsigned long int i = ulongval ();
36213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36215 fprintf (f, "%lu\n", i);
36217 return ferror (f) || fclose (f) != 0;
36223 rm -f conftest$ac_exeext
36224 if { (ac_try="$ac_link"
36225 case "(($ac_try" in
36226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36227 *) ac_try_echo=$ac_try;;
36229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36230 (eval "$ac_link") 2>&5
36232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36234 { (case "(($ac_try" in
36235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36236 *) ac_try_echo=$ac_try;;
36238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36239 (eval "$ac_try") 2>&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); }; }; then
36243 ac_cv_sizeof_long_long_int=`cat conftest.val`
36245 echo "$as_me: program exited with status $ac_status" >&5
36246 echo "$as_me: failed program was:" >&5
36247 sed 's/^/| /' conftest.$ac_ext >&5
36249 ( exit $ac_status )
36250 if test "$ac_cv_type_long_long_int" = yes; then
36251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36252 See \`config.log' for more details." >&5
36253 echo "$as_me: error: cannot compute sizeof (long long int)
36254 See \`config.log' for more details." >&2;}
36255 { (exit 77); exit 77; }; }
36257 ac_cv_sizeof_long_long_int=0
36260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36264 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36265 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36269 cat >>confdefs.h <<_ACEOF
36270 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36274 { echo "$as_me:$LINENO: checking for int *" >&5
36275 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36276 if test "${ac_cv_type_int_p+set}" = set; then
36277 echo $ECHO_N "(cached) $ECHO_C" >&6
36279 cat >conftest.$ac_ext <<_ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h. */
36285 $ac_includes_default
36286 typedef int * ac__type_new_;
36290 if ((ac__type_new_ *) 0)
36292 if (sizeof (ac__type_new_))
36298 rm -f conftest.$ac_objext
36299 if { (ac_try="$ac_compile"
36300 case "(($ac_try" in
36301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36302 *) ac_try_echo=$ac_try;;
36304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36305 (eval "$ac_compile") 2>conftest.er1
36307 grep -v '^ *+' conftest.er1 >conftest.err
36309 cat conftest.err >&5
36310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311 (exit $ac_status); } && {
36312 test -z "$ac_c_werror_flag" ||
36313 test ! -s conftest.err
36314 } && test -s conftest.$ac_objext; then
36315 ac_cv_type_int_p=yes
36317 echo "$as_me: failed program was:" >&5
36318 sed 's/^/| /' conftest.$ac_ext >&5
36320 ac_cv_type_int_p=no
36323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36325 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36326 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36328 # The cast to long int works around a bug in the HP C Compiler
36329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36331 # This bug is HP SR number 8606223364.
36332 { echo "$as_me:$LINENO: checking size of int *" >&5
36333 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36334 if test "${ac_cv_sizeof_int_p+set}" = set; then
36335 echo $ECHO_N "(cached) $ECHO_C" >&6
36337 if test "$cross_compiling" = yes; then
36338 # Depending upon the size, compute the lo and hi bounds.
36339 cat >conftest.$ac_ext <<_ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h. */
36345 $ac_includes_default
36346 typedef int * ac__type_sizeof_;
36350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36357 rm -f conftest.$ac_objext
36358 if { (ac_try="$ac_compile"
36359 case "(($ac_try" in
36360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36361 *) ac_try_echo=$ac_try;;
36363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36364 (eval "$ac_compile") 2>conftest.er1
36366 grep -v '^ *+' conftest.er1 >conftest.err
36368 cat conftest.err >&5
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); } && {
36371 test -z "$ac_c_werror_flag" ||
36372 test ! -s conftest.err
36373 } && test -s conftest.$ac_objext; then
36376 cat >conftest.$ac_ext <<_ACEOF
36379 cat confdefs.h >>conftest.$ac_ext
36380 cat >>conftest.$ac_ext <<_ACEOF
36381 /* end confdefs.h. */
36382 $ac_includes_default
36383 typedef int * ac__type_sizeof_;
36387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36394 rm -f conftest.$ac_objext
36395 if { (ac_try="$ac_compile"
36396 case "(($ac_try" in
36397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36398 *) ac_try_echo=$ac_try;;
36400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36401 (eval "$ac_compile") 2>conftest.er1
36403 grep -v '^ *+' conftest.er1 >conftest.err
36405 cat conftest.err >&5
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); } && {
36408 test -z "$ac_c_werror_flag" ||
36409 test ! -s conftest.err
36410 } && test -s conftest.$ac_objext; then
36411 ac_hi=$ac_mid; break
36413 echo "$as_me: failed program was:" >&5
36414 sed 's/^/| /' conftest.$ac_ext >&5
36416 ac_lo=`expr $ac_mid + 1`
36417 if test $ac_lo -le $ac_mid; then
36421 ac_mid=`expr 2 '*' $ac_mid + 1`
36424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36427 echo "$as_me: failed program was:" >&5
36428 sed 's/^/| /' conftest.$ac_ext >&5
36430 cat >conftest.$ac_ext <<_ACEOF
36433 cat confdefs.h >>conftest.$ac_ext
36434 cat >>conftest.$ac_ext <<_ACEOF
36435 /* end confdefs.h. */
36436 $ac_includes_default
36437 typedef int * ac__type_sizeof_;
36441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36448 rm -f conftest.$ac_objext
36449 if { (ac_try="$ac_compile"
36450 case "(($ac_try" in
36451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36452 *) ac_try_echo=$ac_try;;
36454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36455 (eval "$ac_compile") 2>conftest.er1
36457 grep -v '^ *+' conftest.er1 >conftest.err
36459 cat conftest.err >&5
36460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461 (exit $ac_status); } && {
36462 test -z "$ac_c_werror_flag" ||
36463 test ! -s conftest.err
36464 } && test -s conftest.$ac_objext; then
36467 cat >conftest.$ac_ext <<_ACEOF
36470 cat confdefs.h >>conftest.$ac_ext
36471 cat >>conftest.$ac_ext <<_ACEOF
36472 /* end confdefs.h. */
36473 $ac_includes_default
36474 typedef int * ac__type_sizeof_;
36478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36485 rm -f conftest.$ac_objext
36486 if { (ac_try="$ac_compile"
36487 case "(($ac_try" in
36488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36489 *) ac_try_echo=$ac_try;;
36491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36492 (eval "$ac_compile") 2>conftest.er1
36494 grep -v '^ *+' conftest.er1 >conftest.err
36496 cat conftest.err >&5
36497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36498 (exit $ac_status); } && {
36499 test -z "$ac_c_werror_flag" ||
36500 test ! -s conftest.err
36501 } && test -s conftest.$ac_objext; then
36502 ac_lo=$ac_mid; break
36504 echo "$as_me: failed program was:" >&5
36505 sed 's/^/| /' conftest.$ac_ext >&5
36507 ac_hi=`expr '(' $ac_mid ')' - 1`
36508 if test $ac_mid -le $ac_hi; then
36512 ac_mid=`expr 2 '*' $ac_mid`
36515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36518 echo "$as_me: failed program was:" >&5
36519 sed 's/^/| /' conftest.$ac_ext >&5
36524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36528 # Binary search between lo and hi bounds.
36529 while test "x$ac_lo" != "x$ac_hi"; do
36530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36531 cat >conftest.$ac_ext <<_ACEOF
36534 cat confdefs.h >>conftest.$ac_ext
36535 cat >>conftest.$ac_ext <<_ACEOF
36536 /* end confdefs.h. */
36537 $ac_includes_default
36538 typedef int * ac__type_sizeof_;
36542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36549 rm -f conftest.$ac_objext
36550 if { (ac_try="$ac_compile"
36551 case "(($ac_try" in
36552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36553 *) ac_try_echo=$ac_try;;
36555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36556 (eval "$ac_compile") 2>conftest.er1
36558 grep -v '^ *+' conftest.er1 >conftest.err
36560 cat conftest.err >&5
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); } && {
36563 test -z "$ac_c_werror_flag" ||
36564 test ! -s conftest.err
36565 } && test -s conftest.$ac_objext; then
36568 echo "$as_me: failed program was:" >&5
36569 sed 's/^/| /' conftest.$ac_ext >&5
36571 ac_lo=`expr '(' $ac_mid ')' + 1`
36574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36577 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36578 '') if test "$ac_cv_type_int_p" = yes; then
36579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36580 See \`config.log' for more details." >&5
36581 echo "$as_me: error: cannot compute sizeof (int *)
36582 See \`config.log' for more details." >&2;}
36583 { (exit 77); exit 77; }; }
36585 ac_cv_sizeof_int_p=0
36589 cat >conftest.$ac_ext <<_ACEOF
36592 cat confdefs.h >>conftest.$ac_ext
36593 cat >>conftest.$ac_ext <<_ACEOF
36594 /* end confdefs.h. */
36595 $ac_includes_default
36596 typedef int * ac__type_sizeof_;
36597 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36598 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36600 #include <stdlib.h>
36605 FILE *f = fopen ("conftest.val", "w");
36608 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36610 long int i = longval ();
36611 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36613 fprintf (f, "%ld\n", i);
36617 unsigned long int i = ulongval ();
36618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36620 fprintf (f, "%lu\n", i);
36622 return ferror (f) || fclose (f) != 0;
36628 rm -f conftest$ac_exeext
36629 if { (ac_try="$ac_link"
36630 case "(($ac_try" in
36631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632 *) ac_try_echo=$ac_try;;
36634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36635 (eval "$ac_link") 2>&5
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36639 { (case "(($ac_try" in
36640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36641 *) ac_try_echo=$ac_try;;
36643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36644 (eval "$ac_try") 2>&5
36646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36647 (exit $ac_status); }; }; then
36648 ac_cv_sizeof_int_p=`cat conftest.val`
36650 echo "$as_me: program exited with status $ac_status" >&5
36651 echo "$as_me: failed program was:" >&5
36652 sed 's/^/| /' conftest.$ac_ext >&5
36654 ( exit $ac_status )
36655 if test "$ac_cv_type_int_p" = yes; then
36656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36657 See \`config.log' for more details." >&5
36658 echo "$as_me: error: cannot compute sizeof (int *)
36659 See \`config.log' for more details." >&2;}
36660 { (exit 77); exit 77; }; }
36662 ac_cv_sizeof_int_p=0
36665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36669 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36670 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36674 cat >>confdefs.h <<_ACEOF
36675 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36680 { echo "$as_me:$LINENO: checking for u_int type" >&5
36681 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36682 if test "${ac_cv_have_u_int+set}" = set; then
36683 echo $ECHO_N "(cached) $ECHO_C" >&6
36686 cat >conftest.$ac_ext <<_ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h. */
36693 #include <sys/types.h>
36705 rm -f conftest.$ac_objext
36706 if { (ac_try="$ac_compile"
36707 case "(($ac_try" in
36708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709 *) ac_try_echo=$ac_try;;
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712 (eval "$ac_compile") 2>conftest.er1
36714 grep -v '^ *+' conftest.er1 >conftest.err
36716 cat conftest.err >&5
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); } && {
36719 test -z "$ac_c_werror_flag" ||
36720 test ! -s conftest.err
36721 } && test -s conftest.$ac_objext; then
36723 ac_cv_have_u_int="yes"
36726 echo "$as_me: failed program was:" >&5
36727 sed 's/^/| /' conftest.$ac_ext >&5
36730 ac_cv_have_u_int="no"
36735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36739 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36740 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36741 if test "x$ac_cv_have_u_int" = "xyes" ; then
36742 cat >>confdefs.h <<\_ACEOF
36743 #define HAVE_U_INT 1
36749 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36750 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36751 if test "${ac_cv_have_intmax_t+set}" = set; then
36752 echo $ECHO_N "(cached) $ECHO_C" >&6
36755 cat >conftest.$ac_ext <<_ACEOF
36758 cat confdefs.h >>conftest.$ac_ext
36759 cat >>conftest.$ac_ext <<_ACEOF
36760 /* end confdefs.h. */
36762 #include <sys/types.h>
36774 rm -f conftest.$ac_objext
36775 if { (ac_try="$ac_compile"
36776 case "(($ac_try" in
36777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36778 *) ac_try_echo=$ac_try;;
36780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36781 (eval "$ac_compile") 2>conftest.er1
36783 grep -v '^ *+' conftest.er1 >conftest.err
36785 cat conftest.err >&5
36786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36787 (exit $ac_status); } && {
36788 test -z "$ac_c_werror_flag" ||
36789 test ! -s conftest.err
36790 } && test -s conftest.$ac_objext; then
36792 ac_cv_have_intmax_t="yes"
36795 echo "$as_me: failed program was:" >&5
36796 sed 's/^/| /' conftest.$ac_ext >&5
36799 cat >conftest.$ac_ext <<_ACEOF
36802 cat confdefs.h >>conftest.$ac_ext
36803 cat >>conftest.$ac_ext <<_ACEOF
36804 /* end confdefs.h. */
36806 #include <stdint.h>
36818 rm -f conftest.$ac_objext
36819 if { (ac_try="$ac_compile"
36820 case "(($ac_try" in
36821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36822 *) ac_try_echo=$ac_try;;
36824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36825 (eval "$ac_compile") 2>conftest.er1
36827 grep -v '^ *+' conftest.er1 >conftest.err
36829 cat conftest.err >&5
36830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36831 (exit $ac_status); } && {
36832 test -z "$ac_c_werror_flag" ||
36833 test ! -s conftest.err
36834 } && test -s conftest.$ac_objext; then
36836 ac_cv_have_intmax_t="yes"
36839 echo "$as_me: failed program was:" >&5
36840 sed 's/^/| /' conftest.$ac_ext >&5
36843 ac_cv_have_intmax_t="no"
36848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36857 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36858 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36859 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36860 cat >>confdefs.h <<\_ACEOF
36861 #define HAVE_INTMAX_T 1
36867 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36868 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36869 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36870 echo $ECHO_N "(cached) $ECHO_C" >&6
36873 cat >conftest.$ac_ext <<_ACEOF
36876 cat confdefs.h >>conftest.$ac_ext
36877 cat >>conftest.$ac_ext <<_ACEOF
36878 /* end confdefs.h. */
36880 #include <sys/types.h>
36886 u_intmax_t a; a = 1;
36892 rm -f conftest.$ac_objext
36893 if { (ac_try="$ac_compile"
36894 case "(($ac_try" in
36895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36896 *) ac_try_echo=$ac_try;;
36898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36899 (eval "$ac_compile") 2>conftest.er1
36901 grep -v '^ *+' conftest.er1 >conftest.err
36903 cat conftest.err >&5
36904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905 (exit $ac_status); } && {
36906 test -z "$ac_c_werror_flag" ||
36907 test ! -s conftest.err
36908 } && test -s conftest.$ac_objext; then
36910 ac_cv_have_u_intmax_t="yes"
36913 echo "$as_me: failed program was:" >&5
36914 sed 's/^/| /' conftest.$ac_ext >&5
36917 cat >conftest.$ac_ext <<_ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h. */
36924 #include <stdint.h>
36930 u_intmax_t a; a = 1;
36936 rm -f conftest.$ac_objext
36937 if { (ac_try="$ac_compile"
36938 case "(($ac_try" in
36939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36940 *) ac_try_echo=$ac_try;;
36942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36943 (eval "$ac_compile") 2>conftest.er1
36945 grep -v '^ *+' conftest.er1 >conftest.err
36947 cat conftest.err >&5
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); } && {
36950 test -z "$ac_c_werror_flag" ||
36951 test ! -s conftest.err
36952 } && test -s conftest.$ac_objext; then
36954 ac_cv_have_u_intmax_t="yes"
36957 echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36961 ac_cv_have_u_intmax_t="no"
36966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36975 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36976 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36977 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36978 cat >>confdefs.h <<\_ACEOF
36979 #define HAVE_U_INTMAX_T 1
36985 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36986 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36987 if test "${ac_cv_have_intxx_t+set}" = set; then
36988 echo $ECHO_N "(cached) $ECHO_C" >&6
36991 cat >conftest.$ac_ext <<_ACEOF
36994 cat confdefs.h >>conftest.$ac_ext
36995 cat >>conftest.$ac_ext <<_ACEOF
36996 /* end confdefs.h. */
36998 #include <sys/types.h>
37004 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37010 rm -f conftest.$ac_objext
37011 if { (ac_try="$ac_compile"
37012 case "(($ac_try" in
37013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014 *) ac_try_echo=$ac_try;;
37016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37017 (eval "$ac_compile") 2>conftest.er1
37019 grep -v '^ *+' conftest.er1 >conftest.err
37021 cat conftest.err >&5
37022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023 (exit $ac_status); } && {
37024 test -z "$ac_c_werror_flag" ||
37025 test ! -s conftest.err
37026 } && test -s conftest.$ac_objext; then
37028 ac_cv_have_intxx_t="yes"
37031 echo "$as_me: failed program was:" >&5
37032 sed 's/^/| /' conftest.$ac_ext >&5
37035 ac_cv_have_intxx_t="no"
37040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37044 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37045 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37046 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37047 cat >>confdefs.h <<\_ACEOF
37048 #define HAVE_INTXX_T 1
37054 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37055 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37056 if test "${ac_cv_have_int64_t+set}" = set; then
37057 echo $ECHO_N "(cached) $ECHO_C" >&6
37060 cat >conftest.$ac_ext <<_ACEOF
37063 cat confdefs.h >>conftest.$ac_ext
37064 cat >>conftest.$ac_ext <<_ACEOF
37065 /* end confdefs.h. */
37067 #include <sys/types.h>
37079 rm -f conftest.$ac_objext
37080 if { (ac_try="$ac_compile"
37081 case "(($ac_try" in
37082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37083 *) ac_try_echo=$ac_try;;
37085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37086 (eval "$ac_compile") 2>conftest.er1
37088 grep -v '^ *+' conftest.er1 >conftest.err
37090 cat conftest.err >&5
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); } && {
37093 test -z "$ac_c_werror_flag" ||
37094 test ! -s conftest.err
37095 } && test -s conftest.$ac_objext; then
37097 ac_cv_have_int64_t="yes"
37100 echo "$as_me: failed program was:" >&5
37101 sed 's/^/| /' conftest.$ac_ext >&5
37104 ac_cv_have_int64_t="no"
37109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37113 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37114 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37115 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37116 cat >>confdefs.h <<\_ACEOF
37117 #define HAVE_INT64_T 1
37123 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37124 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37125 if test "${ac_cv_have_u_intxx_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_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 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_intxx_t="yes"
37169 echo "$as_me: failed program was:" >&5
37170 sed 's/^/| /' conftest.$ac_ext >&5
37173 ac_cv_have_u_intxx_t="no"
37178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37182 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37183 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37184 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37185 cat >>confdefs.h <<\_ACEOF
37186 #define HAVE_U_INTXX_T 1
37192 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37193 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37194 if test "${ac_cv_have_u_int64_t+set}" = set; then
37195 echo $ECHO_N "(cached) $ECHO_C" >&6
37198 cat >conftest.$ac_ext <<_ACEOF
37201 cat confdefs.h >>conftest.$ac_ext
37202 cat >>conftest.$ac_ext <<_ACEOF
37203 /* end confdefs.h. */
37205 #include <sys/types.h>
37211 u_int64_t a; a = 1;
37217 rm -f conftest.$ac_objext
37218 if { (ac_try="$ac_compile"
37219 case "(($ac_try" in
37220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37221 *) ac_try_echo=$ac_try;;
37223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37224 (eval "$ac_compile") 2>conftest.er1
37226 grep -v '^ *+' conftest.er1 >conftest.err
37228 cat conftest.err >&5
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); } && {
37231 test -z "$ac_c_werror_flag" ||
37232 test ! -s conftest.err
37233 } && test -s conftest.$ac_objext; then
37235 ac_cv_have_u_int64_t="yes"
37238 echo "$as_me: failed program was:" >&5
37239 sed 's/^/| /' conftest.$ac_ext >&5
37242 ac_cv_have_u_int64_t="no"
37247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37251 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37252 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37253 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37254 cat >>confdefs.h <<\_ACEOF
37255 #define HAVE_U_INT64_T 1
37261 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37262 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37264 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37265 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37266 cat >conftest.$ac_ext <<_ACEOF
37269 cat confdefs.h >>conftest.$ac_ext
37270 cat >>conftest.$ac_ext <<_ACEOF
37271 /* end confdefs.h. */
37273 #include <sys/bitypes.h>
37279 int8_t a; int16_t b; int32_t c;
37280 u_int8_t e; u_int16_t f; u_int32_t g;
37281 a = b = c = e = f = g = 1;
37287 rm -f conftest.$ac_objext
37288 if { (ac_try="$ac_compile"
37289 case "(($ac_try" in
37290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37291 *) ac_try_echo=$ac_try;;
37293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37294 (eval "$ac_compile") 2>conftest.er1
37296 grep -v '^ *+' conftest.er1 >conftest.err
37298 cat conftest.err >&5
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); } && {
37301 test -z "$ac_c_werror_flag" ||
37302 test ! -s conftest.err
37303 } && test -s conftest.$ac_objext; then
37305 cat >>confdefs.h <<\_ACEOF
37306 #define HAVE_U_INTXX_T 1
37309 cat >>confdefs.h <<\_ACEOF
37310 #define HAVE_INTXX_T 1
37313 cat >>confdefs.h <<\_ACEOF
37314 #define HAVE_SYS_BITYPES_H 1
37317 { echo "$as_me:$LINENO: result: yes" >&5
37318 echo "${ECHO_T}yes" >&6; }
37321 echo "$as_me: failed program was:" >&5
37322 sed 's/^/| /' conftest.$ac_ext >&5
37325 { echo "$as_me:$LINENO: result: no" >&5
37326 echo "${ECHO_T}no" >&6; }
37331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37334 if test -z "$have_u_intxx_t" ; then
37335 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37336 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37337 if test "${ac_cv_have_uintxx_t+set}" = set; then
37338 echo $ECHO_N "(cached) $ECHO_C" >&6
37341 cat >conftest.$ac_ext <<_ACEOF
37344 cat confdefs.h >>conftest.$ac_ext
37345 cat >>conftest.$ac_ext <<_ACEOF
37346 /* end confdefs.h. */
37348 #include <sys/types.h>
37354 uint8_t a; uint16_t b;
37355 uint32_t c; a = b = c = 1;
37361 rm -f conftest.$ac_objext
37362 if { (ac_try="$ac_compile"
37363 case "(($ac_try" in
37364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37365 *) ac_try_echo=$ac_try;;
37367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37368 (eval "$ac_compile") 2>conftest.er1
37370 grep -v '^ *+' conftest.er1 >conftest.err
37372 cat conftest.err >&5
37373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37374 (exit $ac_status); } && {
37375 test -z "$ac_c_werror_flag" ||
37376 test ! -s conftest.err
37377 } && test -s conftest.$ac_objext; then
37379 ac_cv_have_uintxx_t="yes"
37382 echo "$as_me: failed program was:" >&5
37383 sed 's/^/| /' conftest.$ac_ext >&5
37386 ac_cv_have_uintxx_t="no"
37391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37395 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37396 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37397 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37398 cat >>confdefs.h <<\_ACEOF
37399 #define HAVE_UINTXX_T 1
37405 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37406 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37408 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37409 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37410 cat >conftest.$ac_ext <<_ACEOF
37413 cat confdefs.h >>conftest.$ac_ext
37414 cat >>conftest.$ac_ext <<_ACEOF
37415 /* end confdefs.h. */
37417 #include <sys/bitypes.h>
37423 int64_t a; u_int64_t b;
37430 rm -f conftest.$ac_objext
37431 if { (ac_try="$ac_compile"
37432 case "(($ac_try" in
37433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37434 *) ac_try_echo=$ac_try;;
37436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37437 (eval "$ac_compile") 2>conftest.er1
37439 grep -v '^ *+' conftest.er1 >conftest.err
37441 cat conftest.err >&5
37442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); } && {
37444 test -z "$ac_c_werror_flag" ||
37445 test ! -s conftest.err
37446 } && test -s conftest.$ac_objext; then
37448 cat >>confdefs.h <<\_ACEOF
37449 #define HAVE_U_INT64_T 1
37452 cat >>confdefs.h <<\_ACEOF
37453 #define HAVE_INT64_T 1
37456 { echo "$as_me:$LINENO: result: yes" >&5
37457 echo "${ECHO_T}yes" >&6; }
37460 echo "$as_me: failed program was:" >&5
37461 sed 's/^/| /' conftest.$ac_ext >&5
37464 { echo "$as_me:$LINENO: result: no" >&5
37465 echo "${ECHO_T}no" >&6; }
37470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37473 if (test -z "$have_uintxx_t" && \
37474 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37476 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37477 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37478 cat >conftest.$ac_ext <<_ACEOF
37481 cat confdefs.h >>conftest.$ac_ext
37482 cat >>conftest.$ac_ext <<_ACEOF
37483 /* end confdefs.h. */
37485 #include <sys/bitypes.h>
37491 uint8_t a; uint16_t b;
37492 uint32_t c; a = b = c = 1;
37498 rm -f conftest.$ac_objext
37499 if { (ac_try="$ac_compile"
37500 case "(($ac_try" in
37501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37502 *) ac_try_echo=$ac_try;;
37504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37505 (eval "$ac_compile") 2>conftest.er1
37507 grep -v '^ *+' conftest.er1 >conftest.err
37509 cat conftest.err >&5
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); } && {
37512 test -z "$ac_c_werror_flag" ||
37513 test ! -s conftest.err
37514 } && test -s conftest.$ac_objext; then
37516 cat >>confdefs.h <<\_ACEOF
37517 #define HAVE_UINTXX_T 1
37520 { echo "$as_me:$LINENO: result: yes" >&5
37521 echo "${ECHO_T}yes" >&6; }
37524 echo "$as_me: failed program was:" >&5
37525 sed 's/^/| /' conftest.$ac_ext >&5
37528 { echo "$as_me:$LINENO: result: no" >&5
37529 echo "${ECHO_T}no" >&6; }
37534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37570 echo $ECHO_N "(cached) $ECHO_C" >&6
37572 cat >conftest.$ac_ext <<_ACEOF
37575 cat confdefs.h >>conftest.$ac_ext
37576 cat >>conftest.$ac_ext <<_ACEOF
37577 /* end confdefs.h. */
37578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37580 #define $ac_func innocuous_$ac_func
37582 /* System header to define __stub macros and hopefully few prototypes,
37583 which can conflict with char $ac_func (); below.
37584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37585 <limits.h> exists even on freestanding compilers. */
37588 # include <limits.h>
37590 # include <assert.h>
37595 /* Override any GCC internal prototype to avoid an error.
37596 Use char because int might match the return type of a GCC
37597 builtin and then its argument prototype would still apply. */
37602 /* The GNU C library defines this for functions which it implements
37603 to always fail with ENOSYS. Some functions are actually named
37604 something starting with __ and the normal name is an alias. */
37605 #if defined __stub_$ac_func || defined __stub___$ac_func
37612 return $ac_func ();
37617 rm -f conftest.$ac_objext conftest$ac_exeext
37618 if { (ac_try="$ac_link"
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_link") 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_exeext &&
37634 $as_test_x conftest$ac_exeext; then
37635 eval "$as_ac_var=yes"
37637 echo "$as_me: failed program was:" >&5
37638 sed 's/^/| /' conftest.$ac_ext >&5
37640 eval "$as_ac_var=no"
37643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37644 conftest$ac_exeext conftest.$ac_ext
37646 ac_res=`eval echo '${'$as_ac_var'}'`
37647 { echo "$as_me:$LINENO: result: $ac_res" >&5
37648 echo "${ECHO_T}$ac_res" >&6; }
37649 if test `eval echo '${'$as_ac_var'}'` = yes; then
37650 cat >>confdefs.h <<_ACEOF
37651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37655 echo 'configure: cannot find needed function.'; exit 1
37662 for ac_func in fchdir
37664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37668 echo $ECHO_N "(cached) $ECHO_C" >&6
37670 cat >conftest.$ac_ext <<_ACEOF
37673 cat confdefs.h >>conftest.$ac_ext
37674 cat >>conftest.$ac_ext <<_ACEOF
37675 /* end confdefs.h. */
37676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37678 #define $ac_func innocuous_$ac_func
37680 /* System header to define __stub macros and hopefully few prototypes,
37681 which can conflict with char $ac_func (); below.
37682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37683 <limits.h> exists even on freestanding compilers. */
37686 # include <limits.h>
37688 # include <assert.h>
37693 /* Override any GCC internal prototype to avoid an error.
37694 Use char because int might match the return type of a GCC
37695 builtin and then its argument prototype would still apply. */
37700 /* The GNU C library defines this for functions which it implements
37701 to always fail with ENOSYS. Some functions are actually named
37702 something starting with __ and the normal name is an alias. */
37703 #if defined __stub_$ac_func || defined __stub___$ac_func
37710 return $ac_func ();
37715 rm -f conftest.$ac_objext conftest$ac_exeext
37716 if { (ac_try="$ac_link"
37717 case "(($ac_try" in
37718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37719 *) ac_try_echo=$ac_try;;
37721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37722 (eval "$ac_link") 2>conftest.er1
37724 grep -v '^ *+' conftest.er1 >conftest.err
37726 cat conftest.err >&5
37727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); } && {
37729 test -z "$ac_c_werror_flag" ||
37730 test ! -s conftest.err
37731 } && test -s conftest$ac_exeext &&
37732 $as_test_x conftest$ac_exeext; then
37733 eval "$as_ac_var=yes"
37735 echo "$as_me: failed program was:" >&5
37736 sed 's/^/| /' conftest.$ac_ext >&5
37738 eval "$as_ac_var=no"
37741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37742 conftest$ac_exeext conftest.$ac_ext
37744 ac_res=`eval echo '${'$as_ac_var'}'`
37745 { echo "$as_me:$LINENO: result: $ac_res" >&5
37746 echo "${ECHO_T}$ac_res" >&6; }
37747 if test `eval echo '${'$as_ac_var'}'` = yes; then
37748 cat >>confdefs.h <<_ACEOF
37749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37751 cat >>confdefs.h <<\_ACEOF
37752 #define HAVE_FCHDIR 1
37759 for ac_func in strtoll
37761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37765 echo $ECHO_N "(cached) $ECHO_C" >&6
37767 cat >conftest.$ac_ext <<_ACEOF
37770 cat confdefs.h >>conftest.$ac_ext
37771 cat >>conftest.$ac_ext <<_ACEOF
37772 /* end confdefs.h. */
37773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37775 #define $ac_func innocuous_$ac_func
37777 /* System header to define __stub macros and hopefully few prototypes,
37778 which can conflict with char $ac_func (); below.
37779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37780 <limits.h> exists even on freestanding compilers. */
37783 # include <limits.h>
37785 # include <assert.h>
37790 /* Override any GCC internal prototype to avoid an error.
37791 Use char because int might match the return type of a GCC
37792 builtin and then its argument prototype would still apply. */
37797 /* The GNU C library defines this for functions which it implements
37798 to always fail with ENOSYS. Some functions are actually named
37799 something starting with __ and the normal name is an alias. */
37800 #if defined __stub_$ac_func || defined __stub___$ac_func
37807 return $ac_func ();
37812 rm -f conftest.$ac_objext conftest$ac_exeext
37813 if { (ac_try="$ac_link"
37814 case "(($ac_try" in
37815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37816 *) ac_try_echo=$ac_try;;
37818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37819 (eval "$ac_link") 2>conftest.er1
37821 grep -v '^ *+' conftest.er1 >conftest.err
37823 cat conftest.err >&5
37824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825 (exit $ac_status); } && {
37826 test -z "$ac_c_werror_flag" ||
37827 test ! -s conftest.err
37828 } && test -s conftest$ac_exeext &&
37829 $as_test_x conftest$ac_exeext; then
37830 eval "$as_ac_var=yes"
37832 echo "$as_me: failed program was:" >&5
37833 sed 's/^/| /' conftest.$ac_ext >&5
37835 eval "$as_ac_var=no"
37838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37839 conftest$ac_exeext conftest.$ac_ext
37841 ac_res=`eval echo '${'$as_ac_var'}'`
37842 { echo "$as_me:$LINENO: result: $ac_res" >&5
37843 echo "${ECHO_T}$ac_res" >&6; }
37844 if test `eval echo '${'$as_ac_var'}'` = yes; then
37845 cat >>confdefs.h <<_ACEOF
37846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37848 cat >>confdefs.h <<\_ACEOF
37849 #define HAVE_STRTOLL 1
37856 for ac_func in posix_fadvise
37858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37862 echo $ECHO_N "(cached) $ECHO_C" >&6
37864 cat >conftest.$ac_ext <<_ACEOF
37867 cat confdefs.h >>conftest.$ac_ext
37868 cat >>conftest.$ac_ext <<_ACEOF
37869 /* end confdefs.h. */
37870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37872 #define $ac_func innocuous_$ac_func
37874 /* System header to define __stub macros and hopefully few prototypes,
37875 which can conflict with char $ac_func (); below.
37876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37877 <limits.h> exists even on freestanding compilers. */
37880 # include <limits.h>
37882 # include <assert.h>
37887 /* Override any GCC internal prototype to avoid an error.
37888 Use char because int might match the return type of a GCC
37889 builtin and then its argument prototype would still apply. */
37894 /* The GNU C library defines this for functions which it implements
37895 to always fail with ENOSYS. Some functions are actually named
37896 something starting with __ and the normal name is an alias. */
37897 #if defined __stub_$ac_func || defined __stub___$ac_func
37904 return $ac_func ();
37909 rm -f conftest.$ac_objext conftest$ac_exeext
37910 if { (ac_try="$ac_link"
37911 case "(($ac_try" in
37912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37913 *) ac_try_echo=$ac_try;;
37915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37916 (eval "$ac_link") 2>conftest.er1
37918 grep -v '^ *+' conftest.er1 >conftest.err
37920 cat conftest.err >&5
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); } && {
37923 test -z "$ac_c_werror_flag" ||
37924 test ! -s conftest.err
37925 } && test -s conftest$ac_exeext &&
37926 $as_test_x conftest$ac_exeext; then
37927 eval "$as_ac_var=yes"
37929 echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37932 eval "$as_ac_var=no"
37935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37936 conftest$ac_exeext conftest.$ac_ext
37938 ac_res=`eval echo '${'$as_ac_var'}'`
37939 { echo "$as_me:$LINENO: result: $ac_res" >&5
37940 echo "${ECHO_T}$ac_res" >&6; }
37941 if test `eval echo '${'$as_ac_var'}'` = yes; then
37942 cat >>confdefs.h <<_ACEOF
37943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37950 for ac_func in fdatasync
37952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37956 echo $ECHO_N "(cached) $ECHO_C" >&6
37958 cat >conftest.$ac_ext <<_ACEOF
37961 cat confdefs.h >>conftest.$ac_ext
37962 cat >>conftest.$ac_ext <<_ACEOF
37963 /* end confdefs.h. */
37964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37966 #define $ac_func innocuous_$ac_func
37968 /* System header to define __stub macros and hopefully few prototypes,
37969 which can conflict with char $ac_func (); below.
37970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37971 <limits.h> exists even on freestanding compilers. */
37974 # include <limits.h>
37976 # include <assert.h>
37981 /* Override any GCC internal prototype to avoid an error.
37982 Use char because int might match the return type of a GCC
37983 builtin and then its argument prototype would still apply. */
37988 /* The GNU C library defines this for functions which it implements
37989 to always fail with ENOSYS. Some functions are actually named
37990 something starting with __ and the normal name is an alias. */
37991 #if defined __stub_$ac_func || defined __stub___$ac_func
37998 return $ac_func ();
38003 rm -f conftest.$ac_objext conftest$ac_exeext
38004 if { (ac_try="$ac_link"
38005 case "(($ac_try" in
38006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38007 *) ac_try_echo=$ac_try;;
38009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38010 (eval "$ac_link") 2>conftest.er1
38012 grep -v '^ *+' conftest.er1 >conftest.err
38014 cat conftest.err >&5
38015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38016 (exit $ac_status); } && {
38017 test -z "$ac_c_werror_flag" ||
38018 test ! -s conftest.err
38019 } && test -s conftest$ac_exeext &&
38020 $as_test_x conftest$ac_exeext; then
38021 eval "$as_ac_var=yes"
38023 echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38026 eval "$as_ac_var=no"
38029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38030 conftest$ac_exeext conftest.$ac_ext
38032 ac_res=`eval echo '${'$as_ac_var'}'`
38033 { echo "$as_me:$LINENO: result: $ac_res" >&5
38034 echo "${ECHO_T}$ac_res" >&6; }
38035 if test `eval echo '${'$as_ac_var'}'` = yes; then
38036 cat >>confdefs.h <<_ACEOF
38037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38045 for ac_func in chflags
38047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38051 echo $ECHO_N "(cached) $ECHO_C" >&6
38053 cat >conftest.$ac_ext <<_ACEOF
38056 cat confdefs.h >>conftest.$ac_ext
38057 cat >>conftest.$ac_ext <<_ACEOF
38058 /* end confdefs.h. */
38059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38061 #define $ac_func innocuous_$ac_func
38063 /* System header to define __stub macros and hopefully few prototypes,
38064 which can conflict with char $ac_func (); below.
38065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38066 <limits.h> exists even on freestanding compilers. */
38069 # include <limits.h>
38071 # include <assert.h>
38076 /* Override any GCC internal prototype to avoid an error.
38077 Use char because int might match the return type of a GCC
38078 builtin and then its argument prototype would still apply. */
38083 /* The GNU C library defines this for functions which it implements
38084 to always fail with ENOSYS. Some functions are actually named
38085 something starting with __ and the normal name is an alias. */
38086 #if defined __stub_$ac_func || defined __stub___$ac_func
38093 return $ac_func ();
38098 rm -f conftest.$ac_objext conftest$ac_exeext
38099 if { (ac_try="$ac_link"
38100 case "(($ac_try" in
38101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38102 *) ac_try_echo=$ac_try;;
38104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38105 (eval "$ac_link") 2>conftest.er1
38107 grep -v '^ *+' conftest.er1 >conftest.err
38109 cat conftest.err >&5
38110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38111 (exit $ac_status); } && {
38112 test -z "$ac_c_werror_flag" ||
38113 test ! -s conftest.err
38114 } && test -s conftest$ac_exeext &&
38115 $as_test_x conftest$ac_exeext; then
38116 eval "$as_ac_var=yes"
38118 echo "$as_me: failed program was:" >&5
38119 sed 's/^/| /' conftest.$ac_ext >&5
38121 eval "$as_ac_var=no"
38124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38125 conftest$ac_exeext conftest.$ac_ext
38127 ac_res=`eval echo '${'$as_ac_var'}'`
38128 { echo "$as_me:$LINENO: result: $ac_res" >&5
38129 echo "${ECHO_T}$ac_res" >&6; }
38130 if test `eval echo '${'$as_ac_var'}'` = yes; then
38131 cat >>confdefs.h <<_ACEOF
38132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38143 for ac_func in snprintf vsnprintf gethostid fseeko
38145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38149 echo $ECHO_N "(cached) $ECHO_C" >&6
38151 cat >conftest.$ac_ext <<_ACEOF
38154 cat confdefs.h >>conftest.$ac_ext
38155 cat >>conftest.$ac_ext <<_ACEOF
38156 /* end confdefs.h. */
38157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38159 #define $ac_func innocuous_$ac_func
38161 /* System header to define __stub macros and hopefully few prototypes,
38162 which can conflict with char $ac_func (); below.
38163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38164 <limits.h> exists even on freestanding compilers. */
38167 # include <limits.h>
38169 # include <assert.h>
38174 /* Override any GCC internal prototype to avoid an error.
38175 Use char because int might match the return type of a GCC
38176 builtin and then its argument prototype would still apply. */
38181 /* The GNU C library defines this for functions which it implements
38182 to always fail with ENOSYS. Some functions are actually named
38183 something starting with __ and the normal name is an alias. */
38184 #if defined __stub_$ac_func || defined __stub___$ac_func
38191 return $ac_func ();
38196 rm -f conftest.$ac_objext conftest$ac_exeext
38197 if { (ac_try="$ac_link"
38198 case "(($ac_try" in
38199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38200 *) ac_try_echo=$ac_try;;
38202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38203 (eval "$ac_link") 2>conftest.er1
38205 grep -v '^ *+' conftest.er1 >conftest.err
38207 cat conftest.err >&5
38208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); } && {
38210 test -z "$ac_c_werror_flag" ||
38211 test ! -s conftest.err
38212 } && test -s conftest$ac_exeext &&
38213 $as_test_x conftest$ac_exeext; then
38214 eval "$as_ac_var=yes"
38216 echo "$as_me: failed program was:" >&5
38217 sed 's/^/| /' conftest.$ac_ext >&5
38219 eval "$as_ac_var=no"
38222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38223 conftest$ac_exeext conftest.$ac_ext
38225 ac_res=`eval echo '${'$as_ac_var'}'`
38226 { echo "$as_me:$LINENO: result: $ac_res" >&5
38227 echo "${ECHO_T}$ac_res" >&6; }
38228 if test `eval echo '${'$as_ac_var'}'` = yes; then
38229 cat >>confdefs.h <<_ACEOF
38230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38237 { echo "$as_me:$LINENO: checking for va_copy" >&5
38238 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38239 if test "${ba_cv_va_copy+set}" = set; then
38240 echo $ECHO_N "(cached) $ECHO_C" >&6
38243 cat >conftest.$ac_ext <<_ACEOF
38246 cat confdefs.h >>conftest.$ac_ext
38247 cat >>conftest.$ac_ext <<_ACEOF
38248 /* end confdefs.h. */
38250 #include <stdarg.h>
38251 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38252 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38258 call_use_va_copy(1,2,3)
38264 rm -f conftest.$ac_objext conftest$ac_exeext
38265 if { (ac_try="$ac_link"
38266 case "(($ac_try" in
38267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38268 *) ac_try_echo=$ac_try;;
38270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38271 (eval "$ac_link") 2>conftest.er1
38273 grep -v '^ *+' conftest.er1 >conftest.err
38275 cat conftest.err >&5
38276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277 (exit $ac_status); } && {
38278 test -z "$ac_c_werror_flag" ||
38279 test ! -s conftest.err
38280 } && test -s conftest$ac_exeext &&
38281 $as_test_x conftest$ac_exeext; then
38286 echo "$as_me: failed program was:" >&5
38287 sed 's/^/| /' conftest.$ac_ext >&5
38295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38296 conftest$ac_exeext conftest.$ac_ext
38300 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38301 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38302 test $ba_cv_va_copy = yes &&
38303 cat >>confdefs.h <<\_ACEOF
38304 #define HAVE_VA_COPY 1
38312 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38318 echo $ECHO_N "(cached) $ECHO_C" >&6
38320 cat >conftest.$ac_ext <<_ACEOF
38323 cat confdefs.h >>conftest.$ac_ext
38324 cat >>conftest.$ac_ext <<_ACEOF
38325 /* end confdefs.h. */
38326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38328 #define $ac_func innocuous_$ac_func
38330 /* System header to define __stub macros and hopefully few prototypes,
38331 which can conflict with char $ac_func (); below.
38332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38333 <limits.h> exists even on freestanding compilers. */
38336 # include <limits.h>
38338 # include <assert.h>
38343 /* Override any GCC internal prototype to avoid an error.
38344 Use char because int might match the return type of a GCC
38345 builtin and then its argument prototype would still apply. */
38350 /* The GNU C library defines this for functions which it implements
38351 to always fail with ENOSYS. Some functions are actually named
38352 something starting with __ and the normal name is an alias. */
38353 #if defined __stub_$ac_func || defined __stub___$ac_func
38360 return $ac_func ();
38365 rm -f conftest.$ac_objext conftest$ac_exeext
38366 if { (ac_try="$ac_link"
38367 case "(($ac_try" in
38368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38369 *) ac_try_echo=$ac_try;;
38371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38372 (eval "$ac_link") 2>conftest.er1
38374 grep -v '^ *+' conftest.er1 >conftest.err
38376 cat conftest.err >&5
38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); } && {
38379 test -z "$ac_c_werror_flag" ||
38380 test ! -s conftest.err
38381 } && test -s conftest$ac_exeext &&
38382 $as_test_x conftest$ac_exeext; then
38383 eval "$as_ac_var=yes"
38385 echo "$as_me: failed program was:" >&5
38386 sed 's/^/| /' conftest.$ac_ext >&5
38388 eval "$as_ac_var=no"
38391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38392 conftest$ac_exeext conftest.$ac_ext
38394 ac_res=`eval echo '${'$as_ac_var'}'`
38395 { echo "$as_me:$LINENO: result: $ac_res" >&5
38396 echo "${ECHO_T}$ac_res" >&6; }
38397 if test `eval echo '${'$as_ac_var'}'` = yes; then
38398 cat >>confdefs.h <<_ACEOF
38399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38406 # If resolver functions are not in libc check for -lnsl or -lresolv.
38407 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38408 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38409 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38410 echo $ECHO_N "(cached) $ECHO_C" >&6
38412 cat >conftest.$ac_ext <<_ACEOF
38415 cat confdefs.h >>conftest.$ac_ext
38416 cat >>conftest.$ac_ext <<_ACEOF
38417 /* end confdefs.h. */
38418 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38420 #define gethostbyname_r innocuous_gethostbyname_r
38422 /* System header to define __stub macros and hopefully few prototypes,
38423 which can conflict with char gethostbyname_r (); below.
38424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38425 <limits.h> exists even on freestanding compilers. */
38428 # include <limits.h>
38430 # include <assert.h>
38433 #undef gethostbyname_r
38435 /* Override any GCC internal prototype to avoid an error.
38436 Use char because int might match the return type of a GCC
38437 builtin and then its argument prototype would still apply. */
38441 char gethostbyname_r ();
38442 /* The GNU C library defines this for functions which it implements
38443 to always fail with ENOSYS. Some functions are actually named
38444 something starting with __ and the normal name is an alias. */
38445 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38452 return gethostbyname_r ();
38457 rm -f conftest.$ac_objext conftest$ac_exeext
38458 if { (ac_try="$ac_link"
38459 case "(($ac_try" in
38460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38461 *) ac_try_echo=$ac_try;;
38463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38464 (eval "$ac_link") 2>conftest.er1
38466 grep -v '^ *+' conftest.er1 >conftest.err
38468 cat conftest.err >&5
38469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470 (exit $ac_status); } && {
38471 test -z "$ac_c_werror_flag" ||
38472 test ! -s conftest.err
38473 } && test -s conftest$ac_exeext &&
38474 $as_test_x conftest$ac_exeext; then
38475 ac_cv_func_gethostbyname_r=yes
38477 echo "$as_me: failed program was:" >&5
38478 sed 's/^/| /' conftest.$ac_ext >&5
38480 ac_cv_func_gethostbyname_r=no
38483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38484 conftest$ac_exeext conftest.$ac_ext
38486 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38487 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38488 if test $ac_cv_func_gethostbyname_r = yes; then
38489 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38490 echo "${ECHO_T}using libc's resolver" >&6; }
38493 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38494 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38495 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38496 echo $ECHO_N "(cached) $ECHO_C" >&6
38498 ac_check_lib_save_LIBS=$LIBS
38500 cat >conftest.$ac_ext <<_ACEOF
38503 cat confdefs.h >>conftest.$ac_ext
38504 cat >>conftest.$ac_ext <<_ACEOF
38505 /* end confdefs.h. */
38507 /* Override any GCC internal prototype to avoid an error.
38508 Use char because int might match the return type of a GCC
38509 builtin and then its argument prototype would still apply. */
38513 char gethostbyname_r ();
38517 return gethostbyname_r ();
38522 rm -f conftest.$ac_objext conftest$ac_exeext
38523 if { (ac_try="$ac_link"
38524 case "(($ac_try" in
38525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38526 *) ac_try_echo=$ac_try;;
38528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38529 (eval "$ac_link") 2>conftest.er1
38531 grep -v '^ *+' conftest.er1 >conftest.err
38533 cat conftest.err >&5
38534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535 (exit $ac_status); } && {
38536 test -z "$ac_c_werror_flag" ||
38537 test ! -s conftest.err
38538 } && test -s conftest$ac_exeext &&
38539 $as_test_x conftest$ac_exeext; then
38540 ac_cv_lib_nsl_gethostbyname_r=yes
38542 echo "$as_me: failed program was:" >&5
38543 sed 's/^/| /' conftest.$ac_ext >&5
38545 ac_cv_lib_nsl_gethostbyname_r=no
38548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38549 conftest$ac_exeext conftest.$ac_ext
38550 LIBS=$ac_check_lib_save_LIBS
38552 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38553 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38554 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38555 cat >>confdefs.h <<_ACEOF
38556 #define HAVE_LIBNSL 1
38564 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38565 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38566 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38567 echo $ECHO_N "(cached) $ECHO_C" >&6
38569 ac_check_lib_save_LIBS=$LIBS
38570 LIBS="-lresolv $LIBS"
38571 cat >conftest.$ac_ext <<_ACEOF
38574 cat confdefs.h >>conftest.$ac_ext
38575 cat >>conftest.$ac_ext <<_ACEOF
38576 /* end confdefs.h. */
38578 /* Override any GCC internal prototype to avoid an error.
38579 Use char because int might match the return type of a GCC
38580 builtin and then its argument prototype would still apply. */
38584 char gethostbyname_r ();
38588 return gethostbyname_r ();
38593 rm -f conftest.$ac_objext conftest$ac_exeext
38594 if { (ac_try="$ac_link"
38595 case "(($ac_try" in
38596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38597 *) ac_try_echo=$ac_try;;
38599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38600 (eval "$ac_link") 2>conftest.er1
38602 grep -v '^ *+' conftest.er1 >conftest.err
38604 cat conftest.err >&5
38605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606 (exit $ac_status); } && {
38607 test -z "$ac_c_werror_flag" ||
38608 test ! -s conftest.err
38609 } && test -s conftest$ac_exeext &&
38610 $as_test_x conftest$ac_exeext; then
38611 ac_cv_lib_resolv_gethostbyname_r=yes
38613 echo "$as_me: failed program was:" >&5
38614 sed 's/^/| /' conftest.$ac_ext >&5
38616 ac_cv_lib_resolv_gethostbyname_r=no
38619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38620 conftest$ac_exeext conftest.$ac_ext
38621 LIBS=$ac_check_lib_save_LIBS
38623 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38624 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38625 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38626 cat >>confdefs.h <<_ACEOF
38627 #define HAVE_LIBRESOLV 1
38630 LIBS="-lresolv $LIBS"
38638 for ac_func in inet_pton
38640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38644 echo $ECHO_N "(cached) $ECHO_C" >&6
38646 cat >conftest.$ac_ext <<_ACEOF
38649 cat confdefs.h >>conftest.$ac_ext
38650 cat >>conftest.$ac_ext <<_ACEOF
38651 /* end confdefs.h. */
38652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38654 #define $ac_func innocuous_$ac_func
38656 /* System header to define __stub macros and hopefully few prototypes,
38657 which can conflict with char $ac_func (); below.
38658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38659 <limits.h> exists even on freestanding compilers. */
38662 # include <limits.h>
38664 # include <assert.h>
38669 /* Override any GCC internal prototype to avoid an error.
38670 Use char because int might match the return type of a GCC
38671 builtin and then its argument prototype would still apply. */
38676 /* The GNU C library defines this for functions which it implements
38677 to always fail with ENOSYS. Some functions are actually named
38678 something starting with __ and the normal name is an alias. */
38679 #if defined __stub_$ac_func || defined __stub___$ac_func
38686 return $ac_func ();
38691 rm -f conftest.$ac_objext conftest$ac_exeext
38692 if { (ac_try="$ac_link"
38693 case "(($ac_try" in
38694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38695 *) ac_try_echo=$ac_try;;
38697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38698 (eval "$ac_link") 2>conftest.er1
38700 grep -v '^ *+' conftest.er1 >conftest.err
38702 cat conftest.err >&5
38703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704 (exit $ac_status); } && {
38705 test -z "$ac_c_werror_flag" ||
38706 test ! -s conftest.err
38707 } && test -s conftest$ac_exeext &&
38708 $as_test_x conftest$ac_exeext; then
38709 eval "$as_ac_var=yes"
38711 echo "$as_me: failed program was:" >&5
38712 sed 's/^/| /' conftest.$ac_ext >&5
38714 eval "$as_ac_var=no"
38717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38718 conftest$ac_exeext conftest.$ac_ext
38720 ac_res=`eval echo '${'$as_ac_var'}'`
38721 { echo "$as_me:$LINENO: result: $ac_res" >&5
38722 echo "${ECHO_T}$ac_res" >&6; }
38723 if test `eval echo '${'$as_ac_var'}'` = yes; then
38724 cat >>confdefs.h <<_ACEOF
38725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38727 cat >>confdefs.h <<\_ACEOF
38728 #define HAVE_INET_PTON 1
38735 for ac_func in inet_ntop
38737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38741 echo $ECHO_N "(cached) $ECHO_C" >&6
38743 cat >conftest.$ac_ext <<_ACEOF
38746 cat confdefs.h >>conftest.$ac_ext
38747 cat >>conftest.$ac_ext <<_ACEOF
38748 /* end confdefs.h. */
38749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38751 #define $ac_func innocuous_$ac_func
38753 /* System header to define __stub macros and hopefully few prototypes,
38754 which can conflict with char $ac_func (); below.
38755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38756 <limits.h> exists even on freestanding compilers. */
38759 # include <limits.h>
38761 # include <assert.h>
38766 /* Override any GCC internal prototype to avoid an error.
38767 Use char because int might match the return type of a GCC
38768 builtin and then its argument prototype would still apply. */
38773 /* The GNU C library defines this for functions which it implements
38774 to always fail with ENOSYS. Some functions are actually named
38775 something starting with __ and the normal name is an alias. */
38776 #if defined __stub_$ac_func || defined __stub___$ac_func
38783 return $ac_func ();
38788 rm -f conftest.$ac_objext conftest$ac_exeext
38789 if { (ac_try="$ac_link"
38790 case "(($ac_try" in
38791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38792 *) ac_try_echo=$ac_try;;
38794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38795 (eval "$ac_link") 2>conftest.er1
38797 grep -v '^ *+' conftest.er1 >conftest.err
38799 cat conftest.err >&5
38800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38801 (exit $ac_status); } && {
38802 test -z "$ac_c_werror_flag" ||
38803 test ! -s conftest.err
38804 } && test -s conftest$ac_exeext &&
38805 $as_test_x conftest$ac_exeext; then
38806 eval "$as_ac_var=yes"
38808 echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38811 eval "$as_ac_var=no"
38814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38815 conftest$ac_exeext conftest.$ac_ext
38817 ac_res=`eval echo '${'$as_ac_var'}'`
38818 { echo "$as_me:$LINENO: result: $ac_res" >&5
38819 echo "${ECHO_T}$ac_res" >&6; }
38820 if test `eval echo '${'$as_ac_var'}'` = yes; then
38821 cat >>confdefs.h <<_ACEOF
38822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38824 cat >>confdefs.h <<\_ACEOF
38825 #define HAVE_INET_NTOP 1
38832 for ac_func in gethostbyname2
38834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38838 echo $ECHO_N "(cached) $ECHO_C" >&6
38840 cat >conftest.$ac_ext <<_ACEOF
38843 cat confdefs.h >>conftest.$ac_ext
38844 cat >>conftest.$ac_ext <<_ACEOF
38845 /* end confdefs.h. */
38846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38848 #define $ac_func innocuous_$ac_func
38850 /* System header to define __stub macros and hopefully few prototypes,
38851 which can conflict with char $ac_func (); below.
38852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38853 <limits.h> exists even on freestanding compilers. */
38856 # include <limits.h>
38858 # include <assert.h>
38863 /* Override any GCC internal prototype to avoid an error.
38864 Use char because int might match the return type of a GCC
38865 builtin and then its argument prototype would still apply. */
38870 /* The GNU C library defines this for functions which it implements
38871 to always fail with ENOSYS. Some functions are actually named
38872 something starting with __ and the normal name is an alias. */
38873 #if defined __stub_$ac_func || defined __stub___$ac_func
38880 return $ac_func ();
38885 rm -f conftest.$ac_objext conftest$ac_exeext
38886 if { (ac_try="$ac_link"
38887 case "(($ac_try" in
38888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38889 *) ac_try_echo=$ac_try;;
38891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38892 (eval "$ac_link") 2>conftest.er1
38894 grep -v '^ *+' conftest.er1 >conftest.err
38896 cat conftest.err >&5
38897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38898 (exit $ac_status); } && {
38899 test -z "$ac_c_werror_flag" ||
38900 test ! -s conftest.err
38901 } && test -s conftest$ac_exeext &&
38902 $as_test_x conftest$ac_exeext; then
38903 eval "$as_ac_var=yes"
38905 echo "$as_me: failed program was:" >&5
38906 sed 's/^/| /' conftest.$ac_ext >&5
38908 eval "$as_ac_var=no"
38911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38912 conftest$ac_exeext conftest.$ac_ext
38914 ac_res=`eval echo '${'$as_ac_var'}'`
38915 { echo "$as_me:$LINENO: result: $ac_res" >&5
38916 echo "${ECHO_T}$ac_res" >&6; }
38917 if test `eval echo '${'$as_ac_var'}'` = yes; then
38918 cat >>confdefs.h <<_ACEOF
38919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38921 cat >>confdefs.h <<\_ACEOF
38922 #define HAVE_GETHOSTBYNAME2 1
38929 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38930 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38931 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38932 echo $ECHO_N "(cached) $ECHO_C" >&6
38935 cat >conftest.$ac_ext <<_ACEOF
38938 cat confdefs.h >>conftest.$ac_ext
38939 cat >>conftest.$ac_ext <<_ACEOF
38940 /* end confdefs.h. */
38942 #include <sys/socket.h>
38948 struct sockaddr s; s.sa_len;
38954 rm -f conftest.$ac_objext
38955 if { (ac_try="$ac_compile"
38956 case "(($ac_try" in
38957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38958 *) ac_try_echo=$ac_try;;
38960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38961 (eval "$ac_compile") 2>conftest.er1
38963 grep -v '^ *+' conftest.er1 >conftest.err
38965 cat conftest.err >&5
38966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38967 (exit $ac_status); } && {
38968 test -z "$ac_c_werror_flag" ||
38969 test ! -s conftest.err
38970 } && test -s conftest.$ac_objext; then
38972 ac_cv_struct_sockaddr_sa_len=yes
38975 echo "$as_me: failed program was:" >&5
38976 sed 's/^/| /' conftest.$ac_ext >&5
38978 ac_cv_struct_sockaddr_sa_len=no
38983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38987 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38988 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38990 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38992 cat >>confdefs.h <<\_ACEOF
38993 #define HAVE_SA_LEN 1
38999 for ac_func in strftime
39001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39005 echo $ECHO_N "(cached) $ECHO_C" >&6
39007 cat >conftest.$ac_ext <<_ACEOF
39010 cat confdefs.h >>conftest.$ac_ext
39011 cat >>conftest.$ac_ext <<_ACEOF
39012 /* end confdefs.h. */
39013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39015 #define $ac_func innocuous_$ac_func
39017 /* System header to define __stub macros and hopefully few prototypes,
39018 which can conflict with char $ac_func (); below.
39019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39020 <limits.h> exists even on freestanding compilers. */
39023 # include <limits.h>
39025 # include <assert.h>
39030 /* Override any GCC internal prototype to avoid an error.
39031 Use char because int might match the return type of a GCC
39032 builtin and then its argument prototype would still apply. */
39037 /* The GNU C library defines this for functions which it implements
39038 to always fail with ENOSYS. Some functions are actually named
39039 something starting with __ and the normal name is an alias. */
39040 #if defined __stub_$ac_func || defined __stub___$ac_func
39047 return $ac_func ();
39052 rm -f conftest.$ac_objext conftest$ac_exeext
39053 if { (ac_try="$ac_link"
39054 case "(($ac_try" in
39055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39056 *) ac_try_echo=$ac_try;;
39058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39059 (eval "$ac_link") 2>conftest.er1
39061 grep -v '^ *+' conftest.er1 >conftest.err
39063 cat conftest.err >&5
39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); } && {
39066 test -z "$ac_c_werror_flag" ||
39067 test ! -s conftest.err
39068 } && test -s conftest$ac_exeext &&
39069 $as_test_x conftest$ac_exeext; then
39070 eval "$as_ac_var=yes"
39072 echo "$as_me: failed program was:" >&5
39073 sed 's/^/| /' conftest.$ac_ext >&5
39075 eval "$as_ac_var=no"
39078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39079 conftest$ac_exeext conftest.$ac_ext
39081 ac_res=`eval echo '${'$as_ac_var'}'`
39082 { echo "$as_me:$LINENO: result: $ac_res" >&5
39083 echo "${ECHO_T}$ac_res" >&6; }
39084 if test `eval echo '${'$as_ac_var'}'` = yes; then
39085 cat >>confdefs.h <<_ACEOF
39086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39090 # strftime is in -lintl on SCO UNIX.
39091 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39092 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39093 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39094 echo $ECHO_N "(cached) $ECHO_C" >&6
39096 ac_check_lib_save_LIBS=$LIBS
39097 LIBS="-lintl $LIBS"
39098 cat >conftest.$ac_ext <<_ACEOF
39101 cat confdefs.h >>conftest.$ac_ext
39102 cat >>conftest.$ac_ext <<_ACEOF
39103 /* end confdefs.h. */
39105 /* Override any GCC internal prototype to avoid an error.
39106 Use char because int might match the return type of a GCC
39107 builtin and then its argument prototype would still apply. */
39115 return strftime ();
39120 rm -f conftest.$ac_objext conftest$ac_exeext
39121 if { (ac_try="$ac_link"
39122 case "(($ac_try" in
39123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39124 *) ac_try_echo=$ac_try;;
39126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39127 (eval "$ac_link") 2>conftest.er1
39129 grep -v '^ *+' conftest.er1 >conftest.err
39131 cat conftest.err >&5
39132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); } && {
39134 test -z "$ac_c_werror_flag" ||
39135 test ! -s conftest.err
39136 } && test -s conftest$ac_exeext &&
39137 $as_test_x conftest$ac_exeext; then
39138 ac_cv_lib_intl_strftime=yes
39140 echo "$as_me: failed program was:" >&5
39141 sed 's/^/| /' conftest.$ac_ext >&5
39143 ac_cv_lib_intl_strftime=no
39146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39147 conftest$ac_exeext conftest.$ac_ext
39148 LIBS=$ac_check_lib_save_LIBS
39150 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39151 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39152 if test $ac_cv_lib_intl_strftime = yes; then
39153 cat >>confdefs.h <<\_ACEOF
39154 #define HAVE_STRFTIME 1
39157 LIBS="-lintl $LIBS"
39164 for ac_func in vprintf
39166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39170 echo $ECHO_N "(cached) $ECHO_C" >&6
39172 cat >conftest.$ac_ext <<_ACEOF
39175 cat confdefs.h >>conftest.$ac_ext
39176 cat >>conftest.$ac_ext <<_ACEOF
39177 /* end confdefs.h. */
39178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39180 #define $ac_func innocuous_$ac_func
39182 /* System header to define __stub macros and hopefully few prototypes,
39183 which can conflict with char $ac_func (); below.
39184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39185 <limits.h> exists even on freestanding compilers. */
39188 # include <limits.h>
39190 # include <assert.h>
39195 /* Override any GCC internal prototype to avoid an error.
39196 Use char because int might match the return type of a GCC
39197 builtin and then its argument prototype would still apply. */
39202 /* The GNU C library defines this for functions which it implements
39203 to always fail with ENOSYS. Some functions are actually named
39204 something starting with __ and the normal name is an alias. */
39205 #if defined __stub_$ac_func || defined __stub___$ac_func
39212 return $ac_func ();
39217 rm -f conftest.$ac_objext conftest$ac_exeext
39218 if { (ac_try="$ac_link"
39219 case "(($ac_try" in
39220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39221 *) ac_try_echo=$ac_try;;
39223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39224 (eval "$ac_link") 2>conftest.er1
39226 grep -v '^ *+' conftest.er1 >conftest.err
39228 cat conftest.err >&5
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); } && {
39231 test -z "$ac_c_werror_flag" ||
39232 test ! -s conftest.err
39233 } && test -s conftest$ac_exeext &&
39234 $as_test_x conftest$ac_exeext; then
39235 eval "$as_ac_var=yes"
39237 echo "$as_me: failed program was:" >&5
39238 sed 's/^/| /' conftest.$ac_ext >&5
39240 eval "$as_ac_var=no"
39243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39244 conftest$ac_exeext conftest.$ac_ext
39246 ac_res=`eval echo '${'$as_ac_var'}'`
39247 { echo "$as_me:$LINENO: result: $ac_res" >&5
39248 echo "${ECHO_T}$ac_res" >&6; }
39249 if test `eval echo '${'$as_ac_var'}'` = yes; then
39250 cat >>confdefs.h <<_ACEOF
39251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39254 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39255 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39256 if test "${ac_cv_func__doprnt+set}" = set; then
39257 echo $ECHO_N "(cached) $ECHO_C" >&6
39259 cat >conftest.$ac_ext <<_ACEOF
39262 cat confdefs.h >>conftest.$ac_ext
39263 cat >>conftest.$ac_ext <<_ACEOF
39264 /* end confdefs.h. */
39265 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39267 #define _doprnt innocuous__doprnt
39269 /* System header to define __stub macros and hopefully few prototypes,
39270 which can conflict with char _doprnt (); below.
39271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39272 <limits.h> exists even on freestanding compilers. */
39275 # include <limits.h>
39277 # include <assert.h>
39282 /* Override any GCC internal prototype to avoid an error.
39283 Use char because int might match the return type of a GCC
39284 builtin and then its argument prototype would still apply. */
39289 /* The GNU C library defines this for functions which it implements
39290 to always fail with ENOSYS. Some functions are actually named
39291 something starting with __ and the normal name is an alias. */
39292 #if defined __stub__doprnt || defined __stub____doprnt
39304 rm -f conftest.$ac_objext conftest$ac_exeext
39305 if { (ac_try="$ac_link"
39306 case "(($ac_try" in
39307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39308 *) ac_try_echo=$ac_try;;
39310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39311 (eval "$ac_link") 2>conftest.er1
39313 grep -v '^ *+' conftest.er1 >conftest.err
39315 cat conftest.err >&5
39316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317 (exit $ac_status); } && {
39318 test -z "$ac_c_werror_flag" ||
39319 test ! -s conftest.err
39320 } && test -s conftest$ac_exeext &&
39321 $as_test_x conftest$ac_exeext; then
39322 ac_cv_func__doprnt=yes
39324 echo "$as_me: failed program was:" >&5
39325 sed 's/^/| /' conftest.$ac_ext >&5
39327 ac_cv_func__doprnt=no
39330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39331 conftest$ac_exeext conftest.$ac_ext
39333 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39334 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39335 if test $ac_cv_func__doprnt = yes; then
39337 cat >>confdefs.h <<\_ACEOF
39338 #define HAVE_DOPRNT 1
39347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39348 # for constant arguments. Useless!
39349 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39350 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39351 if test "${ac_cv_working_alloca_h+set}" = set; then
39352 echo $ECHO_N "(cached) $ECHO_C" >&6
39354 cat >conftest.$ac_ext <<_ACEOF
39357 cat confdefs.h >>conftest.$ac_ext
39358 cat >>conftest.$ac_ext <<_ACEOF
39359 /* end confdefs.h. */
39360 #include <alloca.h>
39364 char *p = (char *) alloca (2 * sizeof (int));
39370 rm -f conftest.$ac_objext conftest$ac_exeext
39371 if { (ac_try="$ac_link"
39372 case "(($ac_try" in
39373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39374 *) ac_try_echo=$ac_try;;
39376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39377 (eval "$ac_link") 2>conftest.er1
39379 grep -v '^ *+' conftest.er1 >conftest.err
39381 cat conftest.err >&5
39382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); } && {
39384 test -z "$ac_c_werror_flag" ||
39385 test ! -s conftest.err
39386 } && test -s conftest$ac_exeext &&
39387 $as_test_x conftest$ac_exeext; then
39388 ac_cv_working_alloca_h=yes
39390 echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39393 ac_cv_working_alloca_h=no
39396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39397 conftest$ac_exeext conftest.$ac_ext
39399 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39400 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39401 if test $ac_cv_working_alloca_h = yes; then
39403 cat >>confdefs.h <<\_ACEOF
39404 #define HAVE_ALLOCA_H 1
39409 { echo "$as_me:$LINENO: checking for alloca" >&5
39410 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39411 if test "${ac_cv_func_alloca_works+set}" = set; then
39412 echo $ECHO_N "(cached) $ECHO_C" >&6
39414 cat >conftest.$ac_ext <<_ACEOF
39417 cat confdefs.h >>conftest.$ac_ext
39418 cat >>conftest.$ac_ext <<_ACEOF
39419 /* end confdefs.h. */
39421 # define alloca __builtin_alloca
39424 # include <malloc.h>
39425 # define alloca _alloca
39427 # ifdef HAVE_ALLOCA_H
39428 # include <alloca.h>
39433 # ifndef alloca /* predefined by HP cc +Olibcalls */
39444 char *p = (char *) alloca (1);
39450 rm -f conftest.$ac_objext conftest$ac_exeext
39451 if { (ac_try="$ac_link"
39452 case "(($ac_try" in
39453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39454 *) ac_try_echo=$ac_try;;
39456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39457 (eval "$ac_link") 2>conftest.er1
39459 grep -v '^ *+' conftest.er1 >conftest.err
39461 cat conftest.err >&5
39462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39463 (exit $ac_status); } && {
39464 test -z "$ac_c_werror_flag" ||
39465 test ! -s conftest.err
39466 } && test -s conftest$ac_exeext &&
39467 $as_test_x conftest$ac_exeext; then
39468 ac_cv_func_alloca_works=yes
39470 echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39473 ac_cv_func_alloca_works=no
39476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39477 conftest$ac_exeext conftest.$ac_ext
39479 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39480 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39482 if test $ac_cv_func_alloca_works = yes; then
39484 cat >>confdefs.h <<\_ACEOF
39485 #define HAVE_ALLOCA 1
39489 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39490 # that cause trouble. Some versions do not even contain alloca or
39491 # contain a buggy version. If you still want to use their alloca,
39492 # use ar to extract alloca.o from them instead of compiling alloca.c.
39494 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39496 cat >>confdefs.h <<\_ACEOF
39501 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39502 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39503 if test "${ac_cv_os_cray+set}" = set; then
39504 echo $ECHO_N "(cached) $ECHO_C" >&6
39506 cat >conftest.$ac_ext <<_ACEOF
39509 cat confdefs.h >>conftest.$ac_ext
39510 cat >>conftest.$ac_ext <<_ACEOF
39511 /* end confdefs.h. */
39512 #if defined CRAY && ! defined CRAY2
39519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39520 $EGREP "webecray" >/dev/null 2>&1; then
39528 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39529 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39530 if test $ac_cv_os_cray = yes; then
39531 for ac_func in _getb67 GETB67 getb67; do
39532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39536 echo $ECHO_N "(cached) $ECHO_C" >&6
39538 cat >conftest.$ac_ext <<_ACEOF
39541 cat confdefs.h >>conftest.$ac_ext
39542 cat >>conftest.$ac_ext <<_ACEOF
39543 /* end confdefs.h. */
39544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39546 #define $ac_func innocuous_$ac_func
39548 /* System header to define __stub macros and hopefully few prototypes,
39549 which can conflict with char $ac_func (); below.
39550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39551 <limits.h> exists even on freestanding compilers. */
39554 # include <limits.h>
39556 # include <assert.h>
39561 /* Override any GCC internal prototype to avoid an error.
39562 Use char because int might match the return type of a GCC
39563 builtin and then its argument prototype would still apply. */
39568 /* The GNU C library defines this for functions which it implements
39569 to always fail with ENOSYS. Some functions are actually named
39570 something starting with __ and the normal name is an alias. */
39571 #if defined __stub_$ac_func || defined __stub___$ac_func
39578 return $ac_func ();
39583 rm -f conftest.$ac_objext conftest$ac_exeext
39584 if { (ac_try="$ac_link"
39585 case "(($ac_try" in
39586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39587 *) ac_try_echo=$ac_try;;
39589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39590 (eval "$ac_link") 2>conftest.er1
39592 grep -v '^ *+' conftest.er1 >conftest.err
39594 cat conftest.err >&5
39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596 (exit $ac_status); } && {
39597 test -z "$ac_c_werror_flag" ||
39598 test ! -s conftest.err
39599 } && test -s conftest$ac_exeext &&
39600 $as_test_x conftest$ac_exeext; then
39601 eval "$as_ac_var=yes"
39603 echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39606 eval "$as_ac_var=no"
39609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39610 conftest$ac_exeext conftest.$ac_ext
39612 ac_res=`eval echo '${'$as_ac_var'}'`
39613 { echo "$as_me:$LINENO: result: $ac_res" >&5
39614 echo "${ECHO_T}$ac_res" >&6; }
39615 if test `eval echo '${'$as_ac_var'}'` = yes; then
39617 cat >>confdefs.h <<_ACEOF
39618 #define CRAY_STACKSEG_END $ac_func
39627 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39628 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39629 if test "${ac_cv_c_stack_direction+set}" = set; then
39630 echo $ECHO_N "(cached) $ECHO_C" >&6
39632 if test "$cross_compiling" = yes; then
39633 ac_cv_c_stack_direction=0
39635 cat >conftest.$ac_ext <<_ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h. */
39641 $ac_includes_default
39643 find_stack_direction ()
39645 static char *addr = 0;
39650 return find_stack_direction ();
39653 return (&dummy > addr) ? 1 : -1;
39659 return find_stack_direction () < 0;
39662 rm -f conftest$ac_exeext
39663 if { (ac_try="$ac_link"
39664 case "(($ac_try" in
39665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39666 *) ac_try_echo=$ac_try;;
39668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39669 (eval "$ac_link") 2>&5
39671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39673 { (case "(($ac_try" in
39674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39675 *) ac_try_echo=$ac_try;;
39677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39678 (eval "$ac_try") 2>&5
39680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 (exit $ac_status); }; }; then
39682 ac_cv_c_stack_direction=1
39684 echo "$as_me: program exited with status $ac_status" >&5
39685 echo "$as_me: failed program was:" >&5
39686 sed 's/^/| /' conftest.$ac_ext >&5
39688 ( exit $ac_status )
39689 ac_cv_c_stack_direction=-1
39691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39696 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39697 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39699 cat >>confdefs.h <<_ACEOF
39700 #define STACK_DIRECTION $ac_cv_c_stack_direction
39706 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39707 # -lseq on Dynix/PTX, -lgen on Unixware.
39708 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39709 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39710 if test "${ac_cv_search_getmntent+set}" = set; then
39711 echo $ECHO_N "(cached) $ECHO_C" >&6
39713 ac_func_search_save_LIBS=$LIBS
39714 cat >conftest.$ac_ext <<_ACEOF
39717 cat confdefs.h >>conftest.$ac_ext
39718 cat >>conftest.$ac_ext <<_ACEOF
39719 /* end confdefs.h. */
39721 /* Override any GCC internal prototype to avoid an error.
39722 Use char because int might match the return type of a GCC
39723 builtin and then its argument prototype would still apply. */
39731 return getmntent ();
39736 for ac_lib in '' sun seq gen; do
39737 if test -z "$ac_lib"; then
39738 ac_res="none required"
39741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39743 rm -f conftest.$ac_objext conftest$ac_exeext
39744 if { (ac_try="$ac_link"
39745 case "(($ac_try" in
39746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39747 *) ac_try_echo=$ac_try;;
39749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39750 (eval "$ac_link") 2>conftest.er1
39752 grep -v '^ *+' conftest.er1 >conftest.err
39754 cat conftest.err >&5
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); } && {
39757 test -z "$ac_c_werror_flag" ||
39758 test ! -s conftest.err
39759 } && test -s conftest$ac_exeext &&
39760 $as_test_x conftest$ac_exeext; then
39761 ac_cv_search_getmntent=$ac_res
39763 echo "$as_me: failed program was:" >&5
39764 sed 's/^/| /' conftest.$ac_ext >&5
39769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39771 if test "${ac_cv_search_getmntent+set}" = set; then
39775 if test "${ac_cv_search_getmntent+set}" = set; then
39778 ac_cv_search_getmntent=no
39780 rm conftest.$ac_ext
39781 LIBS=$ac_func_search_save_LIBS
39783 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39784 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39785 ac_res=$ac_cv_search_getmntent
39786 if test "$ac_res" != no; then
39787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39788 ac_cv_func_getmntent=yes
39790 cat >>confdefs.h <<\_ACEOF
39791 #define HAVE_GETMNTENT 1
39795 ac_cv_func_getmntent=no
39799 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39800 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39801 if test "${ac_cv_func_closedir_void+set}" = set; then
39802 echo $ECHO_N "(cached) $ECHO_C" >&6
39804 if test "$cross_compiling" = yes; then
39805 ac_cv_func_closedir_void=yes
39807 cat >conftest.$ac_ext <<_ACEOF
39810 cat confdefs.h >>conftest.$ac_ext
39811 cat >>conftest.$ac_ext <<_ACEOF
39812 /* end confdefs.h. */
39813 $ac_includes_default
39814 #include <$ac_header_dirent>
39815 #ifndef __cplusplus
39822 return closedir (opendir (".")) != 0;
39827 rm -f conftest$ac_exeext
39828 if { (ac_try="$ac_link"
39829 case "(($ac_try" in
39830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39831 *) ac_try_echo=$ac_try;;
39833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39834 (eval "$ac_link") 2>&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39838 { (case "(($ac_try" in
39839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39840 *) ac_try_echo=$ac_try;;
39842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39843 (eval "$ac_try") 2>&5
39845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846 (exit $ac_status); }; }; then
39847 ac_cv_func_closedir_void=no
39849 echo "$as_me: program exited with status $ac_status" >&5
39850 echo "$as_me: failed program was:" >&5
39851 sed 's/^/| /' conftest.$ac_ext >&5
39853 ( exit $ac_status )
39854 ac_cv_func_closedir_void=yes
39856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39861 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39862 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39863 if test $ac_cv_func_closedir_void = yes; then
39865 cat >>confdefs.h <<\_ACEOF
39866 #define CLOSEDIR_VOID 1
39871 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39872 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39873 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39874 echo $ECHO_N "(cached) $ECHO_C" >&6
39876 if test "$cross_compiling" = yes; then
39877 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39878 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39879 { (exit 1); exit 1; }; }
39881 cat >conftest.$ac_ext <<_ACEOF
39884 cat confdefs.h >>conftest.$ac_ext
39885 cat >>conftest.$ac_ext <<_ACEOF
39886 /* end confdefs.h. */
39887 $ac_includes_default
39891 /* If this system has a BSD-style setpgrp which takes arguments,
39892 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39893 exit successfully. */
39894 return setpgrp (1,1) != -1;
39899 rm -f conftest$ac_exeext
39900 if { (ac_try="$ac_link"
39901 case "(($ac_try" in
39902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39903 *) ac_try_echo=$ac_try;;
39905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39906 (eval "$ac_link") 2>&5
39908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39910 { (case "(($ac_try" in
39911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39912 *) ac_try_echo=$ac_try;;
39914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39915 (eval "$ac_try") 2>&5
39917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918 (exit $ac_status); }; }; then
39919 ac_cv_func_setpgrp_void=no
39921 echo "$as_me: program exited with status $ac_status" >&5
39922 echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39925 ( exit $ac_status )
39926 ac_cv_func_setpgrp_void=yes
39928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39933 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39934 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39935 if test $ac_cv_func_setpgrp_void = yes; then
39937 cat >>confdefs.h <<\_ACEOF
39938 #define SETPGRP_VOID 1
39942 # AC_FUNC_FNMATCH dnl use local version
39944 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39945 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39946 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39947 echo $ECHO_N "(cached) $ECHO_C" >&6
39949 ac_check_lib_save_LIBS=$LIBS
39950 LIBS="-lintl $LIBS"
39951 cat >conftest.$ac_ext <<_ACEOF
39954 cat confdefs.h >>conftest.$ac_ext
39955 cat >>conftest.$ac_ext <<_ACEOF
39956 /* end confdefs.h. */
39958 /* Override any GCC internal prototype to avoid an error.
39959 Use char because int might match the return type of a GCC
39960 builtin and then its argument prototype would still apply. */
39973 rm -f conftest.$ac_objext conftest$ac_exeext
39974 if { (ac_try="$ac_link"
39975 case "(($ac_try" in
39976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39977 *) ac_try_echo=$ac_try;;
39979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39980 (eval "$ac_link") 2>conftest.er1
39982 grep -v '^ *+' conftest.er1 >conftest.err
39984 cat conftest.err >&5
39985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39986 (exit $ac_status); } && {
39987 test -z "$ac_c_werror_flag" ||
39988 test ! -s conftest.err
39989 } && test -s conftest$ac_exeext &&
39990 $as_test_x conftest$ac_exeext; then
39991 ac_cv_lib_intl_gettext=yes
39993 echo "$as_me: failed program was:" >&5
39994 sed 's/^/| /' conftest.$ac_ext >&5
39996 ac_cv_lib_intl_gettext=no
39999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40000 conftest$ac_exeext conftest.$ac_ext
40001 LIBS=$ac_check_lib_save_LIBS
40003 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40004 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40005 if test $ac_cv_lib_intl_gettext = yes; then
40006 LIBS="$LIBS -lintl"
40011 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40012 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40013 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40014 echo $ECHO_N "(cached) $ECHO_C" >&6
40016 ac_check_lib_save_LIBS=$LIBS
40018 cat >conftest.$ac_ext <<_ACEOF
40021 cat confdefs.h >>conftest.$ac_ext
40022 cat >>conftest.$ac_ext <<_ACEOF
40023 /* end confdefs.h. */
40025 /* Override any GCC internal prototype to avoid an error.
40026 Use char because int might match the return type of a GCC
40027 builtin and then its argument prototype would still apply. */
40035 return getpwnam ();
40040 rm -f conftest.$ac_objext conftest$ac_exeext
40041 if { (ac_try="$ac_link"
40042 case "(($ac_try" in
40043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40044 *) ac_try_echo=$ac_try;;
40046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40047 (eval "$ac_link") 2>conftest.er1
40049 grep -v '^ *+' conftest.er1 >conftest.err
40051 cat conftest.err >&5
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); } && {
40054 test -z "$ac_c_werror_flag" ||
40055 test ! -s conftest.err
40056 } && test -s conftest$ac_exeext &&
40057 $as_test_x conftest$ac_exeext; then
40058 ac_cv_lib_sun_getpwnam=yes
40060 echo "$as_me: failed program was:" >&5
40061 sed 's/^/| /' conftest.$ac_ext >&5
40063 ac_cv_lib_sun_getpwnam=no
40066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40067 conftest$ac_exeext conftest.$ac_ext
40068 LIBS=$ac_check_lib_save_LIBS
40070 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40071 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40072 if test $ac_cv_lib_sun_getpwnam = yes; then
40073 cat >>confdefs.h <<_ACEOF
40074 #define HAVE_LIBSUN 1
40083 for ac_header in zlib.h
40085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40090 echo $ECHO_N "(cached) $ECHO_C" >&6
40092 ac_res=`eval echo '${'$as_ac_Header'}'`
40093 { echo "$as_me:$LINENO: result: $ac_res" >&5
40094 echo "${ECHO_T}$ac_res" >&6; }
40096 # Is the header compilable?
40097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40099 cat >conftest.$ac_ext <<_ACEOF
40102 cat confdefs.h >>conftest.$ac_ext
40103 cat >>conftest.$ac_ext <<_ACEOF
40104 /* end confdefs.h. */
40105 $ac_includes_default
40106 #include <$ac_header>
40108 rm -f conftest.$ac_objext
40109 if { (ac_try="$ac_compile"
40110 case "(($ac_try" in
40111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40112 *) ac_try_echo=$ac_try;;
40114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40115 (eval "$ac_compile") 2>conftest.er1
40117 grep -v '^ *+' conftest.er1 >conftest.err
40119 cat conftest.err >&5
40120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121 (exit $ac_status); } && {
40122 test -z "$ac_c_werror_flag" ||
40123 test ! -s conftest.err
40124 } && test -s conftest.$ac_objext; then
40125 ac_header_compiler=yes
40127 echo "$as_me: failed program was:" >&5
40128 sed 's/^/| /' conftest.$ac_ext >&5
40130 ac_header_compiler=no
40133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40135 echo "${ECHO_T}$ac_header_compiler" >&6; }
40137 # Is the header present?
40138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40140 cat >conftest.$ac_ext <<_ACEOF
40143 cat confdefs.h >>conftest.$ac_ext
40144 cat >>conftest.$ac_ext <<_ACEOF
40145 /* end confdefs.h. */
40146 #include <$ac_header>
40148 if { (ac_try="$ac_cpp conftest.$ac_ext"
40149 case "(($ac_try" in
40150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40151 *) ac_try_echo=$ac_try;;
40153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40156 grep -v '^ *+' conftest.er1 >conftest.err
40158 cat conftest.err >&5
40159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160 (exit $ac_status); } >/dev/null && {
40161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40162 test ! -s conftest.err
40164 ac_header_preproc=yes
40166 echo "$as_me: failed program was:" >&5
40167 sed 's/^/| /' conftest.$ac_ext >&5
40169 ac_header_preproc=no
40172 rm -f conftest.err conftest.$ac_ext
40173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40174 echo "${ECHO_T}$ac_header_preproc" >&6; }
40176 # So? What about this header?
40177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40183 ac_header_preproc=yes
40186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40204 echo $ECHO_N "(cached) $ECHO_C" >&6
40206 eval "$as_ac_Header=\$ac_header_preproc"
40208 ac_res=`eval echo '${'$as_ac_Header'}'`
40209 { echo "$as_me:$LINENO: result: $ac_res" >&5
40210 echo "${ECHO_T}$ac_res" >&6; }
40213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40214 cat >>confdefs.h <<_ACEOF
40215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40222 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40223 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40224 if test "${ac_cv_lib_z_deflate+set}" = set; then
40225 echo $ECHO_N "(cached) $ECHO_C" >&6
40227 ac_check_lib_save_LIBS=$LIBS
40229 cat >conftest.$ac_ext <<_ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h. */
40236 /* Override any GCC internal prototype to avoid an error.
40237 Use char because int might match the return type of a GCC
40238 builtin and then its argument prototype would still apply. */
40251 rm -f conftest.$ac_objext conftest$ac_exeext
40252 if { (ac_try="$ac_link"
40253 case "(($ac_try" in
40254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40255 *) ac_try_echo=$ac_try;;
40257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40258 (eval "$ac_link") 2>conftest.er1
40260 grep -v '^ *+' conftest.er1 >conftest.err
40262 cat conftest.err >&5
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); } && {
40265 test -z "$ac_c_werror_flag" ||
40266 test ! -s conftest.err
40267 } && test -s conftest$ac_exeext &&
40268 $as_test_x conftest$ac_exeext; then
40269 ac_cv_lib_z_deflate=yes
40271 echo "$as_me: failed program was:" >&5
40272 sed 's/^/| /' conftest.$ac_ext >&5
40274 ac_cv_lib_z_deflate=no
40277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40278 conftest$ac_exeext conftest.$ac_ext
40279 LIBS=$ac_check_lib_save_LIBS
40281 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40282 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40283 if test $ac_cv_lib_z_deflate = yes; then
40288 if test x$FDLIBS = x-lz; then
40289 cat >>confdefs.h <<\_ACEOF
40290 #define HAVE_LIBZ 1
40297 # Check whether --enable-acl was given.
40298 if test "${enable_acl+set}" = set; then
40299 enableval=$enable_acl;
40300 if test x$enableval = xno; then
40309 have_extended_acl=no
40310 if test x$support_acl = xyes; then
40311 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40312 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40313 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40314 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40315 echo $ECHO_N "(cached) $ECHO_C" >&6
40317 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40318 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40320 # Is the header compilable?
40321 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40322 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40323 cat >conftest.$ac_ext <<_ACEOF
40326 cat confdefs.h >>conftest.$ac_ext
40327 cat >>conftest.$ac_ext <<_ACEOF
40328 /* end confdefs.h. */
40329 $ac_includes_default
40330 #include <sys/acl.h>
40332 rm -f conftest.$ac_objext
40333 if { (ac_try="$ac_compile"
40334 case "(($ac_try" in
40335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40336 *) ac_try_echo=$ac_try;;
40338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40339 (eval "$ac_compile") 2>conftest.er1
40341 grep -v '^ *+' conftest.er1 >conftest.err
40343 cat conftest.err >&5
40344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); } && {
40346 test -z "$ac_c_werror_flag" ||
40347 test ! -s conftest.err
40348 } && test -s conftest.$ac_objext; then
40349 ac_header_compiler=yes
40351 echo "$as_me: failed program was:" >&5
40352 sed 's/^/| /' conftest.$ac_ext >&5
40354 ac_header_compiler=no
40357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40359 echo "${ECHO_T}$ac_header_compiler" >&6; }
40361 # Is the header present?
40362 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40363 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40364 cat >conftest.$ac_ext <<_ACEOF
40367 cat confdefs.h >>conftest.$ac_ext
40368 cat >>conftest.$ac_ext <<_ACEOF
40369 /* end confdefs.h. */
40370 #include <sys/acl.h>
40372 if { (ac_try="$ac_cpp conftest.$ac_ext"
40373 case "(($ac_try" in
40374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40375 *) ac_try_echo=$ac_try;;
40377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40380 grep -v '^ *+' conftest.er1 >conftest.err
40382 cat conftest.err >&5
40383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384 (exit $ac_status); } >/dev/null && {
40385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40386 test ! -s conftest.err
40388 ac_header_preproc=yes
40390 echo "$as_me: failed program was:" >&5
40391 sed 's/^/| /' conftest.$ac_ext >&5
40393 ac_header_preproc=no
40396 rm -f conftest.err conftest.$ac_ext
40397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40398 echo "${ECHO_T}$ac_header_preproc" >&6; }
40400 # So? What about this header?
40401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40403 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40404 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40405 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40406 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40407 ac_header_preproc=yes
40410 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40411 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40412 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40413 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40414 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40415 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40416 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40417 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40418 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40419 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40420 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40421 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40425 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40426 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40427 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40428 echo $ECHO_N "(cached) $ECHO_C" >&6
40430 ac_cv_header_sys_acl_h=$ac_header_preproc
40432 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40433 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40436 if test $ac_cv_header_sys_acl_h = yes; then
40438 cat >>confdefs.h <<\_ACEOF
40439 #define HAVE_SYS_ACL_H 1
40445 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40446 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40447 if test "${ac_cv_func_acl_get_file+set}" = set; then
40448 echo $ECHO_N "(cached) $ECHO_C" >&6
40450 cat >conftest.$ac_ext <<_ACEOF
40453 cat confdefs.h >>conftest.$ac_ext
40454 cat >>conftest.$ac_ext <<_ACEOF
40455 /* end confdefs.h. */
40456 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40458 #define acl_get_file innocuous_acl_get_file
40460 /* System header to define __stub macros and hopefully few prototypes,
40461 which can conflict with char acl_get_file (); below.
40462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40463 <limits.h> exists even on freestanding compilers. */
40466 # include <limits.h>
40468 # include <assert.h>
40471 #undef acl_get_file
40473 /* Override any GCC internal prototype to avoid an error.
40474 Use char because int might match the return type of a GCC
40475 builtin and then its argument prototype would still apply. */
40479 char acl_get_file ();
40480 /* The GNU C library defines this for functions which it implements
40481 to always fail with ENOSYS. Some functions are actually named
40482 something starting with __ and the normal name is an alias. */
40483 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40490 return acl_get_file ();
40495 rm -f conftest.$ac_objext conftest$ac_exeext
40496 if { (ac_try="$ac_link"
40497 case "(($ac_try" in
40498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40499 *) ac_try_echo=$ac_try;;
40501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40502 (eval "$ac_link") 2>conftest.er1
40504 grep -v '^ *+' conftest.er1 >conftest.err
40506 cat conftest.err >&5
40507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508 (exit $ac_status); } && {
40509 test -z "$ac_c_werror_flag" ||
40510 test ! -s conftest.err
40511 } && test -s conftest$ac_exeext &&
40512 $as_test_x conftest$ac_exeext; then
40513 ac_cv_func_acl_get_file=yes
40515 echo "$as_me: failed program was:" >&5
40516 sed 's/^/| /' conftest.$ac_ext >&5
40518 ac_cv_func_acl_get_file=no
40521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40522 conftest$ac_exeext conftest.$ac_ext
40524 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40525 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40526 if test $ac_cv_func_acl_get_file = yes; then
40532 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40533 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40534 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40535 echo $ECHO_N "(cached) $ECHO_C" >&6
40537 ac_check_lib_save_LIBS=$LIBS
40539 cat >conftest.$ac_ext <<_ACEOF
40542 cat confdefs.h >>conftest.$ac_ext
40543 cat >>conftest.$ac_ext <<_ACEOF
40544 /* end confdefs.h. */
40546 /* Override any GCC internal prototype to avoid an error.
40547 Use char because int might match the return type of a GCC
40548 builtin and then its argument prototype would still apply. */
40552 char acl_get_file ();
40556 return acl_get_file ();
40561 rm -f conftest.$ac_objext conftest$ac_exeext
40562 if { (ac_try="$ac_link"
40563 case "(($ac_try" in
40564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40565 *) ac_try_echo=$ac_try;;
40567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40568 (eval "$ac_link") 2>conftest.er1
40570 grep -v '^ *+' conftest.er1 >conftest.err
40572 cat conftest.err >&5
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); } && {
40575 test -z "$ac_c_werror_flag" ||
40576 test ! -s conftest.err
40577 } && test -s conftest$ac_exeext &&
40578 $as_test_x conftest$ac_exeext; then
40579 ac_cv_lib_acl_acl_get_file=yes
40581 echo "$as_me: failed program was:" >&5
40582 sed 's/^/| /' conftest.$ac_ext >&5
40584 ac_cv_lib_acl_acl_get_file=no
40587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40588 conftest$ac_exeext conftest.$ac_ext
40589 LIBS=$ac_check_lib_save_LIBS
40591 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40592 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40593 if test $ac_cv_lib_acl_acl_get_file = yes; then
40596 FDLIBS="-lacl $FDLIBS"
40600 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40601 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40602 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40603 echo $ECHO_N "(cached) $ECHO_C" >&6
40605 ac_check_lib_save_LIBS=$LIBS
40606 LIBS="-lpacl $LIBS"
40607 cat >conftest.$ac_ext <<_ACEOF
40610 cat confdefs.h >>conftest.$ac_ext
40611 cat >>conftest.$ac_ext <<_ACEOF
40612 /* end confdefs.h. */
40614 /* Override any GCC internal prototype to avoid an error.
40615 Use char because int might match the return type of a GCC
40616 builtin and then its argument prototype would still apply. */
40620 char acl_get_file ();
40624 return acl_get_file ();
40629 rm -f conftest.$ac_objext conftest$ac_exeext
40630 if { (ac_try="$ac_link"
40631 case "(($ac_try" in
40632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40633 *) ac_try_echo=$ac_try;;
40635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40636 (eval "$ac_link") 2>conftest.er1
40638 grep -v '^ *+' conftest.er1 >conftest.err
40640 cat conftest.err >&5
40641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642 (exit $ac_status); } && {
40643 test -z "$ac_c_werror_flag" ||
40644 test ! -s conftest.err
40645 } && test -s conftest$ac_exeext &&
40646 $as_test_x conftest$ac_exeext; then
40647 ac_cv_lib_pacl_acl_get_file=yes
40649 echo "$as_me: failed program was:" >&5
40650 sed 's/^/| /' conftest.$ac_ext >&5
40652 ac_cv_lib_pacl_acl_get_file=no
40655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40656 conftest$ac_exeext conftest.$ac_ext
40657 LIBS=$ac_check_lib_save_LIBS
40659 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40660 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40661 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40664 FDLIBS="-lpacl $FDLIBS"
40668 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40669 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40670 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40671 echo $ECHO_N "(cached) $ECHO_C" >&6
40673 ac_check_lib_save_LIBS=$LIBS
40675 cat >conftest.$ac_ext <<_ACEOF
40678 cat confdefs.h >>conftest.$ac_ext
40679 cat >>conftest.$ac_ext <<_ACEOF
40680 /* end confdefs.h. */
40682 /* Override any GCC internal prototype to avoid an error.
40683 Use char because int might match the return type of a GCC
40684 builtin and then its argument prototype would still apply. */
40692 return acltotext ();
40697 rm -f conftest.$ac_objext conftest$ac_exeext
40698 if { (ac_try="$ac_link"
40699 case "(($ac_try" in
40700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40701 *) ac_try_echo=$ac_try;;
40703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40704 (eval "$ac_link") 2>conftest.er1
40706 grep -v '^ *+' conftest.er1 >conftest.err
40708 cat conftest.err >&5
40709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710 (exit $ac_status); } && {
40711 test -z "$ac_c_werror_flag" ||
40712 test ! -s conftest.err
40713 } && test -s conftest$ac_exeext &&
40714 $as_test_x conftest$ac_exeext; then
40715 ac_cv_lib_sec_acltotext=yes
40717 echo "$as_me: failed program was:" >&5
40718 sed 's/^/| /' conftest.$ac_ext >&5
40720 ac_cv_lib_sec_acltotext=no
40723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40724 conftest$ac_exeext conftest.$ac_ext
40725 LIBS=$ac_check_lib_save_LIBS
40727 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40728 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40729 if test $ac_cv_lib_sec_acltotext = yes; then
40732 FDLIBS="-lsec $FDLIBS"
40734 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40735 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40736 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40737 echo $ECHO_N "(cached) $ECHO_C" >&6
40739 ac_check_lib_save_LIBS=$LIBS
40741 cat >conftest.$ac_ext <<_ACEOF
40744 cat confdefs.h >>conftest.$ac_ext
40745 cat >>conftest.$ac_ext <<_ACEOF
40746 /* end confdefs.h. */
40748 /* Override any GCC internal prototype to avoid an error.
40749 Use char because int might match the return type of a GCC
40750 builtin and then its argument prototype would still apply. */
40754 char acl_totext ();
40758 return acl_totext ();
40763 rm -f conftest.$ac_objext conftest$ac_exeext
40764 if { (ac_try="$ac_link"
40765 case "(($ac_try" in
40766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40767 *) ac_try_echo=$ac_try;;
40769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40770 (eval "$ac_link") 2>conftest.er1
40772 grep -v '^ *+' conftest.er1 >conftest.err
40774 cat conftest.err >&5
40775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40776 (exit $ac_status); } && {
40777 test -z "$ac_c_werror_flag" ||
40778 test ! -s conftest.err
40779 } && test -s conftest$ac_exeext &&
40780 $as_test_x conftest$ac_exeext; then
40781 ac_cv_lib_sec_acl_totext=yes
40783 echo "$as_me: failed program was:" >&5
40784 sed 's/^/| /' conftest.$ac_ext >&5
40786 ac_cv_lib_sec_acl_totext=no
40789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40790 conftest$ac_exeext conftest.$ac_ext
40791 LIBS=$ac_check_lib_save_LIBS
40793 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40794 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40795 if test $ac_cv_lib_sec_acl_totext = yes; then
40797 have_extended_acl=yes
40818 if test $have_acl = yes; then
40820 cat >>confdefs.h <<\_ACEOF
40826 if test $have_extended_acl = yes; then
40828 cat >>confdefs.h <<\_ACEOF
40829 #define HAVE_EXTENDED_ACL
40836 # Check whether --enable-xattr was given.
40837 if test "${enable_xattr+set}" = set; then
40838 enableval=$enable_xattr;
40839 if test x$enableval = xno; then
40848 if test x$support_xattr = xyes; then
40849 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40850 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40851 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40852 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40853 echo $ECHO_N "(cached) $ECHO_C" >&6
40855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40856 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40858 # Is the header compilable?
40859 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40860 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40861 cat >conftest.$ac_ext <<_ACEOF
40864 cat confdefs.h >>conftest.$ac_ext
40865 cat >>conftest.$ac_ext <<_ACEOF
40866 /* end confdefs.h. */
40867 $ac_includes_default
40868 #include <sys/xattr.h>
40870 rm -f conftest.$ac_objext
40871 if { (ac_try="$ac_compile"
40872 case "(($ac_try" in
40873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40874 *) ac_try_echo=$ac_try;;
40876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40877 (eval "$ac_compile") 2>conftest.er1
40879 grep -v '^ *+' conftest.er1 >conftest.err
40881 cat conftest.err >&5
40882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40883 (exit $ac_status); } && {
40884 test -z "$ac_c_werror_flag" ||
40885 test ! -s conftest.err
40886 } && test -s conftest.$ac_objext; then
40887 ac_header_compiler=yes
40889 echo "$as_me: failed program was:" >&5
40890 sed 's/^/| /' conftest.$ac_ext >&5
40892 ac_header_compiler=no
40895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40897 echo "${ECHO_T}$ac_header_compiler" >&6; }
40899 # Is the header present?
40900 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40901 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40902 cat >conftest.$ac_ext <<_ACEOF
40905 cat confdefs.h >>conftest.$ac_ext
40906 cat >>conftest.$ac_ext <<_ACEOF
40907 /* end confdefs.h. */
40908 #include <sys/xattr.h>
40910 if { (ac_try="$ac_cpp conftest.$ac_ext"
40911 case "(($ac_try" in
40912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40913 *) ac_try_echo=$ac_try;;
40915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40918 grep -v '^ *+' conftest.er1 >conftest.err
40920 cat conftest.err >&5
40921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40922 (exit $ac_status); } >/dev/null && {
40923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40924 test ! -s conftest.err
40926 ac_header_preproc=yes
40928 echo "$as_me: failed program was:" >&5
40929 sed 's/^/| /' conftest.$ac_ext >&5
40931 ac_header_preproc=no
40934 rm -f conftest.err conftest.$ac_ext
40935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40936 echo "${ECHO_T}$ac_header_preproc" >&6; }
40938 # So? What about this header?
40939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40941 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40942 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40943 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40944 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40945 ac_header_preproc=yes
40948 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40949 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40950 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
40951 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
40952 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40953 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40954 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
40955 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
40956 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40957 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40958 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40959 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40963 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40964 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40965 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40966 echo $ECHO_N "(cached) $ECHO_C" >&6
40968 ac_cv_header_sys_xattr_h=$ac_header_preproc
40970 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40971 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40974 if test $ac_cv_header_sys_xattr_h = yes; then
40976 cat >>confdefs.h <<\_ACEOF
40977 #define HAVE_SYS_XATTR_H 1
40986 for ac_func in llistxattr lgetxattr lsetxattr
40988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40992 echo $ECHO_N "(cached) $ECHO_C" >&6
40994 cat >conftest.$ac_ext <<_ACEOF
40997 cat confdefs.h >>conftest.$ac_ext
40998 cat >>conftest.$ac_ext <<_ACEOF
40999 /* end confdefs.h. */
41000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41002 #define $ac_func innocuous_$ac_func
41004 /* System header to define __stub macros and hopefully few prototypes,
41005 which can conflict with char $ac_func (); below.
41006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41007 <limits.h> exists even on freestanding compilers. */
41010 # include <limits.h>
41012 # include <assert.h>
41017 /* Override any GCC internal prototype to avoid an error.
41018 Use char because int might match the return type of a GCC
41019 builtin and then its argument prototype would still apply. */
41024 /* The GNU C library defines this for functions which it implements
41025 to always fail with ENOSYS. Some functions are actually named
41026 something starting with __ and the normal name is an alias. */
41027 #if defined __stub_$ac_func || defined __stub___$ac_func
41034 return $ac_func ();
41039 rm -f conftest.$ac_objext conftest$ac_exeext
41040 if { (ac_try="$ac_link"
41041 case "(($ac_try" in
41042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41043 *) ac_try_echo=$ac_try;;
41045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41046 (eval "$ac_link") 2>conftest.er1
41048 grep -v '^ *+' conftest.er1 >conftest.err
41050 cat conftest.err >&5
41051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052 (exit $ac_status); } && {
41053 test -z "$ac_c_werror_flag" ||
41054 test ! -s conftest.err
41055 } && test -s conftest$ac_exeext &&
41056 $as_test_x conftest$ac_exeext; then
41057 eval "$as_ac_var=yes"
41059 echo "$as_me: failed program was:" >&5
41060 sed 's/^/| /' conftest.$ac_ext >&5
41062 eval "$as_ac_var=no"
41065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41066 conftest$ac_exeext conftest.$ac_ext
41068 ac_res=`eval echo '${'$as_ac_var'}'`
41069 { echo "$as_me:$LINENO: result: $ac_res" >&5
41070 echo "${ECHO_T}$ac_res" >&6; }
41071 if test `eval echo '${'$as_ac_var'}'` = yes; then
41072 cat >>confdefs.h <<_ACEOF
41073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41078 cat >>confdefs.h <<\_ACEOF
41079 #define HAVE_LLISTXATTR
41083 cat >>confdefs.h <<\_ACEOF
41084 #define HAVE_LGETXATTR
41088 cat >>confdefs.h <<\_ACEOF
41089 #define HAVE_LSETXATTR
41098 for ac_func in listxattr getxattr setxattr
41100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41104 echo $ECHO_N "(cached) $ECHO_C" >&6
41106 cat >conftest.$ac_ext <<_ACEOF
41109 cat confdefs.h >>conftest.$ac_ext
41110 cat >>conftest.$ac_ext <<_ACEOF
41111 /* end confdefs.h. */
41112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41114 #define $ac_func innocuous_$ac_func
41116 /* System header to define __stub macros and hopefully few prototypes,
41117 which can conflict with char $ac_func (); below.
41118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41119 <limits.h> exists even on freestanding compilers. */
41122 # include <limits.h>
41124 # include <assert.h>
41129 /* Override any GCC internal prototype to avoid an error.
41130 Use char because int might match the return type of a GCC
41131 builtin and then its argument prototype would still apply. */
41136 /* The GNU C library defines this for functions which it implements
41137 to always fail with ENOSYS. Some functions are actually named
41138 something starting with __ and the normal name is an alias. */
41139 #if defined __stub_$ac_func || defined __stub___$ac_func
41146 return $ac_func ();
41151 rm -f conftest.$ac_objext conftest$ac_exeext
41152 if { (ac_try="$ac_link"
41153 case "(($ac_try" in
41154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41155 *) ac_try_echo=$ac_try;;
41157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41158 (eval "$ac_link") 2>conftest.er1
41160 grep -v '^ *+' conftest.er1 >conftest.err
41162 cat conftest.err >&5
41163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164 (exit $ac_status); } && {
41165 test -z "$ac_c_werror_flag" ||
41166 test ! -s conftest.err
41167 } && test -s conftest$ac_exeext &&
41168 $as_test_x conftest$ac_exeext; then
41169 eval "$as_ac_var=yes"
41171 echo "$as_me: failed program was:" >&5
41172 sed 's/^/| /' conftest.$ac_ext >&5
41174 eval "$as_ac_var=no"
41177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41178 conftest$ac_exeext conftest.$ac_ext
41180 ac_res=`eval echo '${'$as_ac_var'}'`
41181 { echo "$as_me:$LINENO: result: $ac_res" >&5
41182 echo "${ECHO_T}$ac_res" >&6; }
41183 if test `eval echo '${'$as_ac_var'}'` = yes; then
41184 cat >>confdefs.h <<_ACEOF
41185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41190 cat >>confdefs.h <<\_ACEOF
41191 #define HAVE_LLISTXATTR
41195 cat >>confdefs.h <<\_ACEOF
41196 #define HAVE_LGETXATTR
41200 cat >>confdefs.h <<\_ACEOF
41201 #define HAVE_LSETXATTR
41215 if test $have_xattr = yes; then
41217 cat >>confdefs.h <<\_ACEOF
41225 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41226 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41227 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41228 echo $ECHO_N "(cached) $ECHO_C" >&6
41230 ac_check_lib_save_LIBS=$LIBS
41231 LIBS="-lpthread $LIBS"
41232 cat >conftest.$ac_ext <<_ACEOF
41235 cat confdefs.h >>conftest.$ac_ext
41236 cat >>conftest.$ac_ext <<_ACEOF
41237 /* end confdefs.h. */
41239 /* Override any GCC internal prototype to avoid an error.
41240 Use char because int might match the return type of a GCC
41241 builtin and then its argument prototype would still apply. */
41245 char pthread_create ();
41249 return pthread_create ();
41254 rm -f conftest.$ac_objext conftest$ac_exeext
41255 if { (ac_try="$ac_link"
41256 case "(($ac_try" in
41257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41258 *) ac_try_echo=$ac_try;;
41260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41261 (eval "$ac_link") 2>conftest.er1
41263 grep -v '^ *+' conftest.er1 >conftest.err
41265 cat conftest.err >&5
41266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267 (exit $ac_status); } && {
41268 test -z "$ac_c_werror_flag" ||
41269 test ! -s conftest.err
41270 } && test -s conftest$ac_exeext &&
41271 $as_test_x conftest$ac_exeext; then
41272 ac_cv_lib_pthread_pthread_create=yes
41274 echo "$as_me: failed program was:" >&5
41275 sed 's/^/| /' conftest.$ac_ext >&5
41277 ac_cv_lib_pthread_pthread_create=no
41280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41281 conftest$ac_exeext conftest.$ac_ext
41282 LIBS=$ac_check_lib_save_LIBS
41284 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41285 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41286 if test $ac_cv_lib_pthread_pthread_create = yes; then
41287 PTHREAD_LIB="-lpthread"
41290 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41291 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41292 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41293 echo $ECHO_N "(cached) $ECHO_C" >&6
41295 ac_check_lib_save_LIBS=$LIBS
41296 LIBS="-lpthreads $LIBS"
41297 cat >conftest.$ac_ext <<_ACEOF
41300 cat confdefs.h >>conftest.$ac_ext
41301 cat >>conftest.$ac_ext <<_ACEOF
41302 /* end confdefs.h. */
41304 /* Override any GCC internal prototype to avoid an error.
41305 Use char because int might match the return type of a GCC
41306 builtin and then its argument prototype would still apply. */
41310 char pthread_create ();
41314 return pthread_create ();
41319 rm -f conftest.$ac_objext conftest$ac_exeext
41320 if { (ac_try="$ac_link"
41321 case "(($ac_try" in
41322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41323 *) ac_try_echo=$ac_try;;
41325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41326 (eval "$ac_link") 2>conftest.er1
41328 grep -v '^ *+' conftest.er1 >conftest.err
41330 cat conftest.err >&5
41331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41332 (exit $ac_status); } && {
41333 test -z "$ac_c_werror_flag" ||
41334 test ! -s conftest.err
41335 } && test -s conftest$ac_exeext &&
41336 $as_test_x conftest$ac_exeext; then
41337 ac_cv_lib_pthreads_pthread_create=yes
41339 echo "$as_me: failed program was:" >&5
41340 sed 's/^/| /' conftest.$ac_ext >&5
41342 ac_cv_lib_pthreads_pthread_create=no
41345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41346 conftest$ac_exeext conftest.$ac_ext
41347 LIBS=$ac_check_lib_save_LIBS
41349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41350 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41351 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41352 PTHREAD_LIB="-lpthreads"
41355 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41356 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41357 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41358 echo $ECHO_N "(cached) $ECHO_C" >&6
41360 ac_check_lib_save_LIBS=$LIBS
41362 cat >conftest.$ac_ext <<_ACEOF
41365 cat confdefs.h >>conftest.$ac_ext
41366 cat >>conftest.$ac_ext <<_ACEOF
41367 /* end confdefs.h. */
41369 /* Override any GCC internal prototype to avoid an error.
41370 Use char because int might match the return type of a GCC
41371 builtin and then its argument prototype would still apply. */
41375 char pthread_create ();
41379 return pthread_create ();
41384 rm -f conftest.$ac_objext conftest$ac_exeext
41385 if { (ac_try="$ac_link"
41386 case "(($ac_try" in
41387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41388 *) ac_try_echo=$ac_try;;
41390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41391 (eval "$ac_link") 2>conftest.er1
41393 grep -v '^ *+' conftest.er1 >conftest.err
41395 cat conftest.err >&5
41396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41397 (exit $ac_status); } && {
41398 test -z "$ac_c_werror_flag" ||
41399 test ! -s conftest.err
41400 } && test -s conftest$ac_exeext &&
41401 $as_test_x conftest$ac_exeext; then
41402 ac_cv_lib_c_r_pthread_create=yes
41404 echo "$as_me: failed program was:" >&5
41405 sed 's/^/| /' conftest.$ac_ext >&5
41407 ac_cv_lib_c_r_pthread_create=no
41410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41411 conftest$ac_exeext conftest.$ac_ext
41412 LIBS=$ac_check_lib_save_LIBS
41414 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41415 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41416 if test $ac_cv_lib_c_r_pthread_create = yes; then
41417 PTHREAD_LIB="-lc_r"
41420 { echo "$as_me:$LINENO: checking for pthread_create" >&5
41421 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41422 if test "${ac_cv_func_pthread_create+set}" = set; then
41423 echo $ECHO_N "(cached) $ECHO_C" >&6
41425 cat >conftest.$ac_ext <<_ACEOF
41428 cat confdefs.h >>conftest.$ac_ext
41429 cat >>conftest.$ac_ext <<_ACEOF
41430 /* end confdefs.h. */
41431 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41433 #define pthread_create innocuous_pthread_create
41435 /* System header to define __stub macros and hopefully few prototypes,
41436 which can conflict with char pthread_create (); below.
41437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41438 <limits.h> exists even on freestanding compilers. */
41441 # include <limits.h>
41443 # include <assert.h>
41446 #undef pthread_create
41448 /* Override any GCC internal prototype to avoid an error.
41449 Use char because int might match the return type of a GCC
41450 builtin and then its argument prototype would still apply. */
41454 char pthread_create ();
41455 /* The GNU C library defines this for functions which it implements
41456 to always fail with ENOSYS. Some functions are actually named
41457 something starting with __ and the normal name is an alias. */
41458 #if defined __stub_pthread_create || defined __stub___pthread_create
41465 return pthread_create ();
41470 rm -f conftest.$ac_objext conftest$ac_exeext
41471 if { (ac_try="$ac_link"
41472 case "(($ac_try" in
41473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41474 *) ac_try_echo=$ac_try;;
41476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41477 (eval "$ac_link") 2>conftest.er1
41479 grep -v '^ *+' conftest.er1 >conftest.err
41481 cat conftest.err >&5
41482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483 (exit $ac_status); } && {
41484 test -z "$ac_c_werror_flag" ||
41485 test ! -s conftest.err
41486 } && test -s conftest$ac_exeext &&
41487 $as_test_x conftest$ac_exeext; then
41488 ac_cv_func_pthread_create=yes
41490 echo "$as_me: failed program was:" >&5
41491 sed 's/^/| /' conftest.$ac_ext >&5
41493 ac_cv_func_pthread_create=no
41496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41497 conftest$ac_exeext conftest.$ac_ext
41499 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41500 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41516 cat >>confdefs.h <<\_ACEOF
41521 CFLAGS=${CFLAGS--O}
41523 if test x$have_gcc = xyes ; then
41524 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41525 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41527 LDFLAGS=${LDFLAGS--O}
41528 DB_LIBS="${SQL_LFLAGS}"
41529 CPPFLAGS="$CPPFLAGS"
41556 PFILES="platforms/Makefile"
41560 hostname=`uname -n | cut -d '.' -f 1`
41561 if test x${hostname} = x ; then
41562 hostname="localhost"
41564 case "$DISTNAME" in
41567 PSCMD="ps -e -o pid,comm"
41568 PFILES="${PFILES} \
41569 platforms/aix/Makefile"
41570 TAPEDRIVE="/dev/rmt0.1"
41574 PTHREAD_LIB="-lpthread -lexc"
41575 if test "${CC}" = "gcc" ; then
41582 TAPEDRIVE="/dev/nrmt0"
41585 DISTVER=`uname -a |awk '{print $3}'`
41586 TAPEDRIVE="/dev/nrmt0"
41587 PTHREAD_LIB="-pthread"
41588 CFLAGS="${CFLAGS} -pthread"
41589 PSCMD="ps -ax -o pid,command"
41592 PFILES="${PFILES} \
41593 platforms/bsdi/Makefile \
41594 platforms/bsdi/bacula-fd \
41595 platforms/bsdi/bacula-sd \
41596 platforms/bsdi/bacula-dir"
41597 largefile_support="yes"
41600 DISTVER=`uname -a |awk '{print $3}'`
41601 TAPEDRIVE="/dev/nrst0"
41603 WCFLAGS="-mwindows"
41604 WLDFLAGS="-mwindows"
41608 TAPEDRIVE="/dev/nst0"
41609 PSCMD="ps -e -o pid,command"
41611 PFILES="${PFILES} \
41612 platforms/darwin/Makefile"
41615 ping -c 1 $hostname 2>&1 1>/dev/null
41616 if test ! $? = 0; then
41617 hostname="localhost"
41619 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41622 DISTVER=`cat /etc/debian_version`
41623 if test -f /etc/lsb-release ; then
41625 if test "x$DISTRIB_ID" != "x" ; then
41626 DISTNAME=$DISTRIB_ID
41628 if test "x$DISTRIB_RELEASE" != "x" ; then
41629 DISTVER=$DISTRIB_RELEASE
41632 if test "$DISTNAME" = "Ubuntu" ; then
41635 TAPEDRIVE="/dev/nst0"
41636 PSCMD="ps -e -o pid,command"
41637 if test "$DISTNAME" = "ubuntu" ; then
41638 PFILES="${PFILES} \
41639 platforms/ubuntu/Makefile \
41640 platforms/ubuntu/bacula-fd \
41641 platforms/ubuntu/bacula-sd \
41642 platforms/ubuntu/bacula-dir"
41644 PFILES="${PFILES} \
41645 platforms/debian/Makefile \
41646 platforms/debian/bacula-fd \
41647 platforms/debian/bacula-sd \
41648 platforms/debian/bacula-dir"
41652 ping -c 1 $hostname 2>&1 1>/dev/null
41653 if test ! $? = 0; then
41654 hostname="localhost"
41656 DISTVER=`uname -a |awk '{print $3}'`
41657 VER=`echo $DISTVER | cut -c 1`
41658 if test x$VER = x4 ; then
41659 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41660 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41664 TAPEDRIVE="/dev/nrsa0"
41665 PSCMD="ps -ax -o pid,command"
41666 PFILES="${PFILES} \
41667 platforms/freebsd/Makefile \
41668 platforms/freebsd/bacula-fd \
41669 platforms/freebsd/bacula-sd \
41670 platforms/freebsd/bacula-dir"
41671 largefile_support="yes"
41674 PSCMD="UNIX95=1; ps -e -o pid,comm"
41675 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41677 TAPEDRIVE="/dev/rmt/0hnb"
41678 PTHREAD_LIB="-lpthread"
41679 cat >>confdefs.h <<\_ACEOF
41680 #define _INCLUDE_LONGLONG 1
41686 TAPEDRIVE="/dev/rmt/0cbn"
41687 PSCMD="ps -e -o pid,comm"
41688 PFILES="${PFILES} \
41689 platforms/irix/Makefile \
41690 platforms/irix/bacula-fd \
41691 platforms/irix/bacula-sd \
41692 platforms/irix/bacula-dir"
41695 DISTVER=`uname -a |awk '{print $3}'`
41698 TAPEDRIVE="/dev/nrst0"
41699 PSCMD="ps -ax -o pid,command"
41700 PTHREAD_LIB="-pthread"
41701 CFLAGS="${CFLAGS} -pthread"
41704 DISTVER=`uname -a |awk '{print $3}'`
41707 TAPEDRIVE="/dev/nrst0"
41708 PSCMD="ps -ax -o pid,command"
41709 PTHREAD_LIB="-pthread"
41710 CFLAGS="${CFLAGS} -pthread"
41711 PFILES="${PFILES} \
41712 platforms/openbsd/Makefile \
41713 platforms/openbsd/bacula-fd \
41714 platforms/openbsd/bacula-sd \
41715 platforms/openbsd/bacula-dir"
41718 ping -c 1 $hostname 2>&1 1>/dev/null
41719 if test ! $? = 0; then
41720 hostname="localhost"
41722 if test -f /etc/whitebox-release ; then
41723 f=/etc/whitebox-release
41725 f=/etc/redhat-release
41727 if test `cat $f | grep release |\
41728 cut -f 3 -d ' '`x = "Enterprise"x ; then
41729 DISTVER="Enterprise "`cat $f | grep release |\
41732 DISTVER=`cat /etc/redhat-release | grep release |\
41735 TAPEDRIVE="/dev/nst0"
41736 PSCMD="ps -e -o pid,command"
41737 PFILES="${PFILES} \
41738 platforms/redhat/Makefile \
41739 platforms/redhat/bacula-fd \
41740 platforms/redhat/bacula-sd \
41741 platforms/redhat/bacula-dir \
41742 platforms/redhat/bacula.spec \
41746 ping -c 1 $hostname 2>&1 1>/dev/null
41747 if test ! $? = 0; then
41748 hostname="localhost"
41750 DISTVER=`cat /etc/mandrake-release | grep release |\
41752 TAPEDRIVE="/dev/nst0"
41753 PSCMD="ps -e -o pid,command"
41754 PFILES="${PFILES} \
41755 platforms/mandrake/Makefile \
41756 platforms/mandrake/bacula-fd \
41757 platforms/mandrake/bacula-sd \
41758 platforms/mandrake/bacula-dir \
41759 platforms/mandrake/bacula.spec \
41763 ping -c 1 $hostname 2>&1 1>/dev/null
41764 if test ! $? = 0; then
41765 hostname="localhost"
41767 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41768 TAPEDRIVE="/dev/nst0"
41769 PSCMD="ps -e -o pid,command"
41770 PFILES="${PFILES} \
41771 platforms/gentoo/Makefile \
41772 platforms/gentoo/bacula-init \
41773 platforms/gentoo/bacula-fd \
41774 platforms/gentoo/bacula-sd \
41775 platforms/gentoo/bacula-dir"
41778 ping -c 1 $hostname 2>&1 1>/dev/null
41779 if test ! $? = 0; then
41780 hostname="localhost"
41782 DISTVER=`cat /etc/slackware-version`
41783 TAPEDRIVE="/dev/nst0"
41784 PSCMD="ps -e -o pid,command"
41785 PFILES="${PFILES} \
41786 platforms/slackware/Makefile \
41787 platforms/slackware/rc.bacula-fd \
41788 platforms/slackware/rc.bacula-sd \
41789 platforms/slackware/rc.bacula-dir\
41790 platforms/slackware/functions.bacula"
41794 TAPEDRIVE="/dev/rmt/0cbn"
41795 PSCMD="ps -e -o pid,comm"
41796 PFILES="${PFILES} \
41797 platforms/solaris/Makefile \
41798 platforms/solaris/bacula-fd \
41799 platforms/solaris/bacula-sd \
41800 platforms/solaris/bacula-dir"
41801 if test x$DISTVER = x5.6 ; then
41802 cat >>confdefs.h <<\_ACEOF
41803 #define HAVE_OLD_SOCKOPT 1
41807 LIBS="$LIBS -lresolv"
41810 ping -c 1 $hostname 2>&1 1>/dev/null
41811 if test ! $? = 0; then
41812 hostname="localhost"
41814 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41816 TAPEDRIVE="/dev/nst0"
41817 PSCMD="ps -e -o pid,command"
41818 PFILES="${PFILES} \
41819 platforms/suse/Makefile \
41820 platforms/suse/bacula-fd \
41821 platforms/suse/bacula-sd \
41822 platforms/suse/bacula-dir \
41823 platforms/suse/bacula \
41824 platforms/suse/bacula.spec"
41827 ping -c 1 $hostname 2>&1 1>/dev/null
41828 if test ! $? = 0; then
41829 hostname="localhost"
41833 TAPEDRIVE="/dev/nst0"
41834 PSCMD="ps -e -o pid,command"
41835 PFILES="${PFILES} \
41836 platforms/suse/Makefile \
41837 platforms/suse/bacula-fd \
41838 platforms/suse/bacula-sd \
41839 platforms/suse/bacula-dir"
41843 TAPEDRIVE="/dev/nst0"
41846 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41852 LIBS="$PTHREAD_LIB $LIBS"
41854 cat >>confdefs.h <<_ACEOF
41858 cat >>confdefs.h <<_ACEOF
41869 MCOMMON=./autoconf/Make.common
41872 if test "x${subsysdir}" = "x${sbindir}" ; then
41875 echo "You have set both --sbindir and --with-subsys-dir"
41876 echo " equal to: ${subsysdir} "
41877 echo "This is not permitted. Please reconfigure."
41879 echo "Aborting configuration ..."
41885 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_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"
41887 ac_config_commands="$ac_config_commands default"
41889 cat >confcache <<\_ACEOF
41890 # This file is a shell script that caches the results of configure
41891 # tests run on this system so they can be shared between configure
41892 # scripts and configure runs, see configure's option --config-cache.
41893 # It is not useful on other systems. If it contains results you don't
41894 # want to keep, you may remove or edit it.
41896 # config.status only pays attention to the cache file if you give it
41897 # the --recheck option to rerun configure.
41899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41901 # following values.
41905 # The following way of writing the cache mishandles newlines in values,
41906 # but we know of no workaround that is simple, portable, and efficient.
41907 # So, we kill variables containing newlines.
41908 # Ultrix sh set writes to stderr and can't be redirected directly,
41909 # and sets the high bit in the cache file unless we assign to the vars.
41911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41912 eval ac_val=\$$ac_var
41916 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41917 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41920 _ | IFS | as_nl) ;; #(
41921 *) $as_unset $ac_var ;;
41927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41928 *${as_nl}ac_space=\ *)
41929 # `set' does not quote correctly, so add quotes (double-quote
41930 # substitution turns \\\\ into \\, and sed turns \\ into \).
41933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41936 # `set' quotes correctly as required by POSIX, so do not add quotes.
41937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41951 if test -w "$cache_file"; then
41952 test "x$cache_file" != "x/dev/null" &&
41953 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41954 echo "$as_me: updating cache $cache_file" >&6;}
41955 cat confcache >$cache_file
41957 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41958 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41964 # Let make expand exec_prefix.
41965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41967 DEFS=-DHAVE_CONFIG_H
41971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41972 # 1. Remove the extension, and $U if already installed.
41973 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41974 ac_i=`echo "$ac_i" | sed "$ac_script"`
41975 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41976 # will be set to the directory where LIBOBJS objects are built.
41977 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41978 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41980 LIBOBJS=$ac_libobjs
41982 LTLIBOBJS=$ac_ltlibobjs
41986 : ${CONFIG_STATUS=./config.status}
41987 ac_clean_files_save=$ac_clean_files
41988 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41989 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41990 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41991 cat >$CONFIG_STATUS <<_ACEOF
41993 # Generated by $as_me.
41994 # Run this file to recreate the current configuration.
41995 # Compiler output produced by configure, useful for debugging
41996 # configure, is in config.log if it exists.
41999 ac_cs_recheck=false
42001 SHELL=\${CONFIG_SHELL-$SHELL}
42004 cat >>$CONFIG_STATUS <<\_ACEOF
42005 ## --------------------- ##
42006 ## M4sh Initialization. ##
42007 ## --------------------- ##
42009 # Be more Bourne compatible
42010 DUALCASE=1; export DUALCASE # for MKS sh
42011 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42014 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42015 # is contrary to our usage. Disable this feature.
42016 alias -g '${1+"$@"}'='"$@"'
42017 setopt NO_GLOB_SUBST
42019 case `(set -o) 2>/dev/null` in
42020 *posix*) set -o posix ;;
42029 # Avoid depending upon Character Ranges.
42030 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42031 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42032 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42033 as_cr_digits='0123456789'
42034 as_cr_alnum=$as_cr_Letters$as_cr_digits
42036 # The user is always right.
42037 if test "${PATH_SEPARATOR+set}" != set; then
42038 echo "#! /bin/sh" >conf$$.sh
42039 echo "exit 0" >>conf$$.sh
42041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42049 # Support unset when possible.
42050 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42058 # We need space, tab and new line, in precisely that order. Quoting is
42059 # there to prevent editors from complaining about space-tab.
42060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42061 # splitting by setting IFS to empty value.)
42066 # Find who we are. Look in the path if we contain no directory separator.
42068 *[\\/]* ) as_myself=$0 ;;
42069 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42070 for as_dir in $PATH
42073 test -z "$as_dir" && as_dir=.
42074 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42080 # We did not find ourselves, most probably we were run as `sh COMMAND'
42081 # in which case we are not to be found in the path.
42082 if test "x$as_myself" = x; then
42085 if test ! -f "$as_myself"; then
42086 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42087 { (exit 1); exit 1; }
42090 # Work around bugs in pre-3.0 UWIN ksh.
42091 for as_var in ENV MAIL MAILPATH
42092 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42102 LC_TELEPHONE LC_TIME
42104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42105 eval $as_var=C; export $as_var
42107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42111 # Required to use basename.
42112 if expr a : '\(a\)' >/dev/null 2>&1 &&
42113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42120 as_basename=basename
42126 # Name of the executable.
42127 as_me=`$as_basename -- "$0" ||
42128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42129 X"$0" : 'X\(//\)$' \| \
42130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42132 sed '/^.*\/\([^/][^/]*\)\/*$/{
42151 as_lineno_1=$LINENO
42152 as_lineno_2=$LINENO
42153 test "x$as_lineno_1" != "x$as_lineno_2" &&
42154 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42157 # uniformly replaced by the line number. The first 'sed' inserts a
42158 # line-number line after each line using $LINENO; the second 'sed'
42159 # does the real work. The second script uses 'N' to pair each
42160 # line-number line with the line containing $LINENO, and appends
42161 # trailing '-' during substitution so that $LINENO is not a special
42162 # case at line end.
42163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42164 # scripts with optimization help from Paolo Bonzini. Blame Lee
42165 # E. McMahon (1931-1989) for sed's syntax. :-)
42177 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42180 ' >$as_me.lineno &&
42181 chmod +x "$as_me.lineno" ||
42182 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42183 { (exit 1); exit 1; }; }
42185 # Don't try to exec as it changes $[0], causing all sort of problems
42186 # (the dirname of $[0] is not the place where we might find the
42187 # original and so on. Autoconf is especially sensitive to this).
42188 . "./$as_me.lineno"
42189 # Exit status is that of the last command.
42194 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42200 ECHO_C= ECHO_N= ECHO_T=
42201 case `echo -n x` in
42203 case `echo 'x\c'` in
42204 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42211 if expr a : '\(a\)' >/dev/null 2>&1 &&
42212 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42218 rm -f conf$$ conf$$.exe conf$$.file
42219 if test -d conf$$.dir; then
42220 rm -f conf$$.dir/conf$$.file
42226 if ln -s conf$$.file conf$$ 2>/dev/null; then
42228 # ... but there are two gotchas:
42229 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42230 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42231 # In both cases, we have to default to `cp -p'.
42232 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42234 elif ln conf$$.file conf$$ 2>/dev/null; then
42239 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42240 rmdir conf$$.dir 2>/dev/null
42242 if mkdir -p . 2>/dev/null; then
42245 test -d ./-p && rmdir ./-p
42249 if test -x / >/dev/null 2>&1; then
42250 as_test_x='test -x'
42252 if ls -dL / >/dev/null 2>&1; then
42259 if test -d "$1"; then
42265 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42266 ???[sx]*):;;*)false;;esac;fi
42270 as_executable_p=$as_test_x
42272 # Sed expression to map a string onto a valid CPP name.
42273 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42275 # Sed expression to map a string onto a valid variable name.
42276 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42281 # Save the log message, to keep $[0] and so on meaningful, and to
42282 # report actual input values of CONFIG_FILES etc. instead of their
42283 # values after options handling.
42285 This file was extended by $as_me, which was
42286 generated by GNU Autoconf 2.61. Invocation command line was
42288 CONFIG_FILES = $CONFIG_FILES
42289 CONFIG_HEADERS = $CONFIG_HEADERS
42290 CONFIG_LINKS = $CONFIG_LINKS
42291 CONFIG_COMMANDS = $CONFIG_COMMANDS
42294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42299 cat >>$CONFIG_STATUS <<_ACEOF
42300 # Files that config.status was made for.
42301 config_files="$ac_config_files"
42302 config_headers="$ac_config_headers"
42303 config_commands="$ac_config_commands"
42307 cat >>$CONFIG_STATUS <<\_ACEOF
42309 \`$as_me' instantiates files from templates according to the
42310 current configuration.
42312 Usage: $0 [OPTIONS] [FILE]...
42314 -h, --help print this help, then exit
42315 -V, --version print version number and configuration settings, then exit
42316 -q, --quiet do not print progress messages
42317 -d, --debug don't remove temporary files
42318 --recheck update $as_me by reconfiguring in the same conditions
42319 --file=FILE[:TEMPLATE]
42320 instantiate the configuration file FILE
42321 --header=FILE[:TEMPLATE]
42322 instantiate the configuration header FILE
42324 Configuration files:
42327 Configuration headers:
42330 Configuration commands:
42333 Report bugs to <bug-autoconf@gnu.org>."
42336 cat >>$CONFIG_STATUS <<_ACEOF
42339 configured by $0, generated by GNU Autoconf 2.61,
42340 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42342 Copyright (C) 2006 Free Software Foundation, Inc.
42343 This config.status script is free software; the Free Software Foundation
42344 gives unlimited permission to copy, distribute and modify it."
42351 cat >>$CONFIG_STATUS <<\_ACEOF
42352 # If no file are specified by the user, then we need to provide default
42353 # value. By we need to know if files were specified by the user.
42359 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42371 # Handling of the options.
42372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42375 echo "$ac_cs_version"; exit ;;
42376 --debug | --debu | --deb | --de | --d | -d )
42378 --file | --fil | --fi | --f )
42380 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42381 ac_need_defaults=false;;
42382 --header | --heade | --head | --hea )
42384 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42385 ac_need_defaults=false;;
42387 # Conflict between --help and --header
42388 { echo "$as_me: error: ambiguous option: $1
42389 Try \`$0 --help' for more information." >&2
42390 { (exit 1); exit 1; }; };;
42391 --help | --hel | -h )
42392 echo "$ac_cs_usage"; exit ;;
42393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42397 # This is an error.
42398 -*) { echo "$as_me: error: unrecognized option: $1
42399 Try \`$0 --help' for more information." >&2
42400 { (exit 1); exit 1; }; } ;;
42402 *) ac_config_targets="$ac_config_targets $1"
42403 ac_need_defaults=false ;;
42409 ac_configure_extra_args=
42411 if $ac_cs_silent; then
42413 ac_configure_extra_args="$ac_configure_extra_args --silent"
42417 cat >>$CONFIG_STATUS <<_ACEOF
42418 if \$ac_cs_recheck; then
42419 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42420 CONFIG_SHELL=$SHELL
42421 export CONFIG_SHELL
42422 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42426 cat >>$CONFIG_STATUS <<\_ACEOF
42430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42431 ## Running $as_me. ##
42437 cat >>$CONFIG_STATUS <<_ACEOF
42443 # The HP-UX ksh and POSIX shell print the target directory to stdout
42444 # if CDPATH is set.
42445 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42447 sed_quote_subst='$sed_quote_subst'
42448 double_quote_subst='$double_quote_subst'
42449 delay_variable_subst='$delay_variable_subst'
42450 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42451 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42452 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42453 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42454 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42455 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42456 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42457 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42458 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42459 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42460 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42461 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42462 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42463 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42464 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42465 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42466 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42467 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42468 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42469 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42470 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42471 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42472 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42473 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42474 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42475 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42476 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42477 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42478 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42479 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42480 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42481 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42482 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42483 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42484 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42485 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42486 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42487 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42488 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42489 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42490 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42491 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42492 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42493 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42494 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"`'
42495 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"`'
42496 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42497 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42498 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42499 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42500 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42501 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42502 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42503 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42504 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42505 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42506 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42507 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42508 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42509 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42510 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42511 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42512 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42513 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42514 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42515 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42516 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42517 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42518 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42519 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42520 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42521 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42522 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42523 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42524 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42525 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42526 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42527 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42528 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42529 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42530 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42531 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42532 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42533 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42534 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42535 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42536 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42537 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42538 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42539 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42540 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42541 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42542 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42543 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42544 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42545 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42546 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42547 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42548 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42549 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42550 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42551 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42552 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42553 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42554 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42555 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42556 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42557 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42558 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42559 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42560 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42561 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42562 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42563 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42564 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42565 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42566 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42567 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42568 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42569 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42570 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42571 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42572 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42573 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42574 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42575 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42576 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42577 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42578 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42579 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42580 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42581 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42582 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42583 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42584 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42585 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42586 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42587 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42588 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42589 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42590 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42591 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42592 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42593 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42594 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42595 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42596 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42597 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42598 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42599 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42600 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42601 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42602 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42603 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42604 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42605 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42606 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42607 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42608 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42609 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42610 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42611 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42612 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42613 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42614 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42615 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42616 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42617 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42618 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42619 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42620 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42623 LTCFLAGS='$LTCFLAGS'
42624 compiler='$compiler_DEFAULT'
42626 # Quote evaled strings.
42638 deplibs_check_method \
42647 lt_cv_sys_global_symbol_pipe \
42648 lt_cv_sys_global_symbol_to_cdecl \
42649 lt_cv_sys_global_symbol_to_c_name_address \
42650 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42653 lt_prog_compiler_no_builtin_flag \
42654 lt_prog_compiler_wl \
42655 lt_prog_compiler_pic \
42656 lt_prog_compiler_static \
42657 lt_cv_prog_compiler_c_o \
42665 export_dynamic_flag_spec \
42666 whole_archive_flag_spec \
42667 compiler_needs_object \
42669 allow_undefined_flag \
42670 no_undefined_flag \
42671 hardcode_libdir_flag_spec \
42672 hardcode_libdir_flag_spec_ld \
42673 hardcode_libdir_separator \
42678 variables_saved_for_relink \
42680 library_names_spec \
42685 compiler_lib_search_dirs \
42690 compiler_lib_search_path \
42693 lt_prog_compiler_no_builtin_flag_CXX \
42694 lt_prog_compiler_wl_CXX \
42695 lt_prog_compiler_pic_CXX \
42696 lt_prog_compiler_static_CXX \
42697 lt_cv_prog_compiler_c_o_CXX \
42698 export_dynamic_flag_spec_CXX \
42699 whole_archive_flag_spec_CXX \
42700 compiler_needs_object_CXX \
42702 allow_undefined_flag_CXX \
42703 no_undefined_flag_CXX \
42704 hardcode_libdir_flag_spec_CXX \
42705 hardcode_libdir_flag_spec_ld_CXX \
42706 hardcode_libdir_separator_CXX \
42707 fix_srcfile_path_CXX \
42708 exclude_expsyms_CXX \
42709 include_expsyms_CXX \
42710 file_list_spec_CXX \
42711 compiler_lib_search_dirs_CXX \
42712 predep_objects_CXX \
42713 postdep_objects_CXX \
42716 compiler_lib_search_path_CXX; do
42717 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42718 *[\\\\\\\`\\"\\\$]*)
42719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42727 # Double-quote double-evaled strings.
42728 for var in reload_cmds \
42729 old_postinstall_cmds \
42730 old_postuninstall_cmds \
42732 extract_expsyms_cmds \
42733 old_archive_from_new_cmds \
42734 old_archive_from_expsyms_cmds \
42736 archive_expsym_cmds \
42738 module_expsym_cmds \
42739 export_symbols_cmds \
42742 postuninstall_cmds \
42744 sys_lib_search_path_spec \
42745 sys_lib_dlsearch_path_spec \
42746 old_archive_cmds_CXX \
42747 old_archive_from_new_cmds_CXX \
42748 old_archive_from_expsyms_cmds_CXX \
42750 archive_expsym_cmds_CXX \
42752 module_expsym_cmds_CXX \
42753 export_symbols_cmds_CXX \
42754 prelink_cmds_CXX; do
42755 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42756 *[\\\\\\\`\\"\\\$]*)
42757 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42760 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42765 # Fix-up fallback echo if it was mangled by the above quoting rules.
42767 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42771 ac_aux_dir='$ac_aux_dir'
42772 xsi_shell='$xsi_shell'
42773 lt_shell_append='$lt_shell_append'
42775 # See if we are running on zsh, and set the options which allow our
42776 # commands through without removal of \ escapes INIT.
42777 if test -n "\${ZSH_VERSION+set}" ; then
42778 setopt NO_GLOB_SUBST
42784 TIMESTAMP='$TIMESTAMP'
42792 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42793 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42795 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42796 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42797 LINGUAS="${LINGUAS-%UNSET%}"
42802 cat >>$CONFIG_STATUS <<\_ACEOF
42804 # Handling of arguments.
42805 for ac_config_target in $ac_config_targets
42807 case $ac_config_target in
42808 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42809 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42810 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42811 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42813 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42814 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42815 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42816 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42817 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42818 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42819 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42820 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42821 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42822 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42823 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42824 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42825 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42826 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42827 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42828 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42829 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42830 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42831 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42832 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42833 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42834 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42835 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42836 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42837 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42838 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42839 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42840 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42841 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42842 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42843 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42844 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42845 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42846 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42847 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42848 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42849 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42850 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42851 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42852 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42853 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42854 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42855 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42856 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42857 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42858 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42859 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42860 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42861 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42862 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42863 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42864 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42865 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42866 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42867 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42868 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42869 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42870 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42871 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42872 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42873 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42874 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42875 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42876 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42877 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42878 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42879 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42880 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42881 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42882 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42883 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42884 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42885 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42886 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42887 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42888 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42889 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42890 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42891 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42892 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42893 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42894 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42895 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42896 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42897 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42898 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42899 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42900 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42901 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42902 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42903 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42904 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42905 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42906 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42907 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42908 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42909 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42910 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42911 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42912 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42913 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42914 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42915 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42916 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
42917 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42918 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42919 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42920 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42921 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42922 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42923 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42925 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42926 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42927 { (exit 1); exit 1; }; };;
42932 # If the user did not use the arguments to specify the items to instantiate,
42933 # then the envvar interface is used. Set only those that are not.
42934 # We use the long form for the default assignment because of an extremely
42935 # bizarre bug on SunOS 4.1.3.
42936 if $ac_need_defaults; then
42937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42938 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42942 # Have a temporary directory for convenience. Make it in the build tree
42943 # simply because there is no reason against having it here, and in addition,
42944 # creating and moving files from /tmp can sometimes cause problems.
42945 # Hook for its removal unless debugging.
42946 # Note that there is a small window in which the directory will not be cleaned:
42947 # after its creation but before its name has been assigned to `$tmp'.
42951 trap 'exit_status=$?
42952 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42954 trap '{ (exit 1); exit 1; }' 1 2 13 15
42956 # Create a (secure) tmp directory for tmp files.
42959 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42960 test -n "$tmp" && test -d "$tmp"
42963 tmp=./conf$$-$RANDOM
42964 (umask 077 && mkdir "$tmp")
42967 echo "$me: cannot create a temporary directory in ." >&2
42968 { (exit 1); exit 1; }
42972 # Set up the sed scripts for CONFIG_FILES section.
42975 # No need to generate the scripts if there are no CONFIG_FILES.
42976 # This happens for instance when ./config.status config.h
42977 if test -n "$CONFIG_FILES"; then
42981 # Create sed commands to just substitute file output variables.
42983 # Remaining file output variables are in a fragment that also has non-file
42989 for ac_last_try in false false false false false :; do
42990 cat >conf$$subs.sed <<_ACEOF
42991 SHELL!$SHELL$ac_delim
42992 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42993 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42994 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42995 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42996 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42997 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42998 exec_prefix!$exec_prefix$ac_delim
42999 prefix!$prefix$ac_delim
43000 program_transform_name!$program_transform_name$ac_delim
43001 bindir!$bindir$ac_delim
43002 sbindir!$sbindir$ac_delim
43003 libexecdir!$libexecdir$ac_delim
43004 datarootdir!$datarootdir$ac_delim
43005 datadir!$datadir$ac_delim
43006 sysconfdir!$sysconfdir$ac_delim
43007 sharedstatedir!$sharedstatedir$ac_delim
43008 localstatedir!$localstatedir$ac_delim
43009 includedir!$includedir$ac_delim
43010 oldincludedir!$oldincludedir$ac_delim
43011 docdir!$docdir$ac_delim
43012 infodir!$infodir$ac_delim
43013 htmldir!$htmldir$ac_delim
43014 dvidir!$dvidir$ac_delim
43015 pdfdir!$pdfdir$ac_delim
43016 psdir!$psdir$ac_delim
43017 libdir!$libdir$ac_delim
43018 localedir!$localedir$ac_delim
43019 mandir!$mandir$ac_delim
43020 DEFS!$DEFS$ac_delim
43021 ECHO_C!$ECHO_C$ac_delim
43022 ECHO_N!$ECHO_N$ac_delim
43023 ECHO_T!$ECHO_T$ac_delim
43024 LIBS!$LIBS$ac_delim
43025 build_alias!$build_alias$ac_delim
43026 host_alias!$host_alias$ac_delim
43027 target_alias!$target_alias$ac_delim
43028 BUILD_DIR!$BUILD_DIR$ac_delim
43029 TOP_DIR!$TOP_DIR$ac_delim
43030 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43031 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43032 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43033 TRUEPRG!$TRUEPRG$ac_delim
43034 FALSEPRG!$FALSEPRG$ac_delim
43035 VERSION!$VERSION$ac_delim
43036 DATE!$DATE$ac_delim
43037 LSMDATE!$LSMDATE$ac_delim
43038 BACULA!$BACULA$ac_delim
43039 post_host!$post_host$ac_delim
43041 CFLAGS!$CFLAGS$ac_delim
43042 LDFLAGS!$LDFLAGS$ac_delim
43043 CPPFLAGS!$CPPFLAGS$ac_delim
43044 ac_ct_CC!$ac_ct_CC$ac_delim
43045 EXEEXT!$EXEEXT$ac_delim
43046 OBJEXT!$OBJEXT$ac_delim
43048 CXXFLAGS!$CXXFLAGS$ac_delim
43049 ac_ct_CXX!$ac_ct_CXX$ac_delim
43051 GREP!$GREP$ac_delim
43052 EGREP!$EGREP$ac_delim
43053 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43054 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43055 INSTALL_DATA!$INSTALL_DATA$ac_delim
43057 REMOVE!$REMOVE$ac_delim
43060 ECHO!$ECHO$ac_delim
43064 OPENSSL!$OPENSSL$ac_delim
43067 MKISOFS!$MKISOFS$ac_delim
43068 PYTHON!$PYTHON$ac_delim
43069 GROWISOFS!$GROWISOFS$ac_delim
43070 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43071 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43072 PKGCONFIG!$PKGCONFIG$ac_delim
43073 QMAKE!$QMAKE$ac_delim
43074 QMAKEQT4!$QMAKEQT4$ac_delim
43075 GMAKE!$GMAKE$ac_delim
43076 WXCONFIG!$WXCONFIG$ac_delim
43077 WXFLAGS!$WXFLAGS$ac_delim
43078 CDRECORD!$CDRECORD$ac_delim
43079 PIDOF!$PIDOF$ac_delim
43081 ARFLAGS!$ARFLAGS$ac_delim
43082 MAKE_SHELL!$MAKE_SHELL$ac_delim
43083 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43084 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43089 elif $ac_last_try; then
43090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43092 { (exit 1); exit 1; }; }
43094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43099 if test -n "$ac_eof"; then
43100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43101 ac_eof=`expr $ac_eof + 1`
43104 cat >>$CONFIG_STATUS <<_ACEOF
43105 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43107 /^[ ]*@MCOMMON@[ ]*$/{
43113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43114 s/^/s,@/; s/!/@,|#_!!_#|/
43117 s/'"$ac_delim"'$/,g/; t
43119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43120 ' >>$CONFIG_STATUS <conf$$subs.sed
43121 rm -f conf$$subs.sed
43122 cat >>$CONFIG_STATUS <<_ACEOF
43128 for ac_last_try in false false false false false :; do
43129 cat >conf$$subs.sed <<_ACEOF
43130 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43131 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43132 LIBTOOL!$LIBTOOL$ac_delim
43133 build!$build$ac_delim
43134 build_cpu!$build_cpu$ac_delim
43135 build_vendor!$build_vendor$ac_delim
43136 build_os!$build_os$ac_delim
43137 host!$host$ac_delim
43138 host_cpu!$host_cpu$ac_delim
43139 host_vendor!$host_vendor$ac_delim
43140 host_os!$host_os$ac_delim
43141 FGREP!$FGREP$ac_delim
43143 DUMPBIN!$DUMPBIN$ac_delim
43144 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43146 LN_S!$LN_S$ac_delim
43147 OBJDUMP!$OBJDUMP$ac_delim
43148 STRIP!$STRIP$ac_delim
43149 RANLIB!$RANLIB$ac_delim
43150 lt_ECHO!$lt_ECHO$ac_delim
43151 DSYMUTIL!$DSYMUTIL$ac_delim
43152 NMEDIT!$NMEDIT$ac_delim
43153 LIPO!$LIPO$ac_delim
43154 OTOOL!$OTOOL$ac_delim
43155 OTOOL64!$OTOOL64$ac_delim
43156 CXXCPP!$CXXCPP$ac_delim
43157 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43158 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43159 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43160 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43161 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43162 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43163 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43164 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43165 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43166 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43167 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43168 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43169 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43170 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43171 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43172 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43173 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43174 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43175 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43176 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43177 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43178 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43179 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43180 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43181 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43182 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43183 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43184 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43185 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43186 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43187 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43188 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43189 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43190 SET_MAKE!$SET_MAKE$ac_delim
43191 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43192 USE_NLS!$USE_NLS$ac_delim
43193 MSGFMT!$MSGFMT$ac_delim
43194 GMSGFMT!$GMSGFMT$ac_delim
43195 XGETTEXT!$XGETTEXT$ac_delim
43196 MSGMERGE!$MSGMERGE$ac_delim
43197 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43198 LIBICONV!$LIBICONV$ac_delim
43199 LTLIBICONV!$LTLIBICONV$ac_delim
43200 INTLLIBS!$INTLLIBS$ac_delim
43201 LIBINTL!$LIBINTL$ac_delim
43202 LTLIBINTL!$LTLIBINTL$ac_delim
43203 POSUB!$POSUB$ac_delim
43204 GLIBC2!$GLIBC2$ac_delim
43205 ALLOCA!$ALLOCA$ac_delim
43206 GLIBC21!$GLIBC21$ac_delim
43207 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43208 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43209 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43210 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43211 INTLBISON!$INTLBISON$ac_delim
43212 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43213 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43214 CATOBJEXT!$CATOBJEXT$ac_delim
43215 DATADIRNAME!$DATADIRNAME$ac_delim
43216 INSTOBJEXT!$INSTOBJEXT$ac_delim
43217 GENCAT!$GENCAT$ac_delim
43218 INTLOBJS!$INTLOBJS$ac_delim
43219 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43220 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43221 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43222 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43223 GNOME_LIBS!$GNOME_LIBS$ac_delim
43224 GNOME_DIR!$GNOME_DIR$ac_delim
43225 BAT_DIR!$BAT_DIR$ac_delim
43226 QWT_INC!$QWT_INC$ac_delim
43229 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43231 elif $ac_last_try; then
43232 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43233 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43234 { (exit 1); exit 1; }; }
43236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43240 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43241 if test -n "$ac_eof"; then
43242 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43243 ac_eof=`expr $ac_eof + 1`
43246 cat >>$CONFIG_STATUS <<_ACEOF
43247 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43251 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43252 s/^/s,@/; s/!/@,|#_!!_#|/
43255 s/'"$ac_delim"'$/,g/; t
43257 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43258 ' >>$CONFIG_STATUS <conf$$subs.sed
43259 rm -f conf$$subs.sed
43260 cat >>$CONFIG_STATUS <<_ACEOF
43266 for ac_last_try in false false false false false :; do
43267 cat >conf$$subs.sed <<_ACEOF
43268 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43269 QWT_LIB!$QWT_LIB$ac_delim
43271 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43272 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43273 WX_DIR!$WX_DIR$ac_delim
43274 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43275 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43276 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43277 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43278 STATIC_FD!$STATIC_FD$ac_delim
43279 STATIC_SD!$STATIC_SD$ac_delim
43280 STATIC_DIR!$STATIC_DIR$ac_delim
43281 STATIC_CONS!$STATIC_CONS$ac_delim
43282 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43283 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43284 ALL_DIRS!$ALL_DIRS$ac_delim
43285 DIRD_DIR!$DIRD_DIR$ac_delim
43286 DIR_TOOLS!$DIR_TOOLS$ac_delim
43287 STORED_DIR!$STORED_DIR$ac_delim
43288 CONS_INC!$CONS_INC$ac_delim
43289 CONS_OBJ!$CONS_OBJ$ac_delim
43290 CONS_SRC!$CONS_SRC$ac_delim
43291 CONS_LIBS!$CONS_LIBS$ac_delim
43292 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43293 READLINE_SRC!$READLINE_SRC$ac_delim
43294 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43295 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43296 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43297 OPENSSL_INC!$OPENSSL_INC$ac_delim
43298 working_dir!$working_dir$ac_delim
43299 archivedir!$archivedir$ac_delim
43300 scriptdir!$scriptdir$ac_delim
43301 plugindir!$plugindir$ac_delim
43302 dump_email!$dump_email$ac_delim
43303 job_email!$job_email$ac_delim
43304 smtp_host!$smtp_host$ac_delim
43305 piddir!$piddir$ac_delim
43306 subsysdir!$subsysdir$ac_delim
43307 baseport!$baseport$ac_delim
43308 dir_port!$dir_port$ac_delim
43309 fd_port!$fd_port$ac_delim
43310 sd_port!$sd_port$ac_delim
43311 dir_password!$dir_password$ac_delim
43312 fd_password!$fd_password$ac_delim
43313 sd_password!$sd_password$ac_delim
43314 mon_dir_password!$mon_dir_password$ac_delim
43315 mon_fd_password!$mon_fd_password$ac_delim
43316 mon_sd_password!$mon_sd_password$ac_delim
43317 db_name!$db_name$ac_delim
43318 db_user!$db_user$ac_delim
43319 db_password!$db_password$ac_delim
43320 db_port!$db_port$ac_delim
43321 dir_user!$dir_user$ac_delim
43322 dir_group!$dir_group$ac_delim
43323 sd_user!$sd_user$ac_delim
43324 sd_group!$sd_group$ac_delim
43325 fd_user!$fd_user$ac_delim
43326 fd_group!$fd_group$ac_delim
43327 SBINPERM!$SBINPERM$ac_delim
43328 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43329 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43330 SQL_BINDIR!$SQL_BINDIR$ac_delim
43331 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43332 uncomment_dbi!$uncomment_dbi$ac_delim
43333 DB_PROG!$DB_PROG$ac_delim
43334 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43335 cats!$cats$ac_delim
43336 DB_TYPE!$DB_TYPE$ac_delim
43337 GETCONF!$GETCONF$ac_delim
43338 XMKMF!$XMKMF$ac_delim
43339 X_CFLAGS!$X_CFLAGS$ac_delim
43340 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43341 X_LIBS!$X_LIBS$ac_delim
43342 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43343 LIBOBJS!$LIBOBJS$ac_delim
43344 FDLIBS!$FDLIBS$ac_delim
43345 DEBUG!$DEBUG$ac_delim
43346 DINCLUDE!$DINCLUDE$ac_delim
43347 DLIB!$DLIB$ac_delim
43348 DB_LIBS!$DB_LIBS$ac_delim
43349 WCFLAGS!$WCFLAGS$ac_delim
43350 WLDFLAGS!$WLDFLAGS$ac_delim
43351 WRAPLIBS!$WRAPLIBS$ac_delim
43352 OBJLIST!$OBJLIST$ac_delim
43353 hostname!$hostname$ac_delim
43354 TAPEDRIVE!$TAPEDRIVE$ac_delim
43355 PSCMD!$PSCMD$ac_delim
43356 WIN32!$WIN32$ac_delim
43357 MACOSX!$MACOSX$ac_delim
43358 DISTNAME!$DISTNAME$ac_delim
43359 DISTVER!$DISTVER$ac_delim
43360 LTLIBOBJS!$LTLIBOBJS$ac_delim
43363 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
43365 elif $ac_last_try; then
43366 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43367 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43368 { (exit 1); exit 1; }; }
43370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43374 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43375 if test -n "$ac_eof"; then
43376 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43377 ac_eof=`expr $ac_eof + 1`
43380 cat >>$CONFIG_STATUS <<_ACEOF
43381 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43385 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43386 s/^/s,@/; s/!/@,|#_!!_#|/
43389 s/'"$ac_delim"'$/,g/; t
43391 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43392 ' >>$CONFIG_STATUS <conf$$subs.sed
43393 rm -f conf$$subs.sed
43394 cat >>$CONFIG_STATUS <<_ACEOF
43401 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43402 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43403 # trailing colons and then remove the whole line if VPATH becomes empty
43404 # (actually we leave an empty line to preserve line numbers).
43405 if test "x$srcdir" = x.; then
43406 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43407 s/:*\$(srcdir):*/:/
43408 s/:*\${srcdir}:*/:/
43410 s/^\([^=]*=[ ]*\):*/\1/
43416 cat >>$CONFIG_STATUS <<\_ACEOF
43417 fi # test -n "$CONFIG_FILES"
43420 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
43423 :[FHLC]) ac_mode=$ac_tag; continue;;
43425 case $ac_mode$ac_tag in
43427 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43428 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43429 { (exit 1); exit 1; }; };;
43430 :[FH]-) ac_tag=-:-;;
43431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43448 -) ac_f="$tmp/stdin";;
43449 *) # Look for the file first in the build tree, then in the source tree
43450 # (if the path is not absolute). The absolute path cannot be DOS-style,
43451 # because $ac_f cannot contain `:'.
43455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43457 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43458 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43459 { (exit 1); exit 1; }; };;
43461 ac_file_inputs="$ac_file_inputs $ac_f"
43464 # Let's still pretend it is `configure' which instantiates (i.e., don't
43465 # use $as_me), people would be surprised to read:
43466 # /* config.h. Generated by config.status. */
43467 configure_input="Generated from "`IFS=:
43468 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43469 if test x"$ac_file" != x-; then
43470 configure_input="$ac_file. $configure_input"
43471 { echo "$as_me:$LINENO: creating $ac_file" >&5
43472 echo "$as_me: creating $ac_file" >&6;}
43476 *:-:* | *:-) cat >"$tmp/stdin";;
43481 ac_dir=`$as_dirname -- "$ac_file" ||
43482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43483 X"$ac_file" : 'X\(//\)[^/]' \| \
43484 X"$ac_file" : 'X\(//\)$' \| \
43485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43491 /^X\(\/\/\)[^/].*/{
43506 -*) as_dir=./$as_dir;;
43508 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43512 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43513 *) as_qdir=$as_dir;;
43515 as_dirs="'$as_qdir' $as_dirs"
43516 as_dir=`$as_dirname -- "$as_dir" ||
43517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43518 X"$as_dir" : 'X\(//\)[^/]' \| \
43519 X"$as_dir" : 'X\(//\)$' \| \
43520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43526 /^X\(\/\/\)[^/].*/{
43539 test -d "$as_dir" && break
43541 test -z "$as_dirs" || eval "mkdir $as_dirs"
43542 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43543 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43544 { (exit 1); exit 1; }; }; }
43548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43551 # A ".." for each directory in $ac_dir_suffix.
43552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43553 case $ac_top_builddir_sub in
43554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43558 ac_abs_top_builddir=$ac_pwd
43559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43560 # for backward compatibility:
43561 ac_top_builddir=$ac_top_build_prefix
43564 .) # We are building in place.
43566 ac_top_srcdir=$ac_top_builddir_sub
43567 ac_abs_top_srcdir=$ac_pwd ;;
43568 [\\/]* | ?:[\\/]* ) # Absolute name.
43569 ac_srcdir=$srcdir$ac_dir_suffix;
43570 ac_top_srcdir=$srcdir
43571 ac_abs_top_srcdir=$srcdir ;;
43572 *) # Relative name.
43573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43574 ac_top_srcdir=$ac_top_build_prefix$srcdir
43575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43592 cat >>$CONFIG_STATUS <<\_ACEOF
43593 # If the template does not know about datarootdir, expand it.
43594 # FIXME: This hack should be removed a few years after 2.60.
43595 ac_datarootdir_hack=; ac_datarootdir_seen=
43597 case `sed -n '/datarootdir/ {
43606 ' $ac_file_inputs` in
43607 *datarootdir*) ac_datarootdir_seen=yes;;
43608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43609 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43610 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43612 cat >>$CONFIG_STATUS <<_ACEOF
43613 ac_datarootdir_hack='
43614 s&@datadir@&$datadir&g
43615 s&@docdir@&$docdir&g
43616 s&@infodir@&$infodir&g
43617 s&@localedir@&$localedir&g
43618 s&@mandir@&$mandir&g
43619 s&\\\${datarootdir}&$datarootdir&g' ;;
43623 # Neutralize VPATH when `$srcdir' = `.'.
43624 # Shell code in configure.ac might set extrasub.
43625 # FIXME: do we really want to maintain this feature?
43626 cat >>$CONFIG_STATUS <<_ACEOF
43630 cat >>$CONFIG_STATUS <<\_ACEOF
43632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43633 s&@configure_input@&$configure_input&;t t
43634 s&@top_builddir@&$ac_top_builddir_sub&;t t
43635 s&@srcdir@&$ac_srcdir&;t t
43636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43637 s&@top_srcdir@&$ac_top_srcdir&;t t
43638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43639 s&@builddir@&$ac_builddir&;t t
43640 s&@abs_builddir@&$ac_abs_builddir&;t t
43641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43642 s&@INSTALL@&$ac_INSTALL&;t t
43643 $ac_datarootdir_hack
43644 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43647 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43649 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43650 which seems to be undefined. Please make sure it is defined." >&5
43651 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43652 which seems to be undefined. Please make sure it is defined." >&2;}
43656 -) cat "$tmp/out"; rm -f "$tmp/out";;
43657 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43666 # Transform confdefs.h into a sed script `conftest.defines', that
43667 # substitutes the proper values into config.h.in to produce config.h.
43668 rm -f conftest.defines conftest.tail
43669 # First, append a space to every undef/define line, to ease matching.
43670 echo 's/$/ /' >conftest.defines
43671 # Then, protect against being on the right side of a sed subst, or in
43672 # an unquoted here document, in config.status. If some macros were
43673 # called several times there might be several #defines for the same
43674 # symbol, which is useless. But do not sort them, since the last
43675 # AC_DEFINE must be honored.
43676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43677 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43678 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43679 # PARAMS is the parameter list in the macro definition--in most cases, it's
43680 # just an empty string.
43681 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43682 ac_dB='\\)[ (].*,\\1define\\2'
43690 s/^[ ]*#[ ]*define[ ][ ]*//
43695 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43696 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43697 ' >>conftest.defines
43699 # Remove the space that was appended to ease matching.
43700 # Then replace #undef with comments. This is necessary, for
43701 # example, in the case of _POSIX_SOURCE, which is predefined and required
43702 # on some systems where configure will not decide to define it.
43703 # (The regexp can be short, since the line contains either #define or #undef.)
43705 s,^[ #]*u.*,/* & */,' >>conftest.defines
43707 # Break up conftest.defines:
43708 ac_max_sed_lines=50
43710 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43711 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43712 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43714 ac_in='$ac_file_inputs'
43715 ac_out='"$tmp/out1"'
43716 ac_nxt='"$tmp/out2"'
43720 # Write a here document:
43721 cat >>$CONFIG_STATUS <<_ACEOF
43722 # First, check the format of the line:
43723 cat >"\$tmp/defines.sed" <<\\CEOF
43724 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43725 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43729 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43731 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43732 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43733 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43734 grep . conftest.tail >/dev/null || break
43735 rm -f conftest.defines
43736 mv conftest.tail conftest.defines
43738 rm -f conftest.defines conftest.tail
43740 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43741 cat >>$CONFIG_STATUS <<\_ACEOF
43742 if test x"$ac_file" != x-; then
43743 echo "/* $configure_input */" >"$tmp/config.h"
43744 cat "$ac_result" >>"$tmp/config.h"
43745 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43746 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43747 echo "$as_me: $ac_file is unchanged" >&6;}
43750 mv "$tmp/config.h" $ac_file
43753 echo "/* $configure_input */"
43759 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43760 echo "$as_me: executing $ac_file commands" >&6;}
43765 case $ac_file$ac_mode in
43768 # See if we are running on zsh, and set the options which allow our
43769 # commands through without removal of \ escapes.
43770 if test -n "${ZSH_VERSION+set}" ; then
43771 setopt NO_GLOB_SUBST
43774 cfgfile="${ofile}T"
43775 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43778 cat <<_LT_EOF >> "$cfgfile"
43781 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43782 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43784 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43786 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43787 # 2006, 2007, 2008 Free Software Foundation, Inc.
43788 # Written by Gordon Matzigkeit, 1996
43790 # This file is part of GNU Libtool.
43792 # GNU Libtool is free software; you can redistribute it and/or
43793 # modify it under the terms of the GNU General Public License as
43794 # published by the Free Software Foundation; either version 2 of
43795 # the License, or (at your option) any later version.
43797 # As a special exception to the GNU General Public License,
43798 # if you distribute this file as part of a program or library that
43799 # is built using GNU Libtool, you may include this file under the
43800 # same distribution terms that you use for the rest of that program.
43802 # GNU Libtool is distributed in the hope that it will be useful,
43803 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43805 # GNU General Public License for more details.
43807 # You should have received a copy of the GNU General Public License
43808 # along with GNU Libtool; see the file COPYING. If not, a copy
43809 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43810 # obtained by writing to the Free Software Foundation, Inc.,
43811 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43814 # The names of the tagged configurations supported by this script.
43815 available_tags="CXX "
43817 # ### BEGIN LIBTOOL CONFIG
43819 # Which release of libtool.m4 was used?
43820 macro_version=$macro_version
43821 macro_revision=$macro_revision
43823 # Whether or not to build shared libraries.
43824 build_libtool_libs=$enable_shared
43826 # Whether or not to build static libraries.
43827 build_old_libs=$enable_static
43829 # What type of objects to build.
43832 # Whether or not to optimize for fast installation.
43833 fast_install=$enable_fast_install
43836 host_alias=$host_alias
43840 # The build system.
43841 build_alias=$build_alias
43845 # A sed program that does not truncate output.
43848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43849 Xsed="\$SED -e 1s/^X//"
43851 # A grep program that handles long lines.
43857 # A literal string matcher.
43860 # A BSD- or MS-compatible name lister.
43863 # Whether we need soft or hard links.
43866 # What is the maximum length of a command?
43867 max_cmd_len=$max_cmd_len
43869 # Object file suffix (normally "o").
43872 # Executable file suffix (normally "").
43875 # whether the shell understands "unset".
43878 # turn spaces into newlines.
43881 # turn newlines into spaces.
43884 # How to create reloadable object files.
43885 reload_flag=$lt_reload_flag
43886 reload_cmds=$lt_reload_cmds
43888 # An object symbol dumper.
43889 OBJDUMP=$lt_OBJDUMP
43891 # Method to check whether dependent libraries are shared objects.
43892 deplibs_check_method=$lt_deplibs_check_method
43894 # Command to use when deplibs_check_method == "file_magic".
43895 file_magic_cmd=$lt_file_magic_cmd
43899 AR_FLAGS=$lt_AR_FLAGS
43901 # A symbol stripping program.
43904 # Commands used to install an old-style archive.
43906 old_postinstall_cmds=$lt_old_postinstall_cmds
43907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43912 # LTCC compiler flags.
43913 LTCFLAGS=$lt_CFLAGS
43915 # Take the output of nm and produce a listing of raw symbols and C names.
43916 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43918 # Transform the output of nm in a proper C declaration.
43919 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43921 # Transform the output of nm in a C name address pair.
43922 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43924 # Transform the output of nm in a C name address pair when lib prefix is needed.
43925 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43927 # The name of the directory that contains temporary libtool files.
43930 # Shell to use when invoking shell scripts.
43933 # An echo program that does not interpret backslashes.
43936 # Used to examine libraries when file_magic_cmd begins with "file".
43937 MAGIC_CMD=$MAGIC_CMD
43939 # Must we lock files when doing compilation?
43940 need_locks=$lt_need_locks
43942 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43943 DSYMUTIL=$lt_DSYMUTIL
43945 # Tool to change global to local symbols on Mac OS X.
43948 # Tool to manipulate fat objects and archives on Mac OS X.
43951 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43954 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43955 OTOOL64=$lt_OTOOL64
43957 # Old archive suffix (normally "a").
43960 # Shared library suffix (normally ".so").
43961 shrext_cmds=$lt_shrext_cmds
43963 # The commands to extract the exported symbol list from a shared archive.
43964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43966 # Variables whose values should be saved in libtool wrapper scripts and
43967 # restored at link time.
43968 variables_saved_for_relink=$lt_variables_saved_for_relink
43970 # Do we need the "lib" prefix for modules?
43971 need_lib_prefix=$need_lib_prefix
43973 # Do we need a version for libraries?
43974 need_version=$need_version
43976 # Library versioning type.
43977 version_type=$version_type
43979 # Shared library runtime path variable.
43980 runpath_var=$runpath_var
43982 # Shared library path variable.
43983 shlibpath_var=$shlibpath_var
43985 # Is shlibpath searched before the hard-coded library search path?
43986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43988 # Format of library name prefix.
43989 libname_spec=$lt_libname_spec
43991 # List of archive names. First name is the real one, the rest are links.
43992 # The last name is the one that the linker finds with -lNAME
43993 library_names_spec=$lt_library_names_spec
43995 # The coded name of the library, if different from the real name.
43996 soname_spec=$lt_soname_spec
43998 # Command to use after installation of a shared archive.
43999 postinstall_cmds=$lt_postinstall_cmds
44001 # Command to use after uninstallation of a shared archive.
44002 postuninstall_cmds=$lt_postuninstall_cmds
44004 # Commands used to finish a libtool library installation in a directory.
44005 finish_cmds=$lt_finish_cmds
44007 # As "finish_cmds", except a single script fragment to be evaled but
44009 finish_eval=$lt_finish_eval
44011 # Whether we should hardcode library paths into libraries.
44012 hardcode_into_libs=$hardcode_into_libs
44014 # Compile-time system search path for libraries.
44015 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44017 # Run-time system search path for libraries.
44018 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44020 # Whether dlopen is supported.
44021 dlopen_support=$enable_dlopen
44023 # Whether dlopen of programs is supported.
44024 dlopen_self=$enable_dlopen_self
44026 # Whether dlopen of statically linked programs is supported.
44027 dlopen_self_static=$enable_dlopen_self_static
44029 # Commands to strip libraries.
44030 old_striplib=$lt_old_striplib
44031 striplib=$lt_striplib
44034 # The linker used to build libraries.
44037 # Commands used to build an old-style archive.
44038 old_archive_cmds=$lt_old_archive_cmds
44040 # A language specific compiler.
44043 # Is the compiler the GNU compiler?
44046 # Compiler flag to turn off builtin functions.
44047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44049 # How to pass a linker flag through the compiler.
44050 wl=$lt_lt_prog_compiler_wl
44052 # Additional compiler flags for building library objects.
44053 pic_flag=$lt_lt_prog_compiler_pic
44055 # Compiler flag to prevent dynamic linking.
44056 link_static_flag=$lt_lt_prog_compiler_static
44058 # Does compiler simultaneously support -c and -o options?
44059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44061 # Whether or not to add -lc for building shared libraries.
44062 build_libtool_need_lc=$archive_cmds_need_lc
44064 # Whether or not to disallow shared libs when runtime libs are static.
44065 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44067 # Compiler flag to allow reflexive dlopens.
44068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44070 # Compiler flag to generate shared objects directly from archives.
44071 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44073 # Whether the compiler copes with passing no objects directly.
44074 compiler_needs_object=$lt_compiler_needs_object
44076 # Create an old-style archive from a shared archive.
44077 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44079 # Create a temporary old-style archive to link instead of a shared archive.
44080 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44082 # Commands used to build a shared archive.
44083 archive_cmds=$lt_archive_cmds
44084 archive_expsym_cmds=$lt_archive_expsym_cmds
44086 # Commands used to build a loadable module if different from building
44087 # a shared archive.
44088 module_cmds=$lt_module_cmds
44089 module_expsym_cmds=$lt_module_expsym_cmds
44091 # Whether we are building with GNU ld or not.
44092 with_gnu_ld=$lt_with_gnu_ld
44094 # Flag that allows shared libraries with undefined symbols to be built.
44095 allow_undefined_flag=$lt_allow_undefined_flag
44097 # Flag that enforces no undefined symbols.
44098 no_undefined_flag=$lt_no_undefined_flag
44100 # Flag to hardcode \$libdir into a binary during linking.
44101 # This must work even if \$libdir does not exist
44102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44104 # If ld is used when linking, flag to hardcode \$libdir into a binary
44105 # during linking. This must work even if \$libdir does not exist.
44106 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44108 # Whether we need a single "-rpath" flag with a separated argument.
44109 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44111 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44112 # DIR into the resulting binary.
44113 hardcode_direct=$hardcode_direct
44115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44116 # DIR into the resulting binary and the resulting library dependency is
44117 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44118 # library is relocated.
44119 hardcode_direct_absolute=$hardcode_direct_absolute
44121 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44122 # into the resulting binary.
44123 hardcode_minus_L=$hardcode_minus_L
44125 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44126 # into the resulting binary.
44127 hardcode_shlibpath_var=$hardcode_shlibpath_var
44129 # Set to "yes" if building a shared library automatically hardcodes DIR
44130 # into the library and all subsequent libraries and executables linked
44132 hardcode_automatic=$hardcode_automatic
44134 # Set to yes if linker adds runtime paths of dependent libraries
44135 # to runtime path list.
44136 inherit_rpath=$inherit_rpath
44138 # Whether libtool must link a program against all its dependency libraries.
44139 link_all_deplibs=$link_all_deplibs
44141 # Fix the shell variable \$srcfile for the compiler.
44142 fix_srcfile_path=$lt_fix_srcfile_path
44144 # Set to "yes" if exported symbols are required.
44145 always_export_symbols=$always_export_symbols
44147 # The commands to list exported symbols.
44148 export_symbols_cmds=$lt_export_symbols_cmds
44150 # Symbols that should not be listed in the preloaded symbols.
44151 exclude_expsyms=$lt_exclude_expsyms
44153 # Symbols that must always be exported.
44154 include_expsyms=$lt_include_expsyms
44156 # Commands necessary for linking programs (against libraries) with templates.
44157 prelink_cmds=$lt_prelink_cmds
44159 # Specify filename containing input files.
44160 file_list_spec=$lt_file_list_spec
44162 # How to hardcode a shared library path into an executable.
44163 hardcode_action=$hardcode_action
44165 # The directories searched by this compiler when creating a shared library.
44166 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44168 # Dependencies to place before and after the objects being linked to
44169 # create a shared library.
44170 predep_objects=$lt_predep_objects
44171 postdep_objects=$lt_postdep_objects
44172 predeps=$lt_predeps
44173 postdeps=$lt_postdeps
44175 # The library search path used internally by the compiler when linking
44176 # a shared library.
44177 compiler_lib_search_path=$lt_compiler_lib_search_path
44179 # ### END LIBTOOL CONFIG
44185 cat <<\_LT_EOF >> "$cfgfile"
44186 # AIX sometimes has problems with the GCC collect2 program. For some
44187 # reason, if we set the COLLECT_NAMES environment variable, the problems
44188 # vanish in a puff of smoke.
44189 if test "X${COLLECT_NAMES+set}" != Xset; then
44191 export COLLECT_NAMES
44198 ltmain="$ac_aux_dir/ltmain.sh"
44201 # We use sed instead of cat because bash on DJGPP gets confused if
44202 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44203 # text mode, it properly converts lines to CR/LF. This bash problem
44204 # is reportedly fixed, but why not run on old versions too?
44205 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44206 || (rm -f "$cfgfile"; exit 1)
44210 cat << \_LT_EOF >> "$cfgfile"
44212 # func_dirname file append nondir_replacement
44213 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44214 # otherwise set result to NONDIR_REPLACEMENT.
44218 */*) func_dirname_result="${1%/*}${2}" ;;
44219 * ) func_dirname_result="${3}" ;;
44223 # func_basename file
44226 func_basename_result="${1##*/}"
44229 # func_dirname_and_basename file append nondir_replacement
44230 # perform func_basename and func_dirname in a single function
44232 # dirname: Compute the dirname of FILE. If nonempty,
44233 # add APPEND to the result, otherwise set result
44234 # to NONDIR_REPLACEMENT.
44235 # value returned in "$func_dirname_result"
44236 # basename: Compute filename of FILE.
44237 # value retuned in "$func_basename_result"
44238 # Implementation must be kept synchronized with func_dirname
44239 # and func_basename. For efficiency, we do not delegate to
44240 # those functions but instead duplicate the functionality here.
44241 func_dirname_and_basename ()
44244 */*) func_dirname_result="${1%/*}${2}" ;;
44245 * ) func_dirname_result="${3}" ;;
44247 func_basename_result="${1##*/}"
44250 # func_stripname prefix suffix name
44251 # strip PREFIX and SUFFIX off of NAME.
44252 # PREFIX and SUFFIX must not contain globbing or regex special
44253 # characters, hashes, percent signs, but SUFFIX may contain a leading
44254 # dot (in which case that matches only a dot).
44257 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44258 # positional parameters, so assign one to ordinary parameter first.
44259 func_stripname_result=${3}
44260 func_stripname_result=${func_stripname_result#"${1}"}
44261 func_stripname_result=${func_stripname_result%"${2}"}
44267 func_opt_split_opt=${1%%=*}
44268 func_opt_split_arg=${1#*=}
44275 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44276 *) func_lo2o_result=${1} ;;
44280 # func_xform libobj-or-source
44283 func_xform_result=${1%.*}.lo
44286 # func_arith arithmetic-term...
44289 func_arith_result=$(( $* ))
44293 # STRING may not start with a hyphen.
44296 func_len_result=${#1}
44301 *) # Bourne compatible functions.
44302 cat << \_LT_EOF >> "$cfgfile"
44304 # func_dirname file append nondir_replacement
44305 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44306 # otherwise set result to NONDIR_REPLACEMENT.
44309 # Extract subdirectory from the argument.
44310 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44311 if test "X$func_dirname_result" = "X${1}"; then
44312 func_dirname_result="${3}"
44314 func_dirname_result="$func_dirname_result${2}"
44318 # func_basename file
44321 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44325 # func_stripname prefix suffix name
44326 # strip PREFIX and SUFFIX off of NAME.
44327 # PREFIX and SUFFIX must not contain globbing or regex special
44328 # characters, hashes, percent signs, but SUFFIX may contain a leading
44329 # dot (in which case that matches only a dot).
44330 # func_strip_suffix prefix name
44334 .*) func_stripname_result=`$ECHO "X${3}" \
44335 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44336 *) func_stripname_result=`$ECHO "X${3}" \
44337 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44342 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44343 my_sed_long_arg='1s/^-[^=]*=//'
44348 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44349 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44355 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44358 # func_xform libobj-or-source
44361 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44364 # func_arith arithmetic-term...
44367 func_arith_result=`expr "$@"`
44371 # STRING may not start with a hyphen.
44374 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44380 case $lt_shell_append in
44382 cat << \_LT_EOF >> "$cfgfile"
44384 # func_append var value
44385 # Append VALUE to the end of shell variable VAR.
44393 cat << \_LT_EOF >> "$cfgfile"
44395 # func_append var value
44396 # Append VALUE to the end of shell variable VAR.
44407 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44408 || (rm -f "$cfgfile"; exit 1)
44410 mv -f "$cfgfile" "$ofile" ||
44411 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44415 cat <<_LT_EOF >> "$ofile"
44417 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44419 # The linker used to build libraries.
44422 # Commands used to build an old-style archive.
44423 old_archive_cmds=$lt_old_archive_cmds_CXX
44425 # A language specific compiler.
44426 CC=$lt_compiler_CXX
44428 # Is the compiler the GNU compiler?
44431 # Compiler flag to turn off builtin functions.
44432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44434 # How to pass a linker flag through the compiler.
44435 wl=$lt_lt_prog_compiler_wl_CXX
44437 # Additional compiler flags for building library objects.
44438 pic_flag=$lt_lt_prog_compiler_pic_CXX
44440 # Compiler flag to prevent dynamic linking.
44441 link_static_flag=$lt_lt_prog_compiler_static_CXX
44443 # Does compiler simultaneously support -c and -o options?
44444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44446 # Whether or not to add -lc for building shared libraries.
44447 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44449 # Whether or not to disallow shared libs when runtime libs are static.
44450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44452 # Compiler flag to allow reflexive dlopens.
44453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44455 # Compiler flag to generate shared objects directly from archives.
44456 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44458 # Whether the compiler copes with passing no objects directly.
44459 compiler_needs_object=$lt_compiler_needs_object_CXX
44461 # Create an old-style archive from a shared archive.
44462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44464 # Create a temporary old-style archive to link instead of a shared archive.
44465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44467 # Commands used to build a shared archive.
44468 archive_cmds=$lt_archive_cmds_CXX
44469 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44471 # Commands used to build a loadable module if different from building
44472 # a shared archive.
44473 module_cmds=$lt_module_cmds_CXX
44474 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44476 # Whether we are building with GNU ld or not.
44477 with_gnu_ld=$lt_with_gnu_ld_CXX
44479 # Flag that allows shared libraries with undefined symbols to be built.
44480 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44482 # Flag that enforces no undefined symbols.
44483 no_undefined_flag=$lt_no_undefined_flag_CXX
44485 # Flag to hardcode \$libdir into a binary during linking.
44486 # This must work even if \$libdir does not exist
44487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44489 # If ld is used when linking, flag to hardcode \$libdir into a binary
44490 # during linking. This must work even if \$libdir does not exist.
44491 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44493 # Whether we need a single "-rpath" flag with a separated argument.
44494 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44497 # DIR into the resulting binary.
44498 hardcode_direct=$hardcode_direct_CXX
44500 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44501 # DIR into the resulting binary and the resulting library dependency is
44502 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44503 # library is relocated.
44504 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44506 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44507 # into the resulting binary.
44508 hardcode_minus_L=$hardcode_minus_L_CXX
44510 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44511 # into the resulting binary.
44512 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44514 # Set to "yes" if building a shared library automatically hardcodes DIR
44515 # into the library and all subsequent libraries and executables linked
44517 hardcode_automatic=$hardcode_automatic_CXX
44519 # Set to yes if linker adds runtime paths of dependent libraries
44520 # to runtime path list.
44521 inherit_rpath=$inherit_rpath_CXX
44523 # Whether libtool must link a program against all its dependency libraries.
44524 link_all_deplibs=$link_all_deplibs_CXX
44526 # Fix the shell variable \$srcfile for the compiler.
44527 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44529 # Set to "yes" if exported symbols are required.
44530 always_export_symbols=$always_export_symbols_CXX
44532 # The commands to list exported symbols.
44533 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44535 # Symbols that should not be listed in the preloaded symbols.
44536 exclude_expsyms=$lt_exclude_expsyms_CXX
44538 # Symbols that must always be exported.
44539 include_expsyms=$lt_include_expsyms_CXX
44541 # Commands necessary for linking programs (against libraries) with templates.
44542 prelink_cmds=$lt_prelink_cmds_CXX
44544 # Specify filename containing input files.
44545 file_list_spec=$lt_file_list_spec_CXX
44547 # How to hardcode a shared library path into an executable.
44548 hardcode_action=$hardcode_action_CXX
44550 # The directories searched by this compiler when creating a shared library.
44551 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44553 # Dependencies to place before and after the objects being linked to
44554 # create a shared library.
44555 predep_objects=$lt_predep_objects_CXX
44556 postdep_objects=$lt_postdep_objects_CXX
44557 predeps=$lt_predeps_CXX
44558 postdeps=$lt_postdeps_CXX
44560 # The library search path used internally by the compiler when linking
44561 # a shared library.
44562 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44564 # ### END LIBTOOL TAG CONFIG: CXX
44569 for ac_file in $CONFIG_FILES; do
44570 # Support "outfile[:infile[:infile...]]"
44572 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44574 # PO directories have a Makefile.in generated from Makefile.in.in.
44575 case "$ac_file" in */Makefile.in)
44576 # Adjust a relative srcdir.
44577 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44578 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44579 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44580 # In autoconf-2.13 it is called $ac_given_srcdir.
44581 # In autoconf-2.50 it is called $srcdir.
44582 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44583 case "$ac_given_srcdir" in
44584 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44585 /*) top_srcdir="$ac_given_srcdir" ;;
44586 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44588 # Treat a directory as a PO directory if and only if it has a
44589 # POTFILES.in file. This allows packages to have multiple PO
44590 # directories under different names or in different locations.
44591 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44592 rm -f "$ac_dir/POTFILES"
44593 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44594 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44595 POMAKEFILEDEPS="POTFILES.in"
44596 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44597 # on $ac_dir but don't depend on user-specified configuration
44599 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44600 # The LINGUAS file contains the set of available languages.
44601 if test -n "$OBSOLETE_ALL_LINGUAS"; then
44602 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44604 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44605 # Hide the ALL_LINGUAS assigment from automake.
44606 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44607 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44609 # The set of available languages was given in configure.in.
44610 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44613 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44614 # Compute UPDATEPOFILES
44615 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44616 # Compute DUMMYPOFILES
44617 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44619 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44620 case "$ac_given_srcdir" in
44622 *) srcdirpre='$(srcdir)/' ;;
44628 for lang in $ALL_LINGUAS; do
44629 POFILES="$POFILES $srcdirpre$lang.po"
44630 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44631 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44632 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44634 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44635 # environment variable.
44637 if test -n "$ALL_LINGUAS"; then
44638 for presentlang in $ALL_LINGUAS; do
44640 if test "%UNSET%" != "$LINGUAS"; then
44641 desiredlanguages="$LINGUAS"
44643 desiredlanguages="$ALL_LINGUAS"
44645 for desiredlang in $desiredlanguages; do
44646 # Use the presentlang catalog if desiredlang is
44647 # a. equal to presentlang, or
44648 # b. a variant of presentlang (because in this case,
44649 # presentlang can be used as a fallback for messages
44650 # which are not translated in the desiredlang catalog).
44651 case "$desiredlang" in
44652 "$presentlang"*) useit=yes;;
44655 if test $useit = yes; then
44656 INST_LINGUAS="$INST_LINGUAS $presentlang"
44661 if test -n "$INST_LINGUAS"; then
44662 for lang in $INST_LINGUAS; do
44663 CATALOGS="$CATALOGS $lang.gmo"
44666 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44667 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"
44668 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44669 if test -f "$f"; then
44671 *.orig | *.bak | *~) ;;
44672 *) cat "$f" >> "$ac_dir/Makefile" ;;
44687 { (exit 0); exit 0; }
44689 chmod +x $CONFIG_STATUS
44690 ac_clean_files=$ac_clean_files_save
44693 # configure is writing to config.log, and then calls config.status.
44694 # config.status does its own redirection, appending to config.log.
44695 # Unfortunately, on DOS this fails, as config.log is still kept open
44696 # by configure, so config.status won't be able to write to it; its
44697 # output is simply discarded. So we exec the FD to /dev/null,
44698 # effectively closing config.log, so it can be properly (re)opened and
44699 # appended to by config.status. When coming back to configure, we
44700 # need to make the FD available again.
44701 if test "$no_create" != yes; then
44703 ac_config_status_args=
44704 test "$silent" = yes &&
44705 ac_config_status_args="$ac_config_status_args --quiet"
44707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44710 # would make configure fail if this is the last instruction.
44711 $ac_cs_success || { (exit 1); exit 1; }
44715 if test "${support_bat}" = "yes" ; then
44716 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44717 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44723 if test "x$QMAKEQT4" != "xnone"; then
44728 chmod 755 install_conf_file build-depkgs-qt-console
44729 echo "Creating bat Makefile"
44735 if test X"$GCC" = "Xyes" ; then
44736 echo "Doing make of dependencies"
44737 ${MAKE:-make} depend
44741 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44742 chmod 755 dvd-handler dvd-simulator
44743 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44747 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44748 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44752 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44753 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44755 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44756 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44758 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44759 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44761 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44762 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44764 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44765 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44767 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44768 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44770 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44771 chmod 755 $c/sqlite
44774 chmod 755 src/win32/build-depkgs-mingw32
44776 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44777 largefile_support="yes"
44780 if test X"$GCC" = "Xyes" ; then
44781 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44782 if test "x${CCVERSION}" = "x" ; then
44783 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44785 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44786 if test x"${CXXVERSION}" = x ; then
44787 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44791 # clean up any old junk
44797 if test "x${db_type}" = "xInternal" ; then
44800 echo "You have not specified either --enable-client-only or one of the"
44801 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44802 echo " This is not permitted. Please reconfigure."
44804 echo "Aborting the configuration ..."
44811 Configuration on `date`:
44813 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44814 Bacula version: ${BACULA} ${VERSION} (${DATE})
44815 Source code location: ${srcdir}
44816 Install binaries: ${sbindir}
44817 Install libraries: ${libdir}
44818 Install config files: ${sysconfdir}
44819 Scripts directory: ${scriptdir}
44820 Archive directory: ${archivedir}
44821 Working directory: ${working_dir}
44822 PID directory: ${piddir}
44823 Subsys directory: ${subsysdir}
44824 Man directory: ${mandir}
44825 Data directory: ${datarootdir}
44826 Plugin directory: ${plugindir}
44827 C Compiler: ${CC} ${CCVERSION}
44828 C++ Compiler: ${CXX} ${CXXVERSION}
44829 Compiler flags: ${WCFLAGS} ${CFLAGS}
44830 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44832 Statically Linked Tools: ${support_static_tools}
44833 Statically Linked FD: ${support_static_fd}
44834 Statically Linked SD: ${support_static_sd}
44835 Statically Linked DIR: ${support_static_dir}
44836 Statically Linked CONS: ${support_static_cons}
44837 Database type: ${db_type}
44838 Database port: ${db_port}
44839 Database lib: ${DB_LIBS}
44840 Database name: ${db_name}
44841 Database user: ${db_user}
44843 Job Output Email: ${job_email}
44844 Traceback Email: ${dump_email}
44845 SMTP Host Address: ${smtp_host}
44847 Director Port: ${dir_port}
44848 File daemon Port: ${fd_port}
44849 Storage daemon Port: ${sd_port}
44851 Director User: ${dir_user}
44852 Director Group: ${dir_group}
44853 Storage Daemon User: ${sd_user}
44854 Storage DaemonGroup: ${sd_group}
44855 File Daemon User: ${fd_user}
44856 File Daemon Group: ${fd_group}
44858 SQL binaries Directory ${SQL_BINDIR}
44860 Large file support: $largefile_support
44861 Bacula conio support: ${got_conio} ${CONS_LIBS}
44862 readline support: ${got_readline} ${PRTREADLINE_SRC}
44863 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44864 TLS support: ${support_tls}
44865 Encryption support: ${support_crypto}
44866 ZLIB support: ${have_zlib}
44867 enable-smartalloc: ${support_smartalloc}
44868 enable-lockmgr: ${support_lockmgr}
44869 bat support: ${support_bat} ${QWT_LDFLAGS}
44870 enable-gnome: ${support_gnome} ${gnome_version}
44871 enable-bwx-console: ${support_wx_console} ${wx_version}
44872 enable-tray-monitor: ${support_tray_monitor}
44873 client-only: ${build_client_only}
44874 build-dird: ${build_dird}
44875 build-stored: ${build_stored}
44876 ACL support: ${have_acl}
44877 XATTR support: ${have_xattr}
44878 Python support: ${support_python} ${PYTHON_LIBS}
44879 Batch insert enabled: ${support_batch_insert}