2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for wget 1.12.
5 # Report bugs to <bug-wget@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do 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 ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
598 PACKAGE_TARNAME='wget'
599 PACKAGE_VERSION='1.12'
600 PACKAGE_STRING='wget 1.12'
601 PACKAGE_BUGREPORT='bug-wget@gnu.org'
603 # Factoring default headers for most tests.
604 ac_includes_default="\
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
616 # ifdef HAVE_STDLIB_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
641 gl_getopt_required=POSIX
642 gl_getopt_required=POSIX
644 ac_subst_vars='md5tests_LTLIBOBJS
655 COMMENT_IF_NO_POD2MAN
677 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
680 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
685 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
687 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
689 NEXT_AS_FIRST_DIRECTIVE_STRING_H
691 HAVE_DECL_STRNCASECMP
694 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
696 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
706 HAVE_SIGNED_SIG_ATOMIC_T
709 BITSIZEOF_SIG_ATOMIC_T
715 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
719 HAVE_UNSIGNED_LONG_LONG_INT
721 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
735 HAVE_STRUCT_RANDOM_DATA
766 APPLE_UNIVERSAL_BUILD
863 LOCALCHARSET_TESTS_ENVIRONMENT
866 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
867 UNISTD_H_HAVE_WINSOCK2_H
896 GNULIB_UNISTD_H_SIGPIPE
897 GNULIB_UNISTD_H_GETOPT
937 REPLACE_OBSTACK_PRINTF
938 HAVE_DECL_OBSTACK_PRINTF
955 REPLACE_STDIO_WRITE_FUNCS
956 GNULIB_STDIO_H_SIGPIPE
976 GNULIB_OBSTACK_PRINTF_POSIX
977 GNULIB_OBSTACK_PRINTF
981 GNULIB_VSPRINTF_POSIX
985 GNULIB_VFPRINTF_POSIX
1000 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1002 PRAGMA_SYSTEM_HEADER
1003 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1007 GL_COND_LIBTOOL_FALSE
1008 GL_COND_LIBTOOL_TRUE
1019 XGETTEXT_EXTRA_OPTIONS
1027 GETTEXT_MACRO_VERSION
1065 INSTALL_STRIP_PROGRAM
1107 program_transform_name
1119 enable_option_checking
1125 enable_dependency_tracking
1129 with_libiconv_prefix
1132 with_libgnutls_prefix
1138 ac_precious_vars='build_alias
1149 # Initialize some variables set by options.
1151 ac_init_version=false
1152 ac_unrecognized_opts=
1153 ac_unrecognized_sep=
1154 # The variables have the same names as the options, with
1155 # dashes changed to underlines.
1156 cache_file=/dev/null
1163 program_transform_name=s,x,x,
1171 # Installation directory options.
1172 # These are left unexpanded so users can "make install exec_prefix=/foo"
1173 # and all the variables that are supposed to be based on exec_prefix
1174 # by default will actually change.
1175 # Use braces instead of parens because sh, perl, etc. also accept them.
1176 # (The list follows the same order as the GNU Coding Standards.)
1177 bindir='${exec_prefix}/bin'
1178 sbindir='${exec_prefix}/sbin'
1179 libexecdir='${exec_prefix}/libexec'
1180 datarootdir='${prefix}/share'
1181 datadir='${datarootdir}'
1182 sysconfdir='${prefix}/etc'
1183 sharedstatedir='${prefix}/com'
1184 localstatedir='${prefix}/var'
1185 includedir='${prefix}/include'
1186 oldincludedir='/usr/include'
1187 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1188 infodir='${datarootdir}/info'
1193 libdir='${exec_prefix}/lib'
1194 localedir='${datarootdir}/locale'
1195 mandir='${datarootdir}/man'
1201 # If the previous option needs an argument, assign it.
1202 if test -n "$ac_prev"; then
1203 eval $ac_prev=\$ac_option
1209 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1213 # Accept the important Cygnus configure options, so we can diagnose typos.
1215 case $ac_dashdash$ac_option in
1219 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1221 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1222 bindir=$ac_optarg ;;
1224 -build | --build | --buil | --bui | --bu)
1225 ac_prev=build_alias ;;
1226 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1227 build_alias=$ac_optarg ;;
1229 -cache-file | --cache-file | --cache-fil | --cache-fi \
1230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1231 ac_prev=cache_file ;;
1232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1234 cache_file=$ac_optarg ;;
1236 --config-cache | -C)
1237 cache_file=config.cache ;;
1239 -datadir | --datadir | --datadi | --datad)
1241 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1242 datadir=$ac_optarg ;;
1244 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1245 | --dataroo | --dataro | --datar)
1246 ac_prev=datarootdir ;;
1247 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1248 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1249 datarootdir=$ac_optarg ;;
1251 -disable-* | --disable-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1256 { (exit 1); exit 1; }; }
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1261 "enable_$ac_useropt"
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1266 eval enable_$ac_useropt=no ;;
1268 -docdir | --docdir | --docdi | --doc | --do)
1270 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1271 docdir=$ac_optarg ;;
1273 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1275 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1276 dvidir=$ac_optarg ;;
1278 -enable-* | --enable-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "enable_$ac_useropt"
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1293 eval enable_$ac_useropt=\$ac_optarg ;;
1295 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1296 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1297 | --exec | --exe | --ex)
1298 ac_prev=exec_prefix ;;
1299 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1300 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1301 | --exec=* | --exe=* | --ex=*)
1302 exec_prefix=$ac_optarg ;;
1304 -gas | --gas | --ga | --g)
1305 # Obsolete; use --with-gas.
1308 -help | --help | --hel | --he | -h)
1309 ac_init_help=long ;;
1310 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1311 ac_init_help=recursive ;;
1312 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1313 ac_init_help=short ;;
1315 -host | --host | --hos | --ho)
1316 ac_prev=host_alias ;;
1317 -host=* | --host=* | --hos=* | --ho=*)
1318 host_alias=$ac_optarg ;;
1320 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1322 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1324 htmldir=$ac_optarg ;;
1326 -includedir | --includedir | --includedi | --included | --include \
1327 | --includ | --inclu | --incl | --inc)
1328 ac_prev=includedir ;;
1329 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1330 | --includ=* | --inclu=* | --incl=* | --inc=*)
1331 includedir=$ac_optarg ;;
1333 -infodir | --infodir | --infodi | --infod | --info | --inf)
1335 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1336 infodir=$ac_optarg ;;
1338 -libdir | --libdir | --libdi | --libd)
1340 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1341 libdir=$ac_optarg ;;
1343 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1344 | --libexe | --libex | --libe)
1345 ac_prev=libexecdir ;;
1346 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1347 | --libexe=* | --libex=* | --libe=*)
1348 libexecdir=$ac_optarg ;;
1350 -localedir | --localedir | --localedi | --localed | --locale)
1351 ac_prev=localedir ;;
1352 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1353 localedir=$ac_optarg ;;
1355 -localstatedir | --localstatedir | --localstatedi | --localstated \
1356 | --localstate | --localstat | --localsta | --localst | --locals)
1357 ac_prev=localstatedir ;;
1358 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1359 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1360 localstatedir=$ac_optarg ;;
1362 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1364 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1365 mandir=$ac_optarg ;;
1367 -nfp | --nfp | --nf)
1368 # Obsolete; use --without-fp.
1371 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1372 | --no-cr | --no-c | -n)
1375 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1376 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1379 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1380 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1381 | --oldin | --oldi | --old | --ol | --o)
1382 ac_prev=oldincludedir ;;
1383 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1384 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1385 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1386 oldincludedir=$ac_optarg ;;
1388 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1390 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1391 prefix=$ac_optarg ;;
1393 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1394 | --program-pre | --program-pr | --program-p)
1395 ac_prev=program_prefix ;;
1396 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1397 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1398 program_prefix=$ac_optarg ;;
1400 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1401 | --program-suf | --program-su | --program-s)
1402 ac_prev=program_suffix ;;
1403 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1404 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1405 program_suffix=$ac_optarg ;;
1407 -program-transform-name | --program-transform-name \
1408 | --program-transform-nam | --program-transform-na \
1409 | --program-transform-n | --program-transform- \
1410 | --program-transform | --program-transfor \
1411 | --program-transfo | --program-transf \
1412 | --program-trans | --program-tran \
1413 | --progr-tra | --program-tr | --program-t)
1414 ac_prev=program_transform_name ;;
1415 -program-transform-name=* | --program-transform-name=* \
1416 | --program-transform-nam=* | --program-transform-na=* \
1417 | --program-transform-n=* | --program-transform-=* \
1418 | --program-transform=* | --program-transfor=* \
1419 | --program-transfo=* | --program-transf=* \
1420 | --program-trans=* | --program-tran=* \
1421 | --progr-tra=* | --program-tr=* | --program-t=*)
1422 program_transform_name=$ac_optarg ;;
1424 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1426 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1427 pdfdir=$ac_optarg ;;
1429 -psdir | --psdir | --psdi | --psd | --ps)
1431 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1435 | -silent | --silent | --silen | --sile | --sil)
1438 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1440 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1442 sbindir=$ac_optarg ;;
1444 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1445 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1446 | --sharedst | --shareds | --shared | --share | --shar \
1448 ac_prev=sharedstatedir ;;
1449 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1450 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1451 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1453 sharedstatedir=$ac_optarg ;;
1455 -site | --site | --sit)
1457 -site=* | --site=* | --sit=*)
1460 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1462 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1463 srcdir=$ac_optarg ;;
1465 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1466 | --syscon | --sysco | --sysc | --sys | --sy)
1467 ac_prev=sysconfdir ;;
1468 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1469 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1470 sysconfdir=$ac_optarg ;;
1472 -target | --target | --targe | --targ | --tar | --ta | --t)
1473 ac_prev=target_alias ;;
1474 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1475 target_alias=$ac_optarg ;;
1477 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1480 -version | --version | --versio | --versi | --vers | -V)
1481 ac_init_version=: ;;
1484 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1485 # Reject names that are not valid shell variable names.
1486 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1488 { (exit 1); exit 1; }; }
1489 ac_useropt_orig=$ac_useropt
1490 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491 case $ac_user_opts in
1495 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1496 ac_unrecognized_sep=', ';;
1498 eval with_$ac_useropt=\$ac_optarg ;;
1500 -without-* | --without-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1505 { (exit 1); exit 1; }; }
1506 ac_useropt_orig=$ac_useropt
1507 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1512 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1513 ac_unrecognized_sep=', ';;
1515 eval with_$ac_useropt=no ;;
1518 # Obsolete; use --with-x.
1521 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1522 | --x-incl | --x-inc | --x-in | --x-i)
1523 ac_prev=x_includes ;;
1524 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1525 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1526 x_includes=$ac_optarg ;;
1528 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1529 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1530 ac_prev=x_libraries ;;
1531 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1532 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1533 x_libraries=$ac_optarg ;;
1535 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1536 Try \`$0 --help' for more information." >&2
1537 { (exit 1); exit 1; }; }
1541 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542 # Reject names that are not valid shell variable names.
1543 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1544 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1545 { (exit 1); exit 1; }; }
1546 eval $ac_envvar=\$ac_optarg
1547 export $ac_envvar ;;
1550 # FIXME: should be removed in autoconf 3.0.
1551 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1552 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1553 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1554 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1560 if test -n "$ac_prev"; then
1561 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1562 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1563 { (exit 1); exit 1; }; }
1566 if test -n "$ac_unrecognized_opts"; then
1567 case $enable_option_checking in
1569 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1570 { (exit 1); exit 1; }; } ;;
1571 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1575 # Check all directory arguments for consistency.
1576 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1577 datadir sysconfdir sharedstatedir localstatedir includedir \
1578 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1579 libdir localedir mandir
1581 eval ac_val=\$$ac_var
1582 # Remove trailing slashes.
1585 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1586 eval $ac_var=\$ac_val;;
1588 # Be sure to have absolute directory names.
1590 [\\/$]* | ?:[\\/]* ) continue;;
1591 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1593 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1594 { (exit 1); exit 1; }; }
1597 # There might be people who depend on the old broken behavior: `$host'
1598 # used to hold the argument of --host etc.
1599 # FIXME: To remove some day.
1602 target=$target_alias
1604 # FIXME: To remove some day.
1605 if test "x$host_alias" != x; then
1606 if test "x$build_alias" = x; then
1607 cross_compiling=maybe
1608 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1609 If a cross compiler is detected then cross compile mode will be used." >&2
1610 elif test "x$build_alias" != "x$host_alias"; then
1616 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1618 test "$silent" = yes && exec 6>/dev/null
1621 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1622 ac_ls_di=`ls -di .` &&
1623 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1624 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1625 { (exit 1); exit 1; }; }
1626 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1627 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1628 { (exit 1); exit 1; }; }
1631 # Find the source files, if location was not specified.
1632 if test -z "$srcdir"; then
1633 ac_srcdir_defaulted=yes
1634 # Try the directory containing this script, then the parent directory.
1635 ac_confdir=`$as_dirname -- "$as_myself" ||
1636 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1637 X"$as_myself" : 'X\(//\)[^/]' \| \
1638 X"$as_myself" : 'X\(//\)$' \| \
1639 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1640 $as_echo X"$as_myself" |
1641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1659 if test ! -r "$srcdir/$ac_unique_file"; then
1663 ac_srcdir_defaulted=no
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1666 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1667 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1668 { (exit 1); exit 1; }; }
1670 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1672 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1673 { (exit 1); exit 1; }; }
1675 # When building in place, set srcdir=.
1676 if test "$ac_abs_confdir" = "$ac_pwd"; then
1679 # Remove unnecessary trailing slashes from srcdir.
1680 # Double slashes in file names in object file debugging info
1681 # mess up M-x gdb in Emacs.
1683 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1685 for ac_var in $ac_precious_vars; do
1686 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1687 eval ac_env_${ac_var}_value=\$${ac_var}
1688 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1689 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1693 # Report the --help message.
1695 if test "$ac_init_help" = "long"; then
1696 # Omit some internal or obsolete options to make the list less imposing.
1697 # This message is too long to be a string in the A/UX 3.1 sh.
1699 \`configure' configures wget 1.12 to adapt to many kinds of systems.
1701 Usage: $0 [OPTION]... [VAR=VALUE]...
1703 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1704 VAR=VALUE. See below for descriptions of some of the useful variables.
1706 Defaults for the options are specified in brackets.
1709 -h, --help display this help and exit
1710 --help=short display options specific to this package
1711 --help=recursive display the short help of all the included packages
1712 -V, --version display version information and exit
1713 -q, --quiet, --silent do not print \`checking...' messages
1714 --cache-file=FILE cache test results in FILE [disabled]
1715 -C, --config-cache alias for \`--cache-file=config.cache'
1716 -n, --no-create do not create output files
1717 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1719 Installation directories:
1720 --prefix=PREFIX install architecture-independent files in PREFIX
1721 [$ac_default_prefix]
1722 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1725 By default, \`make install' will install all the files in
1726 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1727 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1728 for instance \`--prefix=\$HOME'.
1730 For better control, use the options below.
1732 Fine tuning of the installation directories:
1733 --bindir=DIR user executables [EPREFIX/bin]
1734 --sbindir=DIR system admin executables [EPREFIX/sbin]
1735 --libexecdir=DIR program executables [EPREFIX/libexec]
1736 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1737 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1738 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1739 --libdir=DIR object code libraries [EPREFIX/lib]
1740 --includedir=DIR C header files [PREFIX/include]
1741 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1742 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1743 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1744 --infodir=DIR info documentation [DATAROOTDIR/info]
1745 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1746 --mandir=DIR man documentation [DATAROOTDIR/man]
1747 --docdir=DIR documentation root [DATAROOTDIR/doc/wget]
1748 --htmldir=DIR html documentation [DOCDIR]
1749 --dvidir=DIR dvi documentation [DOCDIR]
1750 --pdfdir=DIR pdf documentation [DOCDIR]
1751 --psdir=DIR ps documentation [DOCDIR]
1757 --program-prefix=PREFIX prepend PREFIX to installed program names
1758 --program-suffix=SUFFIX append SUFFIX to installed program names
1759 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1762 --build=BUILD configure for building on BUILD [guessed]
1763 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1767 if test -n "$ac_init_help"; then
1768 case $ac_init_help in
1769 short | recursive ) echo "Configuration of wget 1.12:";;
1774 --disable-option-checking ignore unrecognized --enable/--with options
1775 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1776 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1777 --disable-opie disable support for opie or s/key FTP login
1778 --disable-digest disable support for HTTP digest authorization
1779 --disable-ntlm disable support for NTLM authorization
1780 --disable-debug disable support for debugging output
1781 --disable-dependency-tracking speeds up one-time build
1782 --enable-dependency-tracking do not reject slow dependency extractors
1783 --disable-nls do not use Native Language Support
1784 --disable-rpath do not hardcode runtime library paths
1785 --disable-largefile omit support for large files
1786 --disable-ipv6 disable IPv6 support
1787 --disable-iri disable IDN/IRIs support
1790 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1791 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1792 --without-ssl disable SSL autodetection
1793 --with-gnu-ld assume the C compiler uses GNU ld default=no
1794 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1795 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1796 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1797 --without-libintl-prefix don't search for libintl in includedir and libdir
1798 --with-libgnutls-prefix[=DIR] search for libgnutls in DIR/include and DIR/lib
1799 --without-libgnutls-prefix don't search for libgnutls in includedir and libdir
1800 --with-libssl-prefix[=DIR] search for libssl in DIR/include and DIR/lib
1801 --without-libssl-prefix don't search for libssl in includedir and libdir
1802 --with-libidn=DIR Support IDN/IRIs (needs GNU Libidn)
1804 Some influential environment variables:
1805 CC C compiler command
1806 CFLAGS C compiler flags
1807 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1808 nonstandard directory <lib dir>
1809 LIBS libraries to pass to the linker, e.g. -l<library>
1810 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1811 you have headers in a nonstandard directory <include dir>
1814 Use these variables to override the choices made by `configure' or to help
1815 it to find libraries and programs with nonstandard names/locations.
1817 Report bugs to <bug-wget@gnu.org>.
1822 if test "$ac_init_help" = "recursive"; then
1823 # If there are subdirs, report their specific --help.
1824 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1825 test -d "$ac_dir" ||
1826 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1833 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1834 # A ".." for each directory in $ac_dir_suffix.
1835 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1836 case $ac_top_builddir_sub in
1837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1841 ac_abs_top_builddir=$ac_pwd
1842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1843 # for backward compatibility:
1844 ac_top_builddir=$ac_top_build_prefix
1847 .) # We are building in place.
1849 ac_top_srcdir=$ac_top_builddir_sub
1850 ac_abs_top_srcdir=$ac_pwd ;;
1851 [\\/]* | ?:[\\/]* ) # Absolute name.
1852 ac_srcdir=$srcdir$ac_dir_suffix;
1853 ac_top_srcdir=$srcdir
1854 ac_abs_top_srcdir=$srcdir ;;
1856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1857 ac_top_srcdir=$ac_top_build_prefix$srcdir
1858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1862 cd "$ac_dir" || { ac_status=$?; continue; }
1863 # Check for guested configure.
1864 if test -f "$ac_srcdir/configure.gnu"; then
1866 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1867 elif test -f "$ac_srcdir/configure"; then
1869 $SHELL "$ac_srcdir/configure" --help=recursive
1871 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1873 cd "$ac_pwd" || { ac_status=$?; break; }
1877 test -n "$ac_init_help" && exit $ac_status
1878 if $ac_init_version; then
1881 generated by GNU Autoconf 2.63
1883 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1884 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1885 This configure script is free software; the Free Software Foundation
1886 gives unlimited permission to copy, distribute and modify it.
1890 cat >config.log <<_ACEOF
1891 This file contains any messages produced by compilers while
1892 running configure, to aid debugging if configure makes a mistake.
1894 It was created by wget $as_me 1.12, which was
1895 generated by GNU Autoconf 2.63. Invocation command line was
1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1917 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1920 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1921 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1922 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 $as_echo "PATH: $as_dir"
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1955 ac_must_keep_next=false
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1971 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984 -* ) ac_must_keep_next=true ;;
1987 ac_configure_args="$ac_configure_args '$ac_arg'"
1992 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1993 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Save into config.log some information that might help in debugging.
2006 ## ---------------- ##
2007 ## Cache variables. ##
2008 ## ---------------- ##
2011 # The following way of writing the cache mishandles newlines in values,
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2018 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) $as_unset $ac_var ;;
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044 ## ----------------- ##
2045 ## Output variables. ##
2046 ## ----------------- ##
2049 for ac_var in $ac_subst_vars
2051 eval ac_val=\$$ac_var
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 $as_echo "$ac_var='\''$ac_val'\''"
2059 if test -n "$ac_subst_files"; then
2061 ## ------------------- ##
2062 ## File substitutions. ##
2063 ## ------------------- ##
2066 for ac_var in $ac_subst_files
2068 eval ac_val=\$$ac_var
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 $as_echo "$ac_var='\''$ac_val'\''"
2077 if test -s confdefs.h; then
2087 test "$ac_signal" != 0 &&
2088 $as_echo "$as_me: caught signal $ac_signal"
2089 $as_echo "$as_me: exit $exit_status"
2091 rm -f core *.core core.conftest.* &&
2092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2095 for ac_signal in 1 2 13 15; do
2096 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2101 rm -f -r conftest* confdefs.h
2103 # Predefined preprocessor variables.
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130 # Let the site file select an alternate cache file if it wants to.
2131 # Prefer an explicitly selected file to automatically selected ones.
2134 if test -n "$CONFIG_SITE"; then
2135 ac_site_file1=$CONFIG_SITE
2136 elif test "x$prefix" != xNONE; then
2137 ac_site_file1=$prefix/share/config.site
2138 ac_site_file2=$prefix/etc/config.site
2140 ac_site_file1=$ac_default_prefix/share/config.site
2141 ac_site_file2=$ac_default_prefix/etc/config.site
2143 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145 test "x$ac_site_file" = xNONE && continue
2146 if test -r "$ac_site_file"; then
2147 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2149 sed 's/^/| /' "$ac_site_file" >&5
2154 if test -r "$cache_file"; then
2155 # Some versions of bash will fail to source /dev/null (special
2156 # files actually), so we avoid doing that.
2157 if test -f "$cache_file"; then
2158 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2159 $as_echo "$as_me: loading cache $cache_file" >&6;}
2161 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2162 *) . "./$cache_file";;
2166 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2167 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171 gt_needs="$gt_needs need-ngettext"
2172 ac_header_list="$ac_header_list errno.h"
2173 gl_getopt_required=GNU
2174 ac_header_list="$ac_header_list stdio_ext.h"
2175 ac_header_list="$ac_header_list termios.h"
2176 ac_func_list="$ac_func_list __fsetlocking"
2177 ac_func_list="$ac_func_list tcgetattr"
2178 ac_func_list="$ac_func_list tcsetattr"
2179 ac_func_list="$ac_func_list mbsinit"
2180 ac_func_list="$ac_func_list mbrtowc"
2181 ac_header_list="$ac_header_list sys/mman.h"
2182 ac_func_list="$ac_func_list mprotect"
2183 ac_header_list="$ac_header_list stddef.h"
2184 ac_header_list="$ac_header_list stdint.h"
2185 ac_header_list="$ac_header_list wchar.h"
2186 ac_header_list="$ac_header_list stdio.h"
2187 ac_header_list="$ac_header_list stdlib.h"
2188 ac_header_list="$ac_header_list sys/socket.h"
2189 ac_header_list="$ac_header_list string.h"
2190 ac_header_list="$ac_header_list strings.h"
2191 ac_header_list="$ac_header_list unistd.h"
2192 ac_func_list="$ac_func_list iswcntrl"
2193 ac_header_list="$ac_header_list wctype.h"
2194 # Check that the precious variables saved in the cache have kept the same
2196 ac_cache_corrupted=false
2197 for ac_var in $ac_precious_vars; do
2198 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2199 eval ac_new_set=\$ac_env_${ac_var}_set
2200 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2201 eval ac_new_val=\$ac_env_${ac_var}_value
2202 case $ac_old_set,$ac_new_set in
2204 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2205 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2206 ac_cache_corrupted=: ;;
2208 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2209 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2213 if test "x$ac_old_val" != "x$ac_new_val"; then
2214 # differences in whitespace do not lead to failure.
2215 ac_old_val_w=`echo x $ac_old_val`
2216 ac_new_val_w=`echo x $ac_new_val`
2217 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2218 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2219 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2220 ac_cache_corrupted=:
2222 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2223 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2224 eval $ac_var=\$ac_old_val
2226 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2227 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2228 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2229 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2232 # Pass precious variables to config.status.
2233 if test "$ac_new_set" = set; then
2235 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 *) ac_arg=$ac_var=$ac_new_val ;;
2238 case " $ac_configure_args " in
2239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2244 if $ac_cache_corrupted; then
2245 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2248 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2249 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2250 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2251 { (exit 1); exit 1; }; }
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287 { $as_echo "$as_me:$LINENO: configuring for GNU Wget $PACKAGE_VERSION" >&5
2288 $as_echo "$as_me: configuring for GNU Wget $PACKAGE_VERSION" >&6;}
2292 for ac_dir in build-aux "$srcdir"/build-aux; do
2293 if test -f "$ac_dir/install-sh"; then
2295 ac_install_sh="$ac_aux_dir/install-sh -c"
2297 elif test -f "$ac_dir/install.sh"; then
2299 ac_install_sh="$ac_aux_dir/install.sh -c"
2301 elif test -f "$ac_dir/shtool"; then
2303 ac_install_sh="$ac_aux_dir/shtool install -c"
2307 if test -z "$ac_aux_dir"; then
2308 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2309 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2310 { (exit 1); exit 1; }; }
2313 # These three variables are undocumented and unsupported,
2314 # and are intended to be withdrawn in a future Autoconf release.
2315 # They can cause serious problems if a builder's source tree is in a directory
2316 # whose full name contains unusual characters.
2317 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2318 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2319 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2323 am__api_version='1.10'
2325 # Find a good install program. We prefer a C program (faster),
2326 # so one script is as good as another. But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if test "${ac_cv_path_install+set}" = set; then
2343 $as_echo_n "(cached) " >&6
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 # Account for people who put trailing slashes in PATH elements.
2352 ./ | .// | /cC/* | \
2353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2357 # OSF1 and SCO ODT 3.0 have their own names for install.
2358 # Don't use installbsd from OSF since it installs stuff as root
2360 for ac_prog in ginstall scoinst install; do
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2363 if test $ac_prog = install &&
2364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # AIX install. It has an incompatible calling convention.
2367 elif test $ac_prog = install &&
2368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2372 rm -rf conftest.one conftest.two conftest.dir
2373 echo one > conftest.one
2374 echo two > conftest.two
2376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377 test -s conftest.one && test -s conftest.two &&
2378 test -s conftest.dir/conftest.one &&
2379 test -s conftest.dir/conftest.two
2381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 rm -rf conftest.one conftest.two conftest.dir
2397 if test "${ac_cv_path_install+set}" = set; then
2398 INSTALL=$ac_cv_path_install
2400 # As a last resort, use the slow shell script. Don't cache a
2401 # value for INSTALL within a source directory, because that will
2402 # break other packages using the cache if that directory is
2403 # removed, or if the value is a relative name.
2404 INSTALL=$ac_install_sh
2407 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2419 $as_echo_n "checking whether build environment is sane... " >&6; }
2422 echo timestamp > conftest.file
2423 # Do `set' in a subshell so we don't clobber the current shell's
2424 # arguments. Must try -L first in case configure is actually a
2425 # symlink; some systems play weird games with the mod time of symlinks
2426 # (eg FreeBSD returns the mod time of the symlink's containing
2429 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2430 if test "$*" = "X"; then
2432 set X `ls -t $srcdir/configure conftest.file`
2435 if test "$*" != "X $srcdir/configure conftest.file" \
2436 && test "$*" != "X conftest.file $srcdir/configure"; then
2438 # If neither matched, then we have a broken ls. This can happen
2439 # if, for instance, CONFIG_SHELL is bash and it inherits a
2440 # broken ls alias from the environment. This has actually
2441 # happened. Such a system could not be considered "sane".
2442 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2443 alias in your environment" >&5
2444 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2445 alias in your environment" >&2;}
2446 { (exit 1); exit 1; }; }
2449 test "$2" = conftest.file
2455 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2456 Check your system clock" >&5
2457 $as_echo "$as_me: error: newly created file is older than distributed files!
2458 Check your system clock" >&2;}
2459 { (exit 1); exit 1; }; }
2461 { $as_echo "$as_me:$LINENO: result: yes" >&5
2462 $as_echo "yes" >&6; }
2463 test "$program_prefix" != NONE &&
2464 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2465 # Use a double $ so make ignores it.
2466 test "$program_suffix" != NONE &&
2467 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2468 # Double any \ or $.
2469 # By default was `s,x,x', remove it if useless.
2470 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2471 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2473 # expand $ac_aux_dir to an absolute path
2474 am_aux_dir=`cd $ac_aux_dir && pwd`
2476 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2477 # Use eval to expand $SHELL
2478 if eval "$MISSING --run true"; then
2479 am_missing_run="$MISSING --run "
2482 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2483 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2486 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2487 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2488 if test -z "$MKDIR_P"; then
2489 if test "${ac_cv_path_mkdir+set}" = set; then
2490 $as_echo_n "(cached) " >&6
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2496 test -z "$as_dir" && as_dir=.
2497 for ac_prog in mkdir gmkdir; do
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2500 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2501 'mkdir (GNU coreutils) '* | \
2502 'mkdir (coreutils) '* | \
2503 'mkdir (fileutils) '4.1*)
2504 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2514 if test "${ac_cv_path_mkdir+set}" = set; then
2515 MKDIR_P="$ac_cv_path_mkdir -p"
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for MKDIR_P within a source directory, because that will
2519 # break other packages using the cache if that directory is
2520 # removed, or if the value is a relative name.
2521 test -d ./--version && rmdir ./--version
2522 MKDIR_P="$ac_install_sh -d"
2525 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2526 $as_echo "$MKDIR_P" >&6; }
2530 [\\/$]* | ?:[\\/]*) ;;
2531 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2534 for ac_prog in gawk mawk nawk awk
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if test "${ac_cv_prog_AWK+set}" = set; then
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$AWK"; then
2544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_AWK="$ac_prog"
2554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test -n "$AWK"; then
2565 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2566 $as_echo "$AWK" >&6; }
2568 { $as_echo "$as_me:$LINENO: result: no" >&5
2569 $as_echo "no" >&6; }
2573 test -n "$AWK" && break
2576 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2577 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2579 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2580 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2581 $as_echo_n "(cached) " >&6
2583 cat >conftest.make <<\_ACEOF
2586 @echo '@@@%%%=$(MAKE)=@@@%%%'
2588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2589 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2591 eval ac_cv_prog_make_${ac_make}_set=yes;;
2593 eval ac_cv_prog_make_${ac_make}_set=no;;
2597 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2598 { $as_echo "$as_me:$LINENO: result: yes" >&5
2599 $as_echo "yes" >&6; }
2602 { $as_echo "$as_me:$LINENO: result: no" >&5
2603 $as_echo "no" >&6; }
2604 SET_MAKE="MAKE=${MAKE-make}"
2607 rm -rf .tst 2>/dev/null
2608 mkdir .tst 2>/dev/null
2609 if test -d .tst; then
2614 rmdir .tst 2>/dev/null
2616 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2617 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2618 # is not polluted with repeated "-I."
2619 am__isrc=' -I$(srcdir)'
2620 # test to see if srcdir already configured
2621 if test -f $srcdir/config.status; then
2622 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2623 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2624 { (exit 1); exit 1; }; }
2628 # test whether we have cygpath
2629 if test -z "$CYGPATH_W"; then
2630 if (cygpath --version) >/dev/null 2>/dev/null; then
2631 CYGPATH_W='cygpath -w'
2638 # Define the identity of the package.
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE "$PACKAGE"
2648 cat >>confdefs.h <<_ACEOF
2649 #define VERSION "$VERSION"
2652 # Some tools Automake needs.
2654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2668 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2670 # Installed binaries are usually stripped using `strip' when the user
2671 # run `make install-strip'. However `strip' might not be the right
2672 # tool to use in cross-compilation environments, therefore Automake
2673 # will honor the `STRIP' environment variable to overrule this program.
2674 if test "$cross_compiling" != no; then
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}strip; ac_word=$2
2678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if test "${ac_cv_prog_STRIP+set}" = set; then
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$STRIP"; then
2684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 STRIP=$ac_cv_prog_STRIP
2704 if test -n "$STRIP"; then
2705 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2706 $as_echo "$STRIP" >&6; }
2708 { $as_echo "$as_me:$LINENO: result: no" >&5
2709 $as_echo "no" >&6; }
2714 if test -z "$ac_cv_prog_STRIP"; then
2716 # Extract the first word of "strip", so it can be a program name with args.
2717 set dummy strip; ac_word=$2
2718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$ac_ct_STRIP"; then
2724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_ac_ct_STRIP="strip"
2734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744 if test -n "$ac_ct_STRIP"; then
2745 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2746 $as_echo "$ac_ct_STRIP" >&6; }
2748 { $as_echo "$as_me:$LINENO: result: no" >&5
2749 $as_echo "no" >&6; }
2752 if test "x$ac_ct_STRIP" = x; then
2755 case $cross_compiling:$ac_tool_warned in
2757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2764 STRIP="$ac_cv_prog_STRIP"
2768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2770 # We need awk for the "check" target. The system "awk" is bad on
2772 # Always define AMTAR for backward compatibility.
2774 AMTAR=${AMTAR-"${am_missing_run}tar"}
2776 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2783 # Make sure we can run config.sub.
2784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2785 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2786 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2787 { (exit 1); exit 1; }; }
2789 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if test "${ac_cv_build+set}" = set; then
2792 $as_echo_n "(cached) " >&6
2794 ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2799 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2800 { (exit 1); exit 1; }; }
2801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2802 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2803 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2804 { (exit 1); exit 1; }; }
2807 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2808 $as_echo "$ac_cv_build" >&6; }
2809 case $ac_cv_build in
2811 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2812 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2813 { (exit 1); exit 1; }; };;
2816 ac_save_IFS=$IFS; IFS='-'
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2829 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2830 $as_echo_n "checking host system type... " >&6; }
2831 if test "${ac_cv_host+set}" = set; then
2832 $as_echo_n "(cached) " >&6
2834 if test "x$host_alias" = x; then
2835 ac_cv_host=$ac_cv_build
2837 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2838 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2839 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2840 { (exit 1); exit 1; }; }
2844 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2845 $as_echo "$ac_cv_host" >&6; }
2848 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2849 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2850 { (exit 1); exit 1; }; };;
2853 ac_save_IFS=$IFS; IFS='-'
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2867 cat >>confdefs.h <<_ACEOF
2868 #define OS_TYPE "$host_os"
2874 # Check whether --with-ssl was given.
2875 if test "${with_ssl+set}" = set; then
2880 # Check whether --enable-opie was given.
2881 if test "${enable_opie+set}" = set; then
2882 enableval=$enable_opie; ENABLE_OPIE=$enableval
2887 test x"${ENABLE_OPIE}" = xyes &&
2888 cat >>confdefs.h <<\_ACEOF
2889 #define ENABLE_OPIE 1
2893 # Check whether --enable-digest was given.
2894 if test "${enable_digest+set}" = set; then
2895 enableval=$enable_digest; ENABLE_DIGEST=$enableval
2900 test x"${ENABLE_DIGEST}" = xyes &&
2901 cat >>confdefs.h <<\_ACEOF
2902 #define ENABLE_DIGEST 1
2906 # Check whether --enable-ntlm was given.
2907 if test "${enable_ntlm+set}" = set; then
2908 enableval=$enable_ntlm; ENABLE_NTLM=$enableval
2914 # Check whether --enable-debug was given.
2915 if test "${enable_debug+set}" = set; then
2916 enableval=$enable_debug; ENABLE_DEBUG=$enableval
2921 test x"${ENABLE_DEBUG}" = xyes &&
2922 cat >>confdefs.h <<\_ACEOF
2923 #define ENABLE_DEBUG 1
2929 case "${ENABLE_OPIE}${ENABLE_DIGEST}" in
2935 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
2936 test -z "$CC" && cc_specified=yes
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2976 { $as_echo "$as_me:$LINENO: result: no" >&5
2977 $as_echo "no" >&6; }
2982 if test -z "$ac_cv_prog_CC"; then
2984 # Extract the first word of "gcc", so it can be a program name with args.
2985 set dummy gcc; ac_word=$2
2986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_ac_ct_CC="gcc"
3002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3016 { $as_echo "$as_me:$LINENO: result: no" >&5
3017 $as_echo "no" >&6; }
3020 if test "x$ac_ct_CC" = x; then
3023 case $cross_compiling:$ac_tool_warned in
3025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3035 if test -z "$CC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}cc; ac_word=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="${ac_tool_prefix}cc"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3076 if test -z "$CC"; then
3077 # Extract the first word of "cc", so it can be a program name with args.
3078 set dummy cc; ac_word=$2
3079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_CC+set}" = set; then
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096 ac_prog_rejected=yes
3100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test $ac_prog_rejected = yes; then
3108 # We found a bogon in the path, so make sure we never use it.
3109 set dummy $ac_cv_prog_CC
3111 if test $# != 0; then
3112 # We chose a different compiler from the bogus one.
3113 # However, it has the same basename, so the bogon will be chosen
3114 # first if we set CC to just the basename; use the full file name.
3116 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3126 { $as_echo "$as_me:$LINENO: result: no" >&5
3127 $as_echo "no" >&6; }
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 for ac_prog in cl.exe
3136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 if test -n "$CC"; then
3165 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3168 { $as_echo "$as_me:$LINENO: result: no" >&5
3169 $as_echo "no" >&6; }
3173 test -n "$CC" && break
3176 if test -z "$CC"; then
3178 for ac_prog in cl.exe
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_ac_ct_CC="$ac_prog"
3198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3212 { $as_echo "$as_me:$LINENO: result: no" >&5
3213 $as_echo "no" >&6; }
3217 test -n "$ac_ct_CC" && break
3220 if test "x$ac_ct_CC" = x; then
3223 case $cross_compiling:$ac_tool_warned in
3225 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3236 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3239 See \`config.log' for more details." >&5
3240 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3241 See \`config.log' for more details." >&2;}
3242 { (exit 1); exit 1; }; }; }
3244 # Provide some information about the compiler.
3245 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3248 { (ac_try="$ac_compiler --version >&5"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254 $as_echo "$ac_try_echo") >&5
3255 (eval "$ac_compiler --version >&5") 2>&5
3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }
3259 { (ac_try="$ac_compiler -v >&5"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compiler -v >&5") 2>&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }
3270 { (ac_try="$ac_compiler -V >&5"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_compiler -V >&5") 2>&5
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3302 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310 for ac_file in $ac_files
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319 if { (ac_try="$ac_link_default"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325 $as_echo "$ac_try_echo") >&5
3326 (eval "$ac_link_default") 2>&5
3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; then
3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3335 for ac_file in $ac_files ''
3337 test -f "$ac_file" || continue
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342 # We found the default executable, but exeext='' is most
3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 # We set ac_cv_exeext here because the later test for it is not
3351 # safe: cross compilers may not add the suffix if given an `-o'
3352 # argument, so we may need to know it at that point already.
3353 # Even if this section looks crufty: it has the advantage of
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3366 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 if test -z "$ac_file"; then
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3375 See \`config.log' for more details." >&5
3376 $as_echo "$as_me: error: C compiler cannot create executables
3377 See \`config.log' for more details." >&2;}
3378 { (exit 77); exit 77; }; }; }
3381 ac_exeext=$ac_cv_exeext
3383 # Check that the compiler produces executables we can run. If not, either
3384 # the compiler is broken, or we cross compile.
3385 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3386 $as_echo_n "checking whether the C compiler works... " >&6; }
3387 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3388 # If not cross compiling, check that we can run a simple program.
3389 if test "$cross_compiling" != yes; then
3390 if { ac_try='./$ac_file'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396 $as_echo "$ac_try_echo") >&5
3397 (eval "$ac_try") 2>&5
3399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3403 if test "$cross_compiling" = maybe; then
3406 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details." >&5
3411 $as_echo "$as_me: error: cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details." >&2;}
3414 { (exit 1); exit 1; }; }; }
3418 { $as_echo "$as_me:$LINENO: result: yes" >&5
3419 $as_echo "yes" >&6; }
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 # Check that the compiler produces executables we can run. If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3430 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3431 $as_echo_n "checking for suffix of executables... " >&6; }
3432 if { (ac_try="$ac_link"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439 (eval "$ac_link") 2>&5
3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; then
3443 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3445 # work properly (i.e., refer to `conftest.exe'), while it won't with
3447 for ac_file in conftest.exe conftest conftest.*; do
3448 test -f "$ac_file" || continue
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }; }
3466 rm -f conftest$ac_cv_exeext
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3468 $as_echo "$ac_cv_exeext" >&6; }
3470 rm -f conftest.$ac_ext
3471 EXEEXT=$ac_cv_exeext
3473 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3474 $as_echo_n "checking for suffix of object files... " >&6; }
3475 if test "${ac_cv_objext+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { (ac_try="$ac_compile"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501 (eval "$ac_compile") 2>&5
3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; then
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details." >&5
3521 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details." >&2;}
3523 { (exit 1); exit 1; }; }; }
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3528 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3529 $as_echo "$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3532 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3585 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3586 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587 if test $ac_compiler_gnu = yes; then
3592 ac_test_CFLAGS=${CFLAGS+set}
3593 ac_save_CFLAGS=$CFLAGS
3594 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3595 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3596 if test "${ac_cv_prog_cc_g+set}" = set; then
3597 $as_echo_n "(cached) " >&6
3599 ac_save_c_werror_flag=$ac_c_werror_flag
3600 ac_c_werror_flag=yes
3603 cat >conftest.$ac_ext <<_ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625 $as_echo "$ac_try_echo") >&5
3626 (eval "$ac_compile") 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } && {
3633 test -z "$ac_c_werror_flag" ||
3634 test ! -s conftest.err
3635 } && test -s conftest.$ac_objext; then
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665 (eval "$ac_compile") 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && {
3672 test -z "$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3674 } && test -s conftest.$ac_objext; then
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 ac_c_werror_flag=$ac_save_c_werror_flag
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } && {
3712 test -z "$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 } && test -s conftest.$ac_objext; then
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_c_werror_flag=$ac_save_c_werror_flag
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3733 $as_echo "$ac_cv_prog_cc_g" >&6; }
3734 if test "$ac_test_CFLAGS" = set; then
3735 CFLAGS=$ac_save_CFLAGS
3736 elif test $ac_cv_prog_cc_g = yes; then
3737 if test "$GCC" = yes; then
3743 if test "$GCC" = yes; then
3749 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751 if test "${ac_cv_prog_cc_c89+set}" = set; then
3752 $as_echo_n "(cached) " >&6
3754 ac_cv_prog_cc_c89=no
3756 cat >conftest.$ac_ext <<_ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3764 #include <sys/types.h>
3765 #include <sys/stat.h>
3766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3767 struct buf { int x; };
3768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769 static char *e (p, i)
3775 static char *f (char * (*g) (char **, int), char **p, ...)
3780 s = g (p, va_arg (v,int));
3785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3786 function prototypes and stuff, but not '\xHH' hex character constants.
3787 These don't provoke an error unfortunately, instead are silently treated
3788 as 'x'. The following induces an error, until -std is added to get
3789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3790 array size at least. It's necessary to write '\x00'==0 to get something
3791 that's true only with -std. */
3792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795 inside strings and character constants. */
3797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3799 int test (int i, double x);
3800 struct s1 {int (*f) (int a);};
3801 struct s2 {int (*f) (double a);};
3802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3816 CC="$ac_save_CC $ac_arg"
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3835 ac_cv_prog_cc_c89=$ac_arg
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3843 rm -f core conftest.err conftest.$ac_objext
3844 test "x$ac_cv_prog_cc_c89" != "xno" && break
3846 rm -f conftest.$ac_ext
3851 case "x$ac_cv_prog_cc_c89" in
3853 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;;
3856 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3857 $as_echo "unsupported" >&6; } ;;
3859 CC="$CC $ac_cv_prog_cc_c89"
3860 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 DEPDIR="${am__leading_dot}deps"
3872 ac_config_commands="$ac_config_commands depfiles"
3875 am_make=${MAKE-make}
3876 cat > confinc << 'END'
3881 # If we don't find an include directive, just comment out the code.
3882 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3883 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3887 # First try GNU make style include.
3888 echo "include confinc" > confmf
3889 # We grep out `Entering directory' and `Leaving directory'
3890 # messages which can occur if `w' ends up in MAKEFLAGS.
3891 # In particular we don't look at `^make:' because GNU make might
3892 # be invoked under some other name (usually "gmake"), in which
3893 # case it prints its new name instead of `make'.
3894 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3899 # Now try BSD make style include.
3900 if test "$am__include" = "#"; then
3901 echo '.include "confinc"' > confmf
3902 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3903 am__include=.include
3910 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3911 $as_echo "$_am_result" >&6; }
3912 rm -f confinc confmf
3914 # Check whether --enable-dependency-tracking was given.
3915 if test "${enable_dependency_tracking+set}" = set; then
3916 enableval=$enable_dependency_tracking;
3919 if test "x$enable_dependency_tracking" != xno; then
3920 am_depcomp="$ac_aux_dir/depcomp"
3923 if test "x$enable_dependency_tracking" != xno; then
3933 depcc="$CC" am_compiler_list=
3935 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3936 $as_echo_n "checking dependency style of $depcc... " >&6; }
3937 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3938 $as_echo_n "(cached) " >&6
3940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941 # We make a subdir and do the tests there. Otherwise we can end up
3942 # making bogus files that we don't know about and never remove. For
3943 # instance it was reported that on HP-UX the gcc test will end up
3944 # making a dummy file named `D' -- because `-MD' means `put the output
3947 # Copy depcomp to subdir because otherwise we won't find it if we're
3948 # using a relative directory.
3949 cp "$am_depcomp" conftest.dir
3951 # We will build objects and dependencies in a subdirectory because
3952 # it helps to detect inapplicable dependency modes. For instance
3953 # both Tru64's cc and ICC support -MD to output dependencies as a
3954 # side effect of compilation, but ICC will put the dependencies in
3955 # the current directory while Tru64 will put them in the object
3959 am_cv_CC_dependencies_compiler_type=none
3960 if test "$am_compiler_list" = ""; then
3961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3963 for depmode in $am_compiler_list; do
3964 # Setup a source with many dependencies, because some compilers
3965 # like to wrap large dependency lists on column 80 (with \), and
3966 # we should not choose a depcomp mode which is confused by this.
3968 # We need to recreate these files for each test, as the compiler may
3969 # overwrite some of them when testing with obscure command lines.
3970 # This happens at least with the AIX C compiler.
3972 for i in 1 2 3 4 5 6; do
3973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975 # Solaris 8's {/usr,}/bin/sh.
3976 touch sub/conftst$i.h
3978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3982 # after this tag, mechanisms are not by side-effect, so they'll
3983 # only be used when explicitly requested
3984 if test "x$enable_dependency_tracking" = xyes; then
3992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3993 # mode. It turns out that the SunPro C++ compiler does not properly
3994 # handle `-M -o', and we need to detect this.
3995 if depmode=$depmode \
3996 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3999 >/dev/null 2>conftest.err &&
4000 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4003 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004 # icc doesn't choke on unknown options, it will just issue warnings
4005 # or remarks (even with -Werror). So we grep stderr for any message
4006 # that says an option was ignored or not supported.
4007 # When given -MP, icc 7.0 and 7.1 complain thusly:
4008 # icc: Command line warning: ignoring option '-M'; no argument required
4009 # The diagnosis changed in icc 8.0:
4010 # icc: Command line remark: option '-MP' not supported
4011 if (grep 'ignoring option' conftest.err ||
4012 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013 am_cv_CC_dependencies_compiler_type=$depmode
4022 am_cv_CC_dependencies_compiler_type=none
4026 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4027 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4031 test "x$enable_dependency_tracking" != xno \
4032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4034 am__fastdepCC_FALSE='#'
4036 am__fastdepCC_TRUE='#'
4037 am__fastdepCC_FALSE=
4041 if test "x$CC" != xcc; then
4042 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4043 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4045 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4046 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4048 set dummy $CC; ac_cc=`$as_echo "$2" |
4049 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4050 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4051 $as_echo_n "(cached) " >&6
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4068 # Make sure it works both with $CC and with simple cc.
4069 # We do the test twice because some compilers refuse to overwrite an
4070 # existing .o file with -o, though they will create one.
4071 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4073 if { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_try") 2>&5
4081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089 (eval "$ac_try") 2>&5
4091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); };
4094 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4095 if test "x$CC" != xcc; then
4096 # Test first that cc exists at all.
4097 if { ac_try='cc -c conftest.$ac_ext >&5'
4098 { (case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103 $as_echo "$ac_try_echo") >&5
4104 (eval "$ac_try") 2>&5
4106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4110 if { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115 $as_echo "$ac_try_echo") >&5
4116 (eval "$ac_try") 2>&5
4118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125 $as_echo "$ac_try_echo") >&5
4126 (eval "$ac_try") 2>&5
4128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); };
4134 # cc exists but doesn't like -o.
4135 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4140 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4142 rm -f core conftest*
4145 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4146 { $as_echo "$as_me:$LINENO: result: yes" >&5
4147 $as_echo "yes" >&6; }
4149 { $as_echo "$as_me:$LINENO: result: no" >&5
4150 $as_echo "no" >&6; }
4152 cat >>confdefs.h <<\_ACEOF
4153 #define NO_MINUS_C_MINUS_O 1
4158 # FIXME: we rely on the cache variable name because
4159 # there is no other way.
4161 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4162 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4163 if test "$am_t" != yes; then
4164 # Losing compiler, so override with the script.
4165 # FIXME: It is wrong to rewrite CC.
4166 # But if we don't then we get into trouble of one sort or another.
4167 # A longer-term fix would be to have automake use am__CC in this case,
4168 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4169 CC="$am_aux_dir/compile $CC"
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4180 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4181 # On Suns, sometimes $CPP names a directory.
4182 if test -n "$CPP" && test -d "$CPP"; then
4185 if test -z "$CPP"; then
4186 if test "${ac_cv_prog_CPP+set}" = set; then
4187 $as_echo_n "(cached) " >&6
4189 # Double quotes because CPP needs to be expanded
4190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193 for ac_c_preproc_warn_flag in '' yes
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4208 # include <limits.h>
4210 # include <assert.h>
4214 if { (ac_try="$ac_cpp conftest.$ac_ext"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4220 $as_echo "$ac_try_echo") >&5
4221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } >/dev/null && {
4228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4233 $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 # Broken: fails on valid input.
4240 rm -f conftest.err conftest.$ac_ext
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4252 if { (ac_try="$ac_cpp conftest.$ac_ext"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4258 $as_echo "$ac_try_echo") >&5
4259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } >/dev/null && {
4266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4267 test ! -s conftest.err
4269 # Broken: success on invalid input.
4272 $as_echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 # Passes both tests.
4280 rm -f conftest.err conftest.$ac_ext
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4297 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4298 $as_echo "$CPP" >&6; }
4300 for ac_c_preproc_warn_flag in '' yes
4302 # Use a header file that comes with gcc, so configuring glibc
4303 # with a fresh cross-compiler works.
4304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4305 # <limits.h> exists even on freestanding compilers.
4306 # On the NeXT, cc -E runs the code through the compiler's parser,
4307 # not just through cpp. "Syntax error" is here to catch this case.
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4315 # include <limits.h>
4317 # include <assert.h>
4321 if { (ac_try="$ac_cpp conftest.$ac_ext"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4327 $as_echo "$ac_try_echo") >&5
4328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } >/dev/null && {
4335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4340 $as_echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 # Broken: fails on valid input.
4347 rm -f conftest.err conftest.$ac_ext
4349 # OK, works on sane cases. Now check whether nonexistent headers
4350 # can be detected and how.
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <ac_nonexistent.h>
4359 if { (ac_try="$ac_cpp conftest.$ac_ext"
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4365 $as_echo "$ac_try_echo") >&5
4366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } >/dev/null && {
4373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4376 # Broken: success on invalid input.
4379 $as_echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 # Passes both tests.
4387 rm -f conftest.err conftest.$ac_ext
4390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4391 rm -f conftest.err conftest.$ac_ext
4392 if $ac_preproc_ok; then
4395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&5
4399 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400 See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }; }
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4412 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4413 if test "${ac_cv_path_GREP+set}" = set; then
4414 $as_echo_n "(cached) " >&6
4416 if test -z "$GREP"; then
4417 ac_path_GREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in grep ggrep; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4427 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4428 # Check for GNU ac_path_GREP and select it if it is found.
4429 # Check for GNU $ac_path_GREP
4430 case `"$ac_path_GREP" --version 2>&1` in
4432 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4435 $as_echo_n 0123456789 >"conftest.in"
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'GREP' >> "conftest.nl"
4442 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 ac_count=`expr $ac_count + 1`
4445 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_GREP="$ac_path_GREP"
4448 ac_path_GREP_max=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456 $ac_path_GREP_found && break 3
4461 if test -z "$ac_cv_path_GREP"; then
4462 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4463 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4464 { (exit 1); exit 1; }; }
4467 ac_cv_path_GREP=$GREP
4471 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4472 $as_echo "$ac_cv_path_GREP" >&6; }
4473 GREP="$ac_cv_path_GREP"
4476 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4477 $as_echo_n "checking for egrep... " >&6; }
4478 if test "${ac_cv_path_EGREP+set}" = set; then
4479 $as_echo_n "(cached) " >&6
4481 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4482 then ac_cv_path_EGREP="$GREP -E"
4484 if test -z "$EGREP"; then
4485 ac_path_EGREP_found=false
4486 # Loop through the user's path and test for each of PROGNAME-LIST
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 test -z "$as_dir" && as_dir=.
4492 for ac_prog in egrep; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4495 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4496 # Check for GNU ac_path_EGREP and select it if it is found.
4497 # Check for GNU $ac_path_EGREP
4498 case `"$ac_path_EGREP" --version 2>&1` in
4500 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4503 $as_echo_n 0123456789 >"conftest.in"
4506 cat "conftest.in" "conftest.in" >"conftest.tmp"
4507 mv "conftest.tmp" "conftest.in"
4508 cp "conftest.in" "conftest.nl"
4509 $as_echo 'EGREP' >> "conftest.nl"
4510 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512 ac_count=`expr $ac_count + 1`
4513 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4514 # Best one so far, save it but keep looking for a better one
4515 ac_cv_path_EGREP="$ac_path_EGREP"
4516 ac_path_EGREP_max=$ac_count
4518 # 10*(2^10) chars as input seems more than enough
4519 test $ac_count -gt 10 && break
4521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 $ac_path_EGREP_found && break 3
4529 if test -z "$ac_cv_path_EGREP"; then
4530 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4531 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4532 { (exit 1); exit 1; }; }
4535 ac_cv_path_EGREP=$EGREP
4540 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4541 $as_echo "$ac_cv_path_EGREP" >&6; }
4542 EGREP="$ac_cv_path_EGREP"
4545 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4546 $as_echo_n "checking for ANSI C header files... " >&6; }
4547 if test "${ac_cv_header_stdc+set}" = set; then
4548 $as_echo_n "(cached) " >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4576 $as_echo "$ac_try_echo") >&5
4577 (eval "$ac_compile") 2>conftest.er1
4579 grep -v '^ *+' conftest.er1 >conftest.err
4581 cat conftest.err >&5
4582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } && {
4584 test -z "$ac_c_werror_flag" ||
4585 test ! -s conftest.err
4586 } && test -s conftest.$ac_objext; then
4587 ac_cv_header_stdc=yes
4589 $as_echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_cv_header_stdc=no
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 if test $ac_cv_header_stdc = yes; then
4598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599 cat >conftest.$ac_ext <<_ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609 $EGREP "memchr" >/dev/null 2>&1; then
4612 ac_cv_header_stdc=no
4618 if test $ac_cv_header_stdc = yes; then
4619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4620 cat >conftest.$ac_ext <<_ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 $EGREP "free" >/dev/null 2>&1; then
4633 ac_cv_header_stdc=no
4639 if test $ac_cv_header_stdc = yes; then
4640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641 if test "$cross_compiling" = yes; then
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4652 #if ((' ' & 0x0FF) == 0x020)
4653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4656 # define ISLOWER(c) \
4657 (('a' <= (c) && (c) <= 'i') \
4658 || ('j' <= (c) && (c) <= 'r') \
4659 || ('s' <= (c) && (c) <= 'z'))
4660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4668 for (i = 0; i < 256; i++)
4669 if (XOR (islower (i), ISLOWER (i))
4670 || toupper (i) != TOUPPER (i))
4675 rm -f conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_link") 2>&5
4685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687 { (case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693 (eval "$ac_try") 2>&5
4695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4699 $as_echo "$as_me: program exited with status $ac_status" >&5
4700 $as_echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_cv_header_stdc=no
4706 rm -rf conftest.dSYM
4707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714 $as_echo "$ac_cv_header_stdc" >&6; }
4715 if test $ac_cv_header_stdc = yes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define STDC_HEADERS 1
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734 inttypes.h stdint.h unistd.h
4736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4738 $as_echo_n "checking for $ac_header... " >&6; }
4739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4740 $as_echo_n "(cached) " >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4750 #include <$ac_header>
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759 $as_echo "$ac_try_echo") >&5
4760 (eval "$ac_compile") 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.$ac_objext; then
4770 eval "$as_ac_Header=yes"
4772 $as_echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 eval "$as_ac_Header=no"
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_res=`eval 'as_val=${'$as_ac_Header'}
4781 $as_echo "$as_val"'`
4782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4783 $as_echo "$ac_res" >&6; }
4784 as_val=`eval 'as_val=${'$as_ac_Header'}
4785 $as_echo "$as_val"'`
4786 if test "x$as_val" = x""yes; then
4787 cat >>confdefs.h <<_ACEOF
4788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799 if test "${ac_cv_header_minix_config_h+set}" = set; then
4800 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4801 $as_echo_n "checking for minix/config.h... " >&6; }
4802 if test "${ac_cv_header_minix_config_h+set}" = set; then
4803 $as_echo_n "(cached) " >&6
4805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4806 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4808 # Is the header compilable?
4809 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4810 $as_echo_n "checking minix/config.h usability... " >&6; }
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 $ac_includes_default
4818 #include <minix/config.h>
4820 rm -f conftest.$ac_objext
4821 if { (ac_try="$ac_compile"
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827 $as_echo "$ac_try_echo") >&5
4828 (eval "$ac_compile") 2>conftest.er1
4830 grep -v '^ *+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } && {
4835 test -z "$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4837 } && test -s conftest.$ac_objext; then
4838 ac_header_compiler=yes
4840 $as_echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_header_compiler=no
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848 $as_echo "$ac_header_compiler" >&6; }
4850 # Is the header present?
4851 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4852 $as_echo_n "checking minix/config.h presence... " >&6; }
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <minix/config.h>
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4878 ac_header_preproc=yes
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_header_preproc=no
4886 rm -f conftest.err conftest.$ac_ext
4887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888 $as_echo "$ac_header_preproc" >&6; }
4890 # So? What about this header?
4891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4893 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4894 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4896 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4897 ac_header_preproc=yes
4900 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4901 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4902 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4903 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4904 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4905 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4906 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4907 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4908 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4909 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4910 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4911 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4913 ## ------------------------------- ##
4914 ## Report this to bug-wget@gnu.org ##
4915 ## ------------------------------- ##
4917 ) | sed "s/^/$as_me: WARNING: /" >&2
4920 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4921 $as_echo_n "checking for minix/config.h... " >&6; }
4922 if test "${ac_cv_header_minix_config_h+set}" = set; then
4923 $as_echo_n "(cached) " >&6
4925 ac_cv_header_minix_config_h=$ac_header_preproc
4927 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4928 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4931 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4938 if test "$MINIX" = yes; then
4940 cat >>confdefs.h <<\_ACEOF
4941 #define _POSIX_SOURCE 1
4945 cat >>confdefs.h <<\_ACEOF
4946 #define _POSIX_1_SOURCE 2
4950 cat >>confdefs.h <<\_ACEOF
4959 cat >>confdefs.h <<\_ACEOF
4960 #define _XOPEN_SOURCE 500
4968 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4969 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4970 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4971 $as_echo_n "(cached) " >&6
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4980 # define __EXTENSIONS__ 1
4981 $ac_includes_default
4990 rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998 (eval "$ac_compile") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 ac_cv_safe_to_define___extensions__=yes
5010 $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ac_cv_safe_to_define___extensions__=no
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5019 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5020 test $ac_cv_safe_to_define___extensions__ = yes &&
5021 cat >>confdefs.h <<\_ACEOF
5022 #define __EXTENSIONS__ 1
5025 cat >>confdefs.h <<\_ACEOF
5026 #define _ALL_SOURCE 1
5029 cat >>confdefs.h <<\_ACEOF
5030 #define _GNU_SOURCE 1
5033 cat >>confdefs.h <<\_ACEOF
5034 #define _POSIX_PTHREAD_SEMANTICS 1
5037 cat >>confdefs.h <<\_ACEOF
5038 #define _TANDEM_SOURCE 1
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_RANLIB+set}" = set; then
5050 $as_echo_n "(cached) " >&6
5052 if test -n "$RANLIB"; then
5053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 RANLIB=$ac_cv_prog_RANLIB
5073 if test -n "$RANLIB"; then
5074 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5075 $as_echo "$RANLIB" >&6; }
5077 { $as_echo "$as_me:$LINENO: result: no" >&5
5078 $as_echo "no" >&6; }
5083 if test -z "$ac_cv_prog_RANLIB"; then
5084 ac_ct_RANLIB=$RANLIB
5085 # Extract the first word of "ranlib", so it can be a program name with args.
5086 set dummy ranlib; ac_word=$2
5087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$ac_ct_RANLIB"; then
5093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_RANLIB="ranlib"
5103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5113 if test -n "$ac_ct_RANLIB"; then
5114 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5115 $as_echo "$ac_ct_RANLIB" >&6; }
5117 { $as_echo "$as_me:$LINENO: result: no" >&5
5118 $as_echo "no" >&6; }
5121 if test "x$ac_ct_RANLIB" = x; then
5124 case $cross_compiling:$ac_tool_warned in
5126 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128 ac_tool_warned=yes ;;
5130 RANLIB=$ac_ct_RANLIB
5133 RANLIB="$ac_cv_prog_RANLIB"
5143 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5144 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5145 if test "${ac_cv_sys_largefile_source+set}" = set; then
5146 $as_echo_n "(cached) " >&6
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <sys/types.h> /* for off_t */
5160 int (*fp) (FILE *, off_t, int) = fseeko;
5161 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5166 rm -f conftest.$ac_objext conftest$ac_exeext
5167 if { (ac_try="$ac_link"
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173 $as_echo "$ac_try_echo") >&5
5174 (eval "$ac_link") 2>conftest.er1
5176 grep -v '^ *+' conftest.er1 >conftest.err
5178 cat conftest.err >&5
5179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && {
5181 test -z "$ac_c_werror_flag" ||
5182 test ! -s conftest.err
5183 } && test -s conftest$ac_exeext && {
5184 test "$cross_compiling" = yes ||
5185 $as_test_x conftest$ac_exeext
5187 ac_cv_sys_largefile_source=no; break
5189 $as_echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5195 rm -rf conftest.dSYM
5196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5197 conftest$ac_exeext conftest.$ac_ext
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #define _LARGEFILE_SOURCE 1
5205 #include <sys/types.h> /* for off_t */
5210 int (*fp) (FILE *, off_t, int) = fseeko;
5211 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5216 rm -f conftest.$ac_objext conftest$ac_exeext
5217 if { (ac_try="$ac_link"
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_link") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } && {
5231 test -z "$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 } && test -s conftest$ac_exeext && {
5234 test "$cross_compiling" = yes ||
5235 $as_test_x conftest$ac_exeext
5237 ac_cv_sys_largefile_source=1; break
5239 $as_echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5245 rm -rf conftest.dSYM
5246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5247 conftest$ac_exeext conftest.$ac_ext
5248 ac_cv_sys_largefile_source=unknown
5252 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5253 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5254 case $ac_cv_sys_largefile_source in #(
5257 cat >>confdefs.h <<_ACEOF
5258 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5264 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5265 # in glibc 2.1.3, but that breaks too many other things.
5266 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5267 if test $ac_cv_sys_largefile_source != unknown; then
5269 cat >>confdefs.h <<\_ACEOF
5270 #define HAVE_FSEEKO 1
5285 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5286 $as_echo_n "checking whether NLS is requested... " >&6; }
5287 # Check whether --enable-nls was given.
5288 if test "${enable_nls+set}" = set; then
5289 enableval=$enable_nls; USE_NLS=$enableval
5294 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5295 $as_echo "$USE_NLS" >&6; }
5300 GETTEXT_MACRO_VERSION=0.17
5304 # Extract the first word of "msgfmt", so it can be a program name with args.
5305 set dummy msgfmt; ac_word=$2
5306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if test "${ac_cv_path_MSGFMT+set}" = set; then
5309 $as_echo_n "(cached) " >&6
5313 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5317 for ac_dir in $PATH; do
5318 test -z "$ac_dir" && ac_dir=.
5319 if test -f $ac_dir/$ac_word; then
5320 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5321 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5322 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5328 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5332 MSGFMT="$ac_cv_path_MSGFMT"
5333 if test -n "$MSGFMT"; then
5334 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5335 $as_echo "$MSGFMT" >&6; }
5337 { $as_echo "$as_me:$LINENO: result: no" >&5
5338 $as_echo "no" >&6; }
5341 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5342 set dummy gmsgfmt; ac_word=$2
5343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5346 $as_echo_n "(cached) " >&6
5350 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5372 GMSGFMT=$ac_cv_path_GMSGFMT
5373 if test -n "$GMSGFMT"; then
5374 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5375 $as_echo "$GMSGFMT" >&6; }
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5383 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5384 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5385 *) MSGFMT_015=$MSGFMT ;;
5388 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5389 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5390 *) GMSGFMT_015=$GMSGFMT ;;
5394 # Extract the first word of "xgettext", so it can be a program name with args.
5395 set dummy xgettext; ac_word=$2
5396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5399 $as_echo_n "(cached) " >&6
5403 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5407 for ac_dir in $PATH; do
5408 test -z "$ac_dir" && ac_dir=.
5409 if test -f $ac_dir/$ac_word; then
5410 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5411 (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
5412 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5418 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5422 XGETTEXT="$ac_cv_path_XGETTEXT"
5423 if test -n "$XGETTEXT"; then
5424 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5425 $as_echo "$XGETTEXT" >&6; }
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5433 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5434 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5435 *) XGETTEXT_015=$XGETTEXT ;;
5439 # Extract the first word of "msgmerge", so it can be a program name with args.
5440 set dummy msgmerge; ac_word=$2
5441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5444 $as_echo_n "(cached) " >&6
5448 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5452 for ac_dir in $PATH; do
5453 test -z "$ac_dir" && ac_dir=.
5454 if test -f $ac_dir/$ac_word; then
5455 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5456 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
5462 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5466 MSGMERGE="$ac_cv_path_MSGMERGE"
5467 if test -n "$MSGMERGE"; then
5468 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5469 $as_echo "$MSGMERGE" >&6; }
5471 { $as_echo "$as_me:$LINENO: result: no" >&5
5472 $as_echo "no" >&6; }
5476 test -n "$localedir" || localedir='${datadir}/locale'
5479 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5482 ac_config_commands="$ac_config_commands po-directories"
5486 if test "X$prefix" = "XNONE"; then
5487 acl_final_prefix="$ac_default_prefix"
5489 acl_final_prefix="$prefix"
5491 if test "X$exec_prefix" = "XNONE"; then
5492 acl_final_exec_prefix='${prefix}'
5494 acl_final_exec_prefix="$exec_prefix"
5496 acl_save_prefix="$prefix"
5497 prefix="$acl_final_prefix"
5498 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5499 prefix="$acl_save_prefix"
5502 # Check whether --with-gnu-ld was given.
5503 if test "${with_gnu_ld+set}" = set; then
5504 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5509 # Prepare PATH_SEPARATOR.
5510 # The user is always right.
5511 if test "${PATH_SEPARATOR+set}" != set; then
5512 echo "#! /bin/sh" >conf$$.sh
5513 echo "exit 0" >>conf$$.sh
5515 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5523 if test "$GCC" = yes; then
5524 # Check if gcc -print-prog-name=ld gives a path.
5525 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5526 $as_echo_n "checking for ld used by GCC... " >&6; }
5529 # gcc leaves a trailing carriage return which upsets mingw
5530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5535 # Accept absolute paths.
5536 [\\/]* | [A-Za-z]:[\\/]*)
5537 re_direlt='/[^/][^/]*/\.\./'
5538 # Canonicalize the path of ld
5539 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5540 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5541 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5543 test -z "$LD" && LD="$ac_prog"
5546 # If it fails, then pretend we aren't using GCC.
5550 # If it is relative, then search for the first ld in PATH.
5554 elif test "$with_gnu_ld" = yes; then
5555 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5556 $as_echo_n "checking for GNU ld... " >&6; }
5558 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5559 $as_echo_n "checking for non-GNU ld... " >&6; }
5561 if test "${acl_cv_path_LD+set}" = set; then
5562 $as_echo_n "(cached) " >&6
5564 if test -z "$LD"; then
5565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5566 for ac_dir in $PATH; do
5567 test -z "$ac_dir" && ac_dir=.
5568 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5569 acl_cv_path_LD="$ac_dir/$ac_prog"
5570 # Check to see if the program is GNU ld. I'd rather use --version,
5571 # but apparently some GNU ld's only accept -v.
5572 # Break only if it was the GNU/non-GNU ld that we prefer.
5573 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5574 *GNU* | *'with BFD'*)
5575 test "$with_gnu_ld" != no && break ;;
5577 test "$with_gnu_ld" != yes && break ;;
5583 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5587 LD="$acl_cv_path_LD"
5588 if test -n "$LD"; then
5589 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5590 $as_echo "$LD" >&6; }
5592 { $as_echo "$as_me:$LINENO: result: no" >&5
5593 $as_echo "no" >&6; }
5595 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5596 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5597 { (exit 1); exit 1; }; }
5598 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5599 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5600 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5601 $as_echo_n "(cached) " >&6
5603 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5604 case `$LD -v 2>&1 </dev/null` in
5605 *GNU* | *'with BFD'*)
5606 acl_cv_prog_gnu_ld=yes ;;
5608 acl_cv_prog_gnu_ld=no ;;
5611 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5612 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5613 with_gnu_ld=$acl_cv_prog_gnu_ld
5618 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5619 $as_echo_n "checking for shared library run path origin... " >&6; }
5620 if test "${acl_cv_rpath+set}" = set; then
5621 $as_echo_n "(cached) " >&6
5624 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5625 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5631 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5632 $as_echo "$acl_cv_rpath" >&6; }
5634 acl_libext="$acl_cv_libext"
5635 acl_shlibext="$acl_cv_shlibext"
5636 acl_libname_spec="$acl_cv_libname_spec"
5637 acl_library_names_spec="$acl_cv_library_names_spec"
5638 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5639 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5640 acl_hardcode_direct="$acl_cv_hardcode_direct"
5641 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5642 # Check whether --enable-rpath was given.
5643 if test "${enable_rpath+set}" = set; then
5644 enableval=$enable_rpath; :
5652 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5653 if test -n "$searchpath"; then
5654 acl_save_IFS="${IFS= }"; IFS=":"
5655 for searchdir in $searchpath; do
5656 if test -d "$searchdir"; then
5657 case "$searchdir" in
5658 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5659 *) searchdir=`cd "$searchdir" && pwd`
5660 case "$searchdir" in
5661 */lib64 ) acl_libdirstem=lib64 ;;
5679 acl_save_prefix="$prefix"
5680 prefix="$acl_final_prefix"
5681 acl_save_exec_prefix="$exec_prefix"
5682 exec_prefix="$acl_final_exec_prefix"
5684 eval additional_includedir=\"$includedir\"
5685 eval additional_libdir=\"$libdir\"
5687 exec_prefix="$acl_save_exec_prefix"
5688 prefix="$acl_save_prefix"
5691 # Check whether --with-libiconv-prefix was given.
5692 if test "${with_libiconv_prefix+set}" = set; then
5693 withval=$with_libiconv_prefix;
5694 if test "X$withval" = "Xno"; then
5697 if test "X$withval" = "X"; then
5699 acl_save_prefix="$prefix"
5700 prefix="$acl_final_prefix"
5701 acl_save_exec_prefix="$exec_prefix"
5702 exec_prefix="$acl_final_exec_prefix"
5704 eval additional_includedir=\"$includedir\"
5705 eval additional_libdir=\"$libdir\"
5707 exec_prefix="$acl_save_exec_prefix"
5708 prefix="$acl_save_prefix"
5711 additional_includedir="$withval/include"
5712 additional_libdir="$withval/$acl_libdirstem"
5724 names_already_handled=
5725 names_next_round='iconv '
5726 while test -n "$names_next_round"; do
5727 names_this_round="$names_next_round"
5729 for name in $names_this_round; do
5731 for n in $names_already_handled; do
5732 if test "$n" = "$name"; then
5737 if test -z "$already_handled"; then
5738 names_already_handled="$names_already_handled $name"
5739 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5740 eval value=\"\$HAVE_LIB$uppername\"
5741 if test -n "$value"; then
5742 if test "$value" = yes; then
5743 eval value=\"\$LIB$uppername\"
5744 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5745 eval value=\"\$LTLIB$uppername\"
5746 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5755 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5756 if test -n "$acl_shlibext"; then
5757 shrext=".$acl_shlibext" # typically: shrext=.so
5761 if test $use_additional = yes; then
5762 dir="$additional_libdir"
5763 if test -n "$acl_shlibext"; then
5764 if test -f "$dir/$libname$shrext"; then
5766 found_so="$dir/$libname$shrext"
5768 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5769 ver=`(cd "$dir" && \
5770 for f in "$libname$shrext".*; do echo "$f"; done \
5771 | sed -e "s,^$libname$shrext\\\\.,," \
5772 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5773 | sed 1q ) 2>/dev/null`
5774 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5776 found_so="$dir/$libname$shrext.$ver"
5779 eval library_names=\"$acl_library_names_spec\"
5780 for f in $library_names; do
5781 if test -f "$dir/$f"; then
5790 if test "X$found_dir" = "X"; then
5791 if test -f "$dir/$libname.$acl_libext"; then
5793 found_a="$dir/$libname.$acl_libext"
5796 if test "X$found_dir" != "X"; then
5797 if test -f "$dir/$libname.la"; then
5798 found_la="$dir/$libname.la"
5802 if test "X$found_dir" = "X"; then
5803 for x in $LDFLAGS $LTLIBICONV; do
5805 acl_save_prefix="$prefix"
5806 prefix="$acl_final_prefix"
5807 acl_save_exec_prefix="$exec_prefix"
5808 exec_prefix="$acl_final_exec_prefix"
5810 exec_prefix="$acl_save_exec_prefix"
5811 prefix="$acl_save_prefix"
5815 dir=`echo "X$x" | sed -e 's/^X-L//'`
5816 if test -n "$acl_shlibext"; then
5817 if test -f "$dir/$libname$shrext"; then
5819 found_so="$dir/$libname$shrext"
5821 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5822 ver=`(cd "$dir" && \
5823 for f in "$libname$shrext".*; do echo "$f"; done \
5824 | sed -e "s,^$libname$shrext\\\\.,," \
5825 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5826 | sed 1q ) 2>/dev/null`
5827 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5829 found_so="$dir/$libname$shrext.$ver"
5832 eval library_names=\"$acl_library_names_spec\"
5833 for f in $library_names; do
5834 if test -f "$dir/$f"; then
5843 if test "X$found_dir" = "X"; then
5844 if test -f "$dir/$libname.$acl_libext"; then
5846 found_a="$dir/$libname.$acl_libext"
5849 if test "X$found_dir" != "X"; then
5850 if test -f "$dir/$libname.la"; then
5851 found_la="$dir/$libname.la"
5856 if test "X$found_dir" != "X"; then
5861 if test "X$found_dir" != "X"; then
5862 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5863 if test "X$found_so" != "X"; then
5864 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5868 for x in $ltrpathdirs; do
5869 if test "X$x" = "X$found_dir"; then
5874 if test -z "$haveit"; then
5875 ltrpathdirs="$ltrpathdirs $found_dir"
5877 if test "$acl_hardcode_direct" = yes; then
5878 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5880 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5881 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5883 for x in $rpathdirs; do
5884 if test "X$x" = "X$found_dir"; then
5889 if test -z "$haveit"; then
5890 rpathdirs="$rpathdirs $found_dir"
5894 for x in $LDFLAGS $LIBICONV; do
5896 acl_save_prefix="$prefix"
5897 prefix="$acl_final_prefix"
5898 acl_save_exec_prefix="$exec_prefix"
5899 exec_prefix="$acl_final_exec_prefix"
5901 exec_prefix="$acl_save_exec_prefix"
5902 prefix="$acl_save_prefix"
5904 if test "X$x" = "X-L$found_dir"; then
5909 if test -z "$haveit"; then
5910 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5912 if test "$acl_hardcode_minus_L" != no; then
5913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5915 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5921 if test "X$found_a" != "X"; then
5922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5924 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5927 additional_includedir=
5928 case "$found_dir" in
5929 */$acl_libdirstem | */$acl_libdirstem/)
5930 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5931 LIBICONV_PREFIX="$basedir"
5932 additional_includedir="$basedir/include"
5935 if test "X$additional_includedir" != "X"; then
5936 if test "X$additional_includedir" != "X/usr/include"; then
5938 if test "X$additional_includedir" = "X/usr/local/include"; then
5939 if test -n "$GCC"; then
5941 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5945 if test -z "$haveit"; then
5946 for x in $CPPFLAGS $INCICONV; do
5948 acl_save_prefix="$prefix"
5949 prefix="$acl_final_prefix"
5950 acl_save_exec_prefix="$exec_prefix"
5951 exec_prefix="$acl_final_exec_prefix"
5953 exec_prefix="$acl_save_exec_prefix"
5954 prefix="$acl_save_prefix"
5956 if test "X$x" = "X-I$additional_includedir"; then
5961 if test -z "$haveit"; then
5962 if test -d "$additional_includedir"; then
5963 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5969 if test -n "$found_la"; then
5970 save_libdir="$libdir"
5972 */* | *\\*) . "$found_la" ;;
5973 *) . "./$found_la" ;;
5975 libdir="$save_libdir"
5976 for dep in $dependency_libs; do
5979 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5980 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5982 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5983 if test -n "$GCC"; then
5985 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5989 if test -z "$haveit"; then
5991 for x in $LDFLAGS $LIBICONV; do
5993 acl_save_prefix="$prefix"
5994 prefix="$acl_final_prefix"
5995 acl_save_exec_prefix="$exec_prefix"
5996 exec_prefix="$acl_final_exec_prefix"
5998 exec_prefix="$acl_save_exec_prefix"
5999 prefix="$acl_save_prefix"
6001 if test "X$x" = "X-L$additional_libdir"; then
6006 if test -z "$haveit"; then
6007 if test -d "$additional_libdir"; then
6008 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6012 for x in $LDFLAGS $LTLIBICONV; do
6014 acl_save_prefix="$prefix"
6015 prefix="$acl_final_prefix"
6016 acl_save_exec_prefix="$exec_prefix"
6017 exec_prefix="$acl_final_exec_prefix"
6019 exec_prefix="$acl_save_exec_prefix"
6020 prefix="$acl_save_prefix"
6022 if test "X$x" = "X-L$additional_libdir"; then
6027 if test -z "$haveit"; then
6028 if test -d "$additional_libdir"; then
6029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6036 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6037 if test "$enable_rpath" != no; then
6039 for x in $rpathdirs; do
6040 if test "X$x" = "X$dir"; then
6045 if test -z "$haveit"; then
6046 rpathdirs="$rpathdirs $dir"
6049 for x in $ltrpathdirs; do
6050 if test "X$x" = "X$dir"; then
6055 if test -z "$haveit"; then
6056 ltrpathdirs="$ltrpathdirs $dir"
6061 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6064 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6067 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6068 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6074 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6075 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6081 if test "X$rpathdirs" != "X"; then
6082 if test -n "$acl_hardcode_libdir_separator"; then
6084 for found_dir in $rpathdirs; do
6085 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6087 acl_save_libdir="$libdir"
6089 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6090 libdir="$acl_save_libdir"
6091 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6093 for found_dir in $rpathdirs; do
6094 acl_save_libdir="$libdir"
6096 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6097 libdir="$acl_save_libdir"
6098 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6102 if test "X$ltrpathdirs" != "X"; then
6103 for found_dir in $ltrpathdirs; do
6104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6132 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6133 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6134 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6135 $as_echo_n "(cached) " >&6
6137 gt_save_LIBS="$LIBS"
6138 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <CoreFoundation/CFPreferences.h>
6149 CFPreferencesCopyAppValue(NULL, NULL)
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_link") 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && {
6169 test -z "$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest$ac_exeext && {
6172 test "$cross_compiling" = yes ||
6173 $as_test_x conftest$ac_exeext
6175 gt_cv_func_CFPreferencesCopyAppValue=yes
6177 $as_echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 gt_cv_func_CFPreferencesCopyAppValue=no
6183 rm -rf conftest.dSYM
6184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185 conftest$ac_exeext conftest.$ac_ext
6186 LIBS="$gt_save_LIBS"
6188 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6189 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6190 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6192 cat >>confdefs.h <<\_ACEOF
6193 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6197 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6198 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6199 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6200 $as_echo_n "(cached) " >&6
6202 gt_save_LIBS="$LIBS"
6203 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6204 cat >conftest.$ac_ext <<_ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <CoreFoundation/CFLocale.h>
6214 CFLocaleCopyCurrent();
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (ac_try="$ac_link"
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226 $as_echo "$ac_try_echo") >&5
6227 (eval "$ac_link") 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && {
6234 test -z "$ac_c_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest$ac_exeext && {
6237 test "$cross_compiling" = yes ||
6238 $as_test_x conftest$ac_exeext
6240 gt_cv_func_CFLocaleCopyCurrent=yes
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 gt_cv_func_CFLocaleCopyCurrent=no
6248 rm -rf conftest.dSYM
6249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6250 conftest$ac_exeext conftest.$ac_ext
6251 LIBS="$gt_save_LIBS"
6253 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6254 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6255 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6257 cat >>confdefs.h <<\_ACEOF
6258 #define HAVE_CFLOCALECOPYCURRENT 1
6263 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6264 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6276 case " $gt_needs " in
6277 *" need-formatstring-macros "*) gt_api_version=3 ;;
6278 *" need-ngettext "*) gt_api_version=2 ;;
6279 *) gt_api_version=1 ;;
6281 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6282 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6284 if test "$USE_NLS" = "yes"; then
6285 gt_use_preinstalled_gnugettext=no
6288 if test $gt_api_version -ge 3; then
6289 gt_revision_test_code='
6290 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6291 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6293 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6296 gt_revision_test_code=
6298 if test $gt_api_version -ge 2; then
6299 gt_expression_test_code=' + * ngettext ("", "", 0)'
6301 gt_expression_test_code=
6304 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6305 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6306 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
6307 $as_echo_n "(cached) " >&6
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 #include <libintl.h>
6316 $gt_revision_test_code
6317 extern int _nl_msg_cat_cntr;
6318 extern int *_nl_domain_bindings;
6322 bindtextdomain ("", "");
6323 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336 (eval "$ac_link") 2>conftest.er1
6338 grep -v '^ *+' conftest.er1 >conftest.err
6340 cat conftest.err >&5
6341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest$ac_exeext && {
6346 test "$cross_compiling" = yes ||
6347 $as_test_x conftest$ac_exeext
6349 eval "$gt_func_gnugettext_libc=yes"
6351 $as_echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 eval "$gt_func_gnugettext_libc=no"
6357 rm -rf conftest.dSYM
6358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6359 conftest$ac_exeext conftest.$ac_ext
6361 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
6362 $as_echo "$as_val"'`
6363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6364 $as_echo "$ac_res" >&6; }
6366 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6372 am_save_CPPFLAGS="$CPPFLAGS"
6374 for element in $INCICONV; do
6376 for x in $CPPFLAGS; do
6378 acl_save_prefix="$prefix"
6379 prefix="$acl_final_prefix"
6380 acl_save_exec_prefix="$exec_prefix"
6381 exec_prefix="$acl_final_exec_prefix"
6383 exec_prefix="$acl_save_exec_prefix"
6384 prefix="$acl_save_prefix"
6386 if test "X$x" = "X$element"; then
6391 if test -z "$haveit"; then
6392 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6397 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
6398 $as_echo_n "checking for iconv... " >&6; }
6399 if test "${am_cv_func_iconv+set}" = set; then
6400 $as_echo_n "(cached) " >&6
6403 am_cv_func_iconv="no, consider installing GNU libiconv"
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6416 iconv_t cd = iconv_open("","");
6417 iconv(cd,NULL,NULL,NULL,NULL);
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (ac_try="$ac_link"
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6430 $as_echo "$ac_try_echo") >&5
6431 (eval "$ac_link") 2>conftest.er1
6433 grep -v '^ *+' conftest.er1 >conftest.err
6435 cat conftest.err >&5
6436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } && {
6438 test -z "$ac_c_werror_flag" ||
6439 test ! -s conftest.err
6440 } && test -s conftest$ac_exeext && {
6441 test "$cross_compiling" = yes ||
6442 $as_test_x conftest$ac_exeext
6444 am_cv_func_iconv=yes
6446 $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6452 rm -rf conftest.dSYM
6453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6454 conftest$ac_exeext conftest.$ac_ext
6455 if test "$am_cv_func_iconv" != yes; then
6456 am_save_LIBS="$LIBS"
6457 LIBS="$LIBS $LIBICONV"
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6469 iconv_t cd = iconv_open("","");
6470 iconv(cd,NULL,NULL,NULL,NULL);
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484 (eval "$ac_link") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1 >conftest.err
6488 cat conftest.err >&5
6489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest$ac_exeext && {
6494 test "$cross_compiling" = yes ||
6495 $as_test_x conftest$ac_exeext
6498 am_cv_func_iconv=yes
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6506 rm -rf conftest.dSYM
6507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508 conftest$ac_exeext conftest.$ac_ext
6509 LIBS="$am_save_LIBS"
6513 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6514 $as_echo "$am_cv_func_iconv" >&6; }
6515 if test "$am_cv_func_iconv" = yes; then
6516 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
6517 $as_echo_n "checking for working iconv... " >&6; }
6518 if test "${am_cv_func_iconv_works+set}" = set; then
6519 $as_echo_n "(cached) " >&6
6522 am_save_LIBS="$LIBS"
6523 if test $am_cv_lib_iconv = yes; then
6524 LIBS="$LIBS $LIBICONV"
6526 if test "$cross_compiling" = yes; then
6528 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6529 *) am_cv_func_iconv_works="guessing yes" ;;
6532 cat >conftest.$ac_ext <<_ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6543 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6546 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6547 if (cd_utf8_to_88591 != (iconv_t)(-1))
6549 static const char input[] = "\342\202\254"; /* EURO SIGN */
6551 const char *inptr = input;
6552 size_t inbytesleft = strlen (input);
6554 size_t outbytesleft = sizeof (buf);
6555 size_t res = iconv (cd_utf8_to_88591,
6556 (char **) &inptr, &inbytesleft,
6557 &outptr, &outbytesleft);
6562 #if 0 /* This bug could be worked around by the caller. */
6563 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6565 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6566 if (cd_88591_to_utf8 != (iconv_t)(-1))
6568 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6570 const char *inptr = input;
6571 size_t inbytesleft = strlen (input);
6573 size_t outbytesleft = sizeof (buf);
6574 size_t res = iconv (cd_88591_to_utf8,
6575 (char **) &inptr, &inbytesleft,
6576 &outptr, &outbytesleft);
6582 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6584 if (/* Try standardized names. */
6585 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6586 /* Try IRIX, OSF/1 names. */
6587 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6588 /* Try AIX names. */
6589 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6590 /* Try HP-UX names. */
6591 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6596 rm -f conftest$ac_exeext
6597 if { (ac_try="$ac_link"
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603 $as_echo "$ac_try_echo") >&5
6604 (eval "$ac_link") 2>&5
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6608 { (case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613 $as_echo "$ac_try_echo") >&5
6614 (eval "$ac_try") 2>&5
6616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 am_cv_func_iconv_works=yes
6620 $as_echo "$as_me: program exited with status $ac_status" >&5
6621 $as_echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6625 am_cv_func_iconv_works=no
6627 rm -rf conftest.dSYM
6628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6632 LIBS="$am_save_LIBS"
6635 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
6636 $as_echo "$am_cv_func_iconv_works" >&6; }
6637 case "$am_cv_func_iconv_works" in
6638 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6639 *) am_func_iconv=yes ;;
6642 am_func_iconv=no am_cv_lib_iconv=no
6644 if test "$am_func_iconv" = yes; then
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_ICONV 1
6651 if test "$am_cv_lib_iconv" = yes; then
6652 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6653 $as_echo_n "checking how to link with libiconv... " >&6; }
6654 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
6655 $as_echo "$LIBICONV" >&6; }
6657 CPPFLAGS="$am_save_CPPFLAGS"
6671 acl_save_prefix="$prefix"
6672 prefix="$acl_final_prefix"
6673 acl_save_exec_prefix="$exec_prefix"
6674 exec_prefix="$acl_final_exec_prefix"
6676 eval additional_includedir=\"$includedir\"
6677 eval additional_libdir=\"$libdir\"
6679 exec_prefix="$acl_save_exec_prefix"
6680 prefix="$acl_save_prefix"
6683 # Check whether --with-libintl-prefix was given.
6684 if test "${with_libintl_prefix+set}" = set; then
6685 withval=$with_libintl_prefix;
6686 if test "X$withval" = "Xno"; then
6689 if test "X$withval" = "X"; then
6691 acl_save_prefix="$prefix"
6692 prefix="$acl_final_prefix"
6693 acl_save_exec_prefix="$exec_prefix"
6694 exec_prefix="$acl_final_exec_prefix"
6696 eval additional_includedir=\"$includedir\"
6697 eval additional_libdir=\"$libdir\"
6699 exec_prefix="$acl_save_exec_prefix"
6700 prefix="$acl_save_prefix"
6703 additional_includedir="$withval/include"
6704 additional_libdir="$withval/$acl_libdirstem"
6716 names_already_handled=
6717 names_next_round='intl '
6718 while test -n "$names_next_round"; do
6719 names_this_round="$names_next_round"
6721 for name in $names_this_round; do
6723 for n in $names_already_handled; do
6724 if test "$n" = "$name"; then
6729 if test -z "$already_handled"; then
6730 names_already_handled="$names_already_handled $name"
6731 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6732 eval value=\"\$HAVE_LIB$uppername\"
6733 if test -n "$value"; then
6734 if test "$value" = yes; then
6735 eval value=\"\$LIB$uppername\"
6736 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6737 eval value=\"\$LTLIB$uppername\"
6738 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6747 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6748 if test -n "$acl_shlibext"; then
6749 shrext=".$acl_shlibext" # typically: shrext=.so
6753 if test $use_additional = yes; then
6754 dir="$additional_libdir"
6755 if test -n "$acl_shlibext"; then
6756 if test -f "$dir/$libname$shrext"; then
6758 found_so="$dir/$libname$shrext"
6760 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6761 ver=`(cd "$dir" && \
6762 for f in "$libname$shrext".*; do echo "$f"; done \
6763 | sed -e "s,^$libname$shrext\\\\.,," \
6764 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6765 | sed 1q ) 2>/dev/null`
6766 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6768 found_so="$dir/$libname$shrext.$ver"
6771 eval library_names=\"$acl_library_names_spec\"
6772 for f in $library_names; do
6773 if test -f "$dir/$f"; then
6782 if test "X$found_dir" = "X"; then
6783 if test -f "$dir/$libname.$acl_libext"; then
6785 found_a="$dir/$libname.$acl_libext"
6788 if test "X$found_dir" != "X"; then
6789 if test -f "$dir/$libname.la"; then
6790 found_la="$dir/$libname.la"
6794 if test "X$found_dir" = "X"; then
6795 for x in $LDFLAGS $LTLIBINTL; do
6797 acl_save_prefix="$prefix"
6798 prefix="$acl_final_prefix"
6799 acl_save_exec_prefix="$exec_prefix"
6800 exec_prefix="$acl_final_exec_prefix"
6802 exec_prefix="$acl_save_exec_prefix"
6803 prefix="$acl_save_prefix"
6807 dir=`echo "X$x" | sed -e 's/^X-L//'`
6808 if test -n "$acl_shlibext"; then
6809 if test -f "$dir/$libname$shrext"; then
6811 found_so="$dir/$libname$shrext"
6813 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6814 ver=`(cd "$dir" && \
6815 for f in "$libname$shrext".*; do echo "$f"; done \
6816 | sed -e "s,^$libname$shrext\\\\.,," \
6817 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6818 | sed 1q ) 2>/dev/null`
6819 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6821 found_so="$dir/$libname$shrext.$ver"
6824 eval library_names=\"$acl_library_names_spec\"
6825 for f in $library_names; do
6826 if test -f "$dir/$f"; then
6835 if test "X$found_dir" = "X"; then
6836 if test -f "$dir/$libname.$acl_libext"; then
6838 found_a="$dir/$libname.$acl_libext"
6841 if test "X$found_dir" != "X"; then
6842 if test -f "$dir/$libname.la"; then
6843 found_la="$dir/$libname.la"
6848 if test "X$found_dir" != "X"; then
6853 if test "X$found_dir" != "X"; then
6854 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6855 if test "X$found_so" != "X"; then
6856 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6857 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6860 for x in $ltrpathdirs; do
6861 if test "X$x" = "X$found_dir"; then
6866 if test -z "$haveit"; then
6867 ltrpathdirs="$ltrpathdirs $found_dir"
6869 if test "$acl_hardcode_direct" = yes; then
6870 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6872 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6873 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6875 for x in $rpathdirs; do
6876 if test "X$x" = "X$found_dir"; then
6881 if test -z "$haveit"; then
6882 rpathdirs="$rpathdirs $found_dir"
6886 for x in $LDFLAGS $LIBINTL; do
6888 acl_save_prefix="$prefix"
6889 prefix="$acl_final_prefix"
6890 acl_save_exec_prefix="$exec_prefix"
6891 exec_prefix="$acl_final_exec_prefix"
6893 exec_prefix="$acl_save_exec_prefix"
6894 prefix="$acl_save_prefix"
6896 if test "X$x" = "X-L$found_dir"; then
6901 if test -z "$haveit"; then
6902 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6904 if test "$acl_hardcode_minus_L" != no; then
6905 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6907 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6913 if test "X$found_a" != "X"; then
6914 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6916 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6919 additional_includedir=
6920 case "$found_dir" in
6921 */$acl_libdirstem | */$acl_libdirstem/)
6922 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6923 LIBINTL_PREFIX="$basedir"
6924 additional_includedir="$basedir/include"
6927 if test "X$additional_includedir" != "X"; then
6928 if test "X$additional_includedir" != "X/usr/include"; then
6930 if test "X$additional_includedir" = "X/usr/local/include"; then
6931 if test -n "$GCC"; then
6933 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6937 if test -z "$haveit"; then
6938 for x in $CPPFLAGS $INCINTL; do
6940 acl_save_prefix="$prefix"
6941 prefix="$acl_final_prefix"
6942 acl_save_exec_prefix="$exec_prefix"
6943 exec_prefix="$acl_final_exec_prefix"
6945 exec_prefix="$acl_save_exec_prefix"
6946 prefix="$acl_save_prefix"
6948 if test "X$x" = "X-I$additional_includedir"; then
6953 if test -z "$haveit"; then
6954 if test -d "$additional_includedir"; then
6955 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6961 if test -n "$found_la"; then
6962 save_libdir="$libdir"
6964 */* | *\\*) . "$found_la" ;;
6965 *) . "./$found_la" ;;
6967 libdir="$save_libdir"
6968 for dep in $dependency_libs; do
6971 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6972 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6974 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6975 if test -n "$GCC"; then
6977 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6981 if test -z "$haveit"; then
6983 for x in $LDFLAGS $LIBINTL; do
6985 acl_save_prefix="$prefix"
6986 prefix="$acl_final_prefix"
6987 acl_save_exec_prefix="$exec_prefix"
6988 exec_prefix="$acl_final_exec_prefix"
6990 exec_prefix="$acl_save_exec_prefix"
6991 prefix="$acl_save_prefix"
6993 if test "X$x" = "X-L$additional_libdir"; then
6998 if test -z "$haveit"; then
6999 if test -d "$additional_libdir"; then
7000 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7004 for x in $LDFLAGS $LTLIBINTL; do
7006 acl_save_prefix="$prefix"
7007 prefix="$acl_final_prefix"
7008 acl_save_exec_prefix="$exec_prefix"
7009 exec_prefix="$acl_final_exec_prefix"
7011 exec_prefix="$acl_save_exec_prefix"
7012 prefix="$acl_save_prefix"
7014 if test "X$x" = "X-L$additional_libdir"; then
7019 if test -z "$haveit"; then
7020 if test -d "$additional_libdir"; then
7021 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7028 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7029 if test "$enable_rpath" != no; then
7031 for x in $rpathdirs; do
7032 if test "X$x" = "X$dir"; then
7037 if test -z "$haveit"; then
7038 rpathdirs="$rpathdirs $dir"
7041 for x in $ltrpathdirs; do
7042 if test "X$x" = "X$dir"; then
7047 if test -z "$haveit"; then
7048 ltrpathdirs="$ltrpathdirs $dir"
7053 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7056 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7059 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7060 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7066 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7067 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7073 if test "X$rpathdirs" != "X"; then
7074 if test -n "$acl_hardcode_libdir_separator"; then
7076 for found_dir in $rpathdirs; do
7077 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7079 acl_save_libdir="$libdir"
7081 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7082 libdir="$acl_save_libdir"
7083 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7085 for found_dir in $rpathdirs; do
7086 acl_save_libdir="$libdir"
7088 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7089 libdir="$acl_save_libdir"
7090 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7094 if test "X$ltrpathdirs" != "X"; then
7095 for found_dir in $ltrpathdirs; do
7096 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7100 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7101 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7102 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
7103 $as_echo_n "(cached) " >&6
7105 gt_save_CPPFLAGS="$CPPFLAGS"
7106 CPPFLAGS="$CPPFLAGS $INCINTL"
7107 gt_save_LIBS="$LIBS"
7108 LIBS="$LIBS $LIBINTL"
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <libintl.h>
7116 $gt_revision_test_code
7117 extern int _nl_msg_cat_cntr;
7122 const char *_nl_expand_alias (const char *);
7126 bindtextdomain ("", "");
7127 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7132 rm -f conftest.$ac_objext conftest$ac_exeext
7133 if { (ac_try="$ac_link"
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140 (eval "$ac_link") 2>conftest.er1
7142 grep -v '^ *+' conftest.er1 >conftest.err
7144 cat conftest.err >&5
7145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest$ac_exeext && {
7150 test "$cross_compiling" = yes ||
7151 $as_test_x conftest$ac_exeext
7153 eval "$gt_func_gnugettext_libintl=yes"
7155 $as_echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 eval "$gt_func_gnugettext_libintl=no"
7161 rm -rf conftest.dSYM
7162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7163 conftest$ac_exeext conftest.$ac_ext
7164 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7165 LIBS="$LIBS $LIBICONV"
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <libintl.h>
7173 $gt_revision_test_code
7174 extern int _nl_msg_cat_cntr;
7179 const char *_nl_expand_alias (const char *);
7183 bindtextdomain ("", "");
7184 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196 $as_echo "$ac_try_echo") >&5
7197 (eval "$ac_link") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext && {
7207 test "$cross_compiling" = yes ||
7208 $as_test_x conftest$ac_exeext
7210 LIBINTL="$LIBINTL $LIBICONV"
7211 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7212 eval "$gt_func_gnugettext_libintl=yes"
7215 $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7221 rm -rf conftest.dSYM
7222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223 conftest$ac_exeext conftest.$ac_ext
7225 CPPFLAGS="$gt_save_CPPFLAGS"
7226 LIBS="$gt_save_LIBS"
7228 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
7229 $as_echo "$as_val"'`
7230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7231 $as_echo "$ac_res" >&6; }
7234 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7235 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7236 && test "$PACKAGE" != gettext-runtime \
7237 && test "$PACKAGE" != gettext-tools; }; then
7238 gt_use_preinstalled_gnugettext=yes
7247 if test -n "$INTL_MACOSX_LIBS"; then
7248 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7249 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7250 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7251 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7255 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7256 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7258 cat >>confdefs.h <<\_ACEOF
7259 #define ENABLE_NLS 1
7267 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
7268 $as_echo_n "checking whether to use NLS... " >&6; }
7269 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7270 $as_echo "$USE_NLS" >&6; }
7271 if test "$USE_NLS" = "yes"; then
7272 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7273 $as_echo_n "checking where the gettext function comes from... " >&6; }
7274 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7275 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7276 gt_source="external libintl"
7281 gt_source="included intl directory"
7283 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
7284 $as_echo "$gt_source" >&6; }
7287 if test "$USE_NLS" = "yes"; then
7289 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7290 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7291 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
7292 $as_echo_n "checking how to link with libintl... " >&6; }
7293 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
7294 $as_echo "$LIBINTL" >&6; }
7296 for element in $INCINTL; do
7298 for x in $CPPFLAGS; do
7300 acl_save_prefix="$prefix"
7301 prefix="$acl_final_prefix"
7302 acl_save_exec_prefix="$exec_prefix"
7303 exec_prefix="$acl_final_exec_prefix"
7305 exec_prefix="$acl_save_exec_prefix"
7306 prefix="$acl_save_prefix"
7308 if test "X$x" = "X$element"; then
7313 if test -z "$haveit"; then
7314 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7321 cat >>confdefs.h <<\_ACEOF
7322 #define HAVE_GETTEXT 1
7326 cat >>confdefs.h <<\_ACEOF
7327 #define HAVE_DCGETTEXT 1
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_RANLIB+set}" = set; then
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$RANLIB"; then
7355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 RANLIB=$ac_cv_prog_RANLIB
7375 if test -n "$RANLIB"; then
7376 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7377 $as_echo "$RANLIB" >&6; }
7379 { $as_echo "$as_me:$LINENO: result: no" >&5
7380 $as_echo "no" >&6; }
7385 if test -z "$ac_cv_prog_RANLIB"; then
7386 ac_ct_RANLIB=$RANLIB
7387 # Extract the first word of "ranlib", so it can be a program name with args.
7388 set dummy ranlib; ac_word=$2
7389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$ac_ct_RANLIB"; then
7395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_ac_ct_RANLIB="ranlib"
7405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415 if test -n "$ac_ct_RANLIB"; then
7416 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7417 $as_echo "$ac_ct_RANLIB" >&6; }
7419 { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7423 if test "x$ac_ct_RANLIB" = x; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7432 RANLIB=$ac_ct_RANLIB
7435 RANLIB="$ac_cv_prog_RANLIB"
7439 for ac_prog in flex lex
7441 # Extract the first word of "$ac_prog", so it can be a program name with args.
7442 set dummy $ac_prog; ac_word=$2
7443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_LEX+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$LEX"; then
7449 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_LEX="$ac_prog"
7459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 if test -n "$LEX"; then
7470 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
7471 $as_echo "$LEX" >&6; }
7473 { $as_echo "$as_me:$LINENO: result: no" >&5
7474 $as_echo "no" >&6; }
7478 test -n "$LEX" && break
7480 test -n "$LEX" || LEX=":"
7482 if test "x$LEX" != "x:"; then
7483 cat >conftest.l <<_ACEOF
7489 e { yyless (input () != 0); }
7490 f { unput (yytext[0]); }
7491 . { BEGIN INITIAL; }
7493 #ifdef YYTEXT_POINTER
7494 extern char *yytext;
7499 return ! yylex () + ! yywrap ();
7502 { (ac_try="$LEX conftest.l"
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7508 $as_echo "$ac_try_echo") >&5
7509 (eval "$LEX conftest.l") 2>&5
7511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }
7513 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
7514 $as_echo_n "checking lex output file root... " >&6; }
7515 if test "${ac_cv_prog_lex_root+set}" = set; then
7516 $as_echo_n "(cached) " >&6
7519 if test -f lex.yy.c; then
7520 ac_cv_prog_lex_root=lex.yy
7521 elif test -f lexyy.c; then
7522 ac_cv_prog_lex_root=lexyy
7524 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7525 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7526 { (exit 1); exit 1; }; }
7529 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7530 $as_echo "$ac_cv_prog_lex_root" >&6; }
7531 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7533 if test -z "${LEXLIB+set}"; then
7534 { $as_echo "$as_me:$LINENO: checking lex library" >&5
7535 $as_echo_n "checking lex library... " >&6; }
7536 if test "${ac_cv_lib_lex+set}" = set; then
7537 $as_echo_n "(cached) " >&6
7541 ac_cv_lib_lex='none needed'
7542 for ac_lib in '' -lfl -ll; do
7543 LIBS="$ac_lib $ac_save_LIBS"
7544 cat >conftest.$ac_ext <<_ACEOF
7545 `cat $LEX_OUTPUT_ROOT.c`
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554 $as_echo "$ac_try_echo") >&5
7555 (eval "$ac_link") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest$ac_exeext && {
7565 test "$cross_compiling" = yes ||
7566 $as_test_x conftest$ac_exeext
7568 ac_cv_lib_lex=$ac_lib
7570 $as_echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7576 rm -rf conftest.dSYM
7577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7578 conftest$ac_exeext conftest.$ac_ext
7579 test "$ac_cv_lib_lex" != 'none needed' && break
7584 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
7585 $as_echo "$ac_cv_lib_lex" >&6; }
7586 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7590 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7591 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7592 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7593 $as_echo_n "(cached) " >&6
7595 # POSIX says lex can declare yytext either as a pointer or an array; the
7596 # default is implementation-dependent. Figure out which it is, since
7597 # not all implementations provide the %pointer and %array declarations.
7598 ac_cv_prog_lex_yytext_pointer=no
7600 LIBS="$LEXLIB $ac_save_LIBS"
7601 cat >conftest.$ac_ext <<_ACEOF
7602 #define YYTEXT_POINTER 1
7603 `cat $LEX_OUTPUT_ROOT.c`
7605 rm -f conftest.$ac_objext conftest$ac_exeext
7606 if { (ac_try="$ac_link"
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7612 $as_echo "$ac_try_echo") >&5
7613 (eval "$ac_link") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest$ac_exeext && {
7623 test "$cross_compiling" = yes ||
7624 $as_test_x conftest$ac_exeext
7626 ac_cv_prog_lex_yytext_pointer=yes
7628 $as_echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7634 rm -rf conftest.dSYM
7635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7636 conftest$ac_exeext conftest.$ac_ext
7640 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7641 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7642 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7644 cat >>confdefs.h <<\_ACEOF
7645 #define YYTEXT_POINTER 1
7649 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7653 if test -n "$auto_cflags"; then
7654 if test -n "$GCC"; then
7655 CFLAGS="$CFLAGS -O2 -Wall"
7658 *hpux*) CFLAGS="$CFLAGS +O3" ;;
7659 *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
7660 *) CFLAGS="$CFLAGS -O" ;;
7665 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7666 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7667 if test "${ac_cv_c_const+set}" = set; then
7668 $as_echo_n "(cached) " >&6
7670 cat >conftest.$ac_ext <<_ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7680 /* FIXME: Include the comments suggested by Paul. */
7682 /* Ultrix mips cc rejects this. */
7683 typedef int charset[2];
7685 /* SunOS 4.1.1 cc rejects this. */
7686 char const *const *pcpcc;
7688 /* NEC SVR4.0.2 mips cc rejects this. */
7689 struct point {int x, y;};
7690 static struct point const zero = {0,0};
7691 /* AIX XL C 1.02.0.0 rejects this.
7692 It does not let you subtract one const X* pointer from another in
7693 an arm of an if-expression whose if-part is not a constant
7695 const char *g = "string";
7696 pcpcc = &g + (g ? g-g : 0);
7697 /* HPUX 7.0 cc rejects these. */
7699 ppc = (char**) pcpcc;
7700 pcpcc = (char const *const *) ppc;
7701 { /* SCO 3.2v4 cc rejects this. */
7703 char const *s = 0 ? (char *) 0 : (char const *) 0;
7708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7710 const int *foo = &x[0];
7713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7714 typedef const int *iptr;
7718 { /* AIX XL C 1.02.0.0 rejects this saying
7719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7720 struct s { int j; const int *ap[3]; };
7721 struct s *b; b->j = 5;
7723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7727 return !cs[0] && !zero.x;
7734 rm -f conftest.$ac_objext
7735 if { (ac_try="$ac_compile"
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7741 $as_echo "$ac_try_echo") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7744 grep -v '^ *+' conftest.er1 >conftest.err
7746 cat conftest.err >&5
7747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
7754 $as_echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7763 $as_echo "$ac_cv_c_const" >&6; }
7764 if test $ac_cv_c_const = no; then
7766 cat >>confdefs.h <<\_ACEOF
7772 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7773 $as_echo_n "checking for inline... " >&6; }
7774 if test "${ac_cv_c_inline+set}" = set; then
7775 $as_echo_n "(cached) " >&6
7778 for ac_kw in inline __inline__ __inline; do
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7787 static $ac_kw foo_t static_foo () {return 0; }
7788 $ac_kw foo_t foo () {return 0; }
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_cv_c_inline=$ac_kw
7812 $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 test "$ac_cv_c_inline" != no && break
7823 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7824 $as_echo "$ac_cv_c_inline" >&6; }
7827 case $ac_cv_c_inline in
7830 case $ac_cv_c_inline in
7832 *) ac_val=$ac_cv_c_inline;;
7834 cat >>confdefs.h <<_ACEOF
7836 #define inline $ac_val
7842 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
7843 $as_echo_n "checking for working volatile... " >&6; }
7844 if test "${ac_cv_c_volatile+set}" = set; then
7845 $as_echo_n "(cached) " >&6
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7859 int * volatile y = (int *) 0;
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 ac_cv_c_volatile=yes
7885 $as_echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7894 $as_echo "$ac_cv_c_volatile" >&6; }
7895 if test $ac_cv_c_volatile = no; then
7897 cat >>confdefs.h <<\_ACEOF
7898 #define volatile /**/
7904 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7905 $as_echo_n "checking for ANSI C header files... " >&6; }
7906 if test "${ac_cv_header_stdc+set}" = set; then
7907 $as_echo_n "(cached) " >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7935 $as_echo "$ac_try_echo") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1 >conftest.err
7940 cat conftest.err >&5
7941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_cv_header_stdc=yes
7948 $as_echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_header_stdc=no
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 if test $ac_cv_header_stdc = yes; then
7957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968 $EGREP "memchr" >/dev/null 2>&1; then
7971 ac_cv_header_stdc=no
7977 if test $ac_cv_header_stdc = yes; then
7978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7989 $EGREP "free" >/dev/null 2>&1; then
7992 ac_cv_header_stdc=no
7998 if test $ac_cv_header_stdc = yes; then
7999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8000 if test "$cross_compiling" = yes; then
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8011 #if ((' ' & 0x0FF) == 0x020)
8012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8015 # define ISLOWER(c) \
8016 (('a' <= (c) && (c) <= 'i') \
8017 || ('j' <= (c) && (c) <= 'r') \
8018 || ('s' <= (c) && (c) <= 'z'))
8019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8027 for (i = 0; i < 256; i++)
8028 if (XOR (islower (i), ISLOWER (i))
8029 || toupper (i) != TOUPPER (i))
8034 rm -f conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042 (eval "$ac_link") 2>&5
8044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8051 $as_echo "$ac_try_echo") >&5
8052 (eval "$ac_try") 2>&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8058 $as_echo "$as_me: program exited with status $ac_status" >&5
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8063 ac_cv_header_stdc=no
8065 rm -rf conftest.dSYM
8066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8073 $as_echo "$ac_cv_header_stdc" >&6; }
8074 if test $ac_cv_header_stdc = yes; then
8076 cat >>confdefs.h <<\_ACEOF
8077 #define STDC_HEADERS 1
8083 # Check whether --enable-largefile was given.
8084 if test "${enable_largefile+set}" = set; then
8085 enableval=$enable_largefile;
8088 if test "$enable_largefile" != no; then
8090 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8091 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8092 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8093 $as_echo_n "(cached) " >&6
8095 ac_cv_sys_largefile_CC=no
8096 if test "$GCC" != yes; then
8099 # IRIX 6.2 and later do not support large files by default,
8100 # so use the C compiler's -n32 option if that helps.
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 #include <sys/types.h>
8108 /* Check that off_t can represent 2**63 - 1 correctly.
8109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8110 since some C++ compilers masquerading as C compilers
8111 incorrectly reject 9223372036854775807. */
8112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8114 && LARGE_OFF_T % 2147483647 == 1)
8124 rm -f conftest.$ac_objext
8125 if { (ac_try="$ac_compile"
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8131 $as_echo "$ac_try_echo") >&5
8132 (eval "$ac_compile") 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest.$ac_objext; then
8144 $as_echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8150 rm -f core conftest.err conftest.$ac_objext
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8159 $as_echo "$ac_try_echo") >&5
8160 (eval "$ac_compile") 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest.$ac_objext; then
8170 ac_cv_sys_largefile_CC=' -n32'; break
8172 $as_echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8178 rm -f core conftest.err conftest.$ac_objext
8182 rm -f conftest.$ac_ext
8185 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8186 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8187 if test "$ac_cv_sys_largefile_CC" != no; then
8188 CC=$CC$ac_cv_sys_largefile_CC
8191 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8192 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8193 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8194 $as_echo_n "(cached) " >&6
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 #include <sys/types.h>
8204 /* Check that off_t can represent 2**63 - 1 correctly.
8205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8206 since some C++ compilers masquerading as C compilers
8207 incorrectly reject 9223372036854775807. */
8208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8210 && LARGE_OFF_T % 2147483647 == 1)
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8227 $as_echo "$ac_try_echo") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8238 ac_cv_sys_file_offset_bits=no; break
8240 $as_echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #define _FILE_OFFSET_BITS 64
8254 #include <sys/types.h>
8255 /* Check that off_t can represent 2**63 - 1 correctly.
8256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8257 since some C++ compilers masquerading as C compilers
8258 incorrectly reject 9223372036854775807. */
8259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8261 && LARGE_OFF_T % 2147483647 == 1)
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
8289 ac_cv_sys_file_offset_bits=64; break
8291 $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 ac_cv_sys_file_offset_bits=unknown
8302 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8304 case $ac_cv_sys_file_offset_bits in #(
8307 cat >>confdefs.h <<_ACEOF
8308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8313 if test $ac_cv_sys_file_offset_bits = unknown; then
8314 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8315 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8316 if test "${ac_cv_sys_large_files+set}" = set; then
8317 $as_echo_n "(cached) " >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 #include <sys/types.h>
8327 /* Check that off_t can represent 2**63 - 1 correctly.
8328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8329 since some C++ compilers masquerading as C compilers
8330 incorrectly reject 9223372036854775807. */
8331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8333 && LARGE_OFF_T % 2147483647 == 1)
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350 $as_echo "$ac_try_echo") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } && {
8358 test -z "$ac_c_werror_flag" ||
8359 test ! -s conftest.err
8360 } && test -s conftest.$ac_objext; then
8361 ac_cv_sys_large_files=no; break
8363 $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 #define _LARGE_FILES 1
8377 #include <sys/types.h>
8378 /* Check that off_t can represent 2**63 - 1 correctly.
8379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8380 since some C++ compilers masquerading as C compilers
8381 incorrectly reject 9223372036854775807. */
8382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8384 && LARGE_OFF_T % 2147483647 == 1)
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401 $as_echo "$ac_try_echo") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8404 grep -v '^ *+' conftest.er1 >conftest.err
8406 cat conftest.err >&5
8407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_sys_large_files=1; break
8414 $as_echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 ac_cv_sys_large_files=unknown
8425 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8426 $as_echo "$ac_cv_sys_large_files" >&6; }
8427 case $ac_cv_sys_large_files in #(
8430 cat >>confdefs.h <<_ACEOF
8431 #define _LARGE_FILES $ac_cv_sys_large_files
8439 # The cast to long int works around a bug in the HP C Compiler
8440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8442 # This bug is HP SR number 8606223364.
8443 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
8444 $as_echo_n "checking size of off_t... " >&6; }
8445 if test "${ac_cv_sizeof_off_t+set}" = set; then
8446 $as_echo_n "(cached) " >&6
8448 if test "$cross_compiling" = yes; then
8449 # Depending upon the size, compute the lo and hi bounds.
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8460 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8474 $as_echo "$ac_try_echo") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest.$ac_objext; then
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 $ac_includes_default
8497 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8511 $as_echo "$ac_try_echo") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8522 ac_hi=$ac_mid; break
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_lo=`expr $ac_mid + 1`
8528 if test $ac_lo -le $ac_mid; then
8532 ac_mid=`expr 2 '*' $ac_mid + 1`
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8551 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565 $as_echo "$ac_try_echo") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 $ac_includes_default
8588 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_lo=$ac_mid; break
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_hi=`expr '(' $ac_mid ')' - 1`
8619 if test $ac_mid -le $ac_hi; then
8623 ac_mid=`expr 2 '*' $ac_mid`
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 $as_echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 # Binary search between lo and hi bounds.
8640 while test "x$ac_lo" != "x$ac_hi"; do
8641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8648 $ac_includes_default
8652 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8659 rm -f conftest.$ac_objext
8660 if { (ac_try="$ac_compile"
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8666 $as_echo "$ac_try_echo") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8679 $as_echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_lo=`expr '(' $ac_mid ')' + 1`
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 ?*) ac_cv_sizeof_off_t=$ac_lo;;
8689 '') if test "$ac_cv_type_off_t" = yes; then
8690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8692 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8693 See \`config.log' for more details." >&5
8694 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8695 See \`config.log' for more details." >&2;}
8696 { (exit 77); exit 77; }; }; }
8698 ac_cv_sizeof_off_t=0
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 $ac_includes_default
8709 static long int longval () { return (long int) (sizeof (off_t)); }
8710 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
8717 FILE *f = fopen ("conftest.val", "w");
8720 if (((long int) (sizeof (off_t))) < 0)
8722 long int i = longval ();
8723 if (i != ((long int) (sizeof (off_t))))
8725 fprintf (f, "%ld", i);
8729 unsigned long int i = ulongval ();
8730 if (i != ((long int) (sizeof (off_t))))
8732 fprintf (f, "%lu", i);
8734 /* Do not output a trailing newline, as this causes \r\n confusion
8735 on some platforms. */
8736 return ferror (f) || fclose (f) != 0;
8742 rm -f conftest$ac_exeext
8743 if { (ac_try="$ac_link"
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749 $as_echo "$ac_try_echo") >&5
8750 (eval "$ac_link") 2>&5
8752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8754 { (case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8759 $as_echo "$ac_try_echo") >&5
8760 (eval "$ac_try") 2>&5
8762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_sizeof_off_t=`cat conftest.val`
8766 $as_echo "$as_me: program exited with status $ac_status" >&5
8767 $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8771 if test "$ac_cv_type_off_t" = yes; then
8772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8774 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8775 See \`config.log' for more details." >&5
8776 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8777 See \`config.log' for more details." >&2;}
8778 { (exit 77); exit 77; }; }; }
8780 ac_cv_sizeof_off_t=0
8783 rm -rf conftest.dSYM
8784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8788 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8789 $as_echo "$ac_cv_sizeof_off_t" >&6; }
8793 cat >>confdefs.h <<_ACEOF
8794 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8799 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8800 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8801 if test "${ac_cv_header_stdbool_h+set}" = set; then
8802 $as_echo_n "(cached) " >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8811 #include <stdbool.h>
8813 "error: bool is not defined"
8816 "error: false is not defined"
8819 "error: false is not 0"
8822 "error: true is not defined"
8825 "error: true is not 1"
8827 #ifndef __bool_true_false_are_defined
8828 "error: __bool_true_false_are_defined is not defined"
8831 struct s { _Bool s: 1; _Bool t; } s;
8833 char a[true == 1 ? 1 : -1];
8834 char b[false == 0 ? 1 : -1];
8835 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8836 char d[(bool) 0.5 == true ? 1 : -1];
8838 char f[(_Bool) 0.0 == false ? 1 : -1];
8840 char h[sizeof (_Bool)];
8842 enum { j = false, k = true, l = false * true, m = true * 256 };
8844 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8845 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8846 #if defined __xlc__ || defined __GNUC__
8847 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8848 reported by James Lemley on 2005-10-05; see
8849 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8850 This test is not quite right, since xlc is allowed to
8851 reject this program, as the initializer for xlcbug is
8852 not one of the forms that C requires support for.
8853 However, doing the test right would require a run-time
8854 test, and that would make cross-compilation harder.
8855 Let us hope that IBM fixes the xlc bug, and also adds
8856 support for this kind of constant expression. In the
8857 meantime, this test will reject xlc, which is OK, since
8858 our stdbool.h substitute should suffice. We also test
8859 this with GCC, where it should work, to detect more
8860 quickly whether someone messes up the test in the
8862 char digs[] = "0123456789";
8863 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8865 /* Catch a bug in an HP-UX C compiler. See
8866 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8867 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8878 /* Refer to every declared value, to avoid compiler optimizations. */
8879 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8880 + !m + !n + !o + !p + !q + !pq);
8886 rm -f conftest.$ac_objext
8887 if { (ac_try="$ac_compile"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893 $as_echo "$ac_try_echo") >&5
8894 (eval "$ac_compile") 2>conftest.er1
8896 grep -v '^ *+' conftest.er1 >conftest.err
8898 cat conftest.err >&5
8899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && {
8901 test -z "$ac_c_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest.$ac_objext; then
8904 ac_cv_header_stdbool_h=yes
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_header_stdbool_h=no
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8915 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8916 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
8917 $as_echo_n "checking for _Bool... " >&6; }
8918 if test "${ac_cv_type__Bool+set}" = set; then
8919 $as_echo_n "(cached) " >&6
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8938 rm -f conftest.$ac_objext
8939 if { (ac_try="$ac_compile"
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8945 $as_echo "$ac_try_echo") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8948 grep -v '^ *+' conftest.er1 >conftest.err
8950 cat conftest.err >&5
8951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 $ac_includes_default
8966 if (sizeof ((_Bool)))
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8979 $as_echo "$ac_try_echo") >&5
8980 (eval "$ac_compile") 2>conftest.er1
8982 grep -v '^ *+' conftest.er1 >conftest.err
8984 cat conftest.err >&5
8985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } && {
8987 test -z "$ac_c_werror_flag" ||
8988 test ! -s conftest.err
8989 } && test -s conftest.$ac_objext; then
8992 $as_echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_type__Bool=yes
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 $as_echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9009 $as_echo "$ac_cv_type__Bool" >&6; }
9010 if test "x$ac_cv_type__Bool" = x""yes; then
9012 cat >>confdefs.h <<_ACEOF
9013 #define HAVE__BOOL 1
9019 if test $ac_cv_header_stdbool_h = yes; then
9021 cat >>confdefs.h <<\_ACEOF
9022 #define HAVE_STDBOOL_H 1
9028 for ac_header in unistd.h sys/time.h
9030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9033 $as_echo_n "checking for $ac_header... " >&6; }
9034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9035 $as_echo_n "(cached) " >&6
9037 ac_res=`eval 'as_val=${'$as_ac_Header'}
9038 $as_echo "$as_val"'`
9039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9040 $as_echo "$ac_res" >&6; }
9042 # Is the header compilable?
9043 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9044 $as_echo_n "checking $ac_header usability... " >&6; }
9045 cat >conftest.$ac_ext <<_ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 $ac_includes_default
9052 #include <$ac_header>
9054 rm -f conftest.$ac_objext
9055 if { (ac_try="$ac_compile"
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9061 $as_echo "$ac_try_echo") >&5
9062 (eval "$ac_compile") 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest.$ac_objext; then
9072 ac_header_compiler=yes
9074 $as_echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_header_compiler=no
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9082 $as_echo "$ac_header_compiler" >&6; }
9084 # Is the header present?
9085 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9086 $as_echo_n "checking $ac_header presence... " >&6; }
9087 cat >conftest.$ac_ext <<_ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 #include <$ac_header>
9095 if { (ac_try="$ac_cpp conftest.$ac_ext"
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9101 $as_echo "$ac_try_echo") >&5
9102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9104 grep -v '^ *+' conftest.er1 >conftest.err
9106 cat conftest.err >&5
9107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev/null && {
9109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9112 ac_header_preproc=yes
9114 $as_echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_header_preproc=no
9120 rm -f conftest.err conftest.$ac_ext
9121 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9122 $as_echo "$ac_header_preproc" >&6; }
9124 # So? What about this header?
9125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9128 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9130 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9131 ac_header_preproc=yes
9134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9135 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9137 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9139 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9141 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9145 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9147 ## ------------------------------- ##
9148 ## Report this to bug-wget@gnu.org ##
9149 ## ------------------------------- ##
9151 ) | sed "s/^/$as_me: WARNING: /" >&2
9154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9155 $as_echo_n "checking for $ac_header... " >&6; }
9156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9157 $as_echo_n "(cached) " >&6
9159 eval "$as_ac_Header=\$ac_header_preproc"
9161 ac_res=`eval 'as_val=${'$as_ac_Header'}
9162 $as_echo "$as_val"'`
9163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9164 $as_echo "$ac_res" >&6; }
9167 as_val=`eval 'as_val=${'$as_ac_Header'}
9168 $as_echo "$as_val"'`
9169 if test "x$as_val" = x""yes; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 for ac_header in termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h
9185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 $as_echo_n "checking for $ac_header... " >&6; }
9189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190 $as_echo_n "(cached) " >&6
9192 ac_res=`eval 'as_val=${'$as_ac_Header'}
9193 $as_echo "$as_val"'`
9194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9195 $as_echo "$ac_res" >&6; }
9197 # Is the header compilable?
9198 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9199 $as_echo_n "checking $ac_header usability... " >&6; }
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 $ac_includes_default
9207 #include <$ac_header>
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9216 $as_echo "$ac_try_echo") >&5
9217 (eval "$ac_compile") 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest.$ac_objext; then
9227 ac_header_compiler=yes
9229 $as_echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 ac_header_compiler=no
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9237 $as_echo "$ac_header_compiler" >&6; }
9239 # Is the header present?
9240 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9241 $as_echo_n "checking $ac_header presence... " >&6; }
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <$ac_header>
9250 if { (ac_try="$ac_cpp conftest.$ac_ext"
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9256 $as_echo "$ac_try_echo") >&5
9257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9259 grep -v '^ *+' conftest.er1 >conftest.err
9261 cat conftest.err >&5
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } >/dev/null && {
9264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9267 ac_header_preproc=yes
9269 $as_echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9272 ac_header_preproc=no
9275 rm -f conftest.err conftest.$ac_ext
9276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 $as_echo "$ac_header_preproc" >&6; }
9279 # So? What about this header?
9280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9286 ac_header_preproc=yes
9289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9290 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9292 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9294 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9296 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9300 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9302 ## ------------------------------- ##
9303 ## Report this to bug-wget@gnu.org ##
9304 ## ------------------------------- ##
9306 ) | sed "s/^/$as_me: WARNING: /" >&2
9309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 $as_echo_n "checking for $ac_header... " >&6; }
9311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9312 $as_echo_n "(cached) " >&6
9314 eval "$as_ac_Header=\$ac_header_preproc"
9316 ac_res=`eval 'as_val=${'$as_ac_Header'}
9317 $as_echo "$as_val"'`
9318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9319 $as_echo "$ac_res" >&6; }
9322 as_val=`eval 'as_val=${'$as_ac_Header'}
9323 $as_echo "$as_val"'`
9324 if test "x$as_val" = x""yes; then
9325 cat >>confdefs.h <<_ACEOF
9326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9337 for ac_header in stdint.h inttypes.h pwd.h wchar.h
9339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9342 $as_echo_n "checking for $ac_header... " >&6; }
9343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9344 $as_echo_n "(cached) " >&6
9346 ac_res=`eval 'as_val=${'$as_ac_Header'}
9347 $as_echo "$as_val"'`
9348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9349 $as_echo "$ac_res" >&6; }
9351 # Is the header compilable?
9352 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9353 $as_echo_n "checking $ac_header usability... " >&6; }
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9361 #include <$ac_header>
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9370 $as_echo "$ac_try_echo") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9373 grep -v '^ *+' conftest.er1 >conftest.err
9375 cat conftest.err >&5
9376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.$ac_objext; then
9381 ac_header_compiler=yes
9383 $as_echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_header_compiler=no
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391 $as_echo "$ac_header_compiler" >&6; }
9393 # Is the header present?
9394 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9395 $as_echo_n "checking $ac_header presence... " >&6; }
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 #include <$ac_header>
9404 if { (ac_try="$ac_cpp conftest.$ac_ext"
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9410 $as_echo "$ac_try_echo") >&5
9411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9413 grep -v '^ *+' conftest.er1 >conftest.err
9415 cat conftest.err >&5
9416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } >/dev/null && {
9418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9419 test ! -s conftest.err
9421 ac_header_preproc=yes
9423 $as_echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9426 ac_header_preproc=no
9429 rm -f conftest.err conftest.$ac_ext
9430 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9431 $as_echo "$ac_header_preproc" >&6; }
9433 # So? What about this header?
9434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9437 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9440 ac_header_preproc=yes
9443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9444 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9446 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9448 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9450 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9454 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9456 ## ------------------------------- ##
9457 ## Report this to bug-wget@gnu.org ##
9458 ## ------------------------------- ##
9460 ) | sed "s/^/$as_me: WARNING: /" >&2
9463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9464 $as_echo_n "checking for $ac_header... " >&6; }
9465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9466 $as_echo_n "(cached) " >&6
9468 eval "$as_ac_Header=\$ac_header_preproc"
9470 ac_res=`eval 'as_val=${'$as_ac_Header'}
9471 $as_echo "$as_val"'`
9472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9473 $as_echo "$ac_res" >&6; }
9476 as_val=`eval 'as_val=${'$as_ac_Header'}
9477 $as_echo "$as_val"'`
9478 if test "x$as_val" = x""yes; then
9479 cat >>confdefs.h <<_ACEOF
9480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9488 { $as_echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
9489 $as_echo_n "checking whether h_errno is declared... " >&6; }
9490 if test "${ac_cv_have_decl_h_errno+set}" = set; then
9491 $as_echo_n "(cached) " >&6
9493 cat >conftest.$ac_ext <<_ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9512 rm -f conftest.$ac_objext
9513 if { (ac_try="$ac_compile"
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9519 $as_echo "$ac_try_echo") >&5
9520 (eval "$ac_compile") 2>conftest.er1
9522 grep -v '^ *+' conftest.er1 >conftest.err
9524 cat conftest.err >&5
9525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest.$ac_objext; then
9530 ac_cv_have_decl_h_errno=yes
9532 $as_echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 ac_cv_have_decl_h_errno=no
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
9541 $as_echo "$ac_cv_have_decl_h_errno" >&6; }
9542 if test "x$ac_cv_have_decl_h_errno" = x""yes; then
9544 cat >>confdefs.h <<_ACEOF
9545 #define HAVE_DECL_H_ERRNO 1
9550 cat >>confdefs.h <<_ACEOF
9551 #define HAVE_DECL_H_ERRNO 0
9559 # The cast to long int works around a bug in the HP C Compiler
9560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9562 # This bug is HP SR number 8606223364.
9563 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9564 $as_echo_n "checking size of short... " >&6; }
9565 if test "${ac_cv_sizeof_short+set}" = set; then
9566 $as_echo_n "(cached) " >&6
9568 if test "$cross_compiling" = yes; then
9569 # Depending upon the size, compute the lo and hi bounds.
9570 cat >conftest.$ac_ext <<_ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 $ac_includes_default
9580 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
9587 rm -f conftest.$ac_objext
9588 if { (ac_try="$ac_compile"
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594 $as_echo "$ac_try_echo") >&5
9595 (eval "$ac_compile") 2>conftest.er1
9597 grep -v '^ *+' conftest.er1 >conftest.err
9599 cat conftest.err >&5
9600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && {
9602 test -z "$ac_c_werror_flag" ||
9603 test ! -s conftest.err
9604 } && test -s conftest.$ac_objext; then
9607 cat >conftest.$ac_ext <<_ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 $ac_includes_default
9617 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9631 $as_echo "$ac_try_echo") >&5
9632 (eval "$ac_compile") 2>conftest.er1
9634 grep -v '^ *+' conftest.er1 >conftest.err
9636 cat conftest.err >&5
9637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && {
9639 test -z "$ac_c_werror_flag" ||
9640 test ! -s conftest.err
9641 } && test -s conftest.$ac_objext; then
9642 ac_hi=$ac_mid; break
9644 $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_lo=`expr $ac_mid + 1`
9648 if test $ac_lo -le $ac_mid; then
9652 ac_mid=`expr 2 '*' $ac_mid + 1`
9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 $as_echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 cat >conftest.$ac_ext <<_ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667 $ac_includes_default
9671 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
9678 rm -f conftest.$ac_objext
9679 if { (ac_try="$ac_compile"
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9685 $as_echo "$ac_try_echo") >&5
9686 (eval "$ac_compile") 2>conftest.er1
9688 grep -v '^ *+' conftest.er1 >conftest.err
9690 cat conftest.err >&5
9691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest.$ac_objext; then
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 $ac_includes_default
9708 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
9715 rm -f conftest.$ac_objext
9716 if { (ac_try="$ac_compile"
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9722 $as_echo "$ac_try_echo") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9733 ac_lo=$ac_mid; break
9735 $as_echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_hi=`expr '(' $ac_mid ')' - 1`
9739 if test $ac_mid -le $ac_hi; then
9743 ac_mid=`expr 2 '*' $ac_mid`
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759 # Binary search between lo and hi bounds.
9760 while test "x$ac_lo" != "x$ac_hi"; do
9761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 $ac_includes_default
9772 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9779 rm -f conftest.$ac_objext
9780 if { (ac_try="$ac_compile"
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9786 $as_echo "$ac_try_echo") >&5
9787 (eval "$ac_compile") 2>conftest.er1
9789 grep -v '^ *+' conftest.er1 >conftest.err
9791 cat conftest.err >&5
9792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } && {
9794 test -z "$ac_c_werror_flag" ||
9795 test ! -s conftest.err
9796 } && test -s conftest.$ac_objext; then
9799 $as_echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802 ac_lo=`expr '(' $ac_mid ')' + 1`
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 ?*) ac_cv_sizeof_short=$ac_lo;;
9809 '') if test "$ac_cv_type_short" = yes; then
9810 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9812 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9813 See \`config.log' for more details." >&5
9814 $as_echo "$as_me: error: cannot compute sizeof (short)
9815 See \`config.log' for more details." >&2;}
9816 { (exit 77); exit 77; }; }; }
9818 ac_cv_sizeof_short=0
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 $ac_includes_default
9829 static long int longval () { return (long int) (sizeof (short)); }
9830 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
9837 FILE *f = fopen ("conftest.val", "w");
9840 if (((long int) (sizeof (short))) < 0)
9842 long int i = longval ();
9843 if (i != ((long int) (sizeof (short))))
9845 fprintf (f, "%ld", i);
9849 unsigned long int i = ulongval ();
9850 if (i != ((long int) (sizeof (short))))
9852 fprintf (f, "%lu", i);
9854 /* Do not output a trailing newline, as this causes \r\n confusion
9855 on some platforms. */
9856 return ferror (f) || fclose (f) != 0;
9862 rm -f conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870 (eval "$ac_link") 2>&5
9872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9879 $as_echo "$ac_try_echo") >&5
9880 (eval "$ac_try") 2>&5
9882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_sizeof_short=`cat conftest.val`
9886 $as_echo "$as_me: program exited with status $ac_status" >&5
9887 $as_echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9891 if test "$ac_cv_type_short" = yes; then
9892 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9894 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9895 See \`config.log' for more details." >&5
9896 $as_echo "$as_me: error: cannot compute sizeof (short)
9897 See \`config.log' for more details." >&2;}
9898 { (exit 77); exit 77; }; }; }
9900 ac_cv_sizeof_short=0
9903 rm -rf conftest.dSYM
9904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9908 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9909 $as_echo "$ac_cv_sizeof_short" >&6; }
9913 cat >>confdefs.h <<_ACEOF
9914 #define SIZEOF_SHORT $ac_cv_sizeof_short
9918 # The cast to long int works around a bug in the HP C Compiler
9919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9921 # This bug is HP SR number 8606223364.
9922 { $as_echo "$as_me:$LINENO: checking size of int" >&5
9923 $as_echo_n "checking size of int... " >&6; }
9924 if test "${ac_cv_sizeof_int+set}" = set; then
9925 $as_echo_n "(cached) " >&6
9927 if test "$cross_compiling" = yes; then
9928 # Depending upon the size, compute the lo and hi bounds.
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 $ac_includes_default
9939 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest.$ac_objext; then
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 $ac_includes_default
9976 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990 $as_echo "$ac_try_echo") >&5
9991 (eval "$ac_compile") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest.$ac_objext; then
10001 ac_hi=$ac_mid; break
10003 $as_echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 ac_lo=`expr $ac_mid + 1`
10007 if test $ac_lo -le $ac_mid; then
10011 ac_mid=`expr 2 '*' $ac_mid + 1`
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 $as_echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 $ac_includes_default
10030 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10044 $as_echo "$ac_try_echo") >&5
10045 (eval "$ac_compile") 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && {
10052 test -z "$ac_c_werror_flag" ||
10053 test ! -s conftest.err
10054 } && test -s conftest.$ac_objext; then
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 $ac_includes_default
10067 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
10074 rm -f conftest.$ac_objext
10075 if { (ac_try="$ac_compile"
10076 case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10081 $as_echo "$ac_try_echo") >&5
10082 (eval "$ac_compile") 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && {
10089 test -z "$ac_c_werror_flag" ||
10090 test ! -s conftest.err
10091 } && test -s conftest.$ac_objext; then
10092 ac_lo=$ac_mid; break
10094 $as_echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ac_hi=`expr '(' $ac_mid ')' - 1`
10098 if test $ac_mid -le $ac_hi; then
10102 ac_mid=`expr 2 '*' $ac_mid`
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108 $as_echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 # Binary search between lo and hi bounds.
10119 while test "x$ac_lo" != "x$ac_hi"; do
10120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10131 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
10138 rm -f conftest.$ac_objext
10139 if { (ac_try="$ac_compile"
10140 case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10145 $as_echo "$ac_try_echo") >&5
10146 (eval "$ac_compile") 2>conftest.er1
10148 grep -v '^ *+' conftest.er1 >conftest.err
10150 cat conftest.err >&5
10151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && {
10153 test -z "$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10155 } && test -s conftest.$ac_objext; then
10158 $as_echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_lo=`expr '(' $ac_mid ')' + 1`
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 ?*) ac_cv_sizeof_int=$ac_lo;;
10168 '') if test "$ac_cv_type_int" = yes; then
10169 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10171 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10172 See \`config.log' for more details." >&5
10173 $as_echo "$as_me: error: cannot compute sizeof (int)
10174 See \`config.log' for more details." >&2;}
10175 { (exit 77); exit 77; }; }; }
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 $ac_includes_default
10188 static long int longval () { return (long int) (sizeof (int)); }
10189 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
10191 #include <stdlib.h>
10196 FILE *f = fopen ("conftest.val", "w");
10199 if (((long int) (sizeof (int))) < 0)
10201 long int i = longval ();
10202 if (i != ((long int) (sizeof (int))))
10204 fprintf (f, "%ld", i);
10208 unsigned long int i = ulongval ();
10209 if (i != ((long int) (sizeof (int))))
10211 fprintf (f, "%lu", i);
10213 /* Do not output a trailing newline, as this causes \r\n confusion
10214 on some platforms. */
10215 return ferror (f) || fclose (f) != 0;
10221 rm -f conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229 (eval "$ac_link") 2>&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10233 { (case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10238 $as_echo "$ac_try_echo") >&5
10239 (eval "$ac_try") 2>&5
10241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_sizeof_int=`cat conftest.val`
10245 $as_echo "$as_me: program exited with status $ac_status" >&5
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ( exit $ac_status )
10250 if test "$ac_cv_type_int" = yes; then
10251 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10253 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10254 See \`config.log' for more details." >&5
10255 $as_echo "$as_me: error: cannot compute sizeof (int)
10256 See \`config.log' for more details." >&2;}
10257 { (exit 77); exit 77; }; }; }
10262 rm -rf conftest.dSYM
10263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10267 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10268 $as_echo "$ac_cv_sizeof_int" >&6; }
10272 cat >>confdefs.h <<_ACEOF
10273 #define SIZEOF_INT $ac_cv_sizeof_int
10277 # The cast to long int works around a bug in the HP C Compiler
10278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10280 # This bug is HP SR number 8606223364.
10281 { $as_echo "$as_me:$LINENO: checking size of long" >&5
10282 $as_echo_n "checking size of long... " >&6; }
10283 if test "${ac_cv_sizeof_long+set}" = set; then
10284 $as_echo_n "(cached) " >&6
10286 if test "$cross_compiling" = yes; then
10287 # Depending upon the size, compute the lo and hi bounds.
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 $ac_includes_default
10298 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
10305 rm -f conftest.$ac_objext
10306 if { (ac_try="$ac_compile"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10312 $as_echo "$ac_try_echo") >&5
10313 (eval "$ac_compile") 2>conftest.er1
10315 grep -v '^ *+' conftest.er1 >conftest.err
10317 cat conftest.err >&5
10318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest.$ac_objext; then
10325 cat >conftest.$ac_ext <<_ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 $ac_includes_default
10335 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
10342 rm -f conftest.$ac_objext
10343 if { (ac_try="$ac_compile"
10344 case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10349 $as_echo "$ac_try_echo") >&5
10350 (eval "$ac_compile") 2>conftest.er1
10352 grep -v '^ *+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest.$ac_objext; then
10360 ac_hi=$ac_mid; break
10362 $as_echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_lo=`expr $ac_mid + 1`
10366 if test $ac_lo -le $ac_mid; then
10370 ac_mid=`expr 2 '*' $ac_mid + 1`
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 $as_echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10389 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
10396 rm -f conftest.$ac_objext
10397 if { (ac_try="$ac_compile"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10403 $as_echo "$ac_try_echo") >&5
10404 (eval "$ac_compile") 2>conftest.er1
10406 grep -v '^ *+' conftest.er1 >conftest.err
10408 cat conftest.err >&5
10409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && {
10411 test -z "$ac_c_werror_flag" ||
10412 test ! -s conftest.err
10413 } && test -s conftest.$ac_objext; then
10416 cat >conftest.$ac_ext <<_ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 $ac_includes_default
10426 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
10433 rm -f conftest.$ac_objext
10434 if { (ac_try="$ac_compile"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10440 $as_echo "$ac_try_echo") >&5
10441 (eval "$ac_compile") 2>conftest.er1
10443 grep -v '^ *+' conftest.er1 >conftest.err
10445 cat conftest.err >&5
10446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && {
10448 test -z "$ac_c_werror_flag" ||
10449 test ! -s conftest.err
10450 } && test -s conftest.$ac_objext; then
10451 ac_lo=$ac_mid; break
10453 $as_echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ac_hi=`expr '(' $ac_mid ')' - 1`
10457 if test $ac_mid -le $ac_hi; then
10461 ac_mid=`expr 2 '*' $ac_mid`
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 $as_echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10477 # Binary search between lo and hi bounds.
10478 while test "x$ac_lo" != "x$ac_hi"; do
10479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10480 cat >conftest.$ac_ext <<_ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 $ac_includes_default
10490 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10504 $as_echo "$ac_try_echo") >&5
10505 (eval "$ac_compile") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1 >conftest.err
10509 cat conftest.err >&5
10510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest.$ac_objext; then
10517 $as_echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_lo=`expr '(' $ac_mid ')' + 1`
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 ?*) ac_cv_sizeof_long=$ac_lo;;
10527 '') if test "$ac_cv_type_long" = yes; then
10528 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10530 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10531 See \`config.log' for more details." >&5
10532 $as_echo "$as_me: error: cannot compute sizeof (long)
10533 See \`config.log' for more details." >&2;}
10534 { (exit 77); exit 77; }; }; }
10536 ac_cv_sizeof_long=0
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 $ac_includes_default
10547 static long int longval () { return (long int) (sizeof (long)); }
10548 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
10550 #include <stdlib.h>
10555 FILE *f = fopen ("conftest.val", "w");
10558 if (((long int) (sizeof (long))) < 0)
10560 long int i = longval ();
10561 if (i != ((long int) (sizeof (long))))
10563 fprintf (f, "%ld", i);
10567 unsigned long int i = ulongval ();
10568 if (i != ((long int) (sizeof (long))))
10570 fprintf (f, "%lu", i);
10572 /* Do not output a trailing newline, as this causes \r\n confusion
10573 on some platforms. */
10574 return ferror (f) || fclose (f) != 0;
10580 rm -f conftest$ac_exeext
10581 if { (ac_try="$ac_link"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587 $as_echo "$ac_try_echo") >&5
10588 (eval "$ac_link") 2>&5
10590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10592 { (case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597 $as_echo "$ac_try_echo") >&5
10598 (eval "$ac_try") 2>&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_cv_sizeof_long=`cat conftest.val`
10604 $as_echo "$as_me: program exited with status $ac_status" >&5
10605 $as_echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ( exit $ac_status )
10609 if test "$ac_cv_type_long" = yes; then
10610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10612 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10613 See \`config.log' for more details." >&5
10614 $as_echo "$as_me: error: cannot compute sizeof (long)
10615 See \`config.log' for more details." >&2;}
10616 { (exit 77); exit 77; }; }; }
10618 ac_cv_sizeof_long=0
10621 rm -rf conftest.dSYM
10622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10626 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10627 $as_echo "$ac_cv_sizeof_long" >&6; }
10631 cat >>confdefs.h <<_ACEOF
10632 #define SIZEOF_LONG $ac_cv_sizeof_long
10636 # The cast to long int works around a bug in the HP C Compiler
10637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10639 # This bug is HP SR number 8606223364.
10640 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
10641 $as_echo_n "checking size of long long... " >&6; }
10642 if test "${ac_cv_sizeof_long_long+set}" = set; then
10643 $as_echo_n "(cached) " >&6
10645 if test "$cross_compiling" = yes; then
10646 # Depending upon the size, compute the lo and hi bounds.
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 $ac_includes_default
10657 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
10664 rm -f conftest.$ac_objext
10665 if { (ac_try="$ac_compile"
10666 case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10671 $as_echo "$ac_try_echo") >&5
10672 (eval "$ac_compile") 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest.$ac_objext; then
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 $ac_includes_default
10694 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
10701 rm -f conftest.$ac_objext
10702 if { (ac_try="$ac_compile"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709 (eval "$ac_compile") 2>conftest.er1
10711 grep -v '^ *+' conftest.er1 >conftest.err
10713 cat conftest.err >&5
10714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_c_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest.$ac_objext; then
10719 ac_hi=$ac_mid; break
10721 $as_echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_lo=`expr $ac_mid + 1`
10725 if test $ac_lo -le $ac_mid; then
10729 ac_mid=`expr 2 '*' $ac_mid + 1`
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 cat >conftest.$ac_ext <<_ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 $ac_includes_default
10748 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
10755 rm -f conftest.$ac_objext
10756 if { (ac_try="$ac_compile"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10762 $as_echo "$ac_try_echo") >&5
10763 (eval "$ac_compile") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest.$ac_objext; then
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10785 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10799 $as_echo "$ac_try_echo") >&5
10800 (eval "$ac_compile") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest.$ac_objext; then
10810 ac_lo=$ac_mid; break
10812 $as_echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_hi=`expr '(' $ac_mid ')' - 1`
10816 if test $ac_mid -le $ac_hi; then
10820 ac_mid=`expr 2 '*' $ac_mid`
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826 $as_echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 # Binary search between lo and hi bounds.
10837 while test "x$ac_lo" != "x$ac_hi"; do
10838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 $ac_includes_default
10849 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
10856 rm -f conftest.$ac_objext
10857 if { (ac_try="$ac_compile"
10858 case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10863 $as_echo "$ac_try_echo") >&5
10864 (eval "$ac_compile") 2>conftest.er1
10866 grep -v '^ *+' conftest.er1 >conftest.err
10868 cat conftest.err >&5
10869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } && {
10871 test -z "$ac_c_werror_flag" ||
10872 test ! -s conftest.err
10873 } && test -s conftest.$ac_objext; then
10876 $as_echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_lo=`expr '(' $ac_mid ')' + 1`
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10885 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10886 '') if test "$ac_cv_type_long_long" = yes; then
10887 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10889 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10890 See \`config.log' for more details." >&5
10891 $as_echo "$as_me: error: cannot compute sizeof (long long)
10892 See \`config.log' for more details." >&2;}
10893 { (exit 77); exit 77; }; }; }
10895 ac_cv_sizeof_long_long=0
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10906 static long int longval () { return (long int) (sizeof (long long)); }
10907 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
10909 #include <stdlib.h>
10914 FILE *f = fopen ("conftest.val", "w");
10917 if (((long int) (sizeof (long long))) < 0)
10919 long int i = longval ();
10920 if (i != ((long int) (sizeof (long long))))
10922 fprintf (f, "%ld", i);
10926 unsigned long int i = ulongval ();
10927 if (i != ((long int) (sizeof (long long))))
10929 fprintf (f, "%lu", i);
10931 /* Do not output a trailing newline, as this causes \r\n confusion
10932 on some platforms. */
10933 return ferror (f) || fclose (f) != 0;
10939 rm -f conftest$ac_exeext
10940 if { (ac_try="$ac_link"
10941 case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10946 $as_echo "$ac_try_echo") >&5
10947 (eval "$ac_link") 2>&5
10949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10956 $as_echo "$ac_try_echo") >&5
10957 (eval "$ac_try") 2>&5
10959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_sizeof_long_long=`cat conftest.val`
10963 $as_echo "$as_me: program exited with status $ac_status" >&5
10964 $as_echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ( exit $ac_status )
10968 if test "$ac_cv_type_long_long" = yes; then
10969 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10971 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10972 See \`config.log' for more details." >&5
10973 $as_echo "$as_me: error: cannot compute sizeof (long long)
10974 See \`config.log' for more details." >&2;}
10975 { (exit 77); exit 77; }; }; }
10977 ac_cv_sizeof_long_long=0
10980 rm -rf conftest.dSYM
10981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10985 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10986 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10990 cat >>confdefs.h <<_ACEOF
10991 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10995 # The cast to long int works around a bug in the HP C Compiler
10996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10998 # This bug is HP SR number 8606223364.
10999 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
11000 $as_echo_n "checking size of void *... " >&6; }
11001 if test "${ac_cv_sizeof_void_p+set}" = set; then
11002 $as_echo_n "(cached) " >&6
11004 if test "$cross_compiling" = yes; then
11005 # Depending upon the size, compute the lo and hi bounds.
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 $ac_includes_default
11016 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030 $as_echo "$ac_try_echo") >&5
11031 (eval "$ac_compile") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1 >conftest.err
11035 cat conftest.err >&5
11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest.$ac_objext; then
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 $ac_includes_default
11053 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_compile") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest.$ac_objext; then
11078 ac_hi=$ac_mid; break
11080 $as_echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_lo=`expr $ac_mid + 1`
11084 if test $ac_lo -le $ac_mid; then
11088 ac_mid=`expr 2 '*' $ac_mid + 1`
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 $as_echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 cat >conftest.$ac_ext <<_ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 $ac_includes_default
11107 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
11114 rm -f conftest.$ac_objext
11115 if { (ac_try="$ac_compile"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121 $as_echo "$ac_try_echo") >&5
11122 (eval "$ac_compile") 2>conftest.er1
11124 grep -v '^ *+' conftest.er1 >conftest.err
11126 cat conftest.err >&5
11127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest.$ac_objext; then
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 $ac_includes_default
11144 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158 $as_echo "$ac_try_echo") >&5
11159 (eval "$ac_compile") 2>conftest.er1
11161 grep -v '^ *+' conftest.er1 >conftest.err
11163 cat conftest.err >&5
11164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest.$ac_objext; then
11169 ac_lo=$ac_mid; break
11171 $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_hi=`expr '(' $ac_mid ')' - 1`
11175 if test $ac_mid -le $ac_hi; then
11179 ac_mid=`expr 2 '*' $ac_mid`
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 $as_echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 # Binary search between lo and hi bounds.
11196 while test "x$ac_lo" != "x$ac_hi"; do
11197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 $ac_includes_default
11208 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11215 rm -f conftest.$ac_objext
11216 if { (ac_try="$ac_compile"
11217 case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11222 $as_echo "$ac_try_echo") >&5
11223 (eval "$ac_compile") 2>conftest.er1
11225 grep -v '^ *+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } && {
11230 test -z "$ac_c_werror_flag" ||
11231 test ! -s conftest.err
11232 } && test -s conftest.$ac_objext; then
11235 $as_echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_lo=`expr '(' $ac_mid ')' + 1`
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11245 '') if test "$ac_cv_type_void_p" = yes; then
11246 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11248 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11249 See \`config.log' for more details." >&5
11250 $as_echo "$as_me: error: cannot compute sizeof (void *)
11251 See \`config.log' for more details." >&2;}
11252 { (exit 77); exit 77; }; }; }
11254 ac_cv_sizeof_void_p=0
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11265 static long int longval () { return (long int) (sizeof (void *)); }
11266 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
11268 #include <stdlib.h>
11273 FILE *f = fopen ("conftest.val", "w");
11276 if (((long int) (sizeof (void *))) < 0)
11278 long int i = longval ();
11279 if (i != ((long int) (sizeof (void *))))
11281 fprintf (f, "%ld", i);
11285 unsigned long int i = ulongval ();
11286 if (i != ((long int) (sizeof (void *))))
11288 fprintf (f, "%lu", i);
11290 /* Do not output a trailing newline, as this causes \r\n confusion
11291 on some platforms. */
11292 return ferror (f) || fclose (f) != 0;
11298 rm -f conftest$ac_exeext
11299 if { (ac_try="$ac_link"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305 $as_echo "$ac_try_echo") >&5
11306 (eval "$ac_link") 2>&5
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316 (eval "$ac_try") 2>&5
11318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_cv_sizeof_void_p=`cat conftest.val`
11322 $as_echo "$as_me: program exited with status $ac_status" >&5
11323 $as_echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 ( exit $ac_status )
11327 if test "$ac_cv_type_void_p" = yes; then
11328 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11330 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11331 See \`config.log' for more details." >&5
11332 $as_echo "$as_me: error: cannot compute sizeof (void *)
11333 See \`config.log' for more details." >&2;}
11334 { (exit 77); exit 77; }; }; }
11336 ac_cv_sizeof_void_p=0
11339 rm -rf conftest.dSYM
11340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11344 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
11345 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11349 cat >>confdefs.h <<_ACEOF
11350 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11355 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11356 $as_echo_n "checking for size_t... " >&6; }
11357 if test "${ac_cv_type_size_t+set}" = set; then
11358 $as_echo_n "(cached) " >&6
11360 ac_cv_type_size_t=no
11361 cat >conftest.$ac_ext <<_ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 $ac_includes_default
11371 if (sizeof (size_t))
11377 rm -f conftest.$ac_objext
11378 if { (ac_try="$ac_compile"
11379 case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385 (eval "$ac_compile") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest.$ac_objext; then
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 $ac_includes_default
11405 if (sizeof ((size_t)))
11411 rm -f conftest.$ac_objext
11412 if { (ac_try="$ac_compile"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11418 $as_echo "$ac_try_echo") >&5
11419 (eval "$ac_compile") 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } && {
11426 test -z "$ac_c_werror_flag" ||
11427 test ! -s conftest.err
11428 } && test -s conftest.$ac_objext; then
11431 $as_echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_cv_type_size_t=yes
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 $as_echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11448 $as_echo "$ac_cv_type_size_t" >&6; }
11449 if test "x$ac_cv_type_size_t" = x""yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define size_t unsigned int
11459 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11460 $as_echo_n "checking for pid_t... " >&6; }
11461 if test "${ac_cv_type_pid_t+set}" = set; then
11462 $as_echo_n "(cached) " >&6
11464 ac_cv_type_pid_t=no
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11475 if (sizeof (pid_t))
11481 rm -f conftest.$ac_objext
11482 if { (ac_try="$ac_compile"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11488 $as_echo "$ac_try_echo") >&5
11489 (eval "$ac_compile") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest.$ac_objext; then
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11509 if (sizeof ((pid_t)))
11515 rm -f conftest.$ac_objext
11516 if { (ac_try="$ac_compile"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523 (eval "$ac_compile") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest.$ac_objext; then
11535 $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_cv_type_pid_t=yes
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11543 $as_echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11552 $as_echo "$ac_cv_type_pid_t" >&6; }
11553 if test "x$ac_cv_type_pid_t" = x""yes; then
11557 cat >>confdefs.h <<_ACEOF
11563 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11564 $as_echo_n "checking for uint32_t... " >&6; }
11565 if test "${ac_cv_type_uint32_t+set}" = set; then
11566 $as_echo_n "(cached) " >&6
11568 ac_cv_type_uint32_t=no
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 $ac_includes_default
11579 if (sizeof (uint32_t))
11585 rm -f conftest.$ac_objext
11586 if { (ac_try="$ac_compile"
11587 case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11592 $as_echo "$ac_try_echo") >&5
11593 (eval "$ac_compile") 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_c_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest.$ac_objext; then
11603 cat >conftest.$ac_ext <<_ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 $ac_includes_default
11613 if (sizeof ((uint32_t)))
11619 rm -f conftest.$ac_objext
11620 if { (ac_try="$ac_compile"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11626 $as_echo "$ac_try_echo") >&5
11627 (eval "$ac_compile") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && {
11634 test -z "$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11636 } && test -s conftest.$ac_objext; then
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_cv_type_uint32_t=yes
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 $as_echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11656 $as_echo "$ac_cv_type_uint32_t" >&6; }
11657 if test "x$ac_cv_type_uint32_t" = x""yes; then
11659 cat >>confdefs.h <<_ACEOF
11660 #define HAVE_UINT32_T 1
11665 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11666 $as_echo_n "checking for uintptr_t... " >&6; }
11667 if test "${ac_cv_type_uintptr_t+set}" = set; then
11668 $as_echo_n "(cached) " >&6
11670 ac_cv_type_uintptr_t=no
11671 cat >conftest.$ac_ext <<_ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 $ac_includes_default
11681 if (sizeof (uintptr_t))
11687 rm -f conftest.$ac_objext
11688 if { (ac_try="$ac_compile"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11694 $as_echo "$ac_try_echo") >&5
11695 (eval "$ac_compile") 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest.$ac_objext; then
11705 cat >conftest.$ac_ext <<_ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 $ac_includes_default
11715 if (sizeof ((uintptr_t)))
11721 rm -f conftest.$ac_objext
11722 if { (ac_try="$ac_compile"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728 $as_echo "$ac_try_echo") >&5
11729 (eval "$ac_compile") 2>conftest.er1
11731 grep -v '^ *+' conftest.er1 >conftest.err
11733 cat conftest.err >&5
11734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && {
11736 test -z "$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 } && test -s conftest.$ac_objext; then
11741 $as_echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 ac_cv_type_uintptr_t=yes
11747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749 $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11758 $as_echo "$ac_cv_type_uintptr_t" >&6; }
11759 if test "x$ac_cv_type_uintptr_t" = x""yes; then
11761 cat >>confdefs.h <<_ACEOF
11762 #define HAVE_UINTPTR_T 1
11767 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11768 $as_echo_n "checking for intptr_t... " >&6; }
11769 if test "${ac_cv_type_intptr_t+set}" = set; then
11770 $as_echo_n "(cached) " >&6
11772 ac_cv_type_intptr_t=no
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 $ac_includes_default
11783 if (sizeof (intptr_t))
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796 $as_echo "$ac_try_echo") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 $ac_includes_default
11817 if (sizeof ((intptr_t)))
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831 (eval "$ac_compile") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && {
11838 test -z "$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11840 } && test -s conftest.$ac_objext; then
11843 $as_echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_cv_type_intptr_t=yes
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 $as_echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11860 $as_echo "$ac_cv_type_intptr_t" >&6; }
11861 if test "x$ac_cv_type_intptr_t" = x""yes; then
11863 cat >>confdefs.h <<_ACEOF
11864 #define HAVE_INTPTR_T 1
11869 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11870 $as_echo_n "checking for int64_t... " >&6; }
11871 if test "${ac_cv_type_int64_t+set}" = set; then
11872 $as_echo_n "(cached) " >&6
11874 ac_cv_type_int64_t=no
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 $ac_includes_default
11885 if (sizeof (int64_t))
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898 $as_echo "$ac_try_echo") >&5
11899 (eval "$ac_compile") 2>conftest.er1
11901 grep -v '^ *+' conftest.er1 >conftest.err
11903 cat conftest.err >&5
11904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } && {
11906 test -z "$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11908 } && test -s conftest.$ac_objext; then
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 $ac_includes_default
11919 if (sizeof ((int64_t)))
11925 rm -f conftest.$ac_objext
11926 if { (ac_try="$ac_compile"
11927 case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11932 $as_echo "$ac_try_echo") >&5
11933 (eval "$ac_compile") 2>conftest.er1
11935 grep -v '^ *+' conftest.er1 >conftest.err
11937 cat conftest.err >&5
11938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } && {
11940 test -z "$ac_c_werror_flag" ||
11941 test ! -s conftest.err
11942 } && test -s conftest.$ac_objext; then
11945 $as_echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ac_cv_type_int64_t=yes
11951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 $as_echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11962 $as_echo "$ac_cv_type_int64_t" >&6; }
11963 if test "x$ac_cv_type_int64_t" = x""yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define HAVE_INT64_T 1
11972 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
11973 $as_echo_n "checking for sig_atomic_t... " >&6; }
11974 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
11975 $as_echo_n "(cached) " >&6
11977 ac_cv_type_sig_atomic_t=no
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11986 #include <sys/types.h>
11987 #if HAVE_INTTYPES_H
11988 # include <inttypes.h>
11990 #include <signal.h>
11996 if (sizeof (sig_atomic_t))
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12028 #include <sys/types.h>
12029 #if HAVE_INTTYPES_H
12030 # include <inttypes.h>
12032 #include <signal.h>
12038 if (sizeof ((sig_atomic_t)))
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051 $as_echo "$ac_try_echo") >&5
12052 (eval "$ac_compile") 2>conftest.er1
12054 grep -v '^ *+' conftest.er1 >conftest.err
12056 cat conftest.err >&5
12057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest.$ac_objext; then
12064 $as_echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_type_sig_atomic_t=yes
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12081 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
12082 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_SIG_ATOMIC_T 1
12100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12101 # for constant arguments. Useless!
12102 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12103 $as_echo_n "checking for working alloca.h... " >&6; }
12104 if test "${ac_cv_working_alloca_h+set}" = set; then
12105 $as_echo_n "(cached) " >&6
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 #include <alloca.h>
12117 char *p = (char *) alloca (2 * sizeof (int));
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12130 $as_echo "$ac_try_echo") >&5
12131 (eval "$ac_link") 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && {
12138 test -z "$ac_c_werror_flag" ||
12139 test ! -s conftest.err
12140 } && test -s conftest$ac_exeext && {
12141 test "$cross_compiling" = yes ||
12142 $as_test_x conftest$ac_exeext
12144 ac_cv_working_alloca_h=yes
12146 $as_echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ac_cv_working_alloca_h=no
12152 rm -rf conftest.dSYM
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154 conftest$ac_exeext conftest.$ac_ext
12156 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12157 $as_echo "$ac_cv_working_alloca_h" >&6; }
12158 if test $ac_cv_working_alloca_h = yes; then
12160 cat >>confdefs.h <<\_ACEOF
12161 #define HAVE_ALLOCA_H 1
12166 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12167 $as_echo_n "checking for alloca... " >&6; }
12168 if test "${ac_cv_func_alloca_works+set}" = set; then
12169 $as_echo_n "(cached) " >&6
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12178 # define alloca __builtin_alloca
12181 # include <malloc.h>
12182 # define alloca _alloca
12184 # ifdef HAVE_ALLOCA_H
12185 # include <alloca.h>
12190 # ifndef alloca /* predefined by HP cc +Olibcalls */
12201 char *p = (char *) alloca (1);
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215 (eval "$ac_link") 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && {
12222 test -z "$ac_c_werror_flag" ||
12223 test ! -s conftest.err
12224 } && test -s conftest$ac_exeext && {
12225 test "$cross_compiling" = yes ||
12226 $as_test_x conftest$ac_exeext
12228 ac_cv_func_alloca_works=yes
12230 $as_echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_func_alloca_works=no
12236 rm -rf conftest.dSYM
12237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238 conftest$ac_exeext conftest.$ac_ext
12240 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12241 $as_echo "$ac_cv_func_alloca_works" >&6; }
12243 if test $ac_cv_func_alloca_works = yes; then
12245 cat >>confdefs.h <<\_ACEOF
12246 #define HAVE_ALLOCA 1
12250 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12251 # that cause trouble. Some versions do not even contain alloca or
12252 # contain a buggy version. If you still want to use their alloca,
12253 # use ar to extract alloca.o from them instead of compiling alloca.c.
12259 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12261 cat >>confdefs.h <<\_ACEOF
12266 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12267 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12268 if test "${ac_cv_os_cray+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 #if defined CRAY && ! defined CRAY2
12284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12285 $EGREP "webecray" >/dev/null 2>&1; then
12293 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12294 $as_echo "$ac_cv_os_cray" >&6; }
12295 if test $ac_cv_os_cray = yes; then
12296 for ac_func in _getb67 GETB67 getb67; do
12297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12299 $as_echo_n "checking for $ac_func... " >&6; }
12300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12301 $as_echo_n "(cached) " >&6
12303 cat >conftest.$ac_ext <<_ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12311 #define $ac_func innocuous_$ac_func
12313 /* System header to define __stub macros and hopefully few prototypes,
12314 which can conflict with char $ac_func (); below.
12315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12316 <limits.h> exists even on freestanding compilers. */
12319 # include <limits.h>
12321 # include <assert.h>
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12333 /* The GNU C library defines this for functions which it implements
12334 to always fail with ENOSYS. Some functions are actually named
12335 something starting with __ and the normal name is an alias. */
12336 #if defined __stub_$ac_func || defined __stub___$ac_func
12343 return $ac_func ();
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (ac_try="$ac_link"
12350 case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12355 $as_echo "$ac_try_echo") >&5
12356 (eval "$ac_link") 2>conftest.er1
12358 grep -v '^ *+' conftest.er1 >conftest.err
12360 cat conftest.err >&5
12361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } && {
12363 test -z "$ac_c_werror_flag" ||
12364 test ! -s conftest.err
12365 } && test -s conftest$ac_exeext && {
12366 test "$cross_compiling" = yes ||
12367 $as_test_x conftest$ac_exeext
12369 eval "$as_ac_var=yes"
12371 $as_echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 eval "$as_ac_var=no"
12377 rm -rf conftest.dSYM
12378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12379 conftest$ac_exeext conftest.$ac_ext
12381 ac_res=`eval 'as_val=${'$as_ac_var'}
12382 $as_echo "$as_val"'`
12383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12384 $as_echo "$ac_res" >&6; }
12385 as_val=`eval 'as_val=${'$as_ac_var'}
12386 $as_echo "$as_val"'`
12387 if test "x$as_val" = x""yes; then
12389 cat >>confdefs.h <<_ACEOF
12390 #define CRAY_STACKSEG_END $ac_func
12399 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12400 $as_echo_n "checking stack direction for C alloca... " >&6; }
12401 if test "${ac_cv_c_stack_direction+set}" = set; then
12402 $as_echo_n "(cached) " >&6
12404 if test "$cross_compiling" = yes; then
12405 ac_cv_c_stack_direction=0
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12415 find_stack_direction ()
12417 static char *addr = 0;
12422 return find_stack_direction ();
12425 return (&dummy > addr) ? 1 : -1;
12431 return find_stack_direction () < 0;
12434 rm -f conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12441 $as_echo "$ac_try_echo") >&5
12442 (eval "$ac_link") 2>&5
12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12446 { (case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12451 $as_echo "$ac_try_echo") >&5
12452 (eval "$ac_try") 2>&5
12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_c_stack_direction=1
12458 $as_echo "$as_me: program exited with status $ac_status" >&5
12459 $as_echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ( exit $ac_status )
12463 ac_cv_c_stack_direction=-1
12465 rm -rf conftest.dSYM
12466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12471 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12472 $as_echo "$ac_cv_c_stack_direction" >&6; }
12474 cat >>confdefs.h <<_ACEOF
12475 #define STACK_DIRECTION $ac_cv_c_stack_direction
12483 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12484 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12485 if test "${gl_cv_have_include_next+set}" = set; then
12486 $as_echo_n "(cached) " >&6
12488 rm -rf conftestd1a conftestd1b conftestd2
12489 mkdir conftestd1a conftestd1b conftestd2
12490 cat <<EOF > conftestd1a/conftest.h
12491 #define DEFINED_IN_CONFTESTD1
12492 #include_next <conftest.h>
12493 #ifdef DEFINED_IN_CONFTESTD2
12496 #error "include_next doesn't work"
12499 cat <<EOF > conftestd1b/conftest.h
12500 #define DEFINED_IN_CONFTESTD1
12502 #include_next <conftest.h>
12503 #ifdef DEFINED_IN_CONFTESTD2
12506 #error "include_next doesn't work"
12509 cat <<EOF > conftestd2/conftest.h
12510 #ifndef DEFINED_IN_CONFTESTD1
12511 #error "include_next test doesn't work"
12513 #define DEFINED_IN_CONFTESTD2
12515 gl_save_CPPFLAGS="$CPPFLAGS"
12516 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #include <conftest.h>
12520 rm -f conftest.$ac_objext
12521 if { (ac_try="$ac_compile"
12522 case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12527 $as_echo "$ac_try_echo") >&5
12528 (eval "$ac_compile") 2>conftest.er1
12530 grep -v '^ *+' conftest.er1 >conftest.err
12532 cat conftest.err >&5
12533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest.$ac_objext; then
12538 gl_cv_have_include_next=yes
12540 $as_echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12544 cat >conftest.$ac_ext <<_ACEOF
12545 #include <conftest.h>
12547 rm -f conftest.$ac_objext
12548 if { (ac_try="$ac_compile"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12554 $as_echo "$ac_try_echo") >&5
12555 (eval "$ac_compile") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest.$ac_objext; then
12565 gl_cv_have_include_next=buggy
12567 $as_echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12570 gl_cv_have_include_next=no
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 CPPFLAGS="$gl_save_CPPFLAGS"
12579 rm -rf conftestd1a conftestd1b conftestd2
12582 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12583 $as_echo "$gl_cv_have_include_next" >&6; }
12584 PRAGMA_SYSTEM_HEADER=
12585 if test $gl_cv_have_include_next = yes; then
12586 INCLUDE_NEXT=include_next
12587 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12588 if test -n "$GCC"; then
12589 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12592 if test $gl_cv_have_include_next = buggy; then
12593 INCLUDE_NEXT=include
12594 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12596 INCLUDE_NEXT=include
12597 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12608 for ac_header in $ac_header_list
12610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12613 $as_echo_n "checking for $ac_header... " >&6; }
12614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12615 $as_echo_n "(cached) " >&6
12617 ac_res=`eval 'as_val=${'$as_ac_Header'}
12618 $as_echo "$as_val"'`
12619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12620 $as_echo "$ac_res" >&6; }
12622 # Is the header compilable?
12623 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12624 $as_echo_n "checking $ac_header usability... " >&6; }
12625 cat >conftest.$ac_ext <<_ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 #include <$ac_header>
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 $as_echo "$ac_try_echo") >&5
12642 (eval "$ac_compile") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest.$ac_objext; then
12652 ac_header_compiler=yes
12654 $as_echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 ac_header_compiler=no
12660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12662 $as_echo "$ac_header_compiler" >&6; }
12664 # Is the header present?
12665 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12666 $as_echo_n "checking $ac_header presence... " >&6; }
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 #include <$ac_header>
12675 if { (ac_try="$ac_cpp conftest.$ac_ext"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12681 $as_echo "$ac_try_echo") >&5
12682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } >/dev/null && {
12689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12690 test ! -s conftest.err
12692 ac_header_preproc=yes
12694 $as_echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_header_preproc=no
12700 rm -f conftest.err conftest.$ac_ext
12701 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12702 $as_echo "$ac_header_preproc" >&6; }
12704 # So? What about this header?
12705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12708 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12711 ac_header_preproc=yes
12714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12715 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12717 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12719 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12721 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12725 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12727 ## ------------------------------- ##
12728 ## Report this to bug-wget@gnu.org ##
12729 ## ------------------------------- ##
12731 ) | sed "s/^/$as_me: WARNING: /" >&2
12734 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12735 $as_echo_n "checking for $ac_header... " >&6; }
12736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12737 $as_echo_n "(cached) " >&6
12739 eval "$as_ac_Header=\$ac_header_preproc"
12741 ac_res=`eval 'as_val=${'$as_ac_Header'}
12742 $as_echo "$as_val"'`
12743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12744 $as_echo "$ac_res" >&6; }
12747 as_val=`eval 'as_val=${'$as_ac_Header'}
12748 $as_echo "$as_val"'`
12749 if test "x$as_val" = x""yes; then
12750 cat >>confdefs.h <<_ACEOF
12751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12762 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12763 $as_echo_n "checking for complete errno.h... " >&6; }
12764 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12768 cat >conftest.$ac_ext <<_ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12776 #if !defined ENOMSG
12782 #if !defined ENOLINK
12785 #if !defined EPROTO
12788 #if !defined EMULTIHOP
12791 #if !defined EBADMSG
12794 #if !defined EOVERFLOW
12797 #if !defined ENOTSUP
12800 #if !defined ESTALE
12803 #if !defined ECANCELED
12808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809 $EGREP "booboo" >/dev/null 2>&1; then
12810 gl_cv_header_errno_h_complete=no
12812 gl_cv_header_errno_h_complete=yes
12818 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12819 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12820 if test $gl_cv_header_errno_h_complete = yes; then
12834 if test $gl_cv_have_include_next = yes; then
12835 gl_cv_next_errno_h='<'errno.h'>'
12837 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12838 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12839 if test "${gl_cv_next_errno_h+set}" = set; then
12840 $as_echo_n "(cached) " >&6
12843 if test $ac_cv_header_errno_h = yes; then
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12854 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12855 *) gl_absname_cpp="$ac_cpp" ;;
12857 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12858 sed -n '\#/errno.h#{
12859 s#.*"\(.*/errno.h\)".*#\1#
12865 gl_cv_next_errno_h='<'errno.h'>'
12869 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12870 $as_echo "$gl_cv_next_errno_h" >&6; }
12872 NEXT_ERRNO_H=$gl_cv_next_errno_h
12874 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12876 gl_next_as_first_directive='<'errno.h'>'
12878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12879 gl_next_as_first_directive=$gl_cv_next_errno_h
12881 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12889 if test -n "$ERRNO_H"; then
12890 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12891 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12892 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12893 $as_echo_n "(cached) " >&6
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12910 $EGREP "yes" >/dev/null 2>&1; then
12911 gl_cv_header_errno_h_EMULTIHOP=yes
12913 gl_cv_header_errno_h_EMULTIHOP=no
12917 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12925 #define _XOPEN_SOURCE_EXTENDED 1
12932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12933 $EGREP "yes" >/dev/null 2>&1; then
12934 gl_cv_header_errno_h_EMULTIHOP=hidden
12938 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12939 if test "$cross_compiling" = yes; then
12940 # Depending upon the size, compute the lo and hi bounds.
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 #define _XOPEN_SOURCE_EXTENDED 1
12950 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12952 #include <stdlib.h>
12957 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12964 rm -f conftest.$ac_objext
12965 if { (ac_try="$ac_compile"
12966 case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971 $as_echo "$ac_try_echo") >&5
12972 (eval "$ac_compile") 2>conftest.er1
12974 grep -v '^ *+' conftest.er1 >conftest.err
12976 cat conftest.err >&5
12977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } && {
12979 test -z "$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12981 } && test -s conftest.$ac_objext; then
12984 cat >conftest.$ac_ext <<_ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12991 #define _XOPEN_SOURCE_EXTENDED 1
12993 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12995 #include <stdlib.h>
13000 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014 $as_echo "$ac_try_echo") >&5
13015 (eval "$ac_compile") 2>conftest.er1
13017 grep -v '^ *+' conftest.er1 >conftest.err
13019 cat conftest.err >&5
13020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } && {
13022 test -z "$ac_c_werror_flag" ||
13023 test ! -s conftest.err
13024 } && test -s conftest.$ac_objext; then
13025 ac_hi=$ac_mid; break
13027 $as_echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 ac_lo=`expr $ac_mid + 1`
13031 if test $ac_lo -le $ac_mid; then
13035 ac_mid=`expr 2 '*' $ac_mid + 1`
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041 $as_echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 cat >conftest.$ac_ext <<_ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13051 #define _XOPEN_SOURCE_EXTENDED 1
13053 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13055 #include <stdlib.h>
13060 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
13067 rm -f conftest.$ac_objext
13068 if { (ac_try="$ac_compile"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074 $as_echo "$ac_try_echo") >&5
13075 (eval "$ac_compile") 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } && {
13082 test -z "$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest.$ac_objext; then
13087 cat >conftest.$ac_ext <<_ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13094 #define _XOPEN_SOURCE_EXTENDED 1
13096 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13098 #include <stdlib.h>
13103 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
13110 rm -f conftest.$ac_objext
13111 if { (ac_try="$ac_compile"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13117 $as_echo "$ac_try_echo") >&5
13118 (eval "$ac_compile") 2>conftest.er1
13120 grep -v '^ *+' conftest.er1 >conftest.err
13122 cat conftest.err >&5
13123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } && {
13125 test -z "$ac_c_werror_flag" ||
13126 test ! -s conftest.err
13127 } && test -s conftest.$ac_objext; then
13128 ac_lo=$ac_mid; break
13130 $as_echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 ac_hi=`expr '(' $ac_mid ')' - 1`
13134 if test $ac_mid -le $ac_hi; then
13138 ac_mid=`expr 2 '*' $ac_mid`
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 $as_echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 # Binary search between lo and hi bounds.
13155 while test "x$ac_lo" != "x$ac_hi"; do
13156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13164 #define _XOPEN_SOURCE_EXTENDED 1
13166 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13168 #include <stdlib.h>
13173 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13187 $as_echo "$ac_try_echo") >&5
13188 (eval "$ac_compile") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest.$ac_objext; then
13200 $as_echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 ac_lo=`expr '(' $ac_mid ')' + 1`
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
13213 cat >conftest.$ac_ext <<_ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13220 #define _XOPEN_SOURCE_EXTENDED 1
13222 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13224 #include <stdlib.h>
13226 static long int longval () { return EMULTIHOP; }
13227 static unsigned long int ulongval () { return EMULTIHOP; }
13229 #include <stdlib.h>
13234 FILE *f = fopen ("conftest.val", "w");
13237 if ((EMULTIHOP) < 0)
13239 long int i = longval ();
13240 if (i != (EMULTIHOP))
13242 fprintf (f, "%ld", i);
13246 unsigned long int i = ulongval ();
13247 if (i != (EMULTIHOP))
13249 fprintf (f, "%lu", i);
13251 /* Do not output a trailing newline, as this causes \r\n confusion
13252 on some platforms. */
13253 return ferror (f) || fclose (f) != 0;
13259 rm -f conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266 $as_echo "$ac_try_echo") >&5
13267 (eval "$ac_link") 2>&5
13269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13276 $as_echo "$ac_try_echo") >&5
13277 (eval "$ac_try") 2>&5
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
13283 $as_echo "$as_me: program exited with status $ac_status" >&5
13284 $as_echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13288 rm -rf conftest.dSYM
13289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13296 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
13297 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
13298 case $gl_cv_header_errno_h_EMULTIHOP in
13300 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
13303 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
13311 if test -n "$ERRNO_H"; then
13312 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
13313 $as_echo_n "checking for ENOLINK value... " >&6; }
13314 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
13315 $as_echo_n "(cached) " >&6
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332 $EGREP "yes" >/dev/null 2>&1; then
13333 gl_cv_header_errno_h_ENOLINK=yes
13335 gl_cv_header_errno_h_ENOLINK=no
13339 if test $gl_cv_header_errno_h_ENOLINK = no; then
13340 cat >conftest.$ac_ext <<_ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13347 #define _XOPEN_SOURCE_EXTENDED 1
13354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13355 $EGREP "yes" >/dev/null 2>&1; then
13356 gl_cv_header_errno_h_ENOLINK=hidden
13360 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13361 if test "$cross_compiling" = yes; then
13362 # Depending upon the size, compute the lo and hi bounds.
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13370 #define _XOPEN_SOURCE_EXTENDED 1
13372 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13374 #include <stdlib.h>
13379 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
13386 rm -f conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393 $as_echo "$ac_try_echo") >&5
13394 (eval "$ac_compile") 2>conftest.er1
13396 grep -v '^ *+' conftest.er1 >conftest.err
13398 cat conftest.err >&5
13399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest.$ac_objext; then
13406 cat >conftest.$ac_ext <<_ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13413 #define _XOPEN_SOURCE_EXTENDED 1
13415 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13417 #include <stdlib.h>
13422 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13436 $as_echo "$ac_try_echo") >&5
13437 (eval "$ac_compile") 2>conftest.er1
13439 grep -v '^ *+' conftest.er1 >conftest.err
13441 cat conftest.err >&5
13442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } && {
13444 test -z "$ac_c_werror_flag" ||
13445 test ! -s conftest.err
13446 } && test -s conftest.$ac_objext; then
13447 ac_hi=$ac_mid; break
13449 $as_echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_lo=`expr $ac_mid + 1`
13453 if test $ac_lo -le $ac_mid; then
13457 ac_mid=`expr 2 '*' $ac_mid + 1`
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463 $as_echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13473 #define _XOPEN_SOURCE_EXTENDED 1
13475 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13477 #include <stdlib.h>
13482 static int test_array [1 - 2 * !((ENOLINK) < 0)];
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496 $as_echo "$ac_try_echo") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13509 cat >conftest.$ac_ext <<_ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13516 #define _XOPEN_SOURCE_EXTENDED 1
13518 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13520 #include <stdlib.h>
13525 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13532 rm -f conftest.$ac_objext
13533 if { (ac_try="$ac_compile"
13534 case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13539 $as_echo "$ac_try_echo") >&5
13540 (eval "$ac_compile") 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } && {
13547 test -z "$ac_c_werror_flag" ||
13548 test ! -s conftest.err
13549 } && test -s conftest.$ac_objext; then
13550 ac_lo=$ac_mid; break
13552 $as_echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_hi=`expr '(' $ac_mid ')' - 1`
13556 if test $ac_mid -le $ac_hi; then
13560 ac_mid=`expr 2 '*' $ac_mid`
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 $as_echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576 # Binary search between lo and hi bounds.
13577 while test "x$ac_lo" != "x$ac_hi"; do
13578 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13586 #define _XOPEN_SOURCE_EXTENDED 1
13588 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13590 #include <stdlib.h>
13595 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13609 $as_echo "$ac_try_echo") >&5
13610 (eval "$ac_compile") 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest.$ac_objext; then
13622 $as_echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13625 ac_lo=`expr '(' $ac_mid ')' + 1`
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13635 cat >conftest.$ac_ext <<_ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13642 #define _XOPEN_SOURCE_EXTENDED 1
13644 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13646 #include <stdlib.h>
13648 static long int longval () { return ENOLINK; }
13649 static unsigned long int ulongval () { return ENOLINK; }
13651 #include <stdlib.h>
13656 FILE *f = fopen ("conftest.val", "w");
13661 long int i = longval ();
13662 if (i != (ENOLINK))
13664 fprintf (f, "%ld", i);
13668 unsigned long int i = ulongval ();
13669 if (i != (ENOLINK))
13671 fprintf (f, "%lu", i);
13673 /* Do not output a trailing newline, as this causes \r\n confusion
13674 on some platforms. */
13675 return ferror (f) || fclose (f) != 0;
13681 rm -f conftest$ac_exeext
13682 if { (ac_try="$ac_link"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689 (eval "$ac_link") 2>&5
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13693 { (case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13698 $as_echo "$ac_try_echo") >&5
13699 (eval "$ac_try") 2>&5
13701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13705 $as_echo "$as_me: program exited with status $ac_status" >&5
13706 $as_echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13710 rm -rf conftest.dSYM
13711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13718 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13719 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13720 case $gl_cv_header_errno_h_ENOLINK in
13722 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13725 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13733 if test -n "$ERRNO_H"; then
13734 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13735 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13736 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13737 $as_echo_n "(cached) " >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754 $EGREP "yes" >/dev/null 2>&1; then
13755 gl_cv_header_errno_h_EOVERFLOW=yes
13757 gl_cv_header_errno_h_EOVERFLOW=no
13761 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13769 #define _XOPEN_SOURCE_EXTENDED 1
13776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13777 $EGREP "yes" >/dev/null 2>&1; then
13778 gl_cv_header_errno_h_EOVERFLOW=hidden
13782 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13783 if test "$cross_compiling" = yes; then
13784 # Depending upon the size, compute the lo and hi bounds.
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13792 #define _XOPEN_SOURCE_EXTENDED 1
13794 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13796 #include <stdlib.h>
13801 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816 (eval "$ac_compile") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest.$ac_objext; then
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13835 #define _XOPEN_SOURCE_EXTENDED 1
13837 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13839 #include <stdlib.h>
13844 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13851 rm -f conftest.$ac_objext
13852 if { (ac_try="$ac_compile"
13853 case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13858 $as_echo "$ac_try_echo") >&5
13859 (eval "$ac_compile") 2>conftest.er1
13861 grep -v '^ *+' conftest.er1 >conftest.err
13863 cat conftest.err >&5
13864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } && {
13866 test -z "$ac_c_werror_flag" ||
13867 test ! -s conftest.err
13868 } && test -s conftest.$ac_objext; then
13869 ac_hi=$ac_mid; break
13871 $as_echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13874 ac_lo=`expr $ac_mid + 1`
13875 if test $ac_lo -le $ac_mid; then
13879 ac_mid=`expr 2 '*' $ac_mid + 1`
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 $as_echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 cat >conftest.$ac_ext <<_ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13895 #define _XOPEN_SOURCE_EXTENDED 1
13897 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13899 #include <stdlib.h>
13904 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13918 $as_echo "$ac_try_echo") >&5
13919 (eval "$ac_compile") 2>conftest.er1
13921 grep -v '^ *+' conftest.er1 >conftest.err
13923 cat conftest.err >&5
13924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } && {
13926 test -z "$ac_c_werror_flag" ||
13927 test ! -s conftest.err
13928 } && test -s conftest.$ac_objext; then
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13938 #define _XOPEN_SOURCE_EXTENDED 1
13940 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13942 #include <stdlib.h>
13947 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13954 rm -f conftest.$ac_objext
13955 if { (ac_try="$ac_compile"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962 (eval "$ac_compile") 2>conftest.er1
13964 grep -v '^ *+' conftest.er1 >conftest.err
13966 cat conftest.err >&5
13967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest.$ac_objext; then
13972 ac_lo=$ac_mid; break
13974 $as_echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 ac_hi=`expr '(' $ac_mid ')' - 1`
13978 if test $ac_mid -le $ac_hi; then
13982 ac_mid=`expr 2 '*' $ac_mid`
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988 $as_echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 # Binary search between lo and hi bounds.
13999 while test "x$ac_lo" != "x$ac_hi"; do
14000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14008 #define _XOPEN_SOURCE_EXTENDED 1
14010 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14012 #include <stdlib.h>
14017 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031 $as_echo "$ac_try_echo") >&5
14032 (eval "$ac_compile") 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest.$ac_objext; then
14044 $as_echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_lo=`expr '(' $ac_mid ')' + 1`
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14064 #define _XOPEN_SOURCE_EXTENDED 1
14066 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14068 #include <stdlib.h>
14070 static long int longval () { return EOVERFLOW; }
14071 static unsigned long int ulongval () { return EOVERFLOW; }
14073 #include <stdlib.h>
14078 FILE *f = fopen ("conftest.val", "w");
14081 if ((EOVERFLOW) < 0)
14083 long int i = longval ();
14084 if (i != (EOVERFLOW))
14086 fprintf (f, "%ld", i);
14090 unsigned long int i = ulongval ();
14091 if (i != (EOVERFLOW))
14093 fprintf (f, "%lu", i);
14095 /* Do not output a trailing newline, as this causes \r\n confusion
14096 on some platforms. */
14097 return ferror (f) || fclose (f) != 0;
14103 rm -f conftest$ac_exeext
14104 if { (ac_try="$ac_link"
14105 case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14110 $as_echo "$ac_try_echo") >&5
14111 (eval "$ac_link") 2>&5
14113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120 $as_echo "$ac_try_echo") >&5
14121 (eval "$ac_try") 2>&5
14123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
14127 $as_echo "$as_me: program exited with status $ac_status" >&5
14128 $as_echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14132 rm -rf conftest.dSYM
14133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14140 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14141 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14142 case $gl_cv_header_errno_h_EOVERFLOW in
14144 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
14147 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
14155 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14156 $as_echo_n "checking whether strerror_r is declared... " >&6; }
14157 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14158 $as_echo_n "(cached) " >&6
14160 cat >conftest.$ac_ext <<_ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 $ac_includes_default
14178 rm -f conftest.$ac_objext
14179 if { (ac_try="$ac_compile"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185 $as_echo "$ac_try_echo") >&5
14186 (eval "$ac_compile") 2>conftest.er1
14188 grep -v '^ *+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } && {
14193 test -z "$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 } && test -s conftest.$ac_objext; then
14196 ac_cv_have_decl_strerror_r=yes
14198 $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_cv_have_decl_strerror_r=no
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14207 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14208 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14210 cat >>confdefs.h <<_ACEOF
14211 #define HAVE_DECL_STRERROR_R 1
14216 cat >>confdefs.h <<_ACEOF
14217 #define HAVE_DECL_STRERROR_R 0
14225 for ac_func in strerror_r
14227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14228 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14229 $as_echo_n "checking for $ac_func... " >&6; }
14230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14231 $as_echo_n "(cached) " >&6
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14241 #define $ac_func innocuous_$ac_func
14243 /* System header to define __stub macros and hopefully few prototypes,
14244 which can conflict with char $ac_func (); below.
14245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14246 <limits.h> exists even on freestanding compilers. */
14249 # include <limits.h>
14251 # include <assert.h>
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14263 /* The GNU C library defines this for functions which it implements
14264 to always fail with ENOSYS. Some functions are actually named
14265 something starting with __ and the normal name is an alias. */
14266 #if defined __stub_$ac_func || defined __stub___$ac_func
14273 return $ac_func ();
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (ac_try="$ac_link"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14285 $as_echo "$ac_try_echo") >&5
14286 (eval "$ac_link") 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } && {
14293 test -z "$ac_c_werror_flag" ||
14294 test ! -s conftest.err
14295 } && test -s conftest$ac_exeext && {
14296 test "$cross_compiling" = yes ||
14297 $as_test_x conftest$ac_exeext
14299 eval "$as_ac_var=yes"
14301 $as_echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 eval "$as_ac_var=no"
14307 rm -rf conftest.dSYM
14308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14309 conftest$ac_exeext conftest.$ac_ext
14311 ac_res=`eval 'as_val=${'$as_ac_var'}
14312 $as_echo "$as_val"'`
14313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14314 $as_echo "$ac_res" >&6; }
14315 as_val=`eval 'as_val=${'$as_ac_var'}
14316 $as_echo "$as_val"'`
14317 if test "x$as_val" = x""yes; then
14318 cat >>confdefs.h <<_ACEOF
14319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14326 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
14327 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14328 $as_echo_n "(cached) " >&6
14331 ac_cv_func_strerror_r_char_p=no
14332 if test $ac_cv_have_decl_strerror_r = yes; then
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 $ac_includes_default
14345 char x = *strerror_r (0, buf, sizeof buf);
14346 char *p = strerror_r (0, buf, sizeof buf);
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14360 $as_echo "$ac_try_echo") >&5
14361 (eval "$ac_compile") 2>conftest.er1
14363 grep -v '^ *+' conftest.er1 >conftest.err
14365 cat conftest.err >&5
14366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && {
14368 test -z "$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14370 } && test -s conftest.$ac_objext; then
14371 ac_cv_func_strerror_r_char_p=yes
14373 $as_echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 # strerror_r is not declared. Choose between
14382 # systems that have relatively inaccessible declarations for the
14383 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14384 # former has a strerror_r that returns char*, while the latter
14385 # has a strerror_r that returns `int'.
14386 # This test should segfault on the DEC system.
14387 if test "$cross_compiling" = yes; then
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 $ac_includes_default
14397 extern char *strerror_r ();
14402 char x = *strerror_r (0, buf, sizeof buf);
14403 return ! isalpha (x);
14408 rm -f conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416 (eval "$ac_link") 2>&5
14418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14425 $as_echo "$ac_try_echo") >&5
14426 (eval "$ac_try") 2>&5
14428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_func_strerror_r_char_p=yes
14432 $as_echo "$as_me: program exited with status $ac_status" >&5
14433 $as_echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14437 rm -rf conftest.dSYM
14438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14445 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14446 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14447 if test $ac_cv_func_strerror_r_char_p = yes; then
14449 cat >>confdefs.h <<\_ACEOF
14450 #define STRERROR_R_CHAR_P 1
14456 XGETTEXT_EXTRA_OPTIONS=
14460 GNULIB_FPRINTF_POSIX=0;
14462 GNULIB_PRINTF_POSIX=0;
14464 GNULIB_SPRINTF_POSIX=0;
14466 GNULIB_VFPRINTF_POSIX=0;
14468 GNULIB_VPRINTF_POSIX=0;
14469 GNULIB_VSNPRINTF=0;
14470 GNULIB_VSPRINTF_POSIX=0;
14473 GNULIB_VASPRINTF=0;
14474 GNULIB_OBSTACK_PRINTF=0;
14475 GNULIB_OBSTACK_PRINTF_POSIX=0;
14495 GNULIB_STDIO_H_SIGPIPE=0;
14496 REPLACE_STDIO_WRITE_FUNCS=0;
14498 REPLACE_VFPRINTF=0;
14501 REPLACE_SNPRINTF=0;
14502 HAVE_DECL_SNPRINTF=1;
14503 REPLACE_VSNPRINTF=0;
14504 HAVE_DECL_VSNPRINTF=1;
14506 REPLACE_VSPRINTF=0;
14510 REPLACE_VDPRINTF=0;
14512 REPLACE_VASPRINTF=0;
14513 HAVE_DECL_OBSTACK_PRINTF=1;
14514 REPLACE_OBSTACK_PRINTF=0;
14525 HAVE_DECL_FPURGE=1;
14528 HAVE_DECL_GETDELIM=1;
14529 HAVE_DECL_GETLINE=1;
14534 { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14535 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14536 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14537 $as_echo_n "(cached) " >&6
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14549 #if defined __SL64 && defined __SCLE /* cygwin */
14550 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14551 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
14552 it is easier to do a version check than building a runtime test. */
14553 # include <cygwin/version.h>
14554 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (ac_try="$ac_link"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570 (eval "$ac_link") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest$ac_exeext && {
14580 test "$cross_compiling" = yes ||
14581 $as_test_x conftest$ac_exeext
14583 gl_cv_var_stdin_large_offset=yes
14585 $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 gl_cv_var_stdin_large_offset=no
14591 rm -rf conftest.dSYM
14592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593 conftest$ac_exeext conftest.$ac_ext
14595 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14596 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14598 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14599 $as_echo_n "checking whether getdelim is declared... " >&6; }
14600 if test "${ac_cv_have_decl_getdelim+set}" = set; then
14601 $as_echo_n "(cached) " >&6
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 $ac_includes_default
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_compile") 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } && {
14636 test -z "$ac_c_werror_flag" ||
14637 test ! -s conftest.err
14638 } && test -s conftest.$ac_objext; then
14639 ac_cv_have_decl_getdelim=yes
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 ac_cv_have_decl_getdelim=no
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14650 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
14651 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_DECL_GETDELIM 1
14659 cat >>confdefs.h <<_ACEOF
14660 #define HAVE_DECL_GETDELIM 0
14667 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14668 $as_echo_n "checking whether getline is declared... " >&6; }
14669 if test "${ac_cv_have_decl_getline+set}" = set; then
14670 $as_echo_n "(cached) " >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 $ac_includes_default
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697 $as_echo "$ac_try_echo") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && {
14705 test -z "$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 } && test -s conftest.$ac_objext; then
14708 ac_cv_have_decl_getline=yes
14710 $as_echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_cv_have_decl_getline=no
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14718 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14719 $as_echo "$ac_cv_have_decl_getline" >&6; }
14720 if test "x$ac_cv_have_decl_getline" = x""yes; then
14722 cat >>confdefs.h <<_ACEOF
14723 #define HAVE_DECL_GETLINE 1
14728 cat >>confdefs.h <<_ACEOF
14729 #define HAVE_DECL_GETLINE 0
14742 GNULIB_EUIDACCESS=0;
14745 GNULIB_FTRUNCATE=0;
14747 GNULIB_GETDOMAINNAME=0;
14748 GNULIB_GETDTABLESIZE=0;
14749 GNULIB_GETHOSTNAME=0;
14750 GNULIB_GETLOGIN_R=0;
14751 GNULIB_GETPAGESIZE=0;
14752 GNULIB_GETUSERSHELL=0;
14759 GNULIB_UNISTD_H_GETOPT=0;
14760 GNULIB_UNISTD_H_SIGPIPE=0;
14767 HAVE_GETDOMAINNAME=1;
14768 HAVE_GETDTABLESIZE=1;
14769 HAVE_GETHOSTNAME=1;
14770 HAVE_GETPAGESIZE=1;
14771 HAVE_GETUSERSHELL=1;
14776 HAVE_DECL_ENVIRON=1;
14777 HAVE_DECL_GETLOGIN_R=1;
14779 HAVE_SYS_PARAM_H=0;
14785 REPLACE_GETPAGESIZE=0;
14789 UNISTD_H_HAVE_WINSOCK2_H=0;
14790 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14799 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14801 for ac_header in getopt.h
14803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14806 $as_echo_n "checking for $ac_header... " >&6; }
14807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14808 $as_echo_n "(cached) " >&6
14810 ac_res=`eval 'as_val=${'$as_ac_Header'}
14811 $as_echo "$as_val"'`
14812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14813 $as_echo "$ac_res" >&6; }
14815 # Is the header compilable?
14816 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14817 $as_echo_n "checking $ac_header usability... " >&6; }
14818 cat >conftest.$ac_ext <<_ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14824 $ac_includes_default
14825 #include <$ac_header>
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14834 $as_echo "$ac_try_echo") >&5
14835 (eval "$ac_compile") 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest.$ac_objext; then
14845 ac_header_compiler=yes
14847 $as_echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_header_compiler=no
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855 $as_echo "$ac_header_compiler" >&6; }
14857 # Is the header present?
14858 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14859 $as_echo_n "checking $ac_header presence... " >&6; }
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 #include <$ac_header>
14868 if { (ac_try="$ac_cpp conftest.$ac_ext"
14869 case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874 $as_echo "$ac_try_echo") >&5
14875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14877 grep -v '^ *+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } >/dev/null && {
14882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14885 ac_header_preproc=yes
14887 $as_echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_header_preproc=no
14893 rm -f conftest.err conftest.$ac_ext
14894 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14895 $as_echo "$ac_header_preproc" >&6; }
14897 # So? What about this header?
14898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14901 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14903 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14904 ac_header_preproc=yes
14907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14908 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14910 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14912 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14914 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14918 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14920 ## ------------------------------- ##
14921 ## Report this to bug-wget@gnu.org ##
14922 ## ------------------------------- ##
14924 ) | sed "s/^/$as_me: WARNING: /" >&2
14927 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14928 $as_echo_n "checking for $ac_header... " >&6; }
14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930 $as_echo_n "(cached) " >&6
14932 eval "$as_ac_Header=\$ac_header_preproc"
14934 ac_res=`eval 'as_val=${'$as_ac_Header'}
14935 $as_echo "$as_val"'`
14936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14937 $as_echo "$ac_res" >&6; }
14940 as_val=`eval 'as_val=${'$as_ac_Header'}
14941 $as_echo "$as_val"'`
14942 if test "x$as_val" = x""yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14948 gl_replace_getopt=yes
14955 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14957 for ac_func in getopt_long_only
14959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14960 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14961 $as_echo_n "checking for $ac_func... " >&6; }
14962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14963 $as_echo_n "(cached) " >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14973 #define $ac_func innocuous_$ac_func
14975 /* System header to define __stub macros and hopefully few prototypes,
14976 which can conflict with char $ac_func (); below.
14977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14978 <limits.h> exists even on freestanding compilers. */
14981 # include <limits.h>
14983 # include <assert.h>
14988 /* Override any GCC internal prototype to avoid an error.
14989 Use char because int might match the return type of a GCC
14990 builtin and then its argument prototype would still apply. */
14995 /* The GNU C library defines this for functions which it implements
14996 to always fail with ENOSYS. Some functions are actually named
14997 something starting with __ and the normal name is an alias. */
14998 #if defined __stub_$ac_func || defined __stub___$ac_func
15005 return $ac_func ();
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15017 $as_echo "$ac_try_echo") >&5
15018 (eval "$ac_link") 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } && {
15025 test -z "$ac_c_werror_flag" ||
15026 test ! -s conftest.err
15027 } && test -s conftest$ac_exeext && {
15028 test "$cross_compiling" = yes ||
15029 $as_test_x conftest$ac_exeext
15031 eval "$as_ac_var=yes"
15033 $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 eval "$as_ac_var=no"
15039 rm -rf conftest.dSYM
15040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15041 conftest$ac_exeext conftest.$ac_ext
15043 ac_res=`eval 'as_val=${'$as_ac_var'}
15044 $as_echo "$as_val"'`
15045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046 $as_echo "$ac_res" >&6; }
15047 as_val=`eval 'as_val=${'$as_ac_var'}
15048 $as_echo "$as_val"'`
15049 if test "x$as_val" = x""yes; then
15050 cat >>confdefs.h <<_ACEOF
15051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15055 gl_replace_getopt=yes
15061 if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15062 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15063 $as_echo_n "checking whether optreset is declared... " >&6; }
15064 if test "${ac_cv_have_decl_optreset+set}" = set; then
15065 $as_echo_n "(cached) " >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <getopt.h>
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15093 $as_echo "$ac_try_echo") >&5
15094 (eval "$ac_compile") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && {
15101 test -z "$ac_c_werror_flag" ||
15102 test ! -s conftest.err
15103 } && test -s conftest.$ac_objext; then
15104 ac_cv_have_decl_optreset=yes
15106 $as_echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_cv_have_decl_optreset=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15115 $as_echo "$ac_cv_have_decl_optreset" >&6; }
15116 if test "x$ac_cv_have_decl_optreset" = x""yes; then
15117 gl_replace_getopt=yes
15122 if test -z "$gl_replace_getopt"; then
15123 { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15124 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15125 if test "${gl_cv_func_getopt_posix+set}" = set; then
15126 $as_echo_n "(cached) " >&6
15129 if test "$cross_compiling" = yes; then
15131 mingw*) gl_cv_func_getopt_posix="guessing no";;
15132 *) gl_cv_func_getopt_posix="guessing yes";;
15136 cat >conftest.$ac_ext <<_ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15143 #include <unistd.h>
15144 #include <stdlib.h>
15145 #include <string.h>
15147 /* The glibc implementation of getopt supports setting optind = 0 as a means
15148 of clearing the internal state, but other implementations don't. */
15149 #if (__GLIBC__ >= 2)
15150 # define OPTIND_MIN 0
15152 # define OPTIND_MIN 1
15163 argv[argc++] = "program";
15164 argv[argc++] = "-a";
15165 argv[argc++] = "foo";
15166 argv[argc++] = "bar";
15167 optind = OPTIND_MIN;
15170 c = getopt (argc, argv, "ab");
15173 c = getopt (argc, argv, "ab");
15176 if (!(optind == 2))
15179 /* Some internal state exists at this point. */
15185 argv[argc++] = "program";
15186 argv[argc++] = "donald";
15187 argv[argc++] = "-p";
15188 argv[argc++] = "billy";
15189 argv[argc++] = "duck";
15190 argv[argc++] = "-a";
15191 argv[argc++] = "bar";
15192 optind = OPTIND_MIN;
15195 c = getopt (argc, argv, "+abp:q:");
15198 if (!(strcmp (argv[0], "program") == 0))
15200 if (!(strcmp (argv[1], "donald") == 0))
15202 if (!(strcmp (argv[2], "-p") == 0))
15204 if (!(strcmp (argv[3], "billy") == 0))
15206 if (!(strcmp (argv[4], "duck") == 0))
15208 if (!(strcmp (argv[5], "-a") == 0))
15210 if (!(strcmp (argv[6], "bar") == 0))
15212 if (!(optind == 1))
15220 rm -f conftest$ac_exeext
15221 if { (ac_try="$ac_link"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227 $as_echo "$ac_try_echo") >&5
15228 (eval "$ac_link") 2>&5
15230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15237 $as_echo "$ac_try_echo") >&5
15238 (eval "$ac_try") 2>&5
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 gl_cv_func_getopt_posix=yes
15244 $as_echo "$as_me: program exited with status $ac_status" >&5
15245 $as_echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 ( exit $ac_status )
15249 gl_cv_func_getopt_posix=no
15251 rm -rf conftest.dSYM
15252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15258 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15259 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15260 case "$gl_cv_func_getopt_posix" in
15261 *no) gl_replace_getopt=yes ;;
15265 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15266 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15267 $as_echo_n "checking for working GNU getopt function... " >&6; }
15268 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15269 $as_echo_n "(cached) " >&6
15271 if test "$cross_compiling" = yes; then
15273 *-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
15274 *) gl_cv_func_getopt_gnu=yes;;
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 #include <getopt.h>
15285 #include <stddef.h>
15286 #include <string.h>
15291 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15292 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15293 OSF/1 5.1, Solaris 10. */
15296 myargv[0] = "conftest";
15300 if (getopt (2, myargv, "+a") != '?')
15303 /* This code succeeds on glibc 2.8, mingw,
15304 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15305 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin. */
15307 char *argv[] = { "program", "-p", "foo", "bar" };
15310 if (getopt (4, argv, "p::") != 'p')
15312 if (optarg != NULL)
15314 if (getopt (4, argv, "p::") != -1)
15325 rm -f conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15332 $as_echo "$ac_try_echo") >&5
15333 (eval "$ac_link") 2>&5
15335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15337 { (case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15342 $as_echo "$ac_try_echo") >&5
15343 (eval "$ac_try") 2>&5
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 gl_cv_func_getopt_gnu=yes
15349 $as_echo "$as_me: program exited with status $ac_status" >&5
15350 $as_echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ( exit $ac_status )
15354 gl_cv_func_getopt_gnu=no
15356 rm -rf conftest.dSYM
15357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15363 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15364 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15365 if test "$gl_cv_func_getopt_gnu" = "no"; then
15366 gl_replace_getopt=yes
15370 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15371 $as_echo_n "checking whether getenv is declared... " >&6; }
15372 if test "${ac_cv_have_decl_getenv+set}" = set; then
15373 $as_echo_n "(cached) " >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 $ac_includes_default
15393 rm -f conftest.$ac_objext
15394 if { (ac_try="$ac_compile"
15395 case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15400 $as_echo "$ac_try_echo") >&5
15401 (eval "$ac_compile") 2>conftest.er1
15403 grep -v '^ *+' conftest.er1 >conftest.err
15405 cat conftest.err >&5
15406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } && {
15408 test -z "$ac_c_werror_flag" ||
15409 test ! -s conftest.err
15410 } && test -s conftest.$ac_objext; then
15411 ac_cv_have_decl_getenv=yes
15413 $as_echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15416 ac_cv_have_decl_getenv=no
15419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15422 $as_echo "$ac_cv_have_decl_getenv" >&6; }
15423 if test "x$ac_cv_have_decl_getenv" = x""yes; then
15425 cat >>confdefs.h <<_ACEOF
15426 #define HAVE_DECL_GETENV 1
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_DECL_GETENV 0
15444 if test -n "$gl_replace_getopt"; then
15450 cat >>confdefs.h <<\_ACEOF
15451 #define __GETOPT_PREFIX rpl_
15456 GNULIB_UNISTD_H_GETOPT=1
15465 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15475 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15489 { $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
15490 $as_echo_n "checking whether getpass is declared... " >&6; }
15491 if test "${ac_cv_have_decl_getpass+set}" = set; then
15492 $as_echo_n "(cached) " >&6
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520 (eval "$ac_compile") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1 >conftest.err
15524 cat conftest.err >&5
15525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest.$ac_objext; then
15530 ac_cv_have_decl_getpass=yes
15532 $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_cv_have_decl_getpass=no
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
15541 $as_echo "$ac_cv_have_decl_getpass" >&6; }
15542 if test "x$ac_cv_have_decl_getpass" = x""yes; then
15544 cat >>confdefs.h <<_ACEOF
15545 #define HAVE_DECL_GETPASS 1
15550 cat >>confdefs.h <<_ACEOF
15551 #define HAVE_DECL_GETPASS 0
15566 for ac_func in $ac_func_list
15568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15570 $as_echo_n "checking for $ac_func... " >&6; }
15571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15572 $as_echo_n "(cached) " >&6
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15582 #define $ac_func innocuous_$ac_func
15584 /* System header to define __stub macros and hopefully few prototypes,
15585 which can conflict with char $ac_func (); below.
15586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587 <limits.h> exists even on freestanding compilers. */
15590 # include <limits.h>
15592 # include <assert.h>
15597 /* Override any GCC internal prototype to avoid an error.
15598 Use char because int might match the return type of a GCC
15599 builtin and then its argument prototype would still apply. */
15604 /* The GNU C library defines this for functions which it implements
15605 to always fail with ENOSYS. Some functions are actually named
15606 something starting with __ and the normal name is an alias. */
15607 #if defined __stub_$ac_func || defined __stub___$ac_func
15614 return $ac_func ();
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627 (eval "$ac_link") 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext && {
15637 test "$cross_compiling" = yes ||
15638 $as_test_x conftest$ac_exeext
15640 eval "$as_ac_var=yes"
15642 $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 eval "$as_ac_var=no"
15648 rm -rf conftest.dSYM
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15652 ac_res=`eval 'as_val=${'$as_ac_var'}
15653 $as_echo "$as_val"'`
15654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15655 $as_echo "$ac_res" >&6; }
15656 as_val=`eval 'as_val=${'$as_ac_var'}
15657 $as_echo "$as_val"'`
15658 if test "x$as_val" = x""yes; then
15659 cat >>confdefs.h <<_ACEOF
15660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15672 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
15673 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
15674 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
15675 $as_echo_n "(cached) " >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 $ac_includes_default
15687 #ifndef fflush_unlocked
15688 (void) fflush_unlocked;
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15702 $as_echo "$ac_try_echo") >&5
15703 (eval "$ac_compile") 2>conftest.er1
15705 grep -v '^ *+' conftest.er1 >conftest.err
15707 cat conftest.err >&5
15708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && {
15710 test -z "$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 } && test -s conftest.$ac_objext; then
15713 ac_cv_have_decl_fflush_unlocked=yes
15715 $as_echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 ac_cv_have_decl_fflush_unlocked=no
15721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
15724 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
15725 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_DECL_FFLUSH_UNLOCKED 1
15733 cat >>confdefs.h <<_ACEOF
15734 #define HAVE_DECL_FFLUSH_UNLOCKED 0
15741 { $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
15742 $as_echo_n "checking whether flockfile is declared... " >&6; }
15743 if test "${ac_cv_have_decl_flockfile+set}" = set; then
15744 $as_echo_n "(cached) " >&6
15746 cat >conftest.$ac_ext <<_ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 $ac_includes_default
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15771 $as_echo "$ac_try_echo") >&5
15772 (eval "$ac_compile") 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } && {
15779 test -z "$ac_c_werror_flag" ||
15780 test ! -s conftest.err
15781 } && test -s conftest.$ac_objext; then
15782 ac_cv_have_decl_flockfile=yes
15784 $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_cv_have_decl_flockfile=no
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
15793 $as_echo "$ac_cv_have_decl_flockfile" >&6; }
15794 if test "x$ac_cv_have_decl_flockfile" = x""yes; then
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_DECL_FLOCKFILE 1
15802 cat >>confdefs.h <<_ACEOF
15803 #define HAVE_DECL_FLOCKFILE 0
15810 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
15811 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
15812 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
15813 $as_echo_n "(cached) " >&6
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 $ac_includes_default
15825 #ifndef fputs_unlocked
15826 (void) fputs_unlocked;
15833 rm -f conftest.$ac_objext
15834 if { (ac_try="$ac_compile"
15835 case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15840 $as_echo "$ac_try_echo") >&5
15841 (eval "$ac_compile") 2>conftest.er1
15843 grep -v '^ *+' conftest.er1 >conftest.err
15845 cat conftest.err >&5
15846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } && {
15848 test -z "$ac_c_werror_flag" ||
15849 test ! -s conftest.err
15850 } && test -s conftest.$ac_objext; then
15851 ac_cv_have_decl_fputs_unlocked=yes
15853 $as_echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15856 ac_cv_have_decl_fputs_unlocked=no
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
15862 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
15863 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define HAVE_DECL_FPUTS_UNLOCKED 1
15871 cat >>confdefs.h <<_ACEOF
15872 #define HAVE_DECL_FPUTS_UNLOCKED 0
15879 { $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
15880 $as_echo_n "checking whether funlockfile is declared... " >&6; }
15881 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
15882 $as_echo_n "(cached) " >&6
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 $ac_includes_default
15894 #ifndef funlockfile
15895 (void) funlockfile;
15902 rm -f conftest.$ac_objext
15903 if { (ac_try="$ac_compile"
15904 case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909 $as_echo "$ac_try_echo") >&5
15910 (eval "$ac_compile") 2>conftest.er1
15912 grep -v '^ *+' conftest.er1 >conftest.err
15914 cat conftest.err >&5
15915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } && {
15917 test -z "$ac_c_werror_flag" ||
15918 test ! -s conftest.err
15919 } && test -s conftest.$ac_objext; then
15920 ac_cv_have_decl_funlockfile=yes
15922 $as_echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_cv_have_decl_funlockfile=no
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
15931 $as_echo "$ac_cv_have_decl_funlockfile" >&6; }
15932 if test "x$ac_cv_have_decl_funlockfile" = x""yes; then
15934 cat >>confdefs.h <<_ACEOF
15935 #define HAVE_DECL_FUNLOCKFILE 1
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_DECL_FUNLOCKFILE 0
15948 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
15949 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
15950 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
15951 $as_echo_n "(cached) " >&6
15953 cat >conftest.$ac_ext <<_ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 $ac_includes_default
15963 #ifndef putc_unlocked
15964 (void) putc_unlocked;
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978 $as_echo "$ac_try_echo") >&5
15979 (eval "$ac_compile") 2>conftest.er1
15981 grep -v '^ *+' conftest.er1 >conftest.err
15983 cat conftest.err >&5
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest.$ac_objext; then
15989 ac_cv_have_decl_putc_unlocked=yes
15991 $as_echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 ac_cv_have_decl_putc_unlocked=no
15997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
16000 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
16001 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
16003 cat >>confdefs.h <<_ACEOF
16004 #define HAVE_DECL_PUTC_UNLOCKED 1
16009 cat >>confdefs.h <<_ACEOF
16010 #define HAVE_DECL_PUTC_UNLOCKED 0
16018 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16019 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16020 if test "${am_cv_langinfo_codeset+set}" = set; then
16021 $as_echo_n "(cached) " >&6
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 #include <langinfo.h>
16033 char* cs = nl_langinfo(CODESET); return !cs;
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (ac_try="$ac_link"
16040 case "(($ac_try" in
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16045 $as_echo "$ac_try_echo") >&5
16046 (eval "$ac_link") 2>conftest.er1
16048 grep -v '^ *+' conftest.er1 >conftest.err
16050 cat conftest.err >&5
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && {
16053 test -z "$ac_c_werror_flag" ||
16054 test ! -s conftest.err
16055 } && test -s conftest$ac_exeext && {
16056 test "$cross_compiling" = yes ||
16057 $as_test_x conftest$ac_exeext
16059 am_cv_langinfo_codeset=yes
16061 $as_echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 am_cv_langinfo_codeset=no
16067 rm -rf conftest.dSYM
16068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069 conftest$ac_exeext conftest.$ac_ext
16072 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16073 $as_echo "$am_cv_langinfo_codeset" >&6; }
16074 if test $am_cv_langinfo_codeset = yes; then
16076 cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_LANGINFO_CODESET 1
16082 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
16083 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
16084 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
16085 $as_echo_n "(cached) " >&6
16087 cat >conftest.$ac_ext <<_ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16097 #ifndef getc_unlocked
16098 (void) getc_unlocked;
16105 rm -f conftest.$ac_objext
16106 if { (ac_try="$ac_compile"
16107 case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16112 $as_echo "$ac_try_echo") >&5
16113 (eval "$ac_compile") 2>conftest.er1
16115 grep -v '^ *+' conftest.er1 >conftest.err
16117 cat conftest.err >&5
16118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } && {
16120 test -z "$ac_c_werror_flag" ||
16121 test ! -s conftest.err
16122 } && test -s conftest.$ac_objext; then
16123 ac_cv_have_decl_getc_unlocked=yes
16125 $as_echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16128 ac_cv_have_decl_getc_unlocked=no
16131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
16134 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
16135 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
16137 cat >>confdefs.h <<_ACEOF
16138 #define HAVE_DECL_GETC_UNLOCKED 1
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_DECL_GETC_UNLOCKED 0
16152 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
16153 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
16154 if test "${ac_cv_gnu_library_2_1+set}" = set; then
16155 $as_echo_n "(cached) " >&6
16157 cat >conftest.$ac_ext <<_ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16164 #include <features.h>
16165 #ifdef __GNU_LIBRARY__
16166 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
16174 ac_cv_gnu_library_2_1=yes
16176 ac_cv_gnu_library_2_1=no
16183 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
16184 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
16186 GLIBC21="$ac_cv_gnu_library_2_1"
16195 GNULIB_MBSRTOWCS=0;
16196 GNULIB_MBSNRTOWCS=0;
16198 GNULIB_WCSRTOMBS=0;
16199 GNULIB_WCSNRTOMBS=0;
16211 HAVE_DECL_WCWIDTH=1;
16212 REPLACE_MBSTATE_T=0;
16218 REPLACE_MBSRTOWCS=0;
16219 REPLACE_MBSNRTOWCS=0;
16221 REPLACE_WCSRTOMBS=0;
16222 REPLACE_WCSNRTOMBS=0;
16228 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
16229 $as_echo_n "checking for mbstate_t... " >&6; }
16230 if test "${ac_cv_type_mbstate_t+set}" = set; then
16231 $as_echo_n "(cached) " >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16240 # include <wchar.h>
16244 mbstate_t x; return sizeof x;
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257 (eval "$ac_compile") 2>conftest.er1
16259 grep -v '^ *+' conftest.er1 >conftest.err
16261 cat conftest.err >&5
16262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } && {
16264 test -z "$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16266 } && test -s conftest.$ac_objext; then
16267 ac_cv_type_mbstate_t=yes
16269 $as_echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 ac_cv_type_mbstate_t=no
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
16278 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16279 if test $ac_cv_type_mbstate_t = yes; then
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_MBSTATE_T 1
16287 cat >>confdefs.h <<\_ACEOF
16288 #define mbstate_t int
16300 { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
16301 $as_echo_n "checking for a traditional japanese locale... " >&6; }
16302 if test "${gt_cv_locale_ja+set}" = set; then
16303 $as_echo_n "(cached) " >&6
16306 cat >conftest.$ac_ext <<_ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16313 #include <locale.h>
16315 #if HAVE_LANGINFO_CODESET
16316 # include <langinfo.h>
16318 #include <stdlib.h>
16319 #include <string.h>
16325 /* Check whether the given locale name is recognized by the system. */
16326 if (setlocale (LC_ALL, "") == NULL) return 1;
16327 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16328 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16329 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16330 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16331 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16332 some unit tests fail. */
16333 #if HAVE_LANGINFO_CODESET
16335 const char *cs = nl_langinfo (CODESET);
16336 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16341 /* On Cygwin, avoid locale names without encoding suffix, because the
16342 locale_charset() function relies on the encoding suffix. Note that
16343 LC_ALL is set on the command line. */
16344 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16346 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
16347 on Cygwin 1.5.x. */
16348 if (MB_CUR_MAX == 1)
16350 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16351 This excludes the UTF-8 encoding. */
16352 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16353 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16354 for (p = buf; *p != '\0'; p++)
16355 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362 (eval $ac_link) 2>&5
16364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } && test -s conftest$ac_exeext; then
16366 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16367 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16368 # configure script would override the LC_ALL setting. Likewise for
16369 # LC_CTYPE, which is also set at the beginning of the configure script.
16370 # Test for the AIX locale name.
16371 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16372 gt_cv_locale_ja=ja_JP
16374 # Test for the locale name with explicit encoding suffix.
16375 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16376 gt_cv_locale_ja=ja_JP.EUC-JP
16378 # Test for the HP-UX, OSF/1, NetBSD locale name.
16379 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16380 gt_cv_locale_ja=ja_JP.eucJP
16382 # Test for the IRIX, FreeBSD locale name.
16383 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16384 gt_cv_locale_ja=ja_JP.EUC
16386 # Test for the Solaris 7 locale name.
16387 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16390 # Special test for NetBSD 1.6.
16391 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16392 gt_cv_locale_ja=ja_JP.eucJP
16395 gt_cv_locale_ja=none
16406 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
16407 $as_echo "$gt_cv_locale_ja" >&6; }
16408 LOCALE_JA=$gt_cv_locale_ja
16414 { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
16415 $as_echo_n "checking for a transitional chinese locale... " >&6; }
16416 if test "${gt_cv_locale_zh_CN+set}" = set; then
16417 $as_echo_n "(cached) " >&6
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16427 #include <locale.h>
16428 #include <stdlib.h>
16430 #if HAVE_LANGINFO_CODESET
16431 # include <langinfo.h>
16433 #include <stdlib.h>
16434 #include <string.h>
16440 /* Check whether the given locale name is recognized by the system. */
16441 if (setlocale (LC_ALL, "") == NULL) return 1;
16442 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16443 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16444 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16445 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16446 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16447 some unit tests fail. */
16448 #if HAVE_LANGINFO_CODESET
16450 const char *cs = nl_langinfo (CODESET);
16451 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16456 /* On Cygwin, avoid locale names without encoding suffix, because the
16457 locale_charset() function relies on the encoding suffix. Note that
16458 LC_ALL is set on the command line. */
16459 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16461 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16462 This excludes the UTF-8 encoding. */
16463 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16464 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16465 for (p = buf; *p != '\0'; p++)
16466 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16468 /* Check whether a typical GB18030 multibyte sequence is recognized as a
16469 single wide character. This excludes the GB2312 and GBK encodings. */
16470 if (mblen ("\203\062\332\066", 5) != 4)
16476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477 (eval $ac_link) 2>&5
16479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } && test -s conftest$ac_exeext; then
16481 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16482 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16483 # configure script would override the LC_ALL setting. Likewise for
16484 # LC_CTYPE, which is also set at the beginning of the configure script.
16485 # Test for the locale name without encoding suffix.
16486 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16487 gt_cv_locale_zh_CN=zh_CN
16489 # Test for the locale name with explicit encoding suffix.
16490 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16491 gt_cv_locale_zh_CN=zh_CN.GB18030
16494 gt_cv_locale_zh_CN=none
16498 # If there was a link error, due to mblen(), the system is so old that
16499 # it certainly doesn't have a chinese locale.
16500 gt_cv_locale_zh_CN=none
16505 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
16506 $as_echo "$gt_cv_locale_zh_CN" >&6; }
16507 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16512 { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
16513 $as_echo_n "checking for a french Unicode locale... " >&6; }
16514 if test "${gt_cv_locale_fr_utf8+set}" = set; then
16515 $as_echo_n "(cached) " >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16525 #include <locale.h>
16527 #if HAVE_LANGINFO_CODESET
16528 # include <langinfo.h>
16530 #include <stdlib.h>
16531 #include <string.h>
16535 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
16536 imitates locale dependent behaviour by looking at the environment
16537 variables, and all locales use the UTF-8 encoding. */
16538 #if !(defined __BEOS__ || defined __HAIKU__)
16539 /* Check whether the given locale name is recognized by the system. */
16540 if (setlocale (LC_ALL, "") == NULL) return 1;
16541 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16542 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16543 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16544 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16545 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16546 some unit tests fail. */
16547 # if HAVE_LANGINFO_CODESET
16549 const char *cs = nl_langinfo (CODESET);
16550 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16555 /* On Cygwin, avoid locale names without encoding suffix, because the
16556 locale_charset() function relies on the encoding suffix. Note that
16557 LC_ALL is set on the command line. */
16558 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16560 /* Check whether in the abbreviation of the second month, the second
16561 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16562 two bytes long, with UTF-8 encoding. */
16563 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16564 if (strftime (buf, sizeof (buf), "%b", &t) < 4
16565 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16568 /* Check whether the decimal separator is a comma.
16569 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16570 are nl_langinfo(RADIXCHAR) are both ".". */
16571 if (localeconv () ->decimal_point[0] != ',') return 1;
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577 (eval $ac_link) 2>&5
16579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && test -s conftest$ac_exeext; then
16581 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16582 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16583 # configure script would override the LC_ALL setting. Likewise for
16584 # LC_CTYPE, which is also set at the beginning of the configure script.
16585 # Test for the usual locale name.
16586 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16587 gt_cv_locale_fr_utf8=fr_FR
16589 # Test for the locale name with explicit encoding suffix.
16590 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16591 gt_cv_locale_fr_utf8=fr_FR.UTF-8
16593 # Test for the Solaris 7 locale name.
16594 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16595 gt_cv_locale_fr_utf8=fr.UTF-8
16598 gt_cv_locale_fr_utf8=none
16606 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
16607 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
16608 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16620 GNULIB_RAWMEMCHR=0;
16623 GNULIB_STRCHRNUL=0;
16630 GNULIB_STRCASESTR=0;
16637 GNULIB_MBSCASECMP=0;
16638 GNULIB_MBSNCASECMP=0;
16639 GNULIB_MBSPCASECMP=0;
16640 GNULIB_MBSCASESTR=0;
16647 GNULIB_STRSIGNAL=0;
16648 GNULIB_STRVERSCMP=0;
16649 HAVE_DECL_MEMMEM=1;
16651 HAVE_DECL_MEMRCHR=1;
16656 HAVE_DECL_STRDUP=1;
16658 HAVE_DECL_STRNDUP=1;
16659 HAVE_DECL_STRNLEN=1;
16663 HAVE_DECL_STRTOK_R=1;
16664 HAVE_DECL_STRERROR=1;
16665 HAVE_DECL_STRSIGNAL=1;
16671 REPLACE_STRCASESTR=0;
16672 REPLACE_STRERROR=0;
16673 REPLACE_STRSIGNAL=0;
16682 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16683 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16684 # irrelevant for anonymous mappings.
16685 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
16686 $as_echo_n "checking for mmap... " >&6; }
16687 if test "${ac_cv_func_mmap+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
16697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16698 #define mmap innocuous_mmap
16700 /* System header to define __stub macros and hopefully few prototypes,
16701 which can conflict with char mmap (); below.
16702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703 <limits.h> exists even on freestanding compilers. */
16706 # include <limits.h>
16708 # include <assert.h>
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16720 /* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723 #if defined __stub_mmap || defined __stub___mmap
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16742 $as_echo "$ac_try_echo") >&5
16743 (eval "$ac_link") 2>conftest.er1
16745 grep -v '^ *+' conftest.er1 >conftest.err
16747 cat conftest.err >&5
16748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } && {
16750 test -z "$ac_c_werror_flag" ||
16751 test ! -s conftest.err
16752 } && test -s conftest$ac_exeext && {
16753 test "$cross_compiling" = yes ||
16754 $as_test_x conftest$ac_exeext
16756 ac_cv_func_mmap=yes
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16764 rm -rf conftest.dSYM
16765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766 conftest$ac_exeext conftest.$ac_ext
16768 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
16769 $as_echo "$ac_cv_func_mmap" >&6; }
16770 if test "x$ac_cv_func_mmap" = x""yes; then
16777 # Try to allow MAP_ANONYMOUS.
16778 gl_have_mmap_anonymous=no
16779 if test $gl_have_mmap = yes; then
16780 { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
16781 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16789 #include <sys/mman.h>
16790 #ifdef MAP_ANONYMOUS
16791 I cant identify this map.
16795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16796 $EGREP "I cant identify this map." >/dev/null 2>&1; then
16797 gl_have_mmap_anonymous=yes
16801 if test $gl_have_mmap_anonymous != yes; then
16802 cat >conftest.$ac_ext <<_ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16809 #include <sys/mman.h>
16811 I cant identify this map.
16815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16816 $EGREP "I cant identify this map." >/dev/null 2>&1; then
16818 cat >>confdefs.h <<\_ACEOF
16819 #define MAP_ANONYMOUS MAP_ANON
16822 gl_have_mmap_anonymous=yes
16827 { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
16828 $as_echo "$gl_have_mmap_anonymous" >&6; }
16829 if test $gl_have_mmap_anonymous = yes; then
16831 cat >>confdefs.h <<\_ACEOF
16832 #define HAVE_MAP_ANONYMOUS 1
16861 for ac_func in memchr
16863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16865 $as_echo_n "checking for $ac_func... " >&6; }
16866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16867 $as_echo_n "(cached) " >&6
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16877 #define $ac_func innocuous_$ac_func
16879 /* System header to define __stub macros and hopefully few prototypes,
16880 which can conflict with char $ac_func (); below.
16881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882 <limits.h> exists even on freestanding compilers. */
16885 # include <limits.h>
16887 # include <assert.h>
16892 /* Override any GCC internal prototype to avoid an error.
16893 Use char because int might match the return type of a GCC
16894 builtin and then its argument prototype would still apply. */
16899 /* The GNU C library defines this for functions which it implements
16900 to always fail with ENOSYS. Some functions are actually named
16901 something starting with __ and the normal name is an alias. */
16902 #if defined __stub_$ac_func || defined __stub___$ac_func
16909 return $ac_func ();
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921 $as_echo "$ac_try_echo") >&5
16922 (eval "$ac_link") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } && {
16929 test -z "$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16931 } && test -s conftest$ac_exeext && {
16932 test "$cross_compiling" = yes ||
16933 $as_test_x conftest$ac_exeext
16935 eval "$as_ac_var=yes"
16937 $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 eval "$as_ac_var=no"
16943 rm -rf conftest.dSYM
16944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945 conftest$ac_exeext conftest.$ac_ext
16947 ac_res=`eval 'as_val=${'$as_ac_var'}
16948 $as_echo "$as_val"'`
16949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16950 $as_echo "$ac_res" >&6; }
16951 as_val=`eval 'as_val=${'$as_ac_var'}
16952 $as_echo "$as_val"'`
16953 if test "x$as_val" = x""yes; then
16954 cat >>confdefs.h <<_ACEOF
16955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16960 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16966 if test $ac_cv_func_memchr = no; then
16969 for ac_header in bp-sym.h
16971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16973 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16974 $as_echo_n "checking for $ac_header... " >&6; }
16975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16976 $as_echo_n "(cached) " >&6
16978 ac_res=`eval 'as_val=${'$as_ac_Header'}
16979 $as_echo "$as_val"'`
16980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16981 $as_echo "$ac_res" >&6; }
16983 # Is the header compilable?
16984 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16985 $as_echo_n "checking $ac_header usability... " >&6; }
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 $ac_includes_default
16993 #include <$ac_header>
16995 rm -f conftest.$ac_objext
16996 if { (ac_try="$ac_compile"
16997 case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17002 $as_echo "$ac_try_echo") >&5
17003 (eval "$ac_compile") 2>conftest.er1
17005 grep -v '^ *+' conftest.er1 >conftest.err
17007 cat conftest.err >&5
17008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && {
17010 test -z "$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17012 } && test -s conftest.$ac_objext; then
17013 ac_header_compiler=yes
17015 $as_echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 ac_header_compiler=no
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17023 $as_echo "$ac_header_compiler" >&6; }
17025 # Is the header present?
17026 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17027 $as_echo_n "checking $ac_header presence... " >&6; }
17028 cat >conftest.$ac_ext <<_ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034 #include <$ac_header>
17036 if { (ac_try="$ac_cpp conftest.$ac_ext"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } >/dev/null && {
17050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17051 test ! -s conftest.err
17053 ac_header_preproc=yes
17055 $as_echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_header_preproc=no
17061 rm -f conftest.err conftest.$ac_ext
17062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17063 $as_echo "$ac_header_preproc" >&6; }
17065 # So? What about this header?
17066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17069 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17072 ac_header_preproc=yes
17075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17076 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17078 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17080 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17082 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17084 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17086 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17088 ## ------------------------------- ##
17089 ## Report this to bug-wget@gnu.org ##
17090 ## ------------------------------- ##
17092 ) | sed "s/^/$as_me: WARNING: /" >&2
17095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17096 $as_echo_n "checking for $ac_header... " >&6; }
17097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17098 $as_echo_n "(cached) " >&6
17100 eval "$as_ac_Header=\$ac_header_preproc"
17102 ac_res=`eval 'as_val=${'$as_ac_Header'}
17103 $as_echo "$as_val"'`
17104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17105 $as_echo "$ac_res" >&6; }
17108 as_val=`eval 'as_val=${'$as_ac_Header'}
17109 $as_echo "$as_val"'`
17110 if test "x$as_val" = x""yes; then
17111 cat >>confdefs.h <<_ACEOF
17112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17123 if test $ac_cv_func_memchr = yes; then
17124 # Detect platform-specific bugs in some versions of glibc:
17125 # memchr should not dereference anything with length 0
17126 # http://bugzilla.redhat.com/499689
17127 # memchr should not dereference overestimated length after a match
17128 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17129 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17130 # Assume that memchr works on platforms that lack mprotect.
17131 { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
17132 $as_echo_n "checking whether memchr works... " >&6; }
17133 if test "${gl_cv_func_memchr_works+set}" = set; then
17134 $as_echo_n "(cached) " >&6
17136 if test "$cross_compiling" = yes; then
17137 gl_cv_func_memchr_works="guessing no"
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17146 #include <string.h>
17147 #if HAVE_SYS_MMAN_H
17148 # include <fcntl.h>
17149 # include <unistd.h>
17150 # include <sys/types.h>
17151 # include <sys/mman.h>
17153 # define MAP_FILE 0
17161 char *fence = NULL;
17162 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17163 # if HAVE_MAP_ANONYMOUS
17164 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17166 # else /* !HAVE_MAP_ANONYMOUS */
17167 const int flags = MAP_FILE | MAP_PRIVATE;
17168 int fd = open ("/dev/zero", O_RDONLY, 0666);
17172 int pagesize = getpagesize ();
17174 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17176 if (two_pages != (char *)(-1)
17177 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17178 fence = two_pages + pagesize;
17183 if (memchr (fence, 0, 0))
17185 strcpy (fence - 9, "12345678");
17186 if (memchr (fence - 9, 0, 79) != fence - 1)
17195 rm -f conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_link") 2>&5
17205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212 $as_echo "$ac_try_echo") >&5
17213 (eval "$ac_try") 2>&5
17215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 gl_cv_func_memchr_works=yes
17219 $as_echo "$as_me: program exited with status $ac_status" >&5
17220 $as_echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ( exit $ac_status )
17224 gl_cv_func_memchr_works=no
17226 rm -rf conftest.dSYM
17227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17232 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
17233 $as_echo "$gl_cv_func_memchr_works" >&6; }
17234 if test "$gl_cv_func_memchr_works" != yes; then
17237 for ac_header in bp-sym.h
17239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17242 $as_echo_n "checking for $ac_header... " >&6; }
17243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17244 $as_echo_n "(cached) " >&6
17246 ac_res=`eval 'as_val=${'$as_ac_Header'}
17247 $as_echo "$as_val"'`
17248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17249 $as_echo "$ac_res" >&6; }
17251 # Is the header compilable?
17252 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17253 $as_echo_n "checking $ac_header usability... " >&6; }
17254 cat >conftest.$ac_ext <<_ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17260 $ac_includes_default
17261 #include <$ac_header>
17263 rm -f conftest.$ac_objext
17264 if { (ac_try="$ac_compile"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17270 $as_echo "$ac_try_echo") >&5
17271 (eval "$ac_compile") 2>conftest.er1
17273 grep -v '^ *+' conftest.er1 >conftest.err
17275 cat conftest.err >&5
17276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } && {
17278 test -z "$ac_c_werror_flag" ||
17279 test ! -s conftest.err
17280 } && test -s conftest.$ac_objext; then
17281 ac_header_compiler=yes
17283 $as_echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_header_compiler=no
17289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17291 $as_echo "$ac_header_compiler" >&6; }
17293 # Is the header present?
17294 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17295 $as_echo_n "checking $ac_header presence... " >&6; }
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 #include <$ac_header>
17304 if { (ac_try="$ac_cpp conftest.$ac_ext"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17310 $as_echo "$ac_try_echo") >&5
17311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } >/dev/null && {
17318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17319 test ! -s conftest.err
17321 ac_header_preproc=yes
17323 $as_echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 ac_header_preproc=no
17329 rm -f conftest.err conftest.$ac_ext
17330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331 $as_echo "$ac_header_preproc" >&6; }
17333 # So? What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17337 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17339 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17340 ac_header_preproc=yes
17343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17344 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17346 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17348 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17350 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17354 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17356 ## ------------------------------- ##
17357 ## Report this to bug-wget@gnu.org ##
17358 ## ------------------------------- ##
17360 ) | sed "s/^/$as_me: WARNING: /" >&2
17363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17364 $as_echo_n "checking for $ac_header... " >&6; }
17365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366 $as_echo_n "(cached) " >&6
17368 eval "$as_ac_Header=\$ac_header_preproc"
17370 ac_res=`eval 'as_val=${'$as_ac_Header'}
17371 $as_echo "$as_val"'`
17372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17373 $as_echo "$ac_res" >&6; }
17376 as_val=`eval 'as_val=${'$as_ac_Header'}
17377 $as_echo "$as_val"'`
17378 if test "x$as_val" = x""yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17397 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
17403 gl_cv_c_multiarch=no
17404 cat >conftest.$ac_ext <<_ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 #ifndef __APPLE_CC__
17411 not a universal capable compiler
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17423 $as_echo "$ac_try_echo") >&5
17424 (eval "$ac_compile") 2>conftest.er1
17426 grep -v '^ *+' conftest.er1 >conftest.err
17428 cat conftest.err >&5
17429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } && {
17431 test -z "$ac_c_werror_flag" ||
17432 test ! -s conftest.err
17433 } && test -s conftest.$ac_objext; then
17437 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17438 if test -n "$prev"; then
17440 i?86 | x86_64 | ppc | ppc64)
17441 if test -z "$arch" || test "$arch" = "$word"; then
17444 gl_cv_c_multiarch=yes
17450 if test "x$word" = "x-arch"; then
17457 $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 if test $gl_cv_c_multiarch = yes; then
17466 cat >>confdefs.h <<\_ACEOF
17467 #define AA_APPLE_UNIVERSAL_BUILD 1
17470 APPLE_UNIVERSAL_BUILD=1
17472 APPLE_UNIVERSAL_BUILD=0
17477 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17478 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17479 if test "${gl_cv_func_malloc_posix+set}" = set; then
17480 $as_echo_n "(cached) " >&6
17483 cat >conftest.$ac_ext <<_ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17493 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17501 rm -f conftest.$ac_objext
17502 if { (ac_try="$ac_compile"
17503 case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17508 $as_echo "$ac_try_echo") >&5
17509 (eval "$ac_compile") 2>conftest.er1
17511 grep -v '^ *+' conftest.er1 >conftest.err
17513 cat conftest.err >&5
17514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } && {
17516 test -z "$ac_c_werror_flag" ||
17517 test ! -s conftest.err
17518 } && test -s conftest.$ac_objext; then
17519 gl_cv_func_malloc_posix=yes
17521 $as_echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 gl_cv_func_malloc_posix=no
17527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17530 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
17531 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17534 GNULIB_MALLOC_POSIX=0;
17535 GNULIB_REALLOC_POSIX=0;
17536 GNULIB_CALLOC_POSIX=0;
17538 GNULIB_GETLOADAVG=0;
17539 GNULIB_GETSUBOPT=0;
17552 HAVE_CALLOC_POSIX=1;
17554 HAVE_MALLOC_POSIX=1;
17557 HAVE_REALLOC_POSIX=1;
17564 HAVE_STRUCT_RANDOM_DATA=1;
17565 HAVE_SYS_LOADAVG_H=0;
17567 HAVE_DECL_GETLOADAVG=1;
17579 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
17580 $as_echo_n "checking for wchar_t... " >&6; }
17581 if test "${gt_cv_c_wchar_t+set}" = set; then
17582 $as_echo_n "(cached) " >&6
17584 cat >conftest.$ac_ext <<_ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590 #include <stddef.h>
17591 wchar_t foo = (wchar_t)'\0';
17600 rm -f conftest.$ac_objext
17601 if { (ac_try="$ac_compile"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17607 $as_echo "$ac_try_echo") >&5
17608 (eval "$ac_compile") 2>conftest.er1
17610 grep -v '^ *+' conftest.er1 >conftest.err
17612 cat conftest.err >&5
17613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } && {
17615 test -z "$ac_c_werror_flag" ||
17616 test ! -s conftest.err
17617 } && test -s conftest.$ac_objext; then
17618 gt_cv_c_wchar_t=yes
17620 $as_echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17629 $as_echo "$gt_cv_c_wchar_t" >&6; }
17630 if test $gt_cv_c_wchar_t = yes; then
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_WCHAR_T 1
17641 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17642 $as_echo_n "checking for long long int... " >&6; }
17643 if test "${ac_cv_type_long_long_int+set}" = set; then
17644 $as_echo_n "(cached) " >&6
17646 cat >conftest.$ac_ext <<_ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17653 /* For now, do not test the preprocessor; as of 2007 there are too many
17654 implementations with broken preprocessors. Perhaps this can
17655 be revisited in 2012. In the meantime, code should not expect
17656 #if to work with literals wider than 32 bits. */
17657 /* Test literals. */
17658 long long int ll = 9223372036854775807ll;
17659 long long int nll = -9223372036854775807LL;
17660 unsigned long long int ull = 18446744073709551615ULL;
17661 /* Test constant expressions. */
17662 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17664 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17670 /* Test availability of runtime routines for shift and division. */
17671 long long int llmax = 9223372036854775807ll;
17672 unsigned long long int ullmax = 18446744073709551615ull;
17673 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17674 | (llmax / ll) | (llmax % ll)
17675 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17676 | (ullmax / ull) | (ullmax % ull));
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (ac_try="$ac_link"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17689 $as_echo "$ac_try_echo") >&5
17690 (eval "$ac_link") 2>conftest.er1
17692 grep -v '^ *+' conftest.er1 >conftest.err
17694 cat conftest.err >&5
17695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } && {
17697 test -z "$ac_c_werror_flag" ||
17698 test ! -s conftest.err
17699 } && test -s conftest$ac_exeext && {
17700 test "$cross_compiling" = yes ||
17701 $as_test_x conftest$ac_exeext
17703 if test "$cross_compiling" = yes; then
17704 ac_cv_type_long_long_int=yes
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 #include <limits.h>
17715 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17716 # define LLONG_MAX (HALF - 1 + HALF)
17721 long long int n = 1;
17725 long long int m = n << i;
17728 if (LLONG_MAX / 2 < m)
17736 rm -f conftest$ac_exeext
17737 if { (ac_try="$ac_link"
17738 case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17743 $as_echo "$ac_try_echo") >&5
17744 (eval "$ac_link") 2>&5
17746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17753 $as_echo "$ac_try_echo") >&5
17754 (eval "$ac_try") 2>&5
17756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_cv_type_long_long_int=yes
17760 $as_echo "$as_me: program exited with status $ac_status" >&5
17761 $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ( exit $ac_status )
17765 ac_cv_type_long_long_int=no
17767 rm -rf conftest.dSYM
17768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17773 $as_echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_cv_type_long_long_int=no
17779 rm -rf conftest.dSYM
17780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17781 conftest$ac_exeext conftest.$ac_ext
17783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17784 $as_echo "$ac_cv_type_long_long_int" >&6; }
17785 if test $ac_cv_type_long_long_int = yes; then
17787 cat >>confdefs.h <<\_ACEOF
17788 #define HAVE_LONG_LONG_INT 1
17794 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
17795 $as_echo_n "checking for unsigned long long int... " >&6; }
17796 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
17797 $as_echo_n "(cached) " >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 /* For now, do not test the preprocessor; as of 2007 there are too many
17807 implementations with broken preprocessors. Perhaps this can
17808 be revisited in 2012. In the meantime, code should not expect
17809 #if to work with literals wider than 32 bits. */
17810 /* Test literals. */
17811 long long int ll = 9223372036854775807ll;
17812 long long int nll = -9223372036854775807LL;
17813 unsigned long long int ull = 18446744073709551615ULL;
17814 /* Test constant expressions. */
17815 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17817 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17823 /* Test availability of runtime routines for shift and division. */
17824 long long int llmax = 9223372036854775807ll;
17825 unsigned long long int ullmax = 18446744073709551615ull;
17826 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17827 | (llmax / ll) | (llmax % ll)
17828 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17829 | (ullmax / ull) | (ullmax % ull));
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842 $as_echo "$ac_try_echo") >&5
17843 (eval "$ac_link") 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest$ac_exeext && {
17853 test "$cross_compiling" = yes ||
17854 $as_test_x conftest$ac_exeext
17856 ac_cv_type_unsigned_long_long_int=yes
17858 $as_echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 ac_cv_type_unsigned_long_long_int=no
17864 rm -rf conftest.dSYM
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17868 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
17869 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17870 if test $ac_cv_type_unsigned_long_long_int = yes; then
17872 cat >>confdefs.h <<\_ACEOF
17873 #define HAVE_UNSIGNED_LONG_LONG_INT 1
17888 HAVE_DECL_STRNCASECMP=1;
17897 for ac_func in strcasestr
17899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17900 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17901 $as_echo_n "checking for $ac_func... " >&6; }
17902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17903 $as_echo_n "(cached) " >&6
17905 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17913 #define $ac_func innocuous_$ac_func
17915 /* System header to define __stub macros and hopefully few prototypes,
17916 which can conflict with char $ac_func (); below.
17917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918 <limits.h> exists even on freestanding compilers. */
17921 # include <limits.h>
17923 # include <assert.h>
17928 /* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17935 /* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
17938 #if defined __stub_$ac_func || defined __stub___$ac_func
17945 return $ac_func ();
17950 rm -f conftest.$ac_objext conftest$ac_exeext
17951 if { (ac_try="$ac_link"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17957 $as_echo "$ac_try_echo") >&5
17958 (eval "$ac_link") 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } && {
17965 test -z "$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17967 } && test -s conftest$ac_exeext && {
17968 test "$cross_compiling" = yes ||
17969 $as_test_x conftest$ac_exeext
17971 eval "$as_ac_var=yes"
17973 $as_echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17976 eval "$as_ac_var=no"
17979 rm -rf conftest.dSYM
17980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17981 conftest$ac_exeext conftest.$ac_ext
17983 ac_res=`eval 'as_val=${'$as_ac_var'}
17984 $as_echo "$as_val"'`
17985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17986 $as_echo "$ac_res" >&6; }
17987 as_val=`eval 'as_val=${'$as_ac_var'}
17988 $as_echo "$as_val"'`
17989 if test "x$as_val" = x""yes; then
17990 cat >>confdefs.h <<_ACEOF
17991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17997 if test $ac_cv_func_strcasestr = no; then
18000 if test "$gl_cv_func_memchr_works" != yes; then
18001 REPLACE_STRCASESTR=1
18004 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
18013 gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
18025 if test -z "$ERRNO_H"; then
18026 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
18027 $as_echo_n "checking for working strerror function... " >&6; }
18028 if test "${gl_cv_func_working_strerror+set}" = set; then
18029 $as_echo_n "(cached) " >&6
18031 if test "$cross_compiling" = yes; then
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 #include <string.h>
18043 return !*strerror (-2);
18048 rm -f conftest.$ac_objext
18049 if { (ac_try="$ac_compile"
18050 case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18055 $as_echo "$ac_try_echo") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
18066 gl_cv_func_working_strerror=yes
18068 $as_echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 gl_cv_func_working_strerror=no
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <string.h>
18088 return !*strerror (-2);
18093 rm -f conftest$ac_exeext
18094 if { (ac_try="$ac_link"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100 $as_echo "$ac_try_echo") >&5
18101 (eval "$ac_link") 2>&5
18103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18105 { (case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18110 $as_echo "$ac_try_echo") >&5
18111 (eval "$ac_try") 2>&5
18113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 gl_cv_func_working_strerror=yes
18117 $as_echo "$as_me: program exited with status $ac_status" >&5
18118 $as_echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ( exit $ac_status )
18122 gl_cv_func_working_strerror=no
18124 rm -rf conftest.dSYM
18125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18131 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
18132 $as_echo "$gl_cv_func_working_strerror" >&6; }
18133 if test $gl_cv_func_working_strerror = no; then
18139 if test $REPLACE_STRERROR = 1; then
18141 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
18142 $as_echo_n "checking whether strerror is declared... " >&6; }
18143 if test "${ac_cv_have_decl_strerror+set}" = set; then
18144 $as_echo_n "(cached) " >&6
18146 cat >conftest.$ac_ext <<_ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 $ac_includes_default
18164 rm -f conftest.$ac_objext
18165 if { (ac_try="$ac_compile"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18171 $as_echo "$ac_try_echo") >&5
18172 (eval "$ac_compile") 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && {
18179 test -z "$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18181 } && test -s conftest.$ac_objext; then
18182 ac_cv_have_decl_strerror=yes
18184 $as_echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 ac_cv_have_decl_strerror=no
18190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
18193 $as_echo "$ac_cv_have_decl_strerror" >&6; }
18194 if test "x$ac_cv_have_decl_strerror" = x""yes; then
18196 cat >>confdefs.h <<_ACEOF
18197 #define HAVE_DECL_STRERROR 1
18202 cat >>confdefs.h <<_ACEOF
18203 #define HAVE_DECL_STRERROR 0
18216 if test $ac_cv_header_sys_socket_h != yes; then
18218 for ac_header in winsock2.h
18220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18223 $as_echo_n "checking for $ac_header... " >&6; }
18224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18225 $as_echo_n "(cached) " >&6
18227 ac_res=`eval 'as_val=${'$as_ac_Header'}
18228 $as_echo "$as_val"'`
18229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18230 $as_echo "$ac_res" >&6; }
18232 # Is the header compilable?
18233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18234 $as_echo_n "checking $ac_header usability... " >&6; }
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18241 $ac_includes_default
18242 #include <$ac_header>
18244 rm -f conftest.$ac_objext
18245 if { (ac_try="$ac_compile"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251 $as_echo "$ac_try_echo") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest.$ac_objext; then
18262 ac_header_compiler=yes
18264 $as_echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_header_compiler=no
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18272 $as_echo "$ac_header_compiler" >&6; }
18274 # Is the header present?
18275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18276 $as_echo_n "checking $ac_header presence... " >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 #include <$ac_header>
18285 if { (ac_try="$ac_cpp conftest.$ac_ext"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291 $as_echo "$ac_try_echo") >&5
18292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } >/dev/null && {
18299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18302 ac_header_preproc=yes
18304 $as_echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 ac_header_preproc=no
18310 rm -f conftest.err conftest.$ac_ext
18311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18312 $as_echo "$ac_header_preproc" >&6; }
18314 # So? What about this header?
18315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18321 ac_header_preproc=yes
18324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18327 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18331 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18337 ## ------------------------------- ##
18338 ## Report this to bug-wget@gnu.org ##
18339 ## ------------------------------- ##
18341 ) | sed "s/^/$as_me: WARNING: /" >&2
18344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 $as_echo_n "checking for $ac_header... " >&6; }
18346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18347 $as_echo_n "(cached) " >&6
18349 eval "$as_ac_Header=\$ac_header_preproc"
18351 ac_res=`eval 'as_val=${'$as_ac_Header'}
18352 $as_echo "$as_val"'`
18353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18354 $as_echo "$ac_res" >&6; }
18357 as_val=`eval 'as_val=${'$as_ac_Header'}
18358 $as_echo "$as_val"'`
18359 if test "x$as_val" = x""yes; then
18360 cat >>confdefs.h <<_ACEOF
18361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18372 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
18373 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18374 if test "${ac_cv_c_restrict+set}" = set; then
18375 $as_echo_n "(cached) " >&6
18377 ac_cv_c_restrict=no
18378 # The order here caters to the fact that C++ does not require restrict.
18379 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18380 cat >conftest.$ac_ext <<_ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 typedef int * int_ptr;
18387 int foo (int_ptr $ac_kw ip) {
18394 int * $ac_kw t = s;
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408 $as_echo "$ac_try_echo") >&5
18409 (eval "$ac_compile") 2>conftest.er1
18411 grep -v '^ *+' conftest.er1 >conftest.err
18413 cat conftest.err >&5
18414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest.$ac_objext; then
18419 ac_cv_c_restrict=$ac_kw
18421 $as_echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428 test "$ac_cv_c_restrict" != no && break
18432 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
18433 $as_echo "$ac_cv_c_restrict" >&6; }
18436 case $ac_cv_c_restrict in
18438 no) cat >>confdefs.h <<\_ACEOF
18439 #define restrict /**/
18442 *) cat >>confdefs.h <<_ACEOF
18443 #define restrict $ac_cv_c_restrict
18464 if test $gl_cv_have_include_next = yes; then
18465 gl_cv_next_string_h='<'string.h'>'
18467 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
18468 $as_echo_n "checking absolute name of <string.h>... " >&6; }
18469 if test "${gl_cv_next_string_h+set}" = set; then
18470 $as_echo_n "(cached) " >&6
18473 if test $ac_cv_header_string_h = yes; then
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 #include <string.h>
18484 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18485 *) gl_absname_cpp="$ac_cpp" ;;
18487 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18488 sed -n '\#/string.h#{
18489 s#.*"\(.*/string.h\)".*#\1#
18495 gl_cv_next_string_h='<'string.h'>'
18499 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
18500 $as_echo "$gl_cv_next_string_h" >&6; }
18502 NEXT_STRING_H=$gl_cv_next_string_h
18504 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18506 gl_next_as_first_directive='<'string.h'>'
18508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18509 gl_next_as_first_directive=$gl_cv_next_string_h
18511 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18531 if test $gl_cv_have_include_next = yes; then
18532 gl_cv_next_strings_h='<'strings.h'>'
18534 { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
18535 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
18536 if test "${gl_cv_next_strings_h+set}" = set; then
18537 $as_echo_n "(cached) " >&6
18540 if test $ac_cv_header_strings_h = yes; then
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 #include <strings.h>
18551 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18552 *) gl_absname_cpp="$ac_cpp" ;;
18554 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18555 sed -n '\#/strings.h#{
18556 s#.*"\(.*/strings.h\)".*#\1#
18562 gl_cv_next_strings_h='<'strings.h'>'
18566 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
18567 $as_echo "$gl_cv_next_strings_h" >&6; }
18569 NEXT_STRINGS_H=$gl_cv_next_strings_h
18571 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18573 gl_next_as_first_directive='<'strings.h'>'
18575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18576 gl_next_as_first_directive=$gl_cv_next_strings_h
18578 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
18586 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
18587 $as_echo_n "checking for wint_t... " >&6; }
18588 if test "${gt_cv_c_wint_t+set}" = set; then
18589 $as_echo_n "(cached) " >&6
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18598 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18600 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18601 before <wchar.h>. */
18602 #include <stddef.h>
18606 wint_t foo = (wchar_t)'\0';
18615 rm -f conftest.$ac_objext
18616 if { (ac_try="$ac_compile"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18622 $as_echo "$ac_try_echo") >&5
18623 (eval "$ac_compile") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } && {
18630 test -z "$ac_c_werror_flag" ||
18631 test ! -s conftest.err
18632 } && test -s conftest.$ac_objext; then
18635 $as_echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18643 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18644 $as_echo "$gt_cv_c_wint_t" >&6; }
18645 if test $gt_cv_c_wint_t = yes; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE_WINT_T 1
18659 GL_COND_LIBTOOL_TRUE=
18660 GL_COND_LIBTOOL_FALSE='#'
18662 GL_COND_LIBTOOL_TRUE='#'
18663 GL_COND_LIBTOOL_FALSE=
18666 gl_cond_libtool=false
18678 gl_source_base='lib'
18684 if test $ac_cv_func_alloca_works = no; then
18688 # Define an additional variable used in the Makefile substitution.
18689 if test $ac_cv_working_alloca_h = yes; then
18690 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18691 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18692 if test "${gl_cv_rpl_alloca+set}" = set; then
18693 $as_echo_n "(cached) " >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18703 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18709 $EGREP "Need own alloca" >/dev/null 2>&1; then
18710 gl_cv_rpl_alloca=yes
18712 gl_cv_rpl_alloca=no
18718 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18719 $as_echo "$gl_cv_rpl_alloca" >&6; }
18720 if test $gl_cv_rpl_alloca = yes; then
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_ALLOCA 1
18749 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
18750 $as_echo_n "checking for error_at_line... " >&6; }
18751 if test "${ac_cv_lib_error_at_line+set}" = set; then
18752 $as_echo_n "(cached) " >&6
18754 cat >conftest.$ac_ext <<_ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18764 error_at_line (0, 0, "", 0, "an error occurred");
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776 $as_echo "$ac_try_echo") >&5
18777 (eval "$ac_link") 2>conftest.er1
18779 grep -v '^ *+' conftest.er1 >conftest.err
18781 cat conftest.err >&5
18782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } && {
18784 test -z "$ac_c_werror_flag" ||
18785 test ! -s conftest.err
18786 } && test -s conftest$ac_exeext && {
18787 test "$cross_compiling" = yes ||
18788 $as_test_x conftest$ac_exeext
18790 ac_cv_lib_error_at_line=yes
18792 $as_echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ac_cv_lib_error_at_line=no
18798 rm -rf conftest.dSYM
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800 conftest$ac_exeext conftest.$ac_ext
18802 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18803 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18804 if test $ac_cv_lib_error_at_line = no; then
18813 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18824 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
18828 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
18839 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
18851 { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
18852 $as_echo_n "checking for fseeko... " >&6; }
18853 if test "${gl_cv_func_fseeko+set}" = set; then
18854 $as_echo_n "(cached) " >&6
18857 cat >conftest.$ac_ext <<_ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18867 fseeko (stdin, 0, 0);
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (ac_try="$ac_link"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18879 $as_echo "$ac_try_echo") >&5
18880 (eval "$ac_link") 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && {
18887 test -z "$ac_c_werror_flag" ||
18888 test ! -s conftest.err
18889 } && test -s conftest$ac_exeext && {
18890 test "$cross_compiling" = yes ||
18891 $as_test_x conftest$ac_exeext
18893 gl_cv_func_fseeko=yes
18895 $as_echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18898 gl_cv_func_fseeko=no
18901 rm -rf conftest.dSYM
18902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903 conftest$ac_exeext conftest.$ac_ext
18906 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
18907 $as_echo "$gl_cv_func_fseeko" >&6; }
18908 if test $gl_cv_func_fseeko = no; then
18919 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18924 elif test $gl_cv_var_stdin_large_offset = no; then
18934 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18959 for ac_func in getdelim
18961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18962 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18963 $as_echo_n "checking for $ac_func... " >&6; }
18964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18965 $as_echo_n "(cached) " >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18975 #define $ac_func innocuous_$ac_func
18977 /* System header to define __stub macros and hopefully few prototypes,
18978 which can conflict with char $ac_func (); below.
18979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980 <limits.h> exists even on freestanding compilers. */
18983 # include <limits.h>
18985 # include <assert.h>
18990 /* Override any GCC internal prototype to avoid an error.
18991 Use char because int might match the return type of a GCC
18992 builtin and then its argument prototype would still apply. */
18997 /* The GNU C library defines this for functions which it implements
18998 to always fail with ENOSYS. Some functions are actually named
18999 something starting with __ and the normal name is an alias. */
19000 #if defined __stub_$ac_func || defined __stub___$ac_func
19007 return $ac_func ();
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (ac_try="$ac_link"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020 (eval "$ac_link") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest$ac_exeext && {
19030 test "$cross_compiling" = yes ||
19031 $as_test_x conftest$ac_exeext
19033 eval "$as_ac_var=yes"
19035 $as_echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 eval "$as_ac_var=no"
19041 rm -rf conftest.dSYM
19042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043 conftest$ac_exeext conftest.$ac_ext
19045 ac_res=`eval 'as_val=${'$as_ac_var'}
19046 $as_echo "$as_val"'`
19047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19048 $as_echo "$ac_res" >&6; }
19049 as_val=`eval 'as_val=${'$as_ac_var'}
19050 $as_echo "$as_val"'`
19051 if test "x$as_val" = x""yes; then
19052 cat >>confdefs.h <<_ACEOF
19053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19058 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19069 if test $ac_cv_func_getdelim = no; then
19073 for ac_func in flockfile funlockfile
19075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19076 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19077 $as_echo_n "checking for $ac_func... " >&6; }
19078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19079 $as_echo_n "(cached) " >&6
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19089 #define $ac_func innocuous_$ac_func
19091 /* System header to define __stub macros and hopefully few prototypes,
19092 which can conflict with char $ac_func (); below.
19093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19094 <limits.h> exists even on freestanding compilers. */
19097 # include <limits.h>
19099 # include <assert.h>
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19111 /* The GNU C library defines this for functions which it implements
19112 to always fail with ENOSYS. Some functions are actually named
19113 something starting with __ and the normal name is an alias. */
19114 #if defined __stub_$ac_func || defined __stub___$ac_func
19121 return $ac_func ();
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19133 $as_echo "$ac_try_echo") >&5
19134 (eval "$ac_link") 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } && {
19141 test -z "$ac_c_werror_flag" ||
19142 test ! -s conftest.err
19143 } && test -s conftest$ac_exeext && {
19144 test "$cross_compiling" = yes ||
19145 $as_test_x conftest$ac_exeext
19147 eval "$as_ac_var=yes"
19149 $as_echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 eval "$as_ac_var=no"
19155 rm -rf conftest.dSYM
19156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19157 conftest$ac_exeext conftest.$ac_ext
19159 ac_res=`eval 'as_val=${'$as_ac_var'}
19160 $as_echo "$as_val"'`
19161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19162 $as_echo "$ac_res" >&6; }
19163 as_val=`eval 'as_val=${'$as_ac_var'}
19164 $as_echo "$as_val"'`
19165 if test "x$as_val" = x""yes; then
19166 cat >>confdefs.h <<_ACEOF
19167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19173 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19174 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19175 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19176 $as_echo_n "(cached) " >&6
19178 cat >conftest.$ac_ext <<_ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 $ac_includes_default
19188 #ifndef getc_unlocked
19189 (void) getc_unlocked;
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19203 $as_echo "$ac_try_echo") >&5
19204 (eval "$ac_compile") 2>conftest.er1
19206 grep -v '^ *+' conftest.er1 >conftest.err
19208 cat conftest.err >&5
19209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } && {
19211 test -z "$ac_c_werror_flag" ||
19212 test ! -s conftest.err
19213 } && test -s conftest.$ac_objext; then
19214 ac_cv_have_decl_getc_unlocked=yes
19216 $as_echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_cv_have_decl_getc_unlocked=no
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19225 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19226 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19228 cat >>confdefs.h <<_ACEOF
19229 #define HAVE_DECL_GETC_UNLOCKED 1
19234 cat >>confdefs.h <<_ACEOF
19235 #define HAVE_DECL_GETC_UNLOCKED 0
19245 if test $ac_cv_have_decl_getdelim = no; then
19246 HAVE_DECL_GETDELIM=0
19263 gl_getline_needs_run_time_check=no
19264 { $as_echo "$as_me:$LINENO: checking for getline" >&5
19265 $as_echo_n "checking for getline... " >&6; }
19266 if test "${ac_cv_func_getline+set}" = set; then
19267 $as_echo_n "(cached) " >&6
19269 cat >conftest.$ac_ext <<_ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19275 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
19276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19277 #define getline innocuous_getline
19279 /* System header to define __stub macros and hopefully few prototypes,
19280 which can conflict with char getline (); below.
19281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19282 <limits.h> exists even on freestanding compilers. */
19285 # include <limits.h>
19287 # include <assert.h>
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19299 /* The GNU C library defines this for functions which it implements
19300 to always fail with ENOSYS. Some functions are actually named
19301 something starting with __ and the normal name is an alias. */
19302 #if defined __stub_getline || defined __stub___getline
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (ac_try="$ac_link"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322 (eval "$ac_link") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } && {
19329 test -z "$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 } && test -s conftest$ac_exeext && {
19332 test "$cross_compiling" = yes ||
19333 $as_test_x conftest$ac_exeext
19335 ac_cv_func_getline=yes
19337 $as_echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_func_getline=no
19343 rm -rf conftest.dSYM
19344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345 conftest$ac_exeext conftest.$ac_ext
19347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
19348 $as_echo "$ac_cv_func_getline" >&6; }
19349 if test "x$ac_cv_func_getline" = x""yes; then
19350 gl_getline_needs_run_time_check=yes
19352 am_cv_func_working_getline=no
19355 if test $gl_getline_needs_run_time_check = yes; then
19356 { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
19357 $as_echo_n "checking for working getline function... " >&6; }
19358 if test "${am_cv_func_working_getline+set}" = set; then
19359 $as_echo_n "(cached) " >&6
19361 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
19362 if test "$cross_compiling" = yes; then
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 #include <features.h>
19371 #ifdef __GNU_LIBRARY__
19372 #if (__GLIBC__ >= 2)
19378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19379 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
19380 am_cv_func_working_getline=yes
19382 am_cv_func_working_getline=no
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19395 # include <stdio.h>
19396 # include <stdlib.h>
19397 # include <string.h>
19399 { /* Based on a test program from Karl Heuer. */
19403 FILE *in = fopen ("./conftest.data", "r");
19406 len = getline (&line, &siz, in);
19407 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
19411 rm -f conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418 $as_echo "$ac_try_echo") >&5
19419 (eval "$ac_link") 2>&5
19421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428 $as_echo "$ac_try_echo") >&5
19429 (eval "$ac_try") 2>&5
19431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 am_cv_func_working_getline=yes
19435 $as_echo "$as_me: program exited with status $ac_status" >&5
19436 $as_echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19439 ( exit $ac_status )
19440 am_cv_func_working_getline=no
19442 rm -rf conftest.dSYM
19443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19448 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
19449 $as_echo "$am_cv_func_working_getline" >&6; }
19452 if test $ac_cv_have_decl_getline = no; then
19453 HAVE_DECL_GETLINE=0
19456 if test $am_cv_func_working_getline = no; then
19466 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
19484 for ac_func in getdelim
19486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19487 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19488 $as_echo_n "checking for $ac_func... " >&6; }
19489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19490 $as_echo_n "(cached) " >&6
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19500 #define $ac_func innocuous_$ac_func
19502 /* System header to define __stub macros and hopefully few prototypes,
19503 which can conflict with char $ac_func (); below.
19504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505 <limits.h> exists even on freestanding compilers. */
19508 # include <limits.h>
19510 # include <assert.h>
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19522 /* The GNU C library defines this for functions which it implements
19523 to always fail with ENOSYS. Some functions are actually named
19524 something starting with __ and the normal name is an alias. */
19525 #if defined __stub_$ac_func || defined __stub___$ac_func
19532 return $ac_func ();
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19544 $as_echo "$ac_try_echo") >&5
19545 (eval "$ac_link") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } && {
19552 test -z "$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19554 } && test -s conftest$ac_exeext && {
19555 test "$cross_compiling" = yes ||
19556 $as_test_x conftest$ac_exeext
19558 eval "$as_ac_var=yes"
19560 $as_echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 eval "$as_ac_var=no"
19566 rm -rf conftest.dSYM
19567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19568 conftest$ac_exeext conftest.$ac_ext
19570 ac_res=`eval 'as_val=${'$as_ac_var'}
19571 $as_echo "$as_val"'`
19572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19573 $as_echo "$ac_res" >&6; }
19574 as_val=`eval 'as_val=${'$as_ac_var'}
19575 $as_echo "$as_val"'`
19576 if test "x$as_val" = x""yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19583 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19594 if test $ac_cv_func_getdelim = no; then
19598 for ac_func in flockfile funlockfile
19600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 $as_echo_n "checking for $ac_func... " >&6; }
19603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19604 $as_echo_n "(cached) " >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19614 #define $ac_func innocuous_$ac_func
19616 /* System header to define __stub macros and hopefully few prototypes,
19617 which can conflict with char $ac_func (); below.
19618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619 <limits.h> exists even on freestanding compilers. */
19622 # include <limits.h>
19624 # include <assert.h>
19629 /* Override any GCC internal prototype to avoid an error.
19630 Use char because int might match the return type of a GCC
19631 builtin and then its argument prototype would still apply. */
19636 /* The GNU C library defines this for functions which it implements
19637 to always fail with ENOSYS. Some functions are actually named
19638 something starting with __ and the normal name is an alias. */
19639 #if defined __stub_$ac_func || defined __stub___$ac_func
19646 return $ac_func ();
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658 $as_echo "$ac_try_echo") >&5
19659 (eval "$ac_link") 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest$ac_exeext && {
19669 test "$cross_compiling" = yes ||
19670 $as_test_x conftest$ac_exeext
19672 eval "$as_ac_var=yes"
19674 $as_echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 eval "$as_ac_var=no"
19680 rm -rf conftest.dSYM
19681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682 conftest$ac_exeext conftest.$ac_ext
19684 ac_res=`eval 'as_val=${'$as_ac_var'}
19685 $as_echo "$as_val"'`
19686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19687 $as_echo "$ac_res" >&6; }
19688 as_val=`eval 'as_val=${'$as_ac_var'}
19689 $as_echo "$as_val"'`
19690 if test "x$as_val" = x""yes; then
19691 cat >>confdefs.h <<_ACEOF
19692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19698 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19699 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19700 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19701 $as_echo_n "(cached) " >&6
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 $ac_includes_default
19713 #ifndef getc_unlocked
19714 (void) getc_unlocked;
19721 rm -f conftest.$ac_objext
19722 if { (ac_try="$ac_compile"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728 $as_echo "$ac_try_echo") >&5
19729 (eval "$ac_compile") 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest.$ac_objext; then
19739 ac_cv_have_decl_getc_unlocked=yes
19741 $as_echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_cv_have_decl_getc_unlocked=no
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19750 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19751 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19753 cat >>confdefs.h <<_ACEOF
19754 #define HAVE_DECL_GETC_UNLOCKED 1
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_DECL_GETC_UNLOCKED 0
19770 if test $ac_cv_have_decl_getdelim = no; then
19771 HAVE_DECL_GETDELIM=0
19788 cat >>confdefs.h <<\_ACEOF
19789 #define GNULIB_GETOPT_GNU 1
19798 if test -n "$gl_replace_getopt"; then
19804 cat >>confdefs.h <<\_ACEOF
19805 #define __GETOPT_PREFIX rpl_
19810 GNULIB_UNISTD_H_GETOPT=1
19819 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19829 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19847 for ac_func in getpagesize
19849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19850 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19851 $as_echo_n "checking for $ac_func... " >&6; }
19852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19853 $as_echo_n "(cached) " >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19863 #define $ac_func innocuous_$ac_func
19865 /* System header to define __stub macros and hopefully few prototypes,
19866 which can conflict with char $ac_func (); below.
19867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868 <limits.h> exists even on freestanding compilers. */
19871 # include <limits.h>
19873 # include <assert.h>
19878 /* Override any GCC internal prototype to avoid an error.
19879 Use char because int might match the return type of a GCC
19880 builtin and then its argument prototype would still apply. */
19885 /* The GNU C library defines this for functions which it implements
19886 to always fail with ENOSYS. Some functions are actually named
19887 something starting with __ and the normal name is an alias. */
19888 #if defined __stub_$ac_func || defined __stub___$ac_func
19895 return $ac_func ();
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (ac_try="$ac_link"
19902 case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19907 $as_echo "$ac_try_echo") >&5
19908 (eval "$ac_link") 2>conftest.er1
19910 grep -v '^ *+' conftest.er1 >conftest.err
19912 cat conftest.err >&5
19913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest$ac_exeext && {
19918 test "$cross_compiling" = yes ||
19919 $as_test_x conftest$ac_exeext
19921 eval "$as_ac_var=yes"
19923 $as_echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 eval "$as_ac_var=no"
19929 rm -rf conftest.dSYM
19930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19931 conftest$ac_exeext conftest.$ac_ext
19933 ac_res=`eval 'as_val=${'$as_ac_var'}
19934 $as_echo "$as_val"'`
19935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19936 $as_echo "$ac_res" >&6; }
19937 as_val=`eval 'as_val=${'$as_ac_var'}
19938 $as_echo "$as_val"'`
19939 if test "x$as_val" = x""yes; then
19940 cat >>confdefs.h <<_ACEOF
19941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19947 if test $ac_cv_func_getpagesize = no; then
19950 for ac_header in OS.h
19952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19955 $as_echo_n "checking for $ac_header... " >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 $as_echo_n "(cached) " >&6
19959 ac_res=`eval 'as_val=${'$as_ac_Header'}
19960 $as_echo "$as_val"'`
19961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19962 $as_echo "$ac_res" >&6; }
19964 # Is the header compilable?
19965 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966 $as_echo_n "checking $ac_header usability... " >&6; }
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 $ac_includes_default
19974 #include <$ac_header>
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983 $as_echo "$ac_try_echo") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest.$ac_objext; then
19994 ac_header_compiler=yes
19996 $as_echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_header_compiler=no
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004 $as_echo "$ac_header_compiler" >&6; }
20006 # Is the header present?
20007 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008 $as_echo_n "checking $ac_header presence... " >&6; }
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 #include <$ac_header>
20017 if { (ac_try="$ac_cpp conftest.$ac_ext"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023 $as_echo "$ac_try_echo") >&5
20024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } >/dev/null && {
20031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20034 ac_header_preproc=yes
20036 $as_echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_header_preproc=no
20042 rm -f conftest.err conftest.$ac_ext
20043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044 $as_echo "$ac_header_preproc" >&6; }
20046 # So? What about this header?
20047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053 ac_header_preproc=yes
20056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20059 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20063 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20069 ## ------------------------------- ##
20070 ## Report this to bug-wget@gnu.org ##
20071 ## ------------------------------- ##
20073 ) | sed "s/^/$as_me: WARNING: /" >&2
20076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20077 $as_echo_n "checking for $ac_header... " >&6; }
20078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079 $as_echo_n "(cached) " >&6
20081 eval "$as_ac_Header=\$ac_header_preproc"
20083 ac_res=`eval 'as_val=${'$as_ac_Header'}
20084 $as_echo "$as_val"'`
20085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20086 $as_echo "$ac_res" >&6; }
20089 as_val=`eval 'as_val=${'$as_ac_Header'}
20090 $as_echo "$as_val"'`
20091 if test "x$as_val" = x""yes; then
20092 cat >>confdefs.h <<_ACEOF
20093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20100 if test $ac_cv_header_OS_h = yes; then
20104 for ac_header in sys/param.h
20106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20109 $as_echo_n "checking for $ac_header... " >&6; }
20110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20111 $as_echo_n "(cached) " >&6
20113 ac_res=`eval 'as_val=${'$as_ac_Header'}
20114 $as_echo "$as_val"'`
20115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20116 $as_echo "$ac_res" >&6; }
20118 # Is the header compilable?
20119 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120 $as_echo_n "checking $ac_header usability... " >&6; }
20121 cat >conftest.$ac_ext <<_ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 $ac_includes_default
20128 #include <$ac_header>
20130 rm -f conftest.$ac_objext
20131 if { (ac_try="$ac_compile"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138 (eval "$ac_compile") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest.$ac_objext; then
20148 ac_header_compiler=yes
20150 $as_echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_compiler=no
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158 $as_echo "$ac_header_compiler" >&6; }
20160 # Is the header present?
20161 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162 $as_echo_n "checking $ac_header presence... " >&6; }
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <$ac_header>
20171 if { (ac_try="$ac_cpp conftest.$ac_ext"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20177 $as_echo "$ac_try_echo") >&5
20178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } >/dev/null && {
20185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20188 ac_header_preproc=yes
20190 $as_echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_preproc=no
20196 rm -f conftest.err conftest.$ac_ext
20197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198 $as_echo "$ac_header_preproc" >&6; }
20200 # So? What about this header?
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207 ac_header_preproc=yes
20210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20213 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20217 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20223 ## ------------------------------- ##
20224 ## Report this to bug-wget@gnu.org ##
20225 ## ------------------------------- ##
20227 ) | sed "s/^/$as_me: WARNING: /" >&2
20230 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20231 $as_echo_n "checking for $ac_header... " >&6; }
20232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233 $as_echo_n "(cached) " >&6
20235 eval "$as_ac_Header=\$ac_header_preproc"
20237 ac_res=`eval 'as_val=${'$as_ac_Header'}
20238 $as_echo "$as_val"'`
20239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20240 $as_echo "$ac_res" >&6; }
20243 as_val=`eval 'as_val=${'$as_ac_Header'}
20244 $as_echo "$as_val"'`
20245 if test "x$as_val" = x""yes; then
20246 cat >>confdefs.h <<_ACEOF
20247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254 if test $ac_cv_header_sys_param_h = yes; then
20260 REPLACE_GETPAGESIZE=1
20269 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
20276 GNULIB_GETPAGESIZE=1
20291 gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
20312 { $as_echo "$as_me:$LINENO: checking whether __fsetlocking is declared" >&5
20313 $as_echo_n "checking whether __fsetlocking is declared... " >&6; }
20314 if test "${ac_cv_have_decl___fsetlocking+set}" = set; then
20315 $as_echo_n "(cached) " >&6
20317 cat >conftest.$ac_ext <<_ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20324 #if HAVE_STDIO_EXT_H
20325 #include <stdio_ext.h>
20331 #ifndef __fsetlocking
20332 (void) __fsetlocking;
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20346 $as_echo "$ac_try_echo") >&5
20347 (eval "$ac_compile") 2>conftest.er1
20349 grep -v '^ *+' conftest.er1 >conftest.err
20351 cat conftest.err >&5
20352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } && {
20354 test -z "$ac_c_werror_flag" ||
20355 test ! -s conftest.err
20356 } && test -s conftest.$ac_objext; then
20357 ac_cv_have_decl___fsetlocking=yes
20359 $as_echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 ac_cv_have_decl___fsetlocking=no
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fsetlocking" >&5
20368 $as_echo "$ac_cv_have_decl___fsetlocking" >&6; }
20369 if test "x$ac_cv_have_decl___fsetlocking" = x""yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define HAVE_DECL___FSETLOCKING 1
20377 cat >>confdefs.h <<_ACEOF
20378 #define HAVE_DECL___FSETLOCKING 0
20408 cat >>confdefs.h <<\_ACEOF
20409 #define getpass gnu_getpass
20415 # Autoconf 2.61a.99 and earlier don't support linking a file only
20416 # in VPATH builds. But since GNUmakefile is for maintainer use
20417 # only, it does not matter if we skip the link with older autoconf.
20418 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
20419 # builds, so use a shell variable to bypass this.
20420 GNUmakefile=GNUmakefile
20421 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
20425 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
20426 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20427 if test "${gl_cv_c_inline_effective+set}" = set; then
20428 $as_echo_n "(cached) " >&6
20430 if test $ac_cv_c_inline = no; then
20431 gl_cv_c_inline_effective=no
20433 cat >conftest.$ac_ext <<_ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20443 #ifdef __NO_INLINE__
20444 #error "inline is not effective"
20450 rm -f conftest.$ac_objext
20451 if { (ac_try="$ac_compile"
20452 case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20457 $as_echo "$ac_try_echo") >&5
20458 (eval "$ac_compile") 2>conftest.er1
20460 grep -v '^ *+' conftest.er1 >conftest.err
20462 cat conftest.err >&5
20463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && {
20465 test -z "$ac_c_werror_flag" ||
20466 test ! -s conftest.err
20467 } && test -s conftest.$ac_objext; then
20468 gl_cv_c_inline_effective=yes
20470 $as_echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 gl_cv_c_inline_effective=no
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20480 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
20481 $as_echo "$gl_cv_c_inline_effective" >&6; }
20482 if test $gl_cv_c_inline_effective = yes; then
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE_INLINE 1
20500 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
20505 { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
20506 $as_echo_n "checking whether lseek detects pipes... " >&6; }
20507 if test "${gl_cv_func_lseek_pipe+set}" = set; then
20508 $as_echo_n "(cached) " >&6
20510 if test $cross_compiling = no; then
20511 cat >conftest.$ac_ext <<_ACEOF
20513 #include <sys/types.h> /* for off_t */
20514 #include <stdio.h> /* for SEEK_CUR */
20515 #include <unistd.h>
20518 /* Exit with success only if stdin is seekable. */
20519 return lseek (0, (off_t)0, SEEK_CUR) < 0;
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (ac_try="$ac_link"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20529 $as_echo "$ac_try_echo") >&5
20530 (eval "$ac_link") 2>conftest.er1
20532 grep -v '^ *+' conftest.er1 >conftest.err
20534 cat conftest.err >&5
20535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } && {
20537 test -z "$ac_c_werror_flag" ||
20538 test ! -s conftest.err
20539 } && test -s conftest$ac_exeext && {
20540 test "$cross_compiling" = yes ||
20541 $as_test_x conftest$ac_exeext
20543 if test -s conftest$ac_exeext \
20544 && ./conftest$ac_exeext < conftest.$ac_ext \
20545 && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
20546 gl_cv_func_lseek_pipe=yes
20548 gl_cv_func_lseek_pipe=no
20551 $as_echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 gl_cv_func_lseek_pipe=no
20557 rm -rf conftest.dSYM
20558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559 conftest$ac_exeext conftest.$ac_ext
20561 cat >conftest.$ac_ext <<_ACEOF
20563 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
20564 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
20568 rm -f conftest.$ac_objext
20569 if { (ac_try="$ac_compile"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575 $as_echo "$ac_try_echo") >&5
20576 (eval "$ac_compile") 2>conftest.er1
20578 grep -v '^ *+' conftest.er1 >conftest.err
20580 cat conftest.err >&5
20581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && {
20583 test -z "$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 } && test -s conftest.$ac_objext; then
20586 gl_cv_func_lseek_pipe=yes
20588 $as_echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 gl_cv_func_lseek_pipe=no
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
20598 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
20599 if test $gl_cv_func_lseek_pipe = no; then
20609 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
20614 cat >>confdefs.h <<\_ACEOF
20615 #define LSEEK_PIPE_BROKEN 1
20645 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20649 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
20650 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20651 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
20652 $as_echo_n "(cached) " >&6
20656 # Guess no on AIX and OSF/1.
20657 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20658 # Guess yes otherwise.
20659 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20661 if test $LOCALE_JA != none; then
20662 if test "$cross_compiling" = yes; then
20665 cat >conftest.$ac_ext <<_ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20672 #include <locale.h>
20673 #include <string.h>
20677 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20679 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20683 memset (&state, '\0', sizeof (mbstate_t));
20684 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20685 if (mbsinit (&state))
20691 rm -f conftest$ac_exeext
20692 if { (ac_try="$ac_link"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698 $as_echo "$ac_try_echo") >&5
20699 (eval "$ac_link") 2>&5
20701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20708 $as_echo "$ac_try_echo") >&5
20709 (eval "$ac_try") 2>&5
20711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 gl_cv_func_mbrtowc_incomplete_state=yes
20715 $as_echo "$as_me: program exited with status $ac_status" >&5
20716 $as_echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ( exit $ac_status )
20720 gl_cv_func_mbrtowc_incomplete_state=no
20722 rm -rf conftest.dSYM
20723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20730 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20731 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20736 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
20737 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20738 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
20739 $as_echo_n "(cached) " >&6
20743 # Guess no on Solaris 8.
20744 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20745 # Guess yes otherwise.
20746 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20748 if test $LOCALE_ZH_CN != none; then
20749 if test "$cross_compiling" = yes; then
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 #include <locale.h>
20760 #include <stdlib.h>
20761 #include <string.h>
20765 /* This fails on Solaris 8:
20766 mbrtowc returns 2, and sets wc to 0x00F0.
20767 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20768 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20770 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20774 memset (&state, '\0', sizeof (mbstate_t));
20775 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20776 && mbtowc (&wc, input + 3, 6) == 4)
20782 rm -f conftest$ac_exeext
20783 if { (ac_try="$ac_link"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789 $as_echo "$ac_try_echo") >&5
20790 (eval "$ac_link") 2>&5
20792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_try") 2>&5
20802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 gl_cv_func_mbrtowc_sanitycheck=yes
20806 $as_echo "$as_me: program exited with status $ac_status" >&5
20807 $as_echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 ( exit $ac_status )
20811 gl_cv_func_mbrtowc_sanitycheck=no
20813 rm -rf conftest.dSYM
20814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20821 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20822 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20824 REPLACE_MBSTATE_T=0
20825 case "$gl_cv_func_mbrtowc_incomplete_state" in
20827 *) REPLACE_MBSTATE_T=1 ;;
20829 case "$gl_cv_func_mbrtowc_sanitycheck" in
20831 *) REPLACE_MBSTATE_T=1 ;;
20834 REPLACE_MBSTATE_T=1
20836 if test $REPLACE_MBSTATE_T = 1; then
20843 if test $REPLACE_MBSTATE_T = 1; then
20852 if test $ac_cv_func_mbrtowc = no; then
20855 if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
20859 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
20860 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20861 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
20862 $as_echo_n "(cached) " >&6
20866 # Guess no on OSF/1.
20867 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
20868 # Guess yes otherwise.
20869 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
20871 if test $LOCALE_FR_UTF8 != none; then
20872 if test "$cross_compiling" = yes; then
20875 cat >conftest.$ac_ext <<_ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20882 #include <locale.h>
20883 #include <string.h>
20887 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20893 memset (&state, '\0', sizeof (mbstate_t));
20894 wc = (wchar_t) 0xBADFACE;
20895 mbrtowc (&wc, NULL, 5, &state);
20896 /* Check that wc was not modified. */
20897 if (wc != (wchar_t) 0xBADFACE)
20903 rm -f conftest$ac_exeext
20904 if { (ac_try="$ac_link"
20905 case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20910 $as_echo "$ac_try_echo") >&5
20911 (eval "$ac_link") 2>&5
20913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20915 { (case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20920 $as_echo "$ac_try_echo") >&5
20921 (eval "$ac_try") 2>&5
20923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 gl_cv_func_mbrtowc_null_arg=yes
20927 $as_echo "$as_me: program exited with status $ac_status" >&5
20928 $as_echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ( exit $ac_status )
20932 gl_cv_func_mbrtowc_null_arg=no
20934 rm -rf conftest.dSYM
20935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20942 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
20943 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
20949 { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
20950 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20951 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
20952 $as_echo_n "(cached) " >&6
20956 # Guess no on HP-UX and Solaris.
20957 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
20958 # Guess yes otherwise.
20959 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
20961 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
20962 if test "$cross_compiling" = yes; then
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20972 #include <locale.h>
20973 #include <string.h>
20977 /* This fails on Solaris. */
20978 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20980 char input[] = "B\303\274\303\237er"; /* "Büßer" */
20984 memset (&state, '\0', sizeof (mbstate_t));
20985 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20988 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20992 /* This fails on HP-UX 11.11. */
20993 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20995 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20999 memset (&state, '\0', sizeof (mbstate_t));
21000 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21003 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
21010 rm -f conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017 $as_echo "$ac_try_echo") >&5
21018 (eval "$ac_link") 2>&5
21020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022 { (case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21027 $as_echo "$ac_try_echo") >&5
21028 (eval "$ac_try") 2>&5
21030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; }; then
21032 gl_cv_func_mbrtowc_retval=yes
21034 $as_echo "$as_me: program exited with status $ac_status" >&5
21035 $as_echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 ( exit $ac_status )
21039 gl_cv_func_mbrtowc_retval=no
21041 rm -rf conftest.dSYM
21042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21049 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
21050 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
21055 { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
21056 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
21057 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
21058 $as_echo_n "(cached) " >&6
21062 # Guess no on Solaris 8 and 9.
21063 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
21064 # Guess yes otherwise.
21065 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
21067 if test $LOCALE_ZH_CN != none; then
21068 if test "$cross_compiling" = yes; then
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21078 #include <locale.h>
21079 #include <string.h>
21083 /* This fails on Solaris 8 and 9. */
21084 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21089 memset (&state, '\0', sizeof (mbstate_t));
21090 if (mbrtowc (&wc, "", 1, &state) != 0)
21096 rm -f conftest$ac_exeext
21097 if { (ac_try="$ac_link"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103 $as_echo "$ac_try_echo") >&5
21104 (eval "$ac_link") 2>&5
21106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108 { (case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21113 $as_echo "$ac_try_echo") >&5
21114 (eval "$ac_try") 2>&5
21116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 gl_cv_func_mbrtowc_nul_retval=yes
21120 $as_echo "$as_me: program exited with status $ac_status" >&5
21121 $as_echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ( exit $ac_status )
21125 gl_cv_func_mbrtowc_nul_retval=no
21127 rm -rf conftest.dSYM
21128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21135 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
21136 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
21138 case "$gl_cv_func_mbrtowc_null_arg" in
21141 cat >>confdefs.h <<\_ACEOF
21142 #define MBRTOWC_NULL_ARG_BUG 1
21148 case "$gl_cv_func_mbrtowc_retval" in
21151 cat >>confdefs.h <<\_ACEOF
21152 #define MBRTOWC_RETVAL_BUG 1
21158 case "$gl_cv_func_mbrtowc_nul_retval" in
21161 cat >>confdefs.h <<\_ACEOF
21162 #define MBRTOWC_NUL_RETVAL_BUG 1
21169 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
21182 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
21213 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21217 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
21218 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21219 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
21220 $as_echo_n "(cached) " >&6
21224 # Guess no on AIX and OSF/1.
21225 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21226 # Guess yes otherwise.
21227 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21229 if test $LOCALE_JA != none; then
21230 if test "$cross_compiling" = yes; then
21233 cat >conftest.$ac_ext <<_ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21240 #include <locale.h>
21241 #include <string.h>
21245 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21247 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21251 memset (&state, '\0', sizeof (mbstate_t));
21252 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21253 if (mbsinit (&state))
21259 rm -f conftest$ac_exeext
21260 if { (ac_try="$ac_link"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21266 $as_echo "$ac_try_echo") >&5
21267 (eval "$ac_link") 2>&5
21269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271 { (case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21276 $as_echo "$ac_try_echo") >&5
21277 (eval "$ac_try") 2>&5
21279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 gl_cv_func_mbrtowc_incomplete_state=yes
21283 $as_echo "$as_me: program exited with status $ac_status" >&5
21284 $as_echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ( exit $ac_status )
21288 gl_cv_func_mbrtowc_incomplete_state=no
21290 rm -rf conftest.dSYM
21291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21298 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21299 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21304 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
21305 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21306 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
21307 $as_echo_n "(cached) " >&6
21311 # Guess no on Solaris 8.
21312 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21313 # Guess yes otherwise.
21314 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21316 if test $LOCALE_ZH_CN != none; then
21317 if test "$cross_compiling" = yes; then
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21327 #include <locale.h>
21328 #include <stdlib.h>
21329 #include <string.h>
21333 /* This fails on Solaris 8:
21334 mbrtowc returns 2, and sets wc to 0x00F0.
21335 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21336 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21338 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21342 memset (&state, '\0', sizeof (mbstate_t));
21343 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21344 && mbtowc (&wc, input + 3, 6) == 4)
21350 rm -f conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21357 $as_echo "$ac_try_echo") >&5
21358 (eval "$ac_link") 2>&5
21360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21362 { (case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21367 $as_echo "$ac_try_echo") >&5
21368 (eval "$ac_try") 2>&5
21370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; }; then
21372 gl_cv_func_mbrtowc_sanitycheck=yes
21374 $as_echo "$as_me: program exited with status $ac_status" >&5
21375 $as_echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21378 ( exit $ac_status )
21379 gl_cv_func_mbrtowc_sanitycheck=no
21381 rm -rf conftest.dSYM
21382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21389 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21390 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21392 REPLACE_MBSTATE_T=0
21393 case "$gl_cv_func_mbrtowc_incomplete_state" in
21395 *) REPLACE_MBSTATE_T=1 ;;
21397 case "$gl_cv_func_mbrtowc_sanitycheck" in
21399 *) REPLACE_MBSTATE_T=1 ;;
21402 REPLACE_MBSTATE_T=1
21404 if test $REPLACE_MBSTATE_T = 1; then
21411 if test $REPLACE_MBSTATE_T = 1; then
21420 if test $ac_cv_func_mbsinit = no; then
21423 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
21436 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
21462 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
21475 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
21480 if test $gl_cv_func_malloc_posix = yes; then
21481 HAVE_REALLOC_POSIX=1
21483 cat >>confdefs.h <<\_ACEOF
21484 #define HAVE_REALLOC_POSIX 1
21496 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
21498 HAVE_REALLOC_POSIX=0
21504 GNULIB_REALLOC_POSIX=1
21509 # Define two additional variables used in the Makefile substitution.
21511 if test "$ac_cv_header_stdbool_h" = yes; then
21514 STDBOOL_H='stdbool.h'
21518 if test "$ac_cv_type__Bool" = yes; then
21528 if test $gt_cv_c_wchar_t = no; then
21532 { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
21533 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21534 if test "${gl_cv_decl_null_works+set}" = set; then
21535 $as_echo_n "(cached) " >&6
21537 cat >conftest.$ac_ext <<_ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 #include <stddef.h>
21544 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21554 rm -f conftest.$ac_objext
21555 if { (ac_try="$ac_compile"
21556 case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561 $as_echo "$ac_try_echo") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest.$ac_objext; then
21572 gl_cv_decl_null_works=yes
21574 $as_echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 gl_cv_decl_null_works=no
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
21583 $as_echo "$gl_cv_decl_null_works" >&6; }
21584 if test $gl_cv_decl_null_works = no; then
21588 if test -n "$STDDEF_H"; then
21600 if test $gl_cv_have_include_next = yes; then
21601 gl_cv_next_stddef_h='<'stddef.h'>'
21603 { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
21604 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21605 if test "${gl_cv_next_stddef_h+set}" = set; then
21606 $as_echo_n "(cached) " >&6
21609 if test $ac_cv_header_stddef_h = yes; then
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <stddef.h>
21620 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21621 *) gl_absname_cpp="$ac_cpp" ;;
21623 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21624 sed -n '\#/stddef.h#{
21625 s#.*"\(.*/stddef.h\)".*#\1#
21631 gl_cv_next_stddef_h='<'stddef.h'>'
21635 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
21636 $as_echo "$gl_cv_next_stddef_h" >&6; }
21638 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21640 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21642 gl_next_as_first_directive='<'stddef.h'>'
21644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21645 gl_next_as_first_directive=$gl_cv_next_stddef_h
21647 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21656 if test $ac_cv_type_long_long_int = yes; then
21657 HAVE_LONG_LONG_INT=1
21659 HAVE_LONG_LONG_INT=0
21663 if test $ac_cv_type_unsigned_long_long_int = yes; then
21664 HAVE_UNSIGNED_LONG_LONG_INT=1
21666 HAVE_UNSIGNED_LONG_LONG_INT=0
21670 if test $ac_cv_header_inttypes_h = yes; then
21677 if test $ac_cv_header_sys_types_h = yes; then
21695 if test $gl_cv_have_include_next = yes; then
21696 gl_cv_next_stdint_h='<'stdint.h'>'
21698 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
21699 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
21700 if test "${gl_cv_next_stdint_h+set}" = set; then
21701 $as_echo_n "(cached) " >&6
21704 if test $ac_cv_header_stdint_h = yes; then
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <stdint.h>
21715 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21716 *) gl_absname_cpp="$ac_cpp" ;;
21718 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21719 sed -n '\#/stdint.h#{
21720 s#.*"\(.*/stdint.h\)".*#\1#
21726 gl_cv_next_stdint_h='<'stdint.h'>'
21730 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
21731 $as_echo "$gl_cv_next_stdint_h" >&6; }
21733 NEXT_STDINT_H=$gl_cv_next_stdint_h
21735 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21737 gl_next_as_first_directive='<'stdint.h'>'
21739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21740 gl_next_as_first_directive=$gl_cv_next_stdint_h
21742 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21746 if test $ac_cv_header_stdint_h = yes; then
21753 if test $ac_cv_header_stdint_h = yes; then
21754 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
21755 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21756 if test "${gl_cv_header_working_stdint_h+set}" = set; then
21757 $as_echo_n "(cached) " >&6
21759 gl_cv_header_working_stdint_h=no
21760 cat >conftest.$ac_ext <<_ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21768 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21769 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21770 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21771 #include <stdint.h>
21772 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
21773 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21774 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21778 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21779 included before <wchar.h>. */
21780 #include <stddef.h>
21781 #include <signal.h>
21783 # include <stdio.h>
21785 # include <wchar.h>
21790 int8_t a1 = INT8_MAX;
21791 int8_t a1min = INT8_MIN;
21794 int16_t a2 = INT16_MAX;
21795 int16_t a2min = INT16_MIN;
21798 int32_t a3 = INT32_MAX;
21799 int32_t a3min = INT32_MIN;
21802 int64_t a4 = INT64_MAX;
21803 int64_t a4min = INT64_MIN;
21806 uint8_t b1 = UINT8_MAX;
21808 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21811 uint16_t b2 = UINT16_MAX;
21814 uint32_t b3 = UINT32_MAX;
21817 uint64_t b4 = UINT64_MAX;
21819 int_least8_t c1 = INT8_C (0x7f);
21820 int_least8_t c1max = INT_LEAST8_MAX;
21821 int_least8_t c1min = INT_LEAST8_MIN;
21822 int_least16_t c2 = INT16_C (0x7fff);
21823 int_least16_t c2max = INT_LEAST16_MAX;
21824 int_least16_t c2min = INT_LEAST16_MIN;
21825 int_least32_t c3 = INT32_C (0x7fffffff);
21826 int_least32_t c3max = INT_LEAST32_MAX;
21827 int_least32_t c3min = INT_LEAST32_MIN;
21828 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21829 int_least64_t c4max = INT_LEAST64_MAX;
21830 int_least64_t c4min = INT_LEAST64_MIN;
21831 uint_least8_t d1 = UINT8_C (0xff);
21832 uint_least8_t d1max = UINT_LEAST8_MAX;
21833 uint_least16_t d2 = UINT16_C (0xffff);
21834 uint_least16_t d2max = UINT_LEAST16_MAX;
21835 uint_least32_t d3 = UINT32_C (0xffffffff);
21836 uint_least32_t d3max = UINT_LEAST32_MAX;
21837 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21838 uint_least64_t d4max = UINT_LEAST64_MAX;
21839 int_fast8_t e1 = INT_FAST8_MAX;
21840 int_fast8_t e1min = INT_FAST8_MIN;
21841 int_fast16_t e2 = INT_FAST16_MAX;
21842 int_fast16_t e2min = INT_FAST16_MIN;
21843 int_fast32_t e3 = INT_FAST32_MAX;
21844 int_fast32_t e3min = INT_FAST32_MIN;
21845 int_fast64_t e4 = INT_FAST64_MAX;
21846 int_fast64_t e4min = INT_FAST64_MIN;
21847 uint_fast8_t f1 = UINT_FAST8_MAX;
21848 uint_fast16_t f2 = UINT_FAST16_MAX;
21849 uint_fast32_t f3 = UINT_FAST32_MAX;
21850 uint_fast64_t f4 = UINT_FAST64_MAX;
21852 intptr_t g = INTPTR_MAX;
21853 intptr_t gmin = INTPTR_MIN;
21856 uintptr_t h = UINTPTR_MAX;
21858 intmax_t i = INTMAX_MAX;
21859 uintmax_t j = UINTMAX_MAX;
21861 #include <limits.h> /* for CHAR_BIT */
21862 #define TYPE_MINIMUM(t) \
21863 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
21864 #define TYPE_MAXIMUM(t) \
21865 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
21868 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21869 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21871 /* Detect bug in FreeBSD 6.0 / ia64. */
21872 int check_SIG_ATOMIC:
21873 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21874 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21876 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21878 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21879 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21881 /* Detect bug in mingw. */
21883 WINT_MIN == TYPE_MINIMUM (wint_t)
21884 && WINT_MAX == TYPE_MAXIMUM (wint_t)
21887 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21889 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21890 int check_UINT16_C:
21891 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21893 /* Detect bugs in OpenBSD 3.9 stdint.h. */
21895 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21898 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21901 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21904 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21906 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21907 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21908 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21909 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21910 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21911 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21912 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21913 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21914 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21915 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21916 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21934 $as_echo "$ac_try_echo") >&5
21935 (eval "$ac_compile") 2>conftest.er1
21937 grep -v '^ *+' conftest.er1 >conftest.err
21939 cat conftest.err >&5
21940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } && {
21942 test -z "$ac_c_werror_flag" ||
21943 test ! -s conftest.err
21944 } && test -s conftest.$ac_objext; then
21945 if test "$cross_compiling" = yes; then
21946 gl_cv_header_working_stdint_h=yes
21949 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21957 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21958 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21959 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21960 #include <stdint.h>
21963 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21964 included before <wchar.h>. */
21965 #include <stddef.h>
21966 #include <signal.h>
21968 # include <stdio.h>
21970 # include <wchar.h>
21975 #include <string.h>
21976 #define MVAL(macro) MVAL1(macro)
21977 #define MVAL1(expression) #expression
21978 static const char *macro_values[] =
22012 for (mv = macro_values; *mv != NULL; mv++)
22014 const char *value = *mv;
22015 /* Test whether it looks like a cast expression. */
22016 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
22017 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
22018 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
22019 || strncmp (value, "((int)"/*)*/, 6) == 0
22020 || strncmp (value, "((signed short)"/*)*/, 15) == 0
22021 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
22030 rm -f conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038 (eval "$ac_link") 2>&5
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22042 { (case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22047 $as_echo "$ac_try_echo") >&5
22048 (eval "$ac_try") 2>&5
22050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 gl_cv_header_working_stdint_h=yes
22054 $as_echo "$as_me: program exited with status $ac_status" >&5
22055 $as_echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22059 rm -rf conftest.dSYM
22060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22066 $as_echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
22076 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
22078 if test "$gl_cv_header_working_stdint_h" = yes; then
22083 for ac_header in sys/inttypes.h sys/bitypes.h
22085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22088 $as_echo_n "checking for $ac_header... " >&6; }
22089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090 $as_echo_n "(cached) " >&6
22092 ac_res=`eval 'as_val=${'$as_ac_Header'}
22093 $as_echo "$as_val"'`
22094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22095 $as_echo "$ac_res" >&6; }
22097 # Is the header compilable?
22098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22099 $as_echo_n "checking $ac_header usability... " >&6; }
22100 cat >conftest.$ac_ext <<_ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22106 $ac_includes_default
22107 #include <$ac_header>
22109 rm -f conftest.$ac_objext
22110 if { (ac_try="$ac_compile"
22111 case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22116 $as_echo "$ac_try_echo") >&5
22117 (eval "$ac_compile") 2>conftest.er1
22119 grep -v '^ *+' conftest.er1 >conftest.err
22121 cat conftest.err >&5
22122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } && {
22124 test -z "$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22126 } && test -s conftest.$ac_objext; then
22127 ac_header_compiler=yes
22129 $as_echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_header_compiler=no
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22137 $as_echo "$ac_header_compiler" >&6; }
22139 # Is the header present?
22140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22141 $as_echo_n "checking $ac_header presence... " >&6; }
22142 cat >conftest.$ac_ext <<_ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 #include <$ac_header>
22150 if { (ac_try="$ac_cpp conftest.$ac_ext"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156 $as_echo "$ac_try_echo") >&5
22157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } >/dev/null && {
22164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22167 ac_header_preproc=yes
22169 $as_echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_header_preproc=no
22175 rm -f conftest.err conftest.$ac_ext
22176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177 $as_echo "$ac_header_preproc" >&6; }
22179 # So? What about this header?
22180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22186 ac_header_preproc=yes
22189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22192 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22196 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22202 ## ------------------------------- ##
22203 ## Report this to bug-wget@gnu.org ##
22204 ## ------------------------------- ##
22206 ) | sed "s/^/$as_me: WARNING: /" >&2
22209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22210 $as_echo_n "checking for $ac_header... " >&6; }
22211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22212 $as_echo_n "(cached) " >&6
22214 eval "$as_ac_Header=\$ac_header_preproc"
22216 ac_res=`eval 'as_val=${'$as_ac_Header'}
22217 $as_echo "$as_val"'`
22218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22219 $as_echo "$ac_res" >&6; }
22222 as_val=`eval 'as_val=${'$as_ac_Header'}
22223 $as_echo "$as_val"'`
22224 if test "x$as_val" = x""yes; then
22225 cat >>confdefs.h <<_ACEOF
22226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22233 if test $ac_cv_header_sys_inttypes_h = yes; then
22234 HAVE_SYS_INTTYPES_H=1
22236 HAVE_SYS_INTTYPES_H=0
22239 if test $ac_cv_header_sys_bitypes_h = yes; then
22240 HAVE_SYS_BITYPES_H=1
22242 HAVE_SYS_BITYPES_H=0
22255 if test $APPLE_UNIVERSAL_BUILD = 0; then
22260 for gltype in ptrdiff_t size_t ; do
22261 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22262 $as_echo_n "checking for bit size of $gltype... " >&6; }
22263 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22264 $as_echo_n "(cached) " >&6
22266 if test "$cross_compiling" = yes; then
22267 # Depending upon the size, compute the lo and hi bounds.
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22275 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22276 included before <wchar.h>. */
22277 #include <stddef.h>
22278 #include <signal.h>
22280 # include <stdio.h>
22282 # include <wchar.h>
22285 #include <limits.h>
22289 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22296 rm -f conftest.$ac_objext
22297 if { (ac_try="$ac_compile"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303 $as_echo "$ac_try_echo") >&5
22304 (eval "$ac_compile") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest.$ac_objext; then
22316 cat >conftest.$ac_ext <<_ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22323 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22324 included before <wchar.h>. */
22325 #include <stddef.h>
22326 #include <signal.h>
22328 # include <stdio.h>
22330 # include <wchar.h>
22333 #include <limits.h>
22337 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22351 $as_echo "$ac_try_echo") >&5
22352 (eval "$ac_compile") 2>conftest.er1
22354 grep -v '^ *+' conftest.er1 >conftest.err
22356 cat conftest.err >&5
22357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } && {
22359 test -z "$ac_c_werror_flag" ||
22360 test ! -s conftest.err
22361 } && test -s conftest.$ac_objext; then
22362 ac_hi=$ac_mid; break
22364 $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22367 ac_lo=`expr $ac_mid + 1`
22368 if test $ac_lo -le $ac_mid; then
22372 ac_mid=`expr 2 '*' $ac_mid + 1`
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 $as_echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22381 cat >conftest.$ac_ext <<_ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22388 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22389 included before <wchar.h>. */
22390 #include <stddef.h>
22391 #include <signal.h>
22393 # include <stdio.h>
22395 # include <wchar.h>
22398 #include <limits.h>
22402 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22416 $as_echo "$ac_try_echo") >&5
22417 (eval "$ac_compile") 2>conftest.er1
22419 grep -v '^ *+' conftest.er1 >conftest.err
22421 cat conftest.err >&5
22422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest.$ac_objext; then
22429 cat >conftest.$ac_ext <<_ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22436 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22437 included before <wchar.h>. */
22438 #include <stddef.h>
22439 #include <signal.h>
22441 # include <stdio.h>
22443 # include <wchar.h>
22446 #include <limits.h>
22450 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22457 rm -f conftest.$ac_objext
22458 if { (ac_try="$ac_compile"
22459 case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22464 $as_echo "$ac_try_echo") >&5
22465 (eval "$ac_compile") 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } && {
22472 test -z "$ac_c_werror_flag" ||
22473 test ! -s conftest.err
22474 } && test -s conftest.$ac_objext; then
22475 ac_lo=$ac_mid; break
22477 $as_echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22480 ac_hi=`expr '(' $ac_mid ')' - 1`
22481 if test $ac_mid -le $ac_hi; then
22485 ac_mid=`expr 2 '*' $ac_mid`
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 $as_echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 # Binary search between lo and hi bounds.
22502 while test "x$ac_lo" != "x$ac_hi"; do
22503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22511 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22512 included before <wchar.h>. */
22513 #include <stddef.h>
22514 #include <signal.h>
22516 # include <stdio.h>
22518 # include <wchar.h>
22521 #include <limits.h>
22525 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22539 $as_echo "$ac_try_echo") >&5
22540 (eval "$ac_compile") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest.$ac_objext; then
22552 $as_echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ac_lo=`expr '(' $ac_mid ')' + 1`
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 ?*) result=$ac_lo;;
22562 '') result=unknown ;;
22565 cat >conftest.$ac_ext <<_ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22572 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22573 included before <wchar.h>. */
22574 #include <stddef.h>
22575 #include <signal.h>
22577 # include <stdio.h>
22579 # include <wchar.h>
22582 #include <limits.h>
22583 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
22584 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
22586 #include <stdlib.h>
22591 FILE *f = fopen ("conftest.val", "w");
22594 if ((sizeof ($gltype) * CHAR_BIT) < 0)
22596 long int i = longval ();
22597 if (i != (sizeof ($gltype) * CHAR_BIT))
22599 fprintf (f, "%ld", i);
22603 unsigned long int i = ulongval ();
22604 if (i != (sizeof ($gltype) * CHAR_BIT))
22606 fprintf (f, "%lu", i);
22608 /* Do not output a trailing newline, as this causes \r\n confusion
22609 on some platforms. */
22610 return ferror (f) || fclose (f) != 0;
22616 rm -f conftest$ac_exeext
22617 if { (ac_try="$ac_link"
22618 case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22623 $as_echo "$ac_try_echo") >&5
22624 (eval "$ac_link") 2>&5
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22628 { (case "(($ac_try" in
22629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630 *) ac_try_echo=$ac_try;;
22632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22633 $as_echo "$ac_try_echo") >&5
22634 (eval "$ac_try") 2>&5
22636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }; then
22638 result=`cat conftest.val`
22640 $as_echo "$as_me: program exited with status $ac_status" >&5
22641 $as_echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22644 ( exit $ac_status )
22647 rm -rf conftest.dSYM
22648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22651 eval gl_cv_bitsizeof_${gltype}=\$result
22654 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
22655 $as_echo "$as_val"'`
22656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22657 $as_echo "$ac_res" >&6; }
22658 eval result=\$gl_cv_bitsizeof_${gltype}
22659 if test $result = unknown; then
22662 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22663 cat >>confdefs.h <<_ACEOF
22664 #define BITSIZEOF_${GLTYPE} $result
22667 eval BITSIZEOF_${GLTYPE}=\$result
22677 for gltype in sig_atomic_t wchar_t wint_t ; do
22678 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22679 $as_echo_n "checking for bit size of $gltype... " >&6; }
22680 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22681 $as_echo_n "(cached) " >&6
22683 if test "$cross_compiling" = yes; then
22684 # Depending upon the size, compute the lo and hi bounds.
22685 cat >conftest.$ac_ext <<_ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22692 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22693 included before <wchar.h>. */
22694 #include <stddef.h>
22695 #include <signal.h>
22697 # include <stdio.h>
22699 # include <wchar.h>
22702 #include <limits.h>
22706 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22713 rm -f conftest.$ac_objext
22714 if { (ac_try="$ac_compile"
22715 case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22720 $as_echo "$ac_try_echo") >&5
22721 (eval "$ac_compile") 2>conftest.er1
22723 grep -v '^ *+' conftest.er1 >conftest.err
22725 cat conftest.err >&5
22726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } && {
22728 test -z "$ac_c_werror_flag" ||
22729 test ! -s conftest.err
22730 } && test -s conftest.$ac_objext; then
22733 cat >conftest.$ac_ext <<_ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22740 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22741 included before <wchar.h>. */
22742 #include <stddef.h>
22743 #include <signal.h>
22745 # include <stdio.h>
22747 # include <wchar.h>
22750 #include <limits.h>
22754 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22761 rm -f conftest.$ac_objext
22762 if { (ac_try="$ac_compile"
22763 case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22768 $as_echo "$ac_try_echo") >&5
22769 (eval "$ac_compile") 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } && {
22776 test -z "$ac_c_werror_flag" ||
22777 test ! -s conftest.err
22778 } && test -s conftest.$ac_objext; then
22779 ac_hi=$ac_mid; break
22781 $as_echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.$ac_ext >&5
22784 ac_lo=`expr $ac_mid + 1`
22785 if test $ac_lo -le $ac_mid; then
22789 ac_mid=`expr 2 '*' $ac_mid + 1`
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795 $as_echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22805 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22806 included before <wchar.h>. */
22807 #include <stddef.h>
22808 #include <signal.h>
22810 # include <stdio.h>
22812 # include <wchar.h>
22815 #include <limits.h>
22819 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833 $as_echo "$ac_try_echo") >&5
22834 (eval "$ac_compile") 2>conftest.er1
22836 grep -v '^ *+' conftest.er1 >conftest.err
22838 cat conftest.err >&5
22839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } && {
22841 test -z "$ac_c_werror_flag" ||
22842 test ! -s conftest.err
22843 } && test -s conftest.$ac_objext; then
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22853 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22854 included before <wchar.h>. */
22855 #include <stddef.h>
22856 #include <signal.h>
22858 # include <stdio.h>
22860 # include <wchar.h>
22863 #include <limits.h>
22867 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22881 $as_echo "$ac_try_echo") >&5
22882 (eval "$ac_compile") 2>conftest.er1
22884 grep -v '^ *+' conftest.er1 >conftest.err
22886 cat conftest.err >&5
22887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } && {
22889 test -z "$ac_c_werror_flag" ||
22890 test ! -s conftest.err
22891 } && test -s conftest.$ac_objext; then
22892 ac_lo=$ac_mid; break
22894 $as_echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ac_hi=`expr '(' $ac_mid ')' - 1`
22898 if test $ac_mid -le $ac_hi; then
22902 ac_mid=`expr 2 '*' $ac_mid`
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 $as_echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918 # Binary search between lo and hi bounds.
22919 while test "x$ac_lo" != "x$ac_hi"; do
22920 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22928 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22929 included before <wchar.h>. */
22930 #include <stddef.h>
22931 #include <signal.h>
22933 # include <stdio.h>
22935 # include <wchar.h>
22938 #include <limits.h>
22942 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956 $as_echo "$ac_try_echo") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22969 $as_echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_lo=`expr '(' $ac_mid ')' + 1`
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978 ?*) result=$ac_lo;;
22979 '') result=unknown ;;
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22989 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22990 included before <wchar.h>. */
22991 #include <stddef.h>
22992 #include <signal.h>
22994 # include <stdio.h>
22996 # include <wchar.h>
22999 #include <limits.h>
23000 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
23001 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
23003 #include <stdlib.h>
23008 FILE *f = fopen ("conftest.val", "w");
23011 if ((sizeof ($gltype) * CHAR_BIT) < 0)
23013 long int i = longval ();
23014 if (i != (sizeof ($gltype) * CHAR_BIT))
23016 fprintf (f, "%ld", i);
23020 unsigned long int i = ulongval ();
23021 if (i != (sizeof ($gltype) * CHAR_BIT))
23023 fprintf (f, "%lu", i);
23025 /* Do not output a trailing newline, as this causes \r\n confusion
23026 on some platforms. */
23027 return ferror (f) || fclose (f) != 0;
23033 rm -f conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23040 $as_echo "$ac_try_echo") >&5
23041 (eval "$ac_link") 2>&5
23043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23045 { (case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23050 $as_echo "$ac_try_echo") >&5
23051 (eval "$ac_try") 2>&5
23053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; }; then
23055 result=`cat conftest.val`
23057 $as_echo "$as_me: program exited with status $ac_status" >&5
23058 $as_echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23061 ( exit $ac_status )
23064 rm -rf conftest.dSYM
23065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23068 eval gl_cv_bitsizeof_${gltype}=\$result
23071 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
23072 $as_echo "$as_val"'`
23073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23074 $as_echo "$ac_res" >&6; }
23075 eval result=\$gl_cv_bitsizeof_${gltype}
23076 if test $result = unknown; then
23079 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23080 cat >>confdefs.h <<_ACEOF
23081 #define BITSIZEOF_${GLTYPE} $result
23084 eval BITSIZEOF_${GLTYPE}=\$result
23093 for gltype in sig_atomic_t wchar_t wint_t ; do
23094 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
23095 $as_echo_n "checking whether $gltype is signed... " >&6; }
23096 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
23097 $as_echo_n "(cached) " >&6
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23106 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23107 included before <wchar.h>. */
23108 #include <stddef.h>
23109 #include <signal.h>
23111 # include <stdio.h>
23113 # include <wchar.h>
23116 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
23125 rm -f conftest.$ac_objext
23126 if { (ac_try="$ac_compile"
23127 case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23132 $as_echo "$ac_try_echo") >&5
23133 (eval "$ac_compile") 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } && {
23140 test -z "$ac_c_werror_flag" ||
23141 test ! -s conftest.err
23142 } && test -s conftest.$ac_objext; then
23145 $as_echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23152 eval gl_cv_type_${gltype}_signed=\$result
23155 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
23156 $as_echo "$as_val"'`
23157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23158 $as_echo "$ac_res" >&6; }
23159 eval result=\$gl_cv_type_${gltype}_signed
23160 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23161 if test "$result" = yes; then
23162 cat >>confdefs.h <<_ACEOF
23163 #define HAVE_SIGNED_${GLTYPE} 1
23166 eval HAVE_SIGNED_${GLTYPE}=1
23168 eval HAVE_SIGNED_${GLTYPE}=0
23173 gl_cv_type_ptrdiff_t_signed=yes
23174 gl_cv_type_size_t_signed=no
23175 if test $APPLE_UNIVERSAL_BUILD = 0; then
23180 for gltype in ptrdiff_t size_t ; do
23181 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23182 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23183 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23184 $as_echo_n "(cached) " >&6
23186 eval gl_cv_type_${gltype}_suffix=no
23187 eval result=\$gl_cv_type_${gltype}_signed
23188 if test "$result" = yes; then
23193 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23195 '') gltype1='int';;
23196 l) gltype1='long int';;
23197 ll) gltype1='long long int';;
23198 i64) gltype1='__int64';;
23199 u) gltype1='unsigned int';;
23200 ul) gltype1='unsigned long int';;
23201 ull) gltype1='unsigned long long int';;
23202 ui64)gltype1='unsigned __int64';;
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23211 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23212 included before <wchar.h>. */
23213 #include <stddef.h>
23214 #include <signal.h>
23216 # include <stdio.h>
23218 # include <wchar.h>
23221 extern $gltype foo;
23222 extern $gltype1 foo;
23231 rm -f conftest.$ac_objext
23232 if { (ac_try="$ac_compile"
23233 case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23238 $as_echo "$ac_try_echo") >&5
23239 (eval "$ac_compile") 2>conftest.er1
23241 grep -v '^ *+' conftest.er1 >conftest.err
23243 cat conftest.err >&5
23244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } && {
23246 test -z "$ac_c_werror_flag" ||
23247 test ! -s conftest.err
23248 } && test -s conftest.$ac_objext; then
23249 eval gl_cv_type_${gltype}_suffix=\$glsuf
23251 $as_echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 eval result=\$gl_cv_type_${gltype}_suffix
23259 test "$result" != no && break
23262 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23263 $as_echo "$as_val"'`
23264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23265 $as_echo "$ac_res" >&6; }
23266 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23267 eval result=\$gl_cv_type_${gltype}_suffix
23268 test "$result" = no && result=
23269 eval ${GLTYPE}_SUFFIX=\$result
23270 cat >>confdefs.h <<_ACEOF
23271 #define ${GLTYPE}_SUFFIX $result
23283 for gltype in sig_atomic_t wchar_t wint_t ; do
23284 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23285 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23286 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23287 $as_echo_n "(cached) " >&6
23289 eval gl_cv_type_${gltype}_suffix=no
23290 eval result=\$gl_cv_type_${gltype}_signed
23291 if test "$result" = yes; then
23296 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23298 '') gltype1='int';;
23299 l) gltype1='long int';;
23300 ll) gltype1='long long int';;
23301 i64) gltype1='__int64';;
23302 u) gltype1='unsigned int';;
23303 ul) gltype1='unsigned long int';;
23304 ull) gltype1='unsigned long long int';;
23305 ui64)gltype1='unsigned __int64';;
23307 cat >conftest.$ac_ext <<_ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23314 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23315 included before <wchar.h>. */
23316 #include <stddef.h>
23317 #include <signal.h>
23319 # include <stdio.h>
23321 # include <wchar.h>
23324 extern $gltype foo;
23325 extern $gltype1 foo;
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338 *) ac_try_echo=$ac_try;;
23340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23341 $as_echo "$ac_try_echo") >&5
23342 (eval "$ac_compile") 2>conftest.er1
23344 grep -v '^ *+' conftest.er1 >conftest.err
23346 cat conftest.err >&5
23347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_c_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest.$ac_objext; then
23352 eval gl_cv_type_${gltype}_suffix=\$glsuf
23354 $as_echo "$as_me: failed program was:" >&5
23355 sed 's/^/| /' conftest.$ac_ext >&5
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 eval result=\$gl_cv_type_${gltype}_suffix
23362 test "$result" != no && break
23365 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23366 $as_echo "$as_val"'`
23367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23368 $as_echo "$ac_res" >&6; }
23369 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23370 eval result=\$gl_cv_type_${gltype}_suffix
23371 test "$result" = no && result=
23372 eval ${GLTYPE}_SUFFIX=\$result
23373 cat >>confdefs.h <<_ACEOF
23374 #define ${GLTYPE}_SUFFIX $result
23398 if test $gl_cv_have_include_next = yes; then
23399 gl_cv_next_stdio_h='<'stdio.h'>'
23401 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
23402 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23403 if test "${gl_cv_next_stdio_h+set}" = set; then
23404 $as_echo_n "(cached) " >&6
23407 if test $ac_cv_header_stdio_h = yes; then
23408 cat >conftest.$ac_ext <<_ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h. */
23418 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23419 *) gl_absname_cpp="$ac_cpp" ;;
23421 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23422 sed -n '\#/stdio.h#{
23423 s#.*"\(.*/stdio.h\)".*#\1#
23429 gl_cv_next_stdio_h='<'stdio.h'>'
23433 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
23434 $as_echo "$gl_cv_next_stdio_h" >&6; }
23436 NEXT_STDIO_H=$gl_cv_next_stdio_h
23438 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23440 gl_next_as_first_directive='<'stdio.h'>'
23442 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23443 gl_next_as_first_directive=$gl_cv_next_stdio_h
23445 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23474 if test $gl_cv_have_include_next = yes; then
23475 gl_cv_next_stdlib_h='<'stdlib.h'>'
23477 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
23478 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23479 if test "${gl_cv_next_stdlib_h+set}" = set; then
23480 $as_echo_n "(cached) " >&6
23483 if test $ac_cv_header_stdlib_h = yes; then
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 #include <stdlib.h>
23494 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23495 *) gl_absname_cpp="$ac_cpp" ;;
23497 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23498 sed -n '\#/stdlib.h#{
23499 s#.*"\(.*/stdlib.h\)".*#\1#
23505 gl_cv_next_stdlib_h='<'stdlib.h'>'
23509 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
23510 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23512 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23514 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23516 gl_next_as_first_directive='<'stdlib.h'>'
23518 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23519 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23521 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23526 for ac_header in random.h
23528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23530 $as_echo_n "checking for $ac_header... " >&6; }
23531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23532 $as_echo_n "(cached) " >&6
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 $ac_includes_default
23542 #include <$ac_header>
23544 rm -f conftest.$ac_objext
23545 if { (ac_try="$ac_compile"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552 (eval "$ac_compile") 2>conftest.er1
23554 grep -v '^ *+' conftest.er1 >conftest.err
23556 cat conftest.err >&5
23557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest.$ac_objext; then
23562 eval "$as_ac_Header=yes"
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 eval "$as_ac_Header=no"
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23572 ac_res=`eval 'as_val=${'$as_ac_Header'}
23573 $as_echo "$as_val"'`
23574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23575 $as_echo "$ac_res" >&6; }
23576 as_val=`eval 'as_val=${'$as_ac_Header'}
23577 $as_echo "$as_val"'`
23578 if test "x$as_val" = x""yes; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23587 if test $ac_cv_header_random_h = yes; then
23593 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
23594 $as_echo_n "checking for struct random_data... " >&6; }
23595 if test "${ac_cv_type_struct_random_data+set}" = set; then
23596 $as_echo_n "(cached) " >&6
23598 ac_cv_type_struct_random_data=no
23599 cat >conftest.$ac_ext <<_ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23605 #include <stdlib.h>
23607 # include <random.h>
23614 if (sizeof (struct random_data))
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23627 $as_echo "$ac_try_echo") >&5
23628 (eval "$ac_compile") 2>conftest.er1
23630 grep -v '^ *+' conftest.er1 >conftest.err
23632 cat conftest.err >&5
23633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } && {
23635 test -z "$ac_c_werror_flag" ||
23636 test ! -s conftest.err
23637 } && test -s conftest.$ac_objext; then
23638 cat >conftest.$ac_ext <<_ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h. */
23644 #include <stdlib.h>
23646 # include <random.h>
23653 if (sizeof ((struct random_data)))
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663 *) ac_try_echo=$ac_try;;
23665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23666 $as_echo "$ac_try_echo") >&5
23667 (eval "$ac_compile") 2>conftest.er1
23669 grep -v '^ *+' conftest.er1 >conftest.err
23671 cat conftest.err >&5
23672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } && {
23674 test -z "$ac_c_werror_flag" ||
23675 test ! -s conftest.err
23676 } && test -s conftest.$ac_objext; then
23679 $as_echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23682 ac_cv_type_struct_random_data=yes
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687 $as_echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
23696 $as_echo "$ac_cv_type_struct_random_data" >&6; }
23697 if test "x$ac_cv_type_struct_random_data" = x""yes; then
23699 cat >>confdefs.h <<_ACEOF
23700 #define HAVE_STRUCT_RANDOM_DATA 1
23705 HAVE_STRUCT_RANDOM_DATA=0
23721 for ac_func in strcasecmp
23723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23725 $as_echo_n "checking for $ac_func... " >&6; }
23726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23727 $as_echo_n "(cached) " >&6
23729 cat >conftest.$ac_ext <<_ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h. */
23735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23737 #define $ac_func innocuous_$ac_func
23739 /* System header to define __stub macros and hopefully few prototypes,
23740 which can conflict with char $ac_func (); below.
23741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23742 <limits.h> exists even on freestanding compilers. */
23745 # include <limits.h>
23747 # include <assert.h>
23752 /* Override any GCC internal prototype to avoid an error.
23753 Use char because int might match the return type of a GCC
23754 builtin and then its argument prototype would still apply. */
23759 /* The GNU C library defines this for functions which it implements
23760 to always fail with ENOSYS. Some functions are actually named
23761 something starting with __ and the normal name is an alias. */
23762 #if defined __stub_$ac_func || defined __stub___$ac_func
23769 return $ac_func ();
23774 rm -f conftest.$ac_objext conftest$ac_exeext
23775 if { (ac_try="$ac_link"
23776 case "(($ac_try" in
23777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778 *) ac_try_echo=$ac_try;;
23780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23781 $as_echo "$ac_try_echo") >&5
23782 (eval "$ac_link") 2>conftest.er1
23784 grep -v '^ *+' conftest.er1 >conftest.err
23786 cat conftest.err >&5
23787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } && {
23789 test -z "$ac_c_werror_flag" ||
23790 test ! -s conftest.err
23791 } && test -s conftest$ac_exeext && {
23792 test "$cross_compiling" = yes ||
23793 $as_test_x conftest$ac_exeext
23795 eval "$as_ac_var=yes"
23797 $as_echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 eval "$as_ac_var=no"
23803 rm -rf conftest.dSYM
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805 conftest$ac_exeext conftest.$ac_ext
23807 ac_res=`eval 'as_val=${'$as_ac_var'}
23808 $as_echo "$as_val"'`
23809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23810 $as_echo "$ac_res" >&6; }
23811 as_val=`eval 'as_val=${'$as_ac_var'}
23812 $as_echo "$as_val"'`
23813 if test "x$as_val" = x""yes; then
23814 cat >>confdefs.h <<_ACEOF
23815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23820 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23826 if test $ac_cv_func_strcasecmp = no; then
23844 for ac_func in strncasecmp
23846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23847 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23848 $as_echo_n "checking for $ac_func... " >&6; }
23849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23850 $as_echo_n "(cached) " >&6
23852 cat >conftest.$ac_ext <<_ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h. */
23858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23860 #define $ac_func innocuous_$ac_func
23862 /* System header to define __stub macros and hopefully few prototypes,
23863 which can conflict with char $ac_func (); below.
23864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23865 <limits.h> exists even on freestanding compilers. */
23868 # include <limits.h>
23870 # include <assert.h>
23875 /* Override any GCC internal prototype to avoid an error.
23876 Use char because int might match the return type of a GCC
23877 builtin and then its argument prototype would still apply. */
23882 /* The GNU C library defines this for functions which it implements
23883 to always fail with ENOSYS. Some functions are actually named
23884 something starting with __ and the normal name is an alias. */
23885 #if defined __stub_$ac_func || defined __stub___$ac_func
23892 return $ac_func ();
23897 rm -f conftest.$ac_objext conftest$ac_exeext
23898 if { (ac_try="$ac_link"
23899 case "(($ac_try" in
23900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901 *) ac_try_echo=$ac_try;;
23903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904 $as_echo "$ac_try_echo") >&5
23905 (eval "$ac_link") 2>conftest.er1
23907 grep -v '^ *+' conftest.er1 >conftest.err
23909 cat conftest.err >&5
23910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } && {
23912 test -z "$ac_c_werror_flag" ||
23913 test ! -s conftest.err
23914 } && test -s conftest$ac_exeext && {
23915 test "$cross_compiling" = yes ||
23916 $as_test_x conftest$ac_exeext
23918 eval "$as_ac_var=yes"
23920 $as_echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 eval "$as_ac_var=no"
23926 rm -rf conftest.dSYM
23927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23928 conftest$ac_exeext conftest.$ac_ext
23930 ac_res=`eval 'as_val=${'$as_ac_var'}
23931 $as_echo "$as_val"'`
23932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23933 $as_echo "$ac_res" >&6; }
23934 as_val=`eval 'as_val=${'$as_ac_var'}
23935 $as_echo "$as_val"'`
23936 if test "x$as_val" = x""yes; then
23937 cat >>confdefs.h <<_ACEOF
23938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23943 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23949 if test $ac_cv_func_strncasecmp = no; then
23954 { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
23955 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
23956 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
23957 $as_echo_n "(cached) " >&6
23959 cat >conftest.$ac_ext <<_ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 $ac_includes_default
23969 #ifndef strncasecmp
23970 (void) strncasecmp;
23977 rm -f conftest.$ac_objext
23978 if { (ac_try="$ac_compile"
23979 case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23984 $as_echo "$ac_try_echo") >&5
23985 (eval "$ac_compile") 2>conftest.er1
23987 grep -v '^ *+' conftest.er1 >conftest.err
23989 cat conftest.err >&5
23990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } && {
23992 test -z "$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23994 } && test -s conftest.$ac_objext; then
23995 ac_cv_have_decl_strncasecmp=yes
23997 $as_echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ac_cv_have_decl_strncasecmp=no
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
24006 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
24007 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
24009 cat >>confdefs.h <<_ACEOF
24010 #define HAVE_DECL_STRNCASECMP 1
24015 cat >>confdefs.h <<_ACEOF
24016 #define HAVE_DECL_STRNCASECMP 0
24023 if test $ac_cv_have_decl_strncasecmp = no; then
24024 HAVE_DECL_STRNCASECMP=0
24030 if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
24031 { $as_echo "$as_me:$LINENO: checking whether strcasestr works in linear time" >&5
24032 $as_echo_n "checking whether strcasestr works in linear time... " >&6; }
24033 if test "${gl_cv_func_strcasestr_linear+set}" = set; then
24034 $as_echo_n "(cached) " >&6
24036 if test "$cross_compiling" = yes; then
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24044 #include <features.h>
24045 #ifdef __GNU_LIBRARY__
24046 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
24051 #include <cygwin/version.h>
24052 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
24058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24059 $EGREP "Lucky user" >/dev/null 2>&1; then
24060 gl_cv_func_strcasestr_linear=yes
24062 gl_cv_func_strcasestr_linear="guessing no"
24068 cat >conftest.$ac_ext <<_ACEOF
24071 cat confdefs.h >>conftest.$ac_ext
24072 cat >>conftest.$ac_ext <<_ACEOF
24073 /* end confdefs.h. */
24075 #include <signal.h> /* for signal */
24076 #include <string.h> /* for memmem */
24077 #include <stdlib.h> /* for malloc */
24078 #include <unistd.h> /* for alarm */
24083 size_t m = 1000000;
24084 char *haystack = (char *) malloc (2 * m + 2);
24085 char *needle = (char *) malloc (m + 2);
24087 /* Failure to compile this test due to missing alarm is okay,
24088 since all such platforms (mingw) also lack strcasestr. */
24089 signal (SIGALRM, SIG_DFL);
24091 /* Check for quadratic performance. */
24092 if (haystack && needle)
24094 memset (haystack, 'A', 2 * m);
24095 haystack[2 * m] = 'B';
24096 haystack[2 * m + 1] = 0;
24097 memset (needle, 'A', m);
24100 result = strcasestr (haystack, needle);
24107 rm -f conftest$ac_exeext
24108 if { (ac_try="$ac_link"
24109 case "(($ac_try" in
24110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111 *) ac_try_echo=$ac_try;;
24113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24114 $as_echo "$ac_try_echo") >&5
24115 (eval "$ac_link") 2>&5
24117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24119 { (case "(($ac_try" in
24120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121 *) ac_try_echo=$ac_try;;
24123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24124 $as_echo "$ac_try_echo") >&5
24125 (eval "$ac_try") 2>&5
24127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); }; }; then
24129 gl_cv_func_strcasestr_linear=yes
24131 $as_echo "$as_me: program exited with status $ac_status" >&5
24132 $as_echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24135 ( exit $ac_status )
24136 gl_cv_func_strcasestr_linear=no
24138 rm -rf conftest.dSYM
24139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24145 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strcasestr_linear" >&5
24146 $as_echo "$gl_cv_func_strcasestr_linear" >&6; }
24147 if test "$gl_cv_func_strcasestr_linear" != yes; then
24148 REPLACE_STRCASESTR=1
24157 gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24172 for ac_func in strcasestr
24174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24175 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24176 $as_echo_n "checking for $ac_func... " >&6; }
24177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24178 $as_echo_n "(cached) " >&6
24180 cat >conftest.$ac_ext <<_ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24188 #define $ac_func innocuous_$ac_func
24190 /* System header to define __stub macros and hopefully few prototypes,
24191 which can conflict with char $ac_func (); below.
24192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24193 <limits.h> exists even on freestanding compilers. */
24196 # include <limits.h>
24198 # include <assert.h>
24203 /* Override any GCC internal prototype to avoid an error.
24204 Use char because int might match the return type of a GCC
24205 builtin and then its argument prototype would still apply. */
24210 /* The GNU C library defines this for functions which it implements
24211 to always fail with ENOSYS. Some functions are actually named
24212 something starting with __ and the normal name is an alias. */
24213 #if defined __stub_$ac_func || defined __stub___$ac_func
24220 return $ac_func ();
24225 rm -f conftest.$ac_objext conftest$ac_exeext
24226 if { (ac_try="$ac_link"
24227 case "(($ac_try" in
24228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229 *) ac_try_echo=$ac_try;;
24231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24232 $as_echo "$ac_try_echo") >&5
24233 (eval "$ac_link") 2>conftest.er1
24235 grep -v '^ *+' conftest.er1 >conftest.err
24237 cat conftest.err >&5
24238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } && {
24240 test -z "$ac_c_werror_flag" ||
24241 test ! -s conftest.err
24242 } && test -s conftest$ac_exeext && {
24243 test "$cross_compiling" = yes ||
24244 $as_test_x conftest$ac_exeext
24246 eval "$as_ac_var=yes"
24248 $as_echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24251 eval "$as_ac_var=no"
24254 rm -rf conftest.dSYM
24255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24256 conftest$ac_exeext conftest.$ac_ext
24258 ac_res=`eval 'as_val=${'$as_ac_var'}
24259 $as_echo "$as_val"'`
24260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24261 $as_echo "$ac_res" >&6; }
24262 as_val=`eval 'as_val=${'$as_ac_var'}
24263 $as_echo "$as_val"'`
24264 if test "x$as_val" = x""yes; then
24265 cat >>confdefs.h <<_ACEOF
24266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24272 if test $ac_cv_func_strcasestr = no; then
24275 if test "$gl_cv_func_memchr_works" != yes; then
24276 REPLACE_STRCASESTR=1
24279 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
24288 gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24297 GNULIB_STRCASESTR=1
24301 if test $REPLACE_STRERROR = 1; then
24310 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24313 cat >>confdefs.h <<_ACEOF
24314 #define REPLACE_STRERROR $REPLACE_STRERROR
24343 if test $gl_cv_have_include_next = yes; then
24344 gl_cv_next_unistd_h='<'unistd.h'>'
24346 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
24347 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24348 if test "${gl_cv_next_unistd_h+set}" = set; then
24349 $as_echo_n "(cached) " >&6
24352 if test $ac_cv_header_unistd_h = yes; then
24353 cat >conftest.$ac_ext <<_ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h. */
24359 #include <unistd.h>
24363 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24364 *) gl_absname_cpp="$ac_cpp" ;;
24366 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24367 sed -n '\#/unistd.h#{
24368 s#.*"\(.*/unistd.h\)".*#\1#
24374 gl_cv_next_unistd_h='<'unistd.h'>'
24378 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
24379 $as_echo "$gl_cv_next_unistd_h" >&6; }
24381 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24383 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24385 gl_next_as_first_directive='<'unistd.h'>'
24387 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24388 gl_next_as_first_directive=$gl_cv_next_unistd_h
24390 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24401 if test $ac_cv_header_unistd_h = yes; then
24410 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
24411 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
24412 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
24413 $as_echo_n "(cached) " >&6
24415 cat >conftest.$ac_ext <<_ACEOF
24419 rm -f conftest.$ac_objext
24420 if { (ac_try="$ac_compile"
24421 case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24426 $as_echo "$ac_try_echo") >&5
24427 (eval "$ac_compile") 2>conftest.er1
24429 grep -v '^ *+' conftest.er1 >conftest.err
24431 cat conftest.err >&5
24432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } && {
24434 test -z "$ac_c_werror_flag" ||
24435 test ! -s conftest.err
24436 } && test -s conftest.$ac_objext; then
24437 gl_cv_header_wchar_h_standalone=yes
24439 $as_echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 gl_cv_header_wchar_h_standalone=no
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
24448 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
24451 if test $gt_cv_c_wint_t = yes; then
24460 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
24470 if test $ac_cv_header_wchar_h = yes; then
24487 if test $gl_cv_have_include_next = yes; then
24488 gl_cv_next_wchar_h='<'wchar.h'>'
24490 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
24491 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24492 if test "${gl_cv_next_wchar_h+set}" = set; then
24493 $as_echo_n "(cached) " >&6
24496 if test $ac_cv_header_wchar_h = yes; then
24497 cat >conftest.$ac_ext <<_ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h. */
24507 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24508 *) gl_absname_cpp="$ac_cpp" ;;
24510 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24511 sed -n '\#/wchar.h#{
24512 s#.*"\(.*/wchar.h\)".*#\1#
24518 gl_cv_next_wchar_h='<'wchar.h'>'
24522 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
24523 $as_echo "$gl_cv_next_wchar_h" >&6; }
24525 NEXT_WCHAR_H=$gl_cv_next_wchar_h
24527 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24528 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24529 gl_next_as_first_directive='<'wchar.h'>'
24531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24532 gl_next_as_first_directive=$gl_cv_next_wchar_h
24534 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24547 if test $ac_cv_func_iswcntrl = yes; then
24562 if test $gt_cv_c_wint_t = yes; then
24570 if test $ac_cv_header_wctype_h = yes; then
24571 if test $ac_cv_func_iswcntrl = yes; then
24572 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
24573 $as_echo_n "checking whether iswcntrl works... " >&6; }
24574 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
24575 $as_echo_n "(cached) " >&6
24578 if test "$cross_compiling" = yes; then
24579 cat >conftest.$ac_ext <<_ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24585 #include <stdlib.h>
24586 #if __GNU_LIBRARY__ == 1
24587 Linux libc5 i18n is broken.
24597 rm -f conftest.$ac_objext
24598 if { (ac_try="$ac_compile"
24599 case "(($ac_try" in
24600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601 *) ac_try_echo=$ac_try;;
24603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24604 $as_echo "$ac_try_echo") >&5
24605 (eval "$ac_compile") 2>conftest.er1
24607 grep -v '^ *+' conftest.er1 >conftest.err
24609 cat conftest.err >&5
24610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } && {
24612 test -z "$ac_c_werror_flag" ||
24613 test ! -s conftest.err
24614 } && test -s conftest.$ac_objext; then
24615 gl_cv_func_iswcntrl_works=yes
24617 $as_echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24620 gl_cv_func_iswcntrl_works=no
24623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24626 cat >conftest.$ac_ext <<_ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h. */
24632 #include <stddef.h>
24636 #include <wctype.h>
24637 int main () { return iswprint ('x') == 0; }
24639 rm -f conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646 $as_echo "$ac_try_echo") >&5
24647 (eval "$ac_link") 2>&5
24649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24651 { (case "(($ac_try" in
24652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653 *) ac_try_echo=$ac_try;;
24655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24656 $as_echo "$ac_try_echo") >&5
24657 (eval "$ac_try") 2>&5
24659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; }; then
24661 gl_cv_func_iswcntrl_works=yes
24663 $as_echo "$as_me: program exited with status $ac_status" >&5
24664 $as_echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ( exit $ac_status )
24668 gl_cv_func_iswcntrl_works=no
24670 rm -rf conftest.dSYM
24671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24677 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
24678 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24679 if test $gl_cv_func_iswcntrl_works = yes; then
24694 if test $gl_cv_have_include_next = yes; then
24695 gl_cv_next_wctype_h='<'wctype.h'>'
24697 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
24698 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24699 if test "${gl_cv_next_wctype_h+set}" = set; then
24700 $as_echo_n "(cached) " >&6
24703 if test $ac_cv_header_wctype_h = yes; then
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710 #include <wctype.h>
24714 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24715 *) gl_absname_cpp="$ac_cpp" ;;
24717 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24718 sed -n '\#/wctype.h#{
24719 s#.*"\(.*/wctype.h\)".*#\1#
24725 gl_cv_next_wctype_h='<'wctype.h'>'
24729 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
24730 $as_echo "$gl_cv_next_wctype_h" >&6; }
24732 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
24734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24736 gl_next_as_first_directive='<'wctype.h'>'
24738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24739 gl_next_as_first_directive=$gl_cv_next_wctype_h
24741 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
24752 if test "$gl_cv_func_iswcntrl_works" = no; then
24768 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
24799 gl_source_base='tests'
24807 LIBGNU_LIBDEPS="$gl_libdeps"
24809 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24815 for ac_header in stdlib.h unistd.h
24817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24819 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24820 $as_echo_n "checking for $ac_header... " >&6; }
24821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24822 $as_echo_n "(cached) " >&6
24824 ac_res=`eval 'as_val=${'$as_ac_Header'}
24825 $as_echo "$as_val"'`
24826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24827 $as_echo "$ac_res" >&6; }
24829 # Is the header compilable?
24830 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24831 $as_echo_n "checking $ac_header usability... " >&6; }
24832 cat >conftest.$ac_ext <<_ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h. */
24838 $ac_includes_default
24839 #include <$ac_header>
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24848 $as_echo "$ac_try_echo") >&5
24849 (eval "$ac_compile") 2>conftest.er1
24851 grep -v '^ *+' conftest.er1 >conftest.err
24853 cat conftest.err >&5
24854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } && {
24856 test -z "$ac_c_werror_flag" ||
24857 test ! -s conftest.err
24858 } && test -s conftest.$ac_objext; then
24859 ac_header_compiler=yes
24861 $as_echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24864 ac_header_compiler=no
24867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24869 $as_echo "$ac_header_compiler" >&6; }
24871 # Is the header present?
24872 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24873 $as_echo_n "checking $ac_header presence... " >&6; }
24874 cat >conftest.$ac_ext <<_ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 #include <$ac_header>
24882 if { (ac_try="$ac_cpp conftest.$ac_ext"
24883 case "(($ac_try" in
24884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885 *) ac_try_echo=$ac_try;;
24887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24888 $as_echo "$ac_try_echo") >&5
24889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24891 grep -v '^ *+' conftest.er1 >conftest.err
24893 cat conftest.err >&5
24894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } >/dev/null && {
24896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24897 test ! -s conftest.err
24899 ac_header_preproc=yes
24901 $as_echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24904 ac_header_preproc=no
24907 rm -f conftest.err conftest.$ac_ext
24908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909 $as_echo "$ac_header_preproc" >&6; }
24911 # So? What about this header?
24912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24918 ac_header_preproc=yes
24921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24922 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24924 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24926 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24928 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24932 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24934 ## ------------------------------- ##
24935 ## Report this to bug-wget@gnu.org ##
24936 ## ------------------------------- ##
24938 ) | sed "s/^/$as_me: WARNING: /" >&2
24941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24942 $as_echo_n "checking for $ac_header... " >&6; }
24943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24944 $as_echo_n "(cached) " >&6
24946 eval "$as_ac_Header=\$ac_header_preproc"
24948 ac_res=`eval 'as_val=${'$as_ac_Header'}
24949 $as_echo "$as_val"'`
24950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24951 $as_echo "$ac_res" >&6; }
24954 as_val=`eval 'as_val=${'$as_ac_Header'}
24955 $as_echo "$as_val"'`
24956 if test "x$as_val" = x""yes; then
24957 cat >>confdefs.h <<_ACEOF
24958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24966 for ac_func in getpagesize
24968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24969 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24970 $as_echo_n "checking for $ac_func... " >&6; }
24971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24972 $as_echo_n "(cached) " >&6
24974 cat >conftest.$ac_ext <<_ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h. */
24980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24982 #define $ac_func innocuous_$ac_func
24984 /* System header to define __stub macros and hopefully few prototypes,
24985 which can conflict with char $ac_func (); below.
24986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24987 <limits.h> exists even on freestanding compilers. */
24990 # include <limits.h>
24992 # include <assert.h>
24997 /* Override any GCC internal prototype to avoid an error.
24998 Use char because int might match the return type of a GCC
24999 builtin and then its argument prototype would still apply. */
25004 /* The GNU C library defines this for functions which it implements
25005 to always fail with ENOSYS. Some functions are actually named
25006 something starting with __ and the normal name is an alias. */
25007 #if defined __stub_$ac_func || defined __stub___$ac_func
25014 return $ac_func ();
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25026 $as_echo "$ac_try_echo") >&5
25027 (eval "$ac_link") 2>conftest.er1
25029 grep -v '^ *+' conftest.er1 >conftest.err
25031 cat conftest.err >&5
25032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } && {
25034 test -z "$ac_c_werror_flag" ||
25035 test ! -s conftest.err
25036 } && test -s conftest$ac_exeext && {
25037 test "$cross_compiling" = yes ||
25038 $as_test_x conftest$ac_exeext
25040 eval "$as_ac_var=yes"
25042 $as_echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25045 eval "$as_ac_var=no"
25048 rm -rf conftest.dSYM
25049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25050 conftest$ac_exeext conftest.$ac_ext
25052 ac_res=`eval 'as_val=${'$as_ac_var'}
25053 $as_echo "$as_val"'`
25054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25055 $as_echo "$ac_res" >&6; }
25056 as_val=`eval 'as_val=${'$as_ac_var'}
25057 $as_echo "$as_val"'`
25058 if test "x$as_val" = x""yes; then
25059 cat >>confdefs.h <<_ACEOF
25060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25066 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
25067 $as_echo_n "checking for working mmap... " >&6; }
25068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25069 $as_echo_n "(cached) " >&6
25071 if test "$cross_compiling" = yes; then
25072 ac_cv_func_mmap_fixed_mapped=no
25074 cat >conftest.$ac_ext <<_ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25080 $ac_includes_default
25081 /* malloc might have been renamed as rpl_malloc. */
25084 /* Thanks to Mike Haertel and Jim Avera for this test.
25085 Here is a matrix of mmap possibilities:
25086 mmap private not fixed
25087 mmap private fixed at somewhere currently unmapped
25088 mmap private fixed at somewhere already mapped
25089 mmap shared not fixed
25090 mmap shared fixed at somewhere currently unmapped
25091 mmap shared fixed at somewhere already mapped
25092 For private mappings, we should verify that changes cannot be read()
25093 back from the file, nor mmap's back from the file at a different
25094 address. (There have been systems where private was not correctly
25095 implemented like the infamous i386 svr4.0, and systems where the
25096 VM page cache was not coherent with the file system buffer cache
25097 like early versions of FreeBSD and possibly contemporary NetBSD.)
25098 For shared mappings, we should conversely verify that changes get
25099 propagated back to all the places they're supposed to be.
25101 Grep wants private fixed already mapped.
25102 The main things grep needs to know about mmap are:
25103 * does it exist and is it safe to write into the mmap'd area
25104 * how to use it (BSD variants) */
25107 #include <sys/mman.h>
25109 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25113 /* This mess was copied from the GNU getpagesize.h. */
25114 #ifndef HAVE_GETPAGESIZE
25115 /* Assume that all systems that can run configure have sys/param.h. */
25116 # ifndef HAVE_SYS_PARAM_H
25117 # define HAVE_SYS_PARAM_H 1
25120 # ifdef _SC_PAGESIZE
25121 # define getpagesize() sysconf(_SC_PAGESIZE)
25122 # else /* no _SC_PAGESIZE */
25123 # ifdef HAVE_SYS_PARAM_H
25124 # include <sys/param.h>
25125 # ifdef EXEC_PAGESIZE
25126 # define getpagesize() EXEC_PAGESIZE
25127 # else /* no EXEC_PAGESIZE */
25129 # define getpagesize() NBPG * CLSIZE
25132 # endif /* no CLSIZE */
25133 # else /* no NBPG */
25135 # define getpagesize() NBPC
25136 # else /* no NBPC */
25138 # define getpagesize() PAGESIZE
25139 # endif /* PAGESIZE */
25140 # endif /* no NBPC */
25141 # endif /* no NBPG */
25142 # endif /* no EXEC_PAGESIZE */
25143 # else /* no HAVE_SYS_PARAM_H */
25144 # define getpagesize() 8192 /* punt totally */
25145 # endif /* no HAVE_SYS_PARAM_H */
25146 # endif /* no _SC_PAGESIZE */
25148 #endif /* no HAVE_GETPAGESIZE */
25153 char *data, *data2, *data3;
25157 pagesize = getpagesize ();
25159 /* First, make a file with some known garbage in it. */
25160 data = (char *) malloc (pagesize);
25163 for (i = 0; i < pagesize; ++i)
25164 *(data + i) = rand ();
25166 fd = creat ("conftest.mmap", 0600);
25169 if (write (fd, data, pagesize) != pagesize)
25173 /* Next, try to mmap the file at a fixed address which already has
25174 something else allocated at it. If we can, also make sure that
25175 we see the same garbage. */
25176 fd = open ("conftest.mmap", O_RDWR);
25179 data2 = (char *) malloc (2 * pagesize);
25182 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25186 for (i = 0; i < pagesize; ++i)
25187 if (*(data + i) != *(data2 + i))
25190 /* Finally, make sure that changes to the mapped area do not
25191 percolate back to the file as seen by read(). (This is a bug on
25192 some variants of i386 svr4.0.) */
25193 for (i = 0; i < pagesize; ++i)
25194 *(data2 + i) = *(data2 + i) + 1;
25195 data3 = (char *) malloc (pagesize);
25198 if (read (fd, data3, pagesize) != pagesize)
25200 for (i = 0; i < pagesize; ++i)
25201 if (*(data + i) != *(data3 + i))
25207 rm -f conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25214 $as_echo "$ac_try_echo") >&5
25215 (eval "$ac_link") 2>&5
25217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25219 { (case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25224 $as_echo "$ac_try_echo") >&5
25225 (eval "$ac_try") 2>&5
25227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; }; then
25229 ac_cv_func_mmap_fixed_mapped=yes
25231 $as_echo "$as_me: program exited with status $ac_status" >&5
25232 $as_echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ( exit $ac_status )
25236 ac_cv_func_mmap_fixed_mapped=no
25238 rm -rf conftest.dSYM
25239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25244 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25245 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25248 cat >>confdefs.h <<\_ACEOF
25249 #define HAVE_MMAP 1
25253 rm -f conftest.mmap
25255 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25256 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25257 if test "${ac_cv_sys_largefile_source+set}" = set; then
25258 $as_echo_n "(cached) " >&6
25261 cat >conftest.$ac_ext <<_ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h. */
25267 #include <sys/types.h> /* for off_t */
25272 int (*fp) (FILE *, off_t, int) = fseeko;
25273 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (ac_try="$ac_link"
25280 case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285 $as_echo "$ac_try_echo") >&5
25286 (eval "$ac_link") 2>conftest.er1
25288 grep -v '^ *+' conftest.er1 >conftest.err
25290 cat conftest.err >&5
25291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } && {
25293 test -z "$ac_c_werror_flag" ||
25294 test ! -s conftest.err
25295 } && test -s conftest$ac_exeext && {
25296 test "$cross_compiling" = yes ||
25297 $as_test_x conftest$ac_exeext
25299 ac_cv_sys_largefile_source=no; break
25301 $as_echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25307 rm -rf conftest.dSYM
25308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25309 conftest$ac_exeext conftest.$ac_ext
25310 cat >conftest.$ac_ext <<_ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25316 #define _LARGEFILE_SOURCE 1
25317 #include <sys/types.h> /* for off_t */
25322 int (*fp) (FILE *, off_t, int) = fseeko;
25323 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25328 rm -f conftest.$ac_objext conftest$ac_exeext
25329 if { (ac_try="$ac_link"
25330 case "(($ac_try" in
25331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332 *) ac_try_echo=$ac_try;;
25334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25335 $as_echo "$ac_try_echo") >&5
25336 (eval "$ac_link") 2>conftest.er1
25338 grep -v '^ *+' conftest.er1 >conftest.err
25340 cat conftest.err >&5
25341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } && {
25343 test -z "$ac_c_werror_flag" ||
25344 test ! -s conftest.err
25345 } && test -s conftest$ac_exeext && {
25346 test "$cross_compiling" = yes ||
25347 $as_test_x conftest$ac_exeext
25349 ac_cv_sys_largefile_source=1; break
25351 $as_echo "$as_me: failed program was:" >&5
25352 sed 's/^/| /' conftest.$ac_ext >&5
25357 rm -rf conftest.dSYM
25358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25359 conftest$ac_exeext conftest.$ac_ext
25360 ac_cv_sys_largefile_source=unknown
25364 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25365 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25366 case $ac_cv_sys_largefile_source in #(
25369 cat >>confdefs.h <<_ACEOF
25370 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25376 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25377 # in glibc 2.1.3, but that breaks too many other things.
25378 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25379 if test $ac_cv_sys_largefile_source != unknown; then
25381 cat >>confdefs.h <<\_ACEOF
25382 #define HAVE_FSEEKO 1
25393 for ac_func in strptime timegm snprintf vsnprintf vasprintf drand48
25395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25396 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25397 $as_echo_n "checking for $ac_func... " >&6; }
25398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25399 $as_echo_n "(cached) " >&6
25401 cat >conftest.$ac_ext <<_ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25409 #define $ac_func innocuous_$ac_func
25411 /* System header to define __stub macros and hopefully few prototypes,
25412 which can conflict with char $ac_func (); below.
25413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25414 <limits.h> exists even on freestanding compilers. */
25417 # include <limits.h>
25419 # include <assert.h>
25424 /* Override any GCC internal prototype to avoid an error.
25425 Use char because int might match the return type of a GCC
25426 builtin and then its argument prototype would still apply. */
25431 /* The GNU C library defines this for functions which it implements
25432 to always fail with ENOSYS. Some functions are actually named
25433 something starting with __ and the normal name is an alias. */
25434 #if defined __stub_$ac_func || defined __stub___$ac_func
25441 return $ac_func ();
25446 rm -f conftest.$ac_objext conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450 *) ac_try_echo=$ac_try;;
25452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25453 $as_echo "$ac_try_echo") >&5
25454 (eval "$ac_link") 2>conftest.er1
25456 grep -v '^ *+' conftest.er1 >conftest.err
25458 cat conftest.err >&5
25459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); } && {
25461 test -z "$ac_c_werror_flag" ||
25462 test ! -s conftest.err
25463 } && test -s conftest$ac_exeext && {
25464 test "$cross_compiling" = yes ||
25465 $as_test_x conftest$ac_exeext
25467 eval "$as_ac_var=yes"
25469 $as_echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 eval "$as_ac_var=no"
25475 rm -rf conftest.dSYM
25476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25477 conftest$ac_exeext conftest.$ac_ext
25479 ac_res=`eval 'as_val=${'$as_ac_var'}
25480 $as_echo "$as_val"'`
25481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25482 $as_echo "$ac_res" >&6; }
25483 as_val=`eval 'as_val=${'$as_ac_var'}
25484 $as_echo "$as_val"'`
25485 if test "x$as_val" = x""yes; then
25486 cat >>confdefs.h <<_ACEOF
25487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25501 for ac_func in strtoll usleep ftello sigblock sigsetjmp memrchr wcwidth mbtowc
25503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25504 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25505 $as_echo_n "checking for $ac_func... " >&6; }
25506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25507 $as_echo_n "(cached) " >&6
25509 cat >conftest.$ac_ext <<_ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25517 #define $ac_func innocuous_$ac_func
25519 /* System header to define __stub macros and hopefully few prototypes,
25520 which can conflict with char $ac_func (); below.
25521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25522 <limits.h> exists even on freestanding compilers. */
25525 # include <limits.h>
25527 # include <assert.h>
25532 /* Override any GCC internal prototype to avoid an error.
25533 Use char because int might match the return type of a GCC
25534 builtin and then its argument prototype would still apply. */
25539 /* The GNU C library defines this for functions which it implements
25540 to always fail with ENOSYS. Some functions are actually named
25541 something starting with __ and the normal name is an alias. */
25542 #if defined __stub_$ac_func || defined __stub___$ac_func
25549 return $ac_func ();
25554 rm -f conftest.$ac_objext conftest$ac_exeext
25555 if { (ac_try="$ac_link"
25556 case "(($ac_try" in
25557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558 *) ac_try_echo=$ac_try;;
25560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25561 $as_echo "$ac_try_echo") >&5
25562 (eval "$ac_link") 2>conftest.er1
25564 grep -v '^ *+' conftest.er1 >conftest.err
25566 cat conftest.err >&5
25567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest$ac_exeext && {
25572 test "$cross_compiling" = yes ||
25573 $as_test_x conftest$ac_exeext
25575 eval "$as_ac_var=yes"
25577 $as_echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25580 eval "$as_ac_var=no"
25583 rm -rf conftest.dSYM
25584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25585 conftest$ac_exeext conftest.$ac_ext
25587 ac_res=`eval 'as_val=${'$as_ac_var'}
25588 $as_echo "$as_val"'`
25589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25590 $as_echo "$ac_res" >&6; }
25591 as_val=`eval 'as_val=${'$as_ac_var'}
25592 $as_echo "$as_val"'`
25593 if test "x$as_val" = x""yes; then
25594 cat >>confdefs.h <<_ACEOF
25595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25602 if test x"$ENABLE_OPIE" = xyes; then
25603 case " $LIBOBJS " in
25604 *" ftp-opie.$ac_objext "* ) ;;
25605 *) LIBOBJS="$LIBOBJS ftp-opie.$ac_objext"
25612 cat >>confdefs.h <<\_ACEOF
25613 #define HAVE_STRCASECMP 1
25617 cat >>confdefs.h <<\_ACEOF
25618 #define HAVE_STRNCASECMP 1
25622 cat >>confdefs.h <<\_ACEOF
25623 #define HAVE_STRDUP 1
25627 cat >>confdefs.h <<\_ACEOF
25628 #define HAVE_ISATTY 1
25632 cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_SYMLINK 1
25638 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
25639 $as_echo_n "checking for struct utimbuf... " >&6; }
25640 if test "${ac_cv_type_struct_utimbuf+set}" = set; then
25641 $as_echo_n "(cached) " >&6
25643 ac_cv_type_struct_utimbuf=no
25644 cat >conftest.$ac_ext <<_ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h. */
25652 #if HAVE_SYS_TYPES_H
25653 # include <sys/types.h>
25656 # include <utime.h>
25663 if (sizeof (struct utimbuf))
25669 rm -f conftest.$ac_objext
25670 if { (ac_try="$ac_compile"
25671 case "(($ac_try" in
25672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673 *) ac_try_echo=$ac_try;;
25675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676 $as_echo "$ac_try_echo") >&5
25677 (eval "$ac_compile") 2>conftest.er1
25679 grep -v '^ *+' conftest.er1 >conftest.err
25681 cat conftest.err >&5
25682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } && {
25684 test -z "$ac_c_werror_flag" ||
25685 test ! -s conftest.err
25686 } && test -s conftest.$ac_objext; then
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25695 #if HAVE_SYS_TYPES_H
25696 # include <sys/types.h>
25699 # include <utime.h>
25706 if (sizeof ((struct utimbuf)))
25712 rm -f conftest.$ac_objext
25713 if { (ac_try="$ac_compile"
25714 case "(($ac_try" in
25715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716 *) ac_try_echo=$ac_try;;
25718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25719 $as_echo "$ac_try_echo") >&5
25720 (eval "$ac_compile") 2>conftest.er1
25722 grep -v '^ *+' conftest.er1 >conftest.err
25724 cat conftest.err >&5
25725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } && {
25727 test -z "$ac_c_werror_flag" ||
25728 test ! -s conftest.err
25729 } && test -s conftest.$ac_objext; then
25732 $as_echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25735 ac_cv_type_struct_utimbuf=yes
25738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25740 $as_echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25748 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
25749 $as_echo "$ac_cv_type_struct_utimbuf" >&6; }
25750 if test "x$ac_cv_type_struct_utimbuf" = x""yes; then
25752 cat >>confdefs.h <<_ACEOF
25753 #define HAVE_STRUCT_UTIMBUF 1
25761 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
25762 $as_echo_n "checking for socklen_t... " >&6; }
25763 cat >conftest.$ac_ext <<_ACEOF
25765 #include <sys/types.h>
25766 #include <sys/socket.h>
25770 rm -f conftest.$ac_objext
25771 if { (ac_try="$ac_compile"
25772 case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25777 $as_echo "$ac_try_echo") >&5
25778 (eval "$ac_compile") 2>conftest.er1
25780 grep -v '^ *+' conftest.er1 >conftest.err
25782 cat conftest.err >&5
25783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } && {
25785 test -z "$ac_c_werror_flag" ||
25786 test ! -s conftest.err
25787 } && test -s conftest.$ac_objext; then
25788 { $as_echo "$as_me:$LINENO: result: socklen_t" >&5
25789 $as_echo "socklen_t" >&6; }
25791 $as_echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25795 cat >conftest.$ac_ext <<_ACEOF
25797 #include <sys/types.h>
25798 #include <sys/socket.h>
25799 int accept (int, struct sockaddr *, size_t *);
25802 rm -f conftest.$ac_objext
25803 if { (ac_try="$ac_compile"
25804 case "(($ac_try" in
25805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806 *) ac_try_echo=$ac_try;;
25808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25809 $as_echo "$ac_try_echo") >&5
25810 (eval "$ac_compile") 2>conftest.er1
25812 grep -v '^ *+' conftest.er1 >conftest.err
25814 cat conftest.err >&5
25815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } && {
25817 test -z "$ac_c_werror_flag" ||
25818 test ! -s conftest.err
25819 } && test -s conftest.$ac_objext; then
25821 { $as_echo "$as_me:$LINENO: result: size_t" >&5
25822 $as_echo "size_t" >&6; }
25824 cat >>confdefs.h <<\_ACEOF
25825 #define socklen_t size_t
25830 $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25834 { $as_echo "$as_me:$LINENO: result: int" >&5
25835 $as_echo "int" >&6; }
25837 cat >>confdefs.h <<\_ACEOF
25838 #define socklen_t int
25844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 { $as_echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
25852 $as_echo_n "checking for working fnmatch.h... " >&6; }
25853 cat >conftest.$ac_ext <<_ACEOF
25854 #include <fnmatch.h>
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865 (eval "$ac_compile") 2>conftest.er1
25867 grep -v '^ *+' conftest.er1 >conftest.err
25869 cat conftest.err >&5
25870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } && {
25872 test -z "$ac_c_werror_flag" ||
25873 test ! -s conftest.err
25874 } && test -s conftest.$ac_objext; then
25876 { $as_echo "$as_me:$LINENO: result: yes" >&5
25877 $as_echo "yes" >&6; }
25879 cat >>confdefs.h <<\_ACEOF
25880 #define HAVE_WORKING_FNMATCH_H 1
25885 $as_echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25889 { $as_echo "$as_me:$LINENO: result: no" >&5
25890 $as_echo "no" >&6; }
25894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25898 for ac_func in nanosleep
25900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 $as_echo_n "checking for $ac_func... " >&6; }
25903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904 $as_echo_n "(cached) " >&6
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25914 #define $ac_func innocuous_$ac_func
25916 /* System header to define __stub macros and hopefully few prototypes,
25917 which can conflict with char $ac_func (); below.
25918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919 <limits.h> exists even on freestanding compilers. */
25922 # include <limits.h>
25924 # include <assert.h>
25929 /* Override any GCC internal prototype to avoid an error.
25930 Use char because int might match the return type of a GCC
25931 builtin and then its argument prototype would still apply. */
25936 /* The GNU C library defines this for functions which it implements
25937 to always fail with ENOSYS. Some functions are actually named
25938 something starting with __ and the normal name is an alias. */
25939 #if defined __stub_$ac_func || defined __stub___$ac_func
25946 return $ac_func ();
25951 rm -f conftest.$ac_objext conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25958 $as_echo "$ac_try_echo") >&5
25959 (eval "$ac_link") 2>conftest.er1
25961 grep -v '^ *+' conftest.er1 >conftest.err
25963 cat conftest.err >&5
25964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } && {
25966 test -z "$ac_c_werror_flag" ||
25967 test ! -s conftest.err
25968 } && test -s conftest$ac_exeext && {
25969 test "$cross_compiling" = yes ||
25970 $as_test_x conftest$ac_exeext
25972 eval "$as_ac_var=yes"
25974 $as_echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25977 eval "$as_ac_var=no"
25980 rm -rf conftest.dSYM
25981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25982 conftest$ac_exeext conftest.$ac_ext
25984 ac_res=`eval 'as_val=${'$as_ac_var'}
25985 $as_echo "$as_val"'`
25986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25987 $as_echo "$ac_res" >&6; }
25988 as_val=`eval 'as_val=${'$as_ac_var'}
25989 $as_echo "$as_val"'`
25990 if test "x$as_val" = x""yes; then
25991 cat >>confdefs.h <<_ACEOF
25992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25997 { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
25998 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
25999 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
26000 $as_echo_n "(cached) " >&6
26002 ac_check_lib_save_LIBS=$LIBS
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26011 /* Override any GCC internal prototype to avoid an error.
26012 Use char because int might match the return type of a GCC
26013 builtin and then its argument prototype would still apply. */
26021 return nanosleep ();
26026 rm -f conftest.$ac_objext conftest$ac_exeext
26027 if { (ac_try="$ac_link"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034 (eval "$ac_link") 2>conftest.er1
26036 grep -v '^ *+' conftest.er1 >conftest.err
26038 cat conftest.err >&5
26039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } && {
26041 test -z "$ac_c_werror_flag" ||
26042 test ! -s conftest.err
26043 } && test -s conftest$ac_exeext && {
26044 test "$cross_compiling" = yes ||
26045 $as_test_x conftest$ac_exeext
26047 ac_cv_lib_rt_nanosleep=yes
26049 $as_echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 ac_cv_lib_rt_nanosleep=no
26055 rm -rf conftest.dSYM
26056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057 conftest$ac_exeext conftest.$ac_ext
26058 LIBS=$ac_check_lib_save_LIBS
26060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
26061 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
26062 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then
26065 cat >>confdefs.h <<\_ACEOF
26066 #define HAVE_NANOSLEEP 1
26073 { $as_echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
26074 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
26075 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
26076 $as_echo_n "(cached) " >&6
26078 ac_check_lib_save_LIBS=$LIBS
26079 LIBS="-lposix4 $LIBS"
26080 cat >conftest.$ac_ext <<_ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h. */
26087 /* Override any GCC internal prototype to avoid an error.
26088 Use char because int might match the return type of a GCC
26089 builtin and then its argument prototype would still apply. */
26097 return nanosleep ();
26102 rm -f conftest.$ac_objext conftest$ac_exeext
26103 if { (ac_try="$ac_link"
26104 case "(($ac_try" in
26105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106 *) ac_try_echo=$ac_try;;
26108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26109 $as_echo "$ac_try_echo") >&5
26110 (eval "$ac_link") 2>conftest.er1
26112 grep -v '^ *+' conftest.er1 >conftest.err
26114 cat conftest.err >&5
26115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } && {
26117 test -z "$ac_c_werror_flag" ||
26118 test ! -s conftest.err
26119 } && test -s conftest$ac_exeext && {
26120 test "$cross_compiling" = yes ||
26121 $as_test_x conftest$ac_exeext
26123 ac_cv_lib_posix4_nanosleep=yes
26125 $as_echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26128 ac_cv_lib_posix4_nanosleep=no
26131 rm -rf conftest.dSYM
26132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26133 conftest$ac_exeext conftest.$ac_ext
26134 LIBS=$ac_check_lib_save_LIBS
26136 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
26137 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
26138 if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then
26141 cat >>confdefs.h <<\_ACEOF
26142 #define HAVE_NANOSLEEP 1
26145 LIBS="-lposix4 $LIBS"
26159 for ac_func in clock_gettime
26161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26162 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26163 $as_echo_n "checking for $ac_func... " >&6; }
26164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26165 $as_echo_n "(cached) " >&6
26167 cat >conftest.$ac_ext <<_ACEOF
26170 cat confdefs.h >>conftest.$ac_ext
26171 cat >>conftest.$ac_ext <<_ACEOF
26172 /* end confdefs.h. */
26173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26175 #define $ac_func innocuous_$ac_func
26177 /* System header to define __stub macros and hopefully few prototypes,
26178 which can conflict with char $ac_func (); below.
26179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26180 <limits.h> exists even on freestanding compilers. */
26183 # include <limits.h>
26185 # include <assert.h>
26190 /* Override any GCC internal prototype to avoid an error.
26191 Use char because int might match the return type of a GCC
26192 builtin and then its argument prototype would still apply. */
26197 /* The GNU C library defines this for functions which it implements
26198 to always fail with ENOSYS. Some functions are actually named
26199 something starting with __ and the normal name is an alias. */
26200 #if defined __stub_$ac_func || defined __stub___$ac_func
26207 return $ac_func ();
26212 rm -f conftest.$ac_objext conftest$ac_exeext
26213 if { (ac_try="$ac_link"
26214 case "(($ac_try" in
26215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216 *) ac_try_echo=$ac_try;;
26218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26219 $as_echo "$ac_try_echo") >&5
26220 (eval "$ac_link") 2>conftest.er1
26222 grep -v '^ *+' conftest.er1 >conftest.err
26224 cat conftest.err >&5
26225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } && {
26227 test -z "$ac_c_werror_flag" ||
26228 test ! -s conftest.err
26229 } && test -s conftest$ac_exeext && {
26230 test "$cross_compiling" = yes ||
26231 $as_test_x conftest$ac_exeext
26233 eval "$as_ac_var=yes"
26235 $as_echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26238 eval "$as_ac_var=no"
26241 rm -rf conftest.dSYM
26242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26243 conftest$ac_exeext conftest.$ac_ext
26245 ac_res=`eval 'as_val=${'$as_ac_var'}
26246 $as_echo "$as_val"'`
26247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26248 $as_echo "$ac_res" >&6; }
26249 as_val=`eval 'as_val=${'$as_ac_var'}
26250 $as_echo "$as_val"'`
26251 if test "x$as_val" = x""yes; then
26252 cat >>confdefs.h <<_ACEOF
26253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26259 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
26260 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26261 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
26262 $as_echo_n "(cached) " >&6
26264 ac_check_lib_save_LIBS=$LIBS
26266 cat >conftest.$ac_ext <<_ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h. */
26273 /* Override any GCC internal prototype to avoid an error.
26274 Use char because int might match the return type of a GCC
26275 builtin and then its argument prototype would still apply. */
26279 char clock_gettime ();
26283 return clock_gettime ();
26288 rm -f conftest.$ac_objext conftest$ac_exeext
26289 if { (ac_try="$ac_link"
26290 case "(($ac_try" in
26291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26292 *) ac_try_echo=$ac_try;;
26294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26295 $as_echo "$ac_try_echo") >&5
26296 (eval "$ac_link") 2>conftest.er1
26298 grep -v '^ *+' conftest.er1 >conftest.err
26300 cat conftest.err >&5
26301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } && {
26303 test -z "$ac_c_werror_flag" ||
26304 test ! -s conftest.err
26305 } && test -s conftest$ac_exeext && {
26306 test "$cross_compiling" = yes ||
26307 $as_test_x conftest$ac_exeext
26309 ac_cv_lib_rt_clock_gettime=yes
26311 $as_echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26314 ac_cv_lib_rt_clock_gettime=no
26317 rm -rf conftest.dSYM
26318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26319 conftest$ac_exeext conftest.$ac_ext
26320 LIBS=$ac_check_lib_save_LIBS
26322 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
26323 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26324 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
26325 cat >>confdefs.h <<_ACEOF
26326 #define HAVE_LIBRT 1
26339 wget_check_in_nsl=NONE
26341 for ac_func in gethostbyname
26343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26345 $as_echo_n "checking for $ac_func... " >&6; }
26346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26347 $as_echo_n "(cached) " >&6
26349 cat >conftest.$ac_ext <<_ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h. */
26355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26357 #define $ac_func innocuous_$ac_func
26359 /* System header to define __stub macros and hopefully few prototypes,
26360 which can conflict with char $ac_func (); below.
26361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26362 <limits.h> exists even on freestanding compilers. */
26365 # include <limits.h>
26367 # include <assert.h>
26372 /* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26379 /* The GNU C library defines this for functions which it implements
26380 to always fail with ENOSYS. Some functions are actually named
26381 something starting with __ and the normal name is an alias. */
26382 #if defined __stub_$ac_func || defined __stub___$ac_func
26389 return $ac_func ();
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (ac_try="$ac_link"
26396 case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401 $as_echo "$ac_try_echo") >&5
26402 (eval "$ac_link") 2>conftest.er1
26404 grep -v '^ *+' conftest.er1 >conftest.err
26406 cat conftest.err >&5
26407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } && {
26409 test -z "$ac_c_werror_flag" ||
26410 test ! -s conftest.err
26411 } && test -s conftest$ac_exeext && {
26412 test "$cross_compiling" = yes ||
26413 $as_test_x conftest$ac_exeext
26415 eval "$as_ac_var=yes"
26417 $as_echo "$as_me: failed program was:" >&5
26418 sed 's/^/| /' conftest.$ac_ext >&5
26420 eval "$as_ac_var=no"
26423 rm -rf conftest.dSYM
26424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26425 conftest$ac_exeext conftest.$ac_ext
26427 ac_res=`eval 'as_val=${'$as_ac_var'}
26428 $as_echo "$as_val"'`
26429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26430 $as_echo "$ac_res" >&6; }
26431 as_val=`eval 'as_val=${'$as_ac_var'}
26432 $as_echo "$as_val"'`
26433 if test "x$as_val" = x""yes; then
26434 cat >>confdefs.h <<_ACEOF
26435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26440 wget_check_in_nsl=gethostbyname
26446 for ac_func in inet_ntoa
26448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26450 $as_echo_n "checking for $ac_func... " >&6; }
26451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26452 $as_echo_n "(cached) " >&6
26454 cat >conftest.$ac_ext <<_ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26462 #define $ac_func innocuous_$ac_func
26464 /* System header to define __stub macros and hopefully few prototypes,
26465 which can conflict with char $ac_func (); below.
26466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26467 <limits.h> exists even on freestanding compilers. */
26470 # include <limits.h>
26472 # include <assert.h>
26477 /* Override any GCC internal prototype to avoid an error.
26478 Use char because int might match the return type of a GCC
26479 builtin and then its argument prototype would still apply. */
26484 /* The GNU C library defines this for functions which it implements
26485 to always fail with ENOSYS. Some functions are actually named
26486 something starting with __ and the normal name is an alias. */
26487 #if defined __stub_$ac_func || defined __stub___$ac_func
26494 return $ac_func ();
26499 rm -f conftest.$ac_objext conftest$ac_exeext
26500 if { (ac_try="$ac_link"
26501 case "(($ac_try" in
26502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503 *) ac_try_echo=$ac_try;;
26505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26506 $as_echo "$ac_try_echo") >&5
26507 (eval "$ac_link") 2>conftest.er1
26509 grep -v '^ *+' conftest.er1 >conftest.err
26511 cat conftest.err >&5
26512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } && {
26514 test -z "$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26516 } && test -s conftest$ac_exeext && {
26517 test "$cross_compiling" = yes ||
26518 $as_test_x conftest$ac_exeext
26520 eval "$as_ac_var=yes"
26522 $as_echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26525 eval "$as_ac_var=no"
26528 rm -rf conftest.dSYM
26529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26530 conftest$ac_exeext conftest.$ac_ext
26532 ac_res=`eval 'as_val=${'$as_ac_var'}
26533 $as_echo "$as_val"'`
26534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26535 $as_echo "$ac_res" >&6; }
26536 as_val=`eval 'as_val=${'$as_ac_var'}
26537 $as_echo "$as_val"'`
26538 if test "x$as_val" = x""yes; then
26539 cat >>confdefs.h <<_ACEOF
26540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26545 wget_check_in_nsl=inet_ntoa
26550 if test $wget_check_in_nsl != NONE; then
26552 as_ac_Lib=`$as_echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
26553 { $as_echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
26554 $as_echo_n "checking for $wget_check_in_nsl in -lnsl... " >&6; }
26555 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26556 $as_echo_n "(cached) " >&6
26558 ac_check_lib_save_LIBS=$LIBS
26560 cat >conftest.$ac_ext <<_ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26567 /* Override any GCC internal prototype to avoid an error.
26568 Use char because int might match the return type of a GCC
26569 builtin and then its argument prototype would still apply. */
26573 char $wget_check_in_nsl ();
26577 return $wget_check_in_nsl ();
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (ac_try="$ac_link"
26584 case "(($ac_try" in
26585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586 *) ac_try_echo=$ac_try;;
26588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26589 $as_echo "$ac_try_echo") >&5
26590 (eval "$ac_link") 2>conftest.er1
26592 grep -v '^ *+' conftest.er1 >conftest.err
26594 cat conftest.err >&5
26595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } && {
26597 test -z "$ac_c_werror_flag" ||
26598 test ! -s conftest.err
26599 } && test -s conftest$ac_exeext && {
26600 test "$cross_compiling" = yes ||
26601 $as_test_x conftest$ac_exeext
26603 eval "$as_ac_Lib=yes"
26605 $as_echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26608 eval "$as_ac_Lib=no"
26611 rm -rf conftest.dSYM
26612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26613 conftest$ac_exeext conftest.$ac_ext
26614 LIBS=$ac_check_lib_save_LIBS
26616 ac_res=`eval 'as_val=${'$as_ac_Lib'}
26617 $as_echo "$as_val"'`
26618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26619 $as_echo "$ac_res" >&6; }
26620 as_val=`eval 'as_val=${'$as_ac_Lib'}
26621 $as_echo "$as_val"'`
26622 if test "x$as_val" = x""yes; then
26623 cat >>confdefs.h <<_ACEOF
26624 #define HAVE_LIBNSL 1
26633 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26634 $as_echo_n "checking for socket in -lsocket... " >&6; }
26635 if test "${ac_cv_lib_socket_socket+set}" = set; then
26636 $as_echo_n "(cached) " >&6
26638 ac_check_lib_save_LIBS=$LIBS
26639 LIBS="-lsocket $LIBS"
26640 cat >conftest.$ac_ext <<_ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h. */
26647 /* Override any GCC internal prototype to avoid an error.
26648 Use char because int might match the return type of a GCC
26649 builtin and then its argument prototype would still apply. */
26662 rm -f conftest.$ac_objext conftest$ac_exeext
26663 if { (ac_try="$ac_link"
26664 case "(($ac_try" in
26665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666 *) ac_try_echo=$ac_try;;
26668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26669 $as_echo "$ac_try_echo") >&5
26670 (eval "$ac_link") 2>conftest.er1
26672 grep -v '^ *+' conftest.er1 >conftest.err
26674 cat conftest.err >&5
26675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } && {
26677 test -z "$ac_c_werror_flag" ||
26678 test ! -s conftest.err
26679 } && test -s conftest$ac_exeext && {
26680 test "$cross_compiling" = yes ||
26681 $as_test_x conftest$ac_exeext
26683 ac_cv_lib_socket_socket=yes
26685 $as_echo "$as_me: failed program was:" >&5
26686 sed 's/^/| /' conftest.$ac_ext >&5
26688 ac_cv_lib_socket_socket=no
26691 rm -rf conftest.dSYM
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693 conftest$ac_exeext conftest.$ac_ext
26694 LIBS=$ac_check_lib_save_LIBS
26696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26697 $as_echo "$ac_cv_lib_socket_socket" >&6; }
26698 if test "x$ac_cv_lib_socket_socket" = x""yes; then
26699 cat >>confdefs.h <<_ACEOF
26700 #define HAVE_LIBSOCKET 1
26703 LIBS="-lsocket $LIBS"
26710 if test x"$with_ssl" = xgnutls; then
26724 acl_save_prefix="$prefix"
26725 prefix="$acl_final_prefix"
26726 acl_save_exec_prefix="$exec_prefix"
26727 exec_prefix="$acl_final_exec_prefix"
26729 eval additional_includedir=\"$includedir\"
26730 eval additional_libdir=\"$libdir\"
26732 exec_prefix="$acl_save_exec_prefix"
26733 prefix="$acl_save_prefix"
26736 # Check whether --with-libgnutls-prefix was given.
26737 if test "${with_libgnutls_prefix+set}" = set; then
26738 withval=$with_libgnutls_prefix;
26739 if test "X$withval" = "Xno"; then
26742 if test "X$withval" = "X"; then
26744 acl_save_prefix="$prefix"
26745 prefix="$acl_final_prefix"
26746 acl_save_exec_prefix="$exec_prefix"
26747 exec_prefix="$acl_final_exec_prefix"
26749 eval additional_includedir=\"$includedir\"
26750 eval additional_libdir=\"$libdir\"
26752 exec_prefix="$acl_save_exec_prefix"
26753 prefix="$acl_save_prefix"
26756 additional_includedir="$withval/include"
26757 additional_libdir="$withval/$acl_libdirstem"
26769 names_already_handled=
26770 names_next_round='gnutls '
26771 while test -n "$names_next_round"; do
26772 names_this_round="$names_next_round"
26774 for name in $names_this_round; do
26776 for n in $names_already_handled; do
26777 if test "$n" = "$name"; then
26778 already_handled=yes
26782 if test -z "$already_handled"; then
26783 names_already_handled="$names_already_handled $name"
26784 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26785 eval value=\"\$HAVE_LIB$uppername\"
26786 if test -n "$value"; then
26787 if test "$value" = yes; then
26788 eval value=\"\$LIB$uppername\"
26789 test -z "$value" || LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$value"
26790 eval value=\"\$LTLIB$uppername\"
26791 test -z "$value" || LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$value"
26800 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
26801 if test -n "$acl_shlibext"; then
26802 shrext=".$acl_shlibext" # typically: shrext=.so
26806 if test $use_additional = yes; then
26807 dir="$additional_libdir"
26808 if test -n "$acl_shlibext"; then
26809 if test -f "$dir/$libname$shrext"; then
26811 found_so="$dir/$libname$shrext"
26813 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26814 ver=`(cd "$dir" && \
26815 for f in "$libname$shrext".*; do echo "$f"; done \
26816 | sed -e "s,^$libname$shrext\\\\.,," \
26817 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26818 | sed 1q ) 2>/dev/null`
26819 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26821 found_so="$dir/$libname$shrext.$ver"
26824 eval library_names=\"$acl_library_names_spec\"
26825 for f in $library_names; do
26826 if test -f "$dir/$f"; then
26835 if test "X$found_dir" = "X"; then
26836 if test -f "$dir/$libname.$acl_libext"; then
26838 found_a="$dir/$libname.$acl_libext"
26841 if test "X$found_dir" != "X"; then
26842 if test -f "$dir/$libname.la"; then
26843 found_la="$dir/$libname.la"
26847 if test "X$found_dir" = "X"; then
26848 for x in $LDFLAGS $LTLIBGNUTLS; do
26850 acl_save_prefix="$prefix"
26851 prefix="$acl_final_prefix"
26852 acl_save_exec_prefix="$exec_prefix"
26853 exec_prefix="$acl_final_exec_prefix"
26855 exec_prefix="$acl_save_exec_prefix"
26856 prefix="$acl_save_prefix"
26860 dir=`echo "X$x" | sed -e 's/^X-L//'`
26861 if test -n "$acl_shlibext"; then
26862 if test -f "$dir/$libname$shrext"; then
26864 found_so="$dir/$libname$shrext"
26866 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26867 ver=`(cd "$dir" && \
26868 for f in "$libname$shrext".*; do echo "$f"; done \
26869 | sed -e "s,^$libname$shrext\\\\.,," \
26870 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26871 | sed 1q ) 2>/dev/null`
26872 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26874 found_so="$dir/$libname$shrext.$ver"
26877 eval library_names=\"$acl_library_names_spec\"
26878 for f in $library_names; do
26879 if test -f "$dir/$f"; then
26888 if test "X$found_dir" = "X"; then
26889 if test -f "$dir/$libname.$acl_libext"; then
26891 found_a="$dir/$libname.$acl_libext"
26894 if test "X$found_dir" != "X"; then
26895 if test -f "$dir/$libname.la"; then
26896 found_la="$dir/$libname.la"
26901 if test "X$found_dir" != "X"; then
26906 if test "X$found_dir" != "X"; then
26907 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name"
26908 if test "X$found_so" != "X"; then
26909 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26910 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26913 for x in $ltrpathdirs; do
26914 if test "X$x" = "X$found_dir"; then
26919 if test -z "$haveit"; then
26920 ltrpathdirs="$ltrpathdirs $found_dir"
26922 if test "$acl_hardcode_direct" = yes; then
26923 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26925 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26926 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26928 for x in $rpathdirs; do
26929 if test "X$x" = "X$found_dir"; then
26934 if test -z "$haveit"; then
26935 rpathdirs="$rpathdirs $found_dir"
26939 for x in $LDFLAGS $LIBGNUTLS; do
26941 acl_save_prefix="$prefix"
26942 prefix="$acl_final_prefix"
26943 acl_save_exec_prefix="$exec_prefix"
26944 exec_prefix="$acl_final_exec_prefix"
26946 exec_prefix="$acl_save_exec_prefix"
26947 prefix="$acl_save_prefix"
26949 if test "X$x" = "X-L$found_dir"; then
26954 if test -z "$haveit"; then
26955 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir"
26957 if test "$acl_hardcode_minus_L" != no; then
26958 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26960 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
26966 if test "X$found_a" != "X"; then
26967 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_a"
26969 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir -l$name"
26972 additional_includedir=
26973 case "$found_dir" in
26974 */$acl_libdirstem | */$acl_libdirstem/)
26975 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26976 LIBGNUTLS_PREFIX="$basedir"
26977 additional_includedir="$basedir/include"
26980 if test "X$additional_includedir" != "X"; then
26981 if test "X$additional_includedir" != "X/usr/include"; then
26983 if test "X$additional_includedir" = "X/usr/local/include"; then
26984 if test -n "$GCC"; then
26986 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26990 if test -z "$haveit"; then
26991 for x in $CPPFLAGS $INCGNUTLS; do
26993 acl_save_prefix="$prefix"
26994 prefix="$acl_final_prefix"
26995 acl_save_exec_prefix="$exec_prefix"
26996 exec_prefix="$acl_final_exec_prefix"
26998 exec_prefix="$acl_save_exec_prefix"
26999 prefix="$acl_save_prefix"
27001 if test "X$x" = "X-I$additional_includedir"; then
27006 if test -z "$haveit"; then
27007 if test -d "$additional_includedir"; then
27008 INCGNUTLS="${INCGNUTLS}${INCGNUTLS:+ }-I$additional_includedir"
27014 if test -n "$found_la"; then
27015 save_libdir="$libdir"
27016 case "$found_la" in
27017 */* | *\\*) . "$found_la" ;;
27018 *) . "./$found_la" ;;
27020 libdir="$save_libdir"
27021 for dep in $dependency_libs; do
27024 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27025 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27027 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27028 if test -n "$GCC"; then
27030 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27034 if test -z "$haveit"; then
27036 for x in $LDFLAGS $LIBGNUTLS; do
27038 acl_save_prefix="$prefix"
27039 prefix="$acl_final_prefix"
27040 acl_save_exec_prefix="$exec_prefix"
27041 exec_prefix="$acl_final_exec_prefix"
27043 exec_prefix="$acl_save_exec_prefix"
27044 prefix="$acl_save_prefix"
27046 if test "X$x" = "X-L$additional_libdir"; then
27051 if test -z "$haveit"; then
27052 if test -d "$additional_libdir"; then
27053 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$additional_libdir"
27057 for x in $LDFLAGS $LTLIBGNUTLS; do
27059 acl_save_prefix="$prefix"
27060 prefix="$acl_final_prefix"
27061 acl_save_exec_prefix="$exec_prefix"
27062 exec_prefix="$acl_final_exec_prefix"
27064 exec_prefix="$acl_save_exec_prefix"
27065 prefix="$acl_save_prefix"
27067 if test "X$x" = "X-L$additional_libdir"; then
27072 if test -z "$haveit"; then
27073 if test -d "$additional_libdir"; then
27074 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$additional_libdir"
27081 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27082 if test "$enable_rpath" != no; then
27084 for x in $rpathdirs; do
27085 if test "X$x" = "X$dir"; then
27090 if test -z "$haveit"; then
27091 rpathdirs="$rpathdirs $dir"
27094 for x in $ltrpathdirs; do
27095 if test "X$x" = "X$dir"; then
27100 if test -z "$haveit"; then
27101 ltrpathdirs="$ltrpathdirs $dir"
27106 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27109 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27112 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$dep"
27113 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$dep"
27119 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
27120 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-l$name"
27126 if test "X$rpathdirs" != "X"; then
27127 if test -n "$acl_hardcode_libdir_separator"; then
27129 for found_dir in $rpathdirs; do
27130 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27132 acl_save_libdir="$libdir"
27134 eval flag=\"$acl_hardcode_libdir_flag_spec\"
27135 libdir="$acl_save_libdir"
27136 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
27138 for found_dir in $rpathdirs; do
27139 acl_save_libdir="$libdir"
27140 libdir="$found_dir"
27141 eval flag=\"$acl_hardcode_libdir_flag_spec\"
27142 libdir="$acl_save_libdir"
27143 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
27147 if test "X$ltrpathdirs" != "X"; then
27148 for found_dir in $ltrpathdirs; do
27149 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-R$found_dir"
27154 ac_save_CPPFLAGS="$CPPFLAGS"
27156 for element in $INCGNUTLS; do
27158 for x in $CPPFLAGS; do
27160 acl_save_prefix="$prefix"
27161 prefix="$acl_final_prefix"
27162 acl_save_exec_prefix="$exec_prefix"
27163 exec_prefix="$acl_final_exec_prefix"
27165 exec_prefix="$acl_save_exec_prefix"
27166 prefix="$acl_save_prefix"
27168 if test "X$x" = "X$element"; then
27173 if test -z "$haveit"; then
27174 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27179 { $as_echo "$as_me:$LINENO: checking for libgnutls" >&5
27180 $as_echo_n "checking for libgnutls... " >&6; }
27181 if test "${ac_cv_libgnutls+set}" = set; then
27182 $as_echo_n "(cached) " >&6
27185 ac_save_LIBS="$LIBS"
27186 LIBS="$LIBS $LIBGNUTLS"
27187 cat >conftest.$ac_ext <<_ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h. */
27194 #include <gnutls/gnutls.h>
27199 gnutls_global_init()
27204 rm -f conftest.$ac_objext conftest$ac_exeext
27205 if { (ac_try="$ac_link"
27206 case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27211 $as_echo "$ac_try_echo") >&5
27212 (eval "$ac_link") 2>conftest.er1
27214 grep -v '^ *+' conftest.er1 >conftest.err
27216 cat conftest.err >&5
27217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } && {
27219 test -z "$ac_c_werror_flag" ||
27220 test ! -s conftest.err
27221 } && test -s conftest$ac_exeext && {
27222 test "$cross_compiling" = yes ||
27223 $as_test_x conftest$ac_exeext
27225 ac_cv_libgnutls=yes
27227 $as_echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27233 rm -rf conftest.dSYM
27234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27235 conftest$ac_exeext conftest.$ac_ext
27236 LIBS="$ac_save_LIBS"
27239 { $as_echo "$as_me:$LINENO: result: $ac_cv_libgnutls" >&5
27240 $as_echo "$ac_cv_libgnutls" >&6; }
27241 if test "$ac_cv_libgnutls" = yes; then
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_LIBGNUTLS 1
27248 { $as_echo "$as_me:$LINENO: checking how to link with libgnutls" >&5
27249 $as_echo_n "checking how to link with libgnutls... " >&6; }
27250 { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS" >&5
27251 $as_echo "$LIBGNUTLS" >&6; }
27254 CPPFLAGS="$ac_save_CPPFLAGS"
27266 if test x"$LIBGNUTLS" != x
27268 { $as_echo "$as_me:$LINENO: compiling in support for SSL via GnuTLS" >&5
27269 $as_echo "$as_me: compiling in support for SSL via GnuTLS" >&6;}
27270 case " $LIBOBJS " in
27271 *" gnutls.$ac_objext "* ) ;;
27272 *) LIBOBJS="$LIBOBJS gnutls.$ac_objext"
27277 { { $as_echo "$as_me:$LINENO: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&5
27278 $as_echo "$as_me: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&2;}
27279 { (exit 1); exit 1; }; }
27284 # --with-ssl is not gnutls: check if it's no
27285 if test x"$with_ssl" != xno; then
27288 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27291 $as_echo_n "(cached) " >&6
27293 ac_check_lib_save_LIBS=$LIBS
27295 cat >conftest.$ac_ext <<_ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h. */
27302 /* Override any GCC internal prototype to avoid an error.
27303 Use char because int might match the return type of a GCC
27304 builtin and then its argument prototype would still apply. */
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27324 $as_echo "$ac_try_echo") >&5
27325 (eval "$ac_link") 2>conftest.er1
27327 grep -v '^ *+' conftest.er1 >conftest.err
27329 cat conftest.err >&5
27330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } && {
27332 test -z "$ac_c_werror_flag" ||
27333 test ! -s conftest.err
27334 } && test -s conftest$ac_exeext && {
27335 test "$cross_compiling" = yes ||
27336 $as_test_x conftest$ac_exeext
27338 ac_cv_lib_dl_dlopen=yes
27340 $as_echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27343 ac_cv_lib_dl_dlopen=no
27346 rm -rf conftest.dSYM
27347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27348 conftest$ac_exeext conftest.$ac_ext
27349 LIBS=$ac_check_lib_save_LIBS
27351 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27352 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27353 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
27354 cat >>confdefs.h <<_ACEOF
27355 #define HAVE_LIBDL 1
27363 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
27364 $as_echo_n "checking for shl_load in -ldl... " >&6; }
27365 if test "${ac_cv_lib_dl_shl_load+set}" = set; then
27366 $as_echo_n "(cached) " >&6
27368 ac_check_lib_save_LIBS=$LIBS
27370 cat >conftest.$ac_ext <<_ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h. */
27377 /* Override any GCC internal prototype to avoid an error.
27378 Use char because int might match the return type of a GCC
27379 builtin and then its argument prototype would still apply. */
27387 return shl_load ();
27392 rm -f conftest.$ac_objext conftest$ac_exeext
27393 if { (ac_try="$ac_link"
27394 case "(($ac_try" in
27395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396 *) ac_try_echo=$ac_try;;
27398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27399 $as_echo "$ac_try_echo") >&5
27400 (eval "$ac_link") 2>conftest.er1
27402 grep -v '^ *+' conftest.er1 >conftest.err
27404 cat conftest.err >&5
27405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } && {
27407 test -z "$ac_c_werror_flag" ||
27408 test ! -s conftest.err
27409 } && test -s conftest$ac_exeext && {
27410 test "$cross_compiling" = yes ||
27411 $as_test_x conftest$ac_exeext
27413 ac_cv_lib_dl_shl_load=yes
27415 $as_echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27418 ac_cv_lib_dl_shl_load=no
27421 rm -rf conftest.dSYM
27422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27423 conftest$ac_exeext conftest.$ac_ext
27424 LIBS=$ac_check_lib_save_LIBS
27426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
27427 $as_echo "$ac_cv_lib_dl_shl_load" >&6; }
27428 if test "x$ac_cv_lib_dl_shl_load" = x""yes; then
27429 cat >>confdefs.h <<_ACEOF
27430 #define HAVE_LIBDL 1
27453 acl_save_prefix="$prefix"
27454 prefix="$acl_final_prefix"
27455 acl_save_exec_prefix="$exec_prefix"
27456 exec_prefix="$acl_final_exec_prefix"
27458 eval additional_includedir=\"$includedir\"
27459 eval additional_libdir=\"$libdir\"
27461 exec_prefix="$acl_save_exec_prefix"
27462 prefix="$acl_save_prefix"
27465 # Check whether --with-libssl-prefix was given.
27466 if test "${with_libssl_prefix+set}" = set; then
27467 withval=$with_libssl_prefix;
27468 if test "X$withval" = "Xno"; then
27471 if test "X$withval" = "X"; then
27473 acl_save_prefix="$prefix"
27474 prefix="$acl_final_prefix"
27475 acl_save_exec_prefix="$exec_prefix"
27476 exec_prefix="$acl_final_exec_prefix"
27478 eval additional_includedir=\"$includedir\"
27479 eval additional_libdir=\"$libdir\"
27481 exec_prefix="$acl_save_exec_prefix"
27482 prefix="$acl_save_prefix"
27485 additional_includedir="$withval/include"
27486 additional_libdir="$withval/$acl_libdirstem"
27498 names_already_handled=
27499 names_next_round='ssl crypto'
27500 while test -n "$names_next_round"; do
27501 names_this_round="$names_next_round"
27503 for name in $names_this_round; do
27505 for n in $names_already_handled; do
27506 if test "$n" = "$name"; then
27507 already_handled=yes
27511 if test -z "$already_handled"; then
27512 names_already_handled="$names_already_handled $name"
27513 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27514 eval value=\"\$HAVE_LIB$uppername\"
27515 if test -n "$value"; then
27516 if test "$value" = yes; then
27517 eval value=\"\$LIB$uppername\"
27518 test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
27519 eval value=\"\$LTLIB$uppername\"
27520 test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
27529 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
27530 if test -n "$acl_shlibext"; then
27531 shrext=".$acl_shlibext" # typically: shrext=.so
27535 if test $use_additional = yes; then
27536 dir="$additional_libdir"
27537 if test -n "$acl_shlibext"; then
27538 if test -f "$dir/$libname$shrext"; then
27540 found_so="$dir/$libname$shrext"
27542 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27543 ver=`(cd "$dir" && \
27544 for f in "$libname$shrext".*; do echo "$f"; done \
27545 | sed -e "s,^$libname$shrext\\\\.,," \
27546 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27547 | sed 1q ) 2>/dev/null`
27548 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27550 found_so="$dir/$libname$shrext.$ver"
27553 eval library_names=\"$acl_library_names_spec\"
27554 for f in $library_names; do
27555 if test -f "$dir/$f"; then
27564 if test "X$found_dir" = "X"; then
27565 if test -f "$dir/$libname.$acl_libext"; then
27567 found_a="$dir/$libname.$acl_libext"
27570 if test "X$found_dir" != "X"; then
27571 if test -f "$dir/$libname.la"; then
27572 found_la="$dir/$libname.la"
27576 if test "X$found_dir" = "X"; then
27577 for x in $LDFLAGS $LTLIBSSL; do
27579 acl_save_prefix="$prefix"
27580 prefix="$acl_final_prefix"
27581 acl_save_exec_prefix="$exec_prefix"
27582 exec_prefix="$acl_final_exec_prefix"
27584 exec_prefix="$acl_save_exec_prefix"
27585 prefix="$acl_save_prefix"
27589 dir=`echo "X$x" | sed -e 's/^X-L//'`
27590 if test -n "$acl_shlibext"; then
27591 if test -f "$dir/$libname$shrext"; then
27593 found_so="$dir/$libname$shrext"
27595 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27596 ver=`(cd "$dir" && \
27597 for f in "$libname$shrext".*; do echo "$f"; done \
27598 | sed -e "s,^$libname$shrext\\\\.,," \
27599 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27600 | sed 1q ) 2>/dev/null`
27601 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27603 found_so="$dir/$libname$shrext.$ver"
27606 eval library_names=\"$acl_library_names_spec\"
27607 for f in $library_names; do
27608 if test -f "$dir/$f"; then
27617 if test "X$found_dir" = "X"; then
27618 if test -f "$dir/$libname.$acl_libext"; then
27620 found_a="$dir/$libname.$acl_libext"
27623 if test "X$found_dir" != "X"; then
27624 if test -f "$dir/$libname.la"; then
27625 found_la="$dir/$libname.la"
27630 if test "X$found_dir" != "X"; then
27635 if test "X$found_dir" != "X"; then
27636 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
27637 if test "X$found_so" != "X"; then
27638 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
27639 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27642 for x in $ltrpathdirs; do
27643 if test "X$x" = "X$found_dir"; then
27648 if test -z "$haveit"; then
27649 ltrpathdirs="$ltrpathdirs $found_dir"
27651 if test "$acl_hardcode_direct" = yes; then
27652 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27654 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27655 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27657 for x in $rpathdirs; do
27658 if test "X$x" = "X$found_dir"; then
27663 if test -z "$haveit"; then
27664 rpathdirs="$rpathdirs $found_dir"
27668 for x in $LDFLAGS $LIBSSL; do
27670 acl_save_prefix="$prefix"
27671 prefix="$acl_final_prefix"
27672 acl_save_exec_prefix="$exec_prefix"
27673 exec_prefix="$acl_final_exec_prefix"
27675 exec_prefix="$acl_save_exec_prefix"
27676 prefix="$acl_save_prefix"
27678 if test "X$x" = "X-L$found_dir"; then
27683 if test -z "$haveit"; then
27684 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
27686 if test "$acl_hardcode_minus_L" != no; then
27687 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27689 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
27695 if test "X$found_a" != "X"; then
27696 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
27698 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
27701 additional_includedir=
27702 case "$found_dir" in
27703 */$acl_libdirstem | */$acl_libdirstem/)
27704 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27705 LIBSSL_PREFIX="$basedir"
27706 additional_includedir="$basedir/include"
27709 if test "X$additional_includedir" != "X"; then
27710 if test "X$additional_includedir" != "X/usr/include"; then
27712 if test "X$additional_includedir" = "X/usr/local/include"; then
27713 if test -n "$GCC"; then
27715 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27719 if test -z "$haveit"; then
27720 for x in $CPPFLAGS $INCSSL; do
27722 acl_save_prefix="$prefix"
27723 prefix="$acl_final_prefix"
27724 acl_save_exec_prefix="$exec_prefix"
27725 exec_prefix="$acl_final_exec_prefix"
27727 exec_prefix="$acl_save_exec_prefix"
27728 prefix="$acl_save_prefix"
27730 if test "X$x" = "X-I$additional_includedir"; then
27735 if test -z "$haveit"; then
27736 if test -d "$additional_includedir"; then
27737 INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
27743 if test -n "$found_la"; then
27744 save_libdir="$libdir"
27745 case "$found_la" in
27746 */* | *\\*) . "$found_la" ;;
27747 *) . "./$found_la" ;;
27749 libdir="$save_libdir"
27750 for dep in $dependency_libs; do
27753 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27754 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27756 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27757 if test -n "$GCC"; then
27759 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27763 if test -z "$haveit"; then
27765 for x in $LDFLAGS $LIBSSL; do
27767 acl_save_prefix="$prefix"
27768 prefix="$acl_final_prefix"
27769 acl_save_exec_prefix="$exec_prefix"
27770 exec_prefix="$acl_final_exec_prefix"
27772 exec_prefix="$acl_save_exec_prefix"
27773 prefix="$acl_save_prefix"
27775 if test "X$x" = "X-L$additional_libdir"; then
27780 if test -z "$haveit"; then
27781 if test -d "$additional_libdir"; then
27782 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
27786 for x in $LDFLAGS $LTLIBSSL; do
27788 acl_save_prefix="$prefix"
27789 prefix="$acl_final_prefix"
27790 acl_save_exec_prefix="$exec_prefix"
27791 exec_prefix="$acl_final_exec_prefix"
27793 exec_prefix="$acl_save_exec_prefix"
27794 prefix="$acl_save_prefix"
27796 if test "X$x" = "X-L$additional_libdir"; then
27801 if test -z "$haveit"; then
27802 if test -d "$additional_libdir"; then
27803 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
27810 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27811 if test "$enable_rpath" != no; then
27813 for x in $rpathdirs; do
27814 if test "X$x" = "X$dir"; then
27819 if test -z "$haveit"; then
27820 rpathdirs="$rpathdirs $dir"
27823 for x in $ltrpathdirs; do
27824 if test "X$x" = "X$dir"; then
27829 if test -z "$haveit"; then
27830 ltrpathdirs="$ltrpathdirs $dir"
27835 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27838 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27841 LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
27842 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
27848 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
27849 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
27855 if test "X$rpathdirs" != "X"; then
27856 if test -n "$acl_hardcode_libdir_separator"; then
27858 for found_dir in $rpathdirs; do
27859 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27861 acl_save_libdir="$libdir"
27863 eval flag=\"$acl_hardcode_libdir_flag_spec\"
27864 libdir="$acl_save_libdir"
27865 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
27867 for found_dir in $rpathdirs; do
27868 acl_save_libdir="$libdir"
27869 libdir="$found_dir"
27870 eval flag=\"$acl_hardcode_libdir_flag_spec\"
27871 libdir="$acl_save_libdir"
27872 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
27876 if test "X$ltrpathdirs" != "X"; then
27877 for found_dir in $ltrpathdirs; do
27878 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
27883 ac_save_CPPFLAGS="$CPPFLAGS"
27885 for element in $INCSSL; do
27887 for x in $CPPFLAGS; do
27889 acl_save_prefix="$prefix"
27890 prefix="$acl_final_prefix"
27891 acl_save_exec_prefix="$exec_prefix"
27892 exec_prefix="$acl_final_exec_prefix"
27894 exec_prefix="$acl_save_exec_prefix"
27895 prefix="$acl_save_prefix"
27897 if test "X$x" = "X$element"; then
27902 if test -z "$haveit"; then
27903 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27908 { $as_echo "$as_me:$LINENO: checking for libssl" >&5
27909 $as_echo_n "checking for libssl... " >&6; }
27910 if test "${ac_cv_libssl+set}" = set; then
27911 $as_echo_n "(cached) " >&6
27914 ac_save_LIBS="$LIBS"
27915 LIBS="$LIBS $LIBSSL"
27916 cat >conftest.$ac_ext <<_ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h. */
27923 #include <openssl/ssl.h>
27924 #include <openssl/x509.h>
27925 #include <openssl/err.h>
27926 #include <openssl/rand.h>
27927 #include <openssl/des.h>
27928 #include <openssl/md4.h>
27929 #include <openssl/md5.h>
27934 SSL_library_init ()
27939 rm -f conftest.$ac_objext conftest$ac_exeext
27940 if { (ac_try="$ac_link"
27941 case "(($ac_try" in
27942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943 *) ac_try_echo=$ac_try;;
27945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27946 $as_echo "$ac_try_echo") >&5
27947 (eval "$ac_link") 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } && {
27954 test -z "$ac_c_werror_flag" ||
27955 test ! -s conftest.err
27956 } && test -s conftest$ac_exeext && {
27957 test "$cross_compiling" = yes ||
27958 $as_test_x conftest$ac_exeext
27962 $as_echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27968 rm -rf conftest.dSYM
27969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27970 conftest$ac_exeext conftest.$ac_ext
27971 LIBS="$ac_save_LIBS"
27974 { $as_echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
27975 $as_echo "$ac_cv_libssl" >&6; }
27976 if test "$ac_cv_libssl" = yes; then
27979 cat >>confdefs.h <<\_ACEOF
27980 #define HAVE_LIBSSL 1
27983 { $as_echo "$as_me:$LINENO: checking how to link with libssl" >&5
27984 $as_echo_n "checking how to link with libssl... " >&6; }
27985 { $as_echo "$as_me:$LINENO: result: $LIBSSL" >&5
27986 $as_echo "$LIBSSL" >&6; }
27989 CPPFLAGS="$ac_save_CPPFLAGS"
28001 if test x"$LIBSSL" != x
28003 { $as_echo "$as_me:$LINENO: compiling in support for SSL via OpenSSL" >&5
28004 $as_echo "$as_me: compiling in support for SSL via OpenSSL" >&6;}
28005 case " $LIBOBJS " in
28006 *" openssl.$ac_objext "* ) ;;
28007 *) LIBOBJS="$LIBOBJS openssl.$ac_objext"
28011 elif test x"$with_ssl" != x
28013 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but SSL is not available." >&5
28014 $as_echo "$as_me: error: --with-ssl was given, but SSL is not available." >&2;}
28015 { (exit 1); exit 1; }; }
28019 # endif: --with-ssl == no?
28022 # endif: --with-ssl == gnutls?
28025 if test x"$LIBSSL" != x
28027 if test x"$ENABLE_NTLM" != xno
28030 cat >>confdefs.h <<\_ACEOF
28031 #define ENABLE_NTLM 1
28034 case " $LIBOBJS " in
28035 *" http-ntlm.$ac_objext "* ) ;;
28036 *) LIBOBJS="$LIBOBJS http-ntlm.$ac_objext"
28042 if test x"$ENABLE_NTLM" = xyes
28044 { { $as_echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
28045 $as_echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
28046 { (exit 1); exit 1; }; }
28051 if test x"$wget_need_md5" = xyes
28054 case " $LIBOBJS " in
28055 *" gen-md5.$ac_objext "* ) ;;
28056 *) LIBOBJS="$LIBOBJS gen-md5.$ac_objext"
28062 if test x"$found_md5" = xno; then
28063 { $as_echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
28064 $as_echo_n "checking for md5_calc in -lmd5... " >&6; }
28065 if test "${ac_cv_lib_md5_md5_calc+set}" = set; then
28066 $as_echo_n "(cached) " >&6
28068 ac_check_lib_save_LIBS=$LIBS
28070 cat >conftest.$ac_ext <<_ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h. */
28077 /* Override any GCC internal prototype to avoid an error.
28078 Use char because int might match the return type of a GCC
28079 builtin and then its argument prototype would still apply. */
28087 return md5_calc ();
28092 rm -f conftest.$ac_objext conftest$ac_exeext
28093 if { (ac_try="$ac_link"
28094 case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28099 $as_echo "$ac_try_echo") >&5
28100 (eval "$ac_link") 2>conftest.er1
28102 grep -v '^ *+' conftest.er1 >conftest.err
28104 cat conftest.err >&5
28105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); } && {
28107 test -z "$ac_c_werror_flag" ||
28108 test ! -s conftest.err
28109 } && test -s conftest$ac_exeext && {
28110 test "$cross_compiling" = yes ||
28111 $as_test_x conftest$ac_exeext
28113 ac_cv_lib_md5_md5_calc=yes
28115 $as_echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28118 ac_cv_lib_md5_md5_calc=no
28121 rm -rf conftest.dSYM
28122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28123 conftest$ac_exeext conftest.$ac_ext
28124 LIBS=$ac_check_lib_save_LIBS
28126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
28127 $as_echo "$ac_cv_lib_md5_md5_calc" >&6; }
28128 if test "x$ac_cv_lib_md5_md5_calc" = x""yes; then
28130 { $as_echo "$as_me:$LINENO: checking for working md5.h" >&5
28131 $as_echo_n "checking for working md5.h... " >&6; }
28132 cat >conftest.$ac_ext <<_ACEOF
28136 rm -f conftest.$ac_objext
28137 if { (ac_try="$ac_compile"
28138 case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28143 $as_echo "$ac_try_echo") >&5
28144 (eval "$ac_compile") 2>conftest.er1
28146 grep -v '^ *+' conftest.er1 >conftest.err
28148 cat conftest.err >&5
28149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } && {
28151 test -z "$ac_c_werror_flag" ||
28152 test ! -s conftest.err
28153 } && test -s conftest.$ac_objext; then
28155 { $as_echo "$as_me:$LINENO: result: yes" >&5
28156 $as_echo "yes" >&6; }
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_SOLARIS_MD5 1
28164 { $as_echo "$as_me:$LINENO: using the Solaris MD5 implementation" >&5
28165 $as_echo "$as_me: using the Solaris MD5 implementation" >&6;}
28168 $as_echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28171 { $as_echo "$as_me:$LINENO: result: no" >&5
28172 $as_echo "no" >&6; }
28175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28181 if test x"$found_md5" = xno; then
28182 if test x"$LIBSSL" != x; then
28184 cat >>confdefs.h <<\_ACEOF
28185 #define HAVE_OPENSSL_MD5 1
28189 { $as_echo "$as_me:$LINENO: using the OpenSSL MD5 implementation" >&5
28190 $as_echo "$as_me: using the OpenSSL MD5 implementation" >&6;}
28194 if test x"$found_md5" = xno; then
28196 cat >>confdefs.h <<\_ACEOF
28197 #define HAVE_BUILTIN_MD5 1
28201 { $as_echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
28202 $as_echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
28204 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28205 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28206 if test "${ac_cv_c_bigendian+set}" = set; then
28207 $as_echo_n "(cached) " >&6
28209 ac_cv_c_bigendian=unknown
28210 # See if we're dealing with a universal compiler.
28211 cat >conftest.$ac_ext <<_ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h. */
28217 #ifndef __APPLE_CC__
28218 not a universal capable compiler
28223 rm -f conftest.$ac_objext
28224 if { (ac_try="$ac_compile"
28225 case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28230 $as_echo "$ac_try_echo") >&5
28231 (eval "$ac_compile") 2>conftest.er1
28233 grep -v '^ *+' conftest.er1 >conftest.err
28235 cat conftest.err >&5
28236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } && {
28238 test -z "$ac_c_werror_flag" ||
28239 test ! -s conftest.err
28240 } && test -s conftest.$ac_objext; then
28242 # Check for potential -arch flags. It is not universal unless
28243 # there are some -arch flags. Note that *ppc* also matches
28244 # ppc64. This check is also rather less than ideal.
28245 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
28246 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28249 $as_echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256 if test $ac_cv_c_bigendian = unknown; then
28257 # See if sys/param.h defines the BYTE_ORDER macro.
28258 cat >conftest.$ac_ext <<_ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h. */
28264 #include <sys/types.h>
28265 #include <sys/param.h>
28270 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28271 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28273 bogus endian macros
28280 rm -f conftest.$ac_objext
28281 if { (ac_try="$ac_compile"
28282 case "(($ac_try" in
28283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284 *) ac_try_echo=$ac_try;;
28286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28287 $as_echo "$ac_try_echo") >&5
28288 (eval "$ac_compile") 2>conftest.er1
28290 grep -v '^ *+' conftest.er1 >conftest.err
28292 cat conftest.err >&5
28293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } && {
28295 test -z "$ac_c_werror_flag" ||
28296 test ! -s conftest.err
28297 } && test -s conftest.$ac_objext; then
28298 # It does; now see whether it defined to BIG_ENDIAN or not.
28299 cat >conftest.$ac_ext <<_ACEOF
28302 cat confdefs.h >>conftest.$ac_ext
28303 cat >>conftest.$ac_ext <<_ACEOF
28304 /* end confdefs.h. */
28305 #include <sys/types.h>
28306 #include <sys/param.h>
28311 #if BYTE_ORDER != BIG_ENDIAN
28319 rm -f conftest.$ac_objext
28320 if { (ac_try="$ac_compile"
28321 case "(($ac_try" in
28322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323 *) ac_try_echo=$ac_try;;
28325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28326 $as_echo "$ac_try_echo") >&5
28327 (eval "$ac_compile") 2>conftest.er1
28329 grep -v '^ *+' conftest.er1 >conftest.err
28331 cat conftest.err >&5
28332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333 (exit $ac_status); } && {
28334 test -z "$ac_c_werror_flag" ||
28335 test ! -s conftest.err
28336 } && test -s conftest.$ac_objext; then
28337 ac_cv_c_bigendian=yes
28339 $as_echo "$as_me: failed program was:" >&5
28340 sed 's/^/| /' conftest.$ac_ext >&5
28342 ac_cv_c_bigendian=no
28345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347 $as_echo "$as_me: failed program was:" >&5
28348 sed 's/^/| /' conftest.$ac_ext >&5
28353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28355 if test $ac_cv_c_bigendian = unknown; then
28356 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28357 cat >conftest.$ac_ext <<_ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h. */
28363 #include <limits.h>
28368 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28369 bogus endian macros
28376 rm -f conftest.$ac_objext
28377 if { (ac_try="$ac_compile"
28378 case "(($ac_try" in
28379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380 *) ac_try_echo=$ac_try;;
28382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28383 $as_echo "$ac_try_echo") >&5
28384 (eval "$ac_compile") 2>conftest.er1
28386 grep -v '^ *+' conftest.er1 >conftest.err
28388 cat conftest.err >&5
28389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); } && {
28391 test -z "$ac_c_werror_flag" ||
28392 test ! -s conftest.err
28393 } && test -s conftest.$ac_objext; then
28394 # It does; now see whether it defined to _BIG_ENDIAN or not.
28395 cat >conftest.$ac_ext <<_ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h. */
28401 #include <limits.h>
28406 #ifndef _BIG_ENDIAN
28414 rm -f conftest.$ac_objext
28415 if { (ac_try="$ac_compile"
28416 case "(($ac_try" in
28417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418 *) ac_try_echo=$ac_try;;
28420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28421 $as_echo "$ac_try_echo") >&5
28422 (eval "$ac_compile") 2>conftest.er1
28424 grep -v '^ *+' conftest.er1 >conftest.err
28426 cat conftest.err >&5
28427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); } && {
28429 test -z "$ac_c_werror_flag" ||
28430 test ! -s conftest.err
28431 } && test -s conftest.$ac_objext; then
28432 ac_cv_c_bigendian=yes
28434 $as_echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28437 ac_cv_c_bigendian=no
28440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28442 $as_echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450 if test $ac_cv_c_bigendian = unknown; then
28451 # Compile a test program.
28452 if test "$cross_compiling" = yes; then
28453 # Try to guess by grepping values from an object file.
28454 cat >conftest.$ac_ext <<_ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h. */
28460 short int ascii_mm[] =
28461 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28462 short int ascii_ii[] =
28463 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28464 int use_ascii (int i) {
28465 return ascii_mm[i] + ascii_ii[i];
28467 short int ebcdic_ii[] =
28468 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28469 short int ebcdic_mm[] =
28470 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28471 int use_ebcdic (int i) {
28472 return ebcdic_mm[i] + ebcdic_ii[i];
28479 return use_ascii (foo) == use_ebcdic (foo);
28484 rm -f conftest.$ac_objext
28485 if { (ac_try="$ac_compile"
28486 case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28491 $as_echo "$ac_try_echo") >&5
28492 (eval "$ac_compile") 2>conftest.er1
28494 grep -v '^ *+' conftest.er1 >conftest.err
28496 cat conftest.err >&5
28497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } && {
28499 test -z "$ac_c_werror_flag" ||
28500 test ! -s conftest.err
28501 } && test -s conftest.$ac_objext; then
28502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28503 ac_cv_c_bigendian=yes
28505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28506 if test "$ac_cv_c_bigendian" = unknown; then
28507 ac_cv_c_bigendian=no
28509 # finding both strings is unlikely to happen, but who knows?
28510 ac_cv_c_bigendian=unknown
28514 $as_echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28522 cat >conftest.$ac_ext <<_ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h. */
28528 $ac_includes_default
28533 /* Are we little or big endian? From Harbison&Steele. */
28537 char c[sizeof (long int)];
28540 return u.c[sizeof (long int) - 1] == 1;
28546 rm -f conftest$ac_exeext
28547 if { (ac_try="$ac_link"
28548 case "(($ac_try" in
28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550 *) ac_try_echo=$ac_try;;
28552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28553 $as_echo "$ac_try_echo") >&5
28554 (eval "$ac_link") 2>&5
28556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28558 { (case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563 $as_echo "$ac_try_echo") >&5
28564 (eval "$ac_try") 2>&5
28566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28568 ac_cv_c_bigendian=no
28570 $as_echo "$as_me: program exited with status $ac_status" >&5
28571 $as_echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28574 ( exit $ac_status )
28575 ac_cv_c_bigendian=yes
28577 rm -rf conftest.dSYM
28578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28585 $as_echo "$ac_cv_c_bigendian" >&6; }
28586 case $ac_cv_c_bigendian in #(
28588 cat >>confdefs.h <<\_ACEOF
28589 #define WORDS_BIGENDIAN 1
28596 cat >>confdefs.h <<\_ACEOF
28597 #define AC_APPLE_UNIVERSAL_BUILD 1
28602 { { $as_echo "$as_me:$LINENO: error: unknown endianness
28603 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28604 $as_echo "$as_me: error: unknown endianness
28605 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28606 { (exit 1); exit 1; }; } ;;
28610 MD5_CPPFLAGS='-I $(top_srcdir)/md5'
28612 MD5_LDADD='../md5/libmd5.a'
28618 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28619 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28620 if test "${ac_cv_c_bigendian+set}" = set; then
28621 $as_echo_n "(cached) " >&6
28623 ac_cv_c_bigendian=unknown
28624 # See if we're dealing with a universal compiler.
28625 cat >conftest.$ac_ext <<_ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h. */
28631 #ifndef __APPLE_CC__
28632 not a universal capable compiler
28637 rm -f conftest.$ac_objext
28638 if { (ac_try="$ac_compile"
28639 case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28644 $as_echo "$ac_try_echo") >&5
28645 (eval "$ac_compile") 2>conftest.er1
28647 grep -v '^ *+' conftest.er1 >conftest.err
28649 cat conftest.err >&5
28650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } && {
28652 test -z "$ac_c_werror_flag" ||
28653 test ! -s conftest.err
28654 } && test -s conftest.$ac_objext; then
28656 # Check for potential -arch flags. It is not universal unless
28657 # there are some -arch flags. Note that *ppc* also matches
28658 # ppc64. This check is also rather less than ideal.
28659 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
28660 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28663 $as_echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28670 if test $ac_cv_c_bigendian = unknown; then
28671 # See if sys/param.h defines the BYTE_ORDER macro.
28672 cat >conftest.$ac_ext <<_ACEOF
28675 cat confdefs.h >>conftest.$ac_ext
28676 cat >>conftest.$ac_ext <<_ACEOF
28677 /* end confdefs.h. */
28678 #include <sys/types.h>
28679 #include <sys/param.h>
28684 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28685 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28687 bogus endian macros
28694 rm -f conftest.$ac_objext
28695 if { (ac_try="$ac_compile"
28696 case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28701 $as_echo "$ac_try_echo") >&5
28702 (eval "$ac_compile") 2>conftest.er1
28704 grep -v '^ *+' conftest.er1 >conftest.err
28706 cat conftest.err >&5
28707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); } && {
28709 test -z "$ac_c_werror_flag" ||
28710 test ! -s conftest.err
28711 } && test -s conftest.$ac_objext; then
28712 # It does; now see whether it defined to BIG_ENDIAN or not.
28713 cat >conftest.$ac_ext <<_ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h. */
28719 #include <sys/types.h>
28720 #include <sys/param.h>
28725 #if BYTE_ORDER != BIG_ENDIAN
28733 rm -f conftest.$ac_objext
28734 if { (ac_try="$ac_compile"
28735 case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28740 $as_echo "$ac_try_echo") >&5
28741 (eval "$ac_compile") 2>conftest.er1
28743 grep -v '^ *+' conftest.er1 >conftest.err
28745 cat conftest.err >&5
28746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } && {
28748 test -z "$ac_c_werror_flag" ||
28749 test ! -s conftest.err
28750 } && test -s conftest.$ac_objext; then
28751 ac_cv_c_bigendian=yes
28753 $as_echo "$as_me: failed program was:" >&5
28754 sed 's/^/| /' conftest.$ac_ext >&5
28756 ac_cv_c_bigendian=no
28759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28761 $as_echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769 if test $ac_cv_c_bigendian = unknown; then
28770 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28771 cat >conftest.$ac_ext <<_ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h. */
28777 #include <limits.h>
28782 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28783 bogus endian macros
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28797 $as_echo "$ac_try_echo") >&5
28798 (eval "$ac_compile") 2>conftest.er1
28800 grep -v '^ *+' conftest.er1 >conftest.err
28802 cat conftest.err >&5
28803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } && {
28805 test -z "$ac_c_werror_flag" ||
28806 test ! -s conftest.err
28807 } && test -s conftest.$ac_objext; then
28808 # It does; now see whether it defined to _BIG_ENDIAN or not.
28809 cat >conftest.$ac_ext <<_ACEOF
28812 cat confdefs.h >>conftest.$ac_ext
28813 cat >>conftest.$ac_ext <<_ACEOF
28814 /* end confdefs.h. */
28815 #include <limits.h>
28820 #ifndef _BIG_ENDIAN
28828 rm -f conftest.$ac_objext
28829 if { (ac_try="$ac_compile"
28830 case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28835 $as_echo "$ac_try_echo") >&5
28836 (eval "$ac_compile") 2>conftest.er1
28838 grep -v '^ *+' conftest.er1 >conftest.err
28840 cat conftest.err >&5
28841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); } && {
28843 test -z "$ac_c_werror_flag" ||
28844 test ! -s conftest.err
28845 } && test -s conftest.$ac_objext; then
28846 ac_cv_c_bigendian=yes
28848 $as_echo "$as_me: failed program was:" >&5
28849 sed 's/^/| /' conftest.$ac_ext >&5
28851 ac_cv_c_bigendian=no
28854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28856 $as_echo "$as_me: failed program was:" >&5
28857 sed 's/^/| /' conftest.$ac_ext >&5
28862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28864 if test $ac_cv_c_bigendian = unknown; then
28865 # Compile a test program.
28866 if test "$cross_compiling" = yes; then
28867 # Try to guess by grepping values from an object file.
28868 cat >conftest.$ac_ext <<_ACEOF
28871 cat confdefs.h >>conftest.$ac_ext
28872 cat >>conftest.$ac_ext <<_ACEOF
28873 /* end confdefs.h. */
28874 short int ascii_mm[] =
28875 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28876 short int ascii_ii[] =
28877 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28878 int use_ascii (int i) {
28879 return ascii_mm[i] + ascii_ii[i];
28881 short int ebcdic_ii[] =
28882 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28883 short int ebcdic_mm[] =
28884 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28885 int use_ebcdic (int i) {
28886 return ebcdic_mm[i] + ebcdic_ii[i];
28893 return use_ascii (foo) == use_ebcdic (foo);
28898 rm -f conftest.$ac_objext
28899 if { (ac_try="$ac_compile"
28900 case "(($ac_try" in
28901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902 *) ac_try_echo=$ac_try;;
28904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28905 $as_echo "$ac_try_echo") >&5
28906 (eval "$ac_compile") 2>conftest.er1
28908 grep -v '^ *+' conftest.er1 >conftest.err
28910 cat conftest.err >&5
28911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } && {
28913 test -z "$ac_c_werror_flag" ||
28914 test ! -s conftest.err
28915 } && test -s conftest.$ac_objext; then
28916 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28917 ac_cv_c_bigendian=yes
28919 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28920 if test "$ac_cv_c_bigendian" = unknown; then
28921 ac_cv_c_bigendian=no
28923 # finding both strings is unlikely to happen, but who knows?
28924 ac_cv_c_bigendian=unknown
28928 $as_echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28936 cat >conftest.$ac_ext <<_ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h. */
28942 $ac_includes_default
28947 /* Are we little or big endian? From Harbison&Steele. */
28951 char c[sizeof (long int)];
28954 return u.c[sizeof (long int) - 1] == 1;
28960 rm -f conftest$ac_exeext
28961 if { (ac_try="$ac_link"
28962 case "(($ac_try" in
28963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964 *) ac_try_echo=$ac_try;;
28966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28967 $as_echo "$ac_try_echo") >&5
28968 (eval "$ac_link") 2>&5
28970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28972 { (case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28977 $as_echo "$ac_try_echo") >&5
28978 (eval "$ac_try") 2>&5
28980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981 (exit $ac_status); }; }; then
28982 ac_cv_c_bigendian=no
28984 $as_echo "$as_me: program exited with status $ac_status" >&5
28985 $as_echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28988 ( exit $ac_status )
28989 ac_cv_c_bigendian=yes
28991 rm -rf conftest.dSYM
28992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28998 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28999 $as_echo "$ac_cv_c_bigendian" >&6; }
29000 case $ac_cv_c_bigendian in #(
29002 cat >>confdefs.h <<\_ACEOF
29003 #define WORDS_BIGENDIAN 1
29010 cat >>confdefs.h <<\_ACEOF
29011 #define AC_APPLE_UNIVERSAL_BUILD 1
29016 { { $as_echo "$as_me:$LINENO: error: unknown endianness
29017 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
29018 $as_echo "$as_me: error: unknown endianness
29019 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
29020 { (exit 1); exit 1; }; } ;;
29026 GL_COND_LIBTOOL_TRUE=
29027 GL_COND_LIBTOOL_FALSE='#'
29029 GL_COND_LIBTOOL_TRUE='#'
29030 GL_COND_LIBTOOL_FALSE=
29033 gl_cond_libtool=false
29045 gl_source_base='md5'
29055 md5_LIBOBJS="$md5_LIBOBJS md5.$ac_objext"
29066 if test $gt_cv_c_wchar_t = no; then
29070 { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
29071 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29072 if test "${gl_cv_decl_null_works+set}" = set; then
29073 $as_echo_n "(cached) " >&6
29075 cat >conftest.$ac_ext <<_ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h. */
29081 #include <stddef.h>
29082 int test[2 * (sizeof NULL == sizeof (void *)) -1];
29092 rm -f conftest.$ac_objext
29093 if { (ac_try="$ac_compile"
29094 case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29099 $as_echo "$ac_try_echo") >&5
29100 (eval "$ac_compile") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1 >conftest.err
29104 cat conftest.err >&5
29105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } && {
29107 test -z "$ac_c_werror_flag" ||
29108 test ! -s conftest.err
29109 } && test -s conftest.$ac_objext; then
29110 gl_cv_decl_null_works=yes
29112 $as_echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29115 gl_cv_decl_null_works=no
29118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29120 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
29121 $as_echo "$gl_cv_decl_null_works" >&6; }
29122 if test $gl_cv_decl_null_works = no; then
29126 if test -n "$STDDEF_H"; then
29138 if test $gl_cv_have_include_next = yes; then
29139 gl_cv_next_stddef_h='<'stddef.h'>'
29141 { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
29142 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
29143 if test "${gl_cv_next_stddef_h+set}" = set; then
29144 $as_echo_n "(cached) " >&6
29147 if test $ac_cv_header_stddef_h = yes; then
29148 cat >conftest.$ac_ext <<_ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29154 #include <stddef.h>
29158 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29159 *) gl_absname_cpp="$ac_cpp" ;;
29161 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29162 sed -n '\#/stddef.h#{
29163 s#.*"\(.*/stddef.h\)".*#\1#
29169 gl_cv_next_stddef_h='<'stddef.h'>'
29173 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
29174 $as_echo "$gl_cv_next_stddef_h" >&6; }
29176 NEXT_STDDEF_H=$gl_cv_next_stddef_h
29178 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29180 gl_next_as_first_directive='<'stddef.h'>'
29182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29183 gl_next_as_first_directive=$gl_cv_next_stddef_h
29185 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
29194 if test $ac_cv_type_long_long_int = yes; then
29195 HAVE_LONG_LONG_INT=1
29197 HAVE_LONG_LONG_INT=0
29201 if test $ac_cv_type_unsigned_long_long_int = yes; then
29202 HAVE_UNSIGNED_LONG_LONG_INT=1
29204 HAVE_UNSIGNED_LONG_LONG_INT=0
29208 if test $ac_cv_header_inttypes_h = yes; then
29215 if test $ac_cv_header_sys_types_h = yes; then
29233 if test $gl_cv_have_include_next = yes; then
29234 gl_cv_next_stdint_h='<'stdint.h'>'
29236 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
29237 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
29238 if test "${gl_cv_next_stdint_h+set}" = set; then
29239 $as_echo_n "(cached) " >&6
29242 if test $ac_cv_header_stdint_h = yes; then
29243 cat >conftest.$ac_ext <<_ACEOF
29246 cat confdefs.h >>conftest.$ac_ext
29247 cat >>conftest.$ac_ext <<_ACEOF
29248 /* end confdefs.h. */
29249 #include <stdint.h>
29253 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29254 *) gl_absname_cpp="$ac_cpp" ;;
29256 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29257 sed -n '\#/stdint.h#{
29258 s#.*"\(.*/stdint.h\)".*#\1#
29264 gl_cv_next_stdint_h='<'stdint.h'>'
29268 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
29269 $as_echo "$gl_cv_next_stdint_h" >&6; }
29271 NEXT_STDINT_H=$gl_cv_next_stdint_h
29273 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29275 gl_next_as_first_directive='<'stdint.h'>'
29277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29278 gl_next_as_first_directive=$gl_cv_next_stdint_h
29280 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
29284 if test $ac_cv_header_stdint_h = yes; then
29291 if test $ac_cv_header_stdint_h = yes; then
29292 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
29293 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
29294 if test "${gl_cv_header_working_stdint_h+set}" = set; then
29295 $as_echo_n "(cached) " >&6
29297 gl_cv_header_working_stdint_h=no
29298 cat >conftest.$ac_ext <<_ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h. */
29306 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29307 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29308 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29309 #include <stdint.h>
29310 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
29311 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
29312 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
29316 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29317 included before <wchar.h>. */
29318 #include <stddef.h>
29319 #include <signal.h>
29321 # include <stdio.h>
29323 # include <wchar.h>
29328 int8_t a1 = INT8_MAX;
29329 int8_t a1min = INT8_MIN;
29332 int16_t a2 = INT16_MAX;
29333 int16_t a2min = INT16_MIN;
29336 int32_t a3 = INT32_MAX;
29337 int32_t a3min = INT32_MIN;
29340 int64_t a4 = INT64_MAX;
29341 int64_t a4min = INT64_MIN;
29344 uint8_t b1 = UINT8_MAX;
29346 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
29349 uint16_t b2 = UINT16_MAX;
29352 uint32_t b3 = UINT32_MAX;
29355 uint64_t b4 = UINT64_MAX;
29357 int_least8_t c1 = INT8_C (0x7f);
29358 int_least8_t c1max = INT_LEAST8_MAX;
29359 int_least8_t c1min = INT_LEAST8_MIN;
29360 int_least16_t c2 = INT16_C (0x7fff);
29361 int_least16_t c2max = INT_LEAST16_MAX;
29362 int_least16_t c2min = INT_LEAST16_MIN;
29363 int_least32_t c3 = INT32_C (0x7fffffff);
29364 int_least32_t c3max = INT_LEAST32_MAX;
29365 int_least32_t c3min = INT_LEAST32_MIN;
29366 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
29367 int_least64_t c4max = INT_LEAST64_MAX;
29368 int_least64_t c4min = INT_LEAST64_MIN;
29369 uint_least8_t d1 = UINT8_C (0xff);
29370 uint_least8_t d1max = UINT_LEAST8_MAX;
29371 uint_least16_t d2 = UINT16_C (0xffff);
29372 uint_least16_t d2max = UINT_LEAST16_MAX;
29373 uint_least32_t d3 = UINT32_C (0xffffffff);
29374 uint_least32_t d3max = UINT_LEAST32_MAX;
29375 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
29376 uint_least64_t d4max = UINT_LEAST64_MAX;
29377 int_fast8_t e1 = INT_FAST8_MAX;
29378 int_fast8_t e1min = INT_FAST8_MIN;
29379 int_fast16_t e2 = INT_FAST16_MAX;
29380 int_fast16_t e2min = INT_FAST16_MIN;
29381 int_fast32_t e3 = INT_FAST32_MAX;
29382 int_fast32_t e3min = INT_FAST32_MIN;
29383 int_fast64_t e4 = INT_FAST64_MAX;
29384 int_fast64_t e4min = INT_FAST64_MIN;
29385 uint_fast8_t f1 = UINT_FAST8_MAX;
29386 uint_fast16_t f2 = UINT_FAST16_MAX;
29387 uint_fast32_t f3 = UINT_FAST32_MAX;
29388 uint_fast64_t f4 = UINT_FAST64_MAX;
29390 intptr_t g = INTPTR_MAX;
29391 intptr_t gmin = INTPTR_MIN;
29394 uintptr_t h = UINTPTR_MAX;
29396 intmax_t i = INTMAX_MAX;
29397 uintmax_t j = UINTMAX_MAX;
29399 #include <limits.h> /* for CHAR_BIT */
29400 #define TYPE_MINIMUM(t) \
29401 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
29402 #define TYPE_MAXIMUM(t) \
29403 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
29406 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
29407 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
29409 /* Detect bug in FreeBSD 6.0 / ia64. */
29410 int check_SIG_ATOMIC:
29411 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
29412 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
29414 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
29416 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
29417 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
29419 /* Detect bug in mingw. */
29421 WINT_MIN == TYPE_MINIMUM (wint_t)
29422 && WINT_MAX == TYPE_MAXIMUM (wint_t)
29425 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
29427 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
29428 int check_UINT16_C:
29429 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
29431 /* Detect bugs in OpenBSD 3.9 stdint.h. */
29433 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
29436 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
29439 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
29442 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
29444 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
29445 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
29446 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
29447 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
29448 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
29449 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
29450 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
29451 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
29452 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
29453 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
29454 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
29465 rm -f conftest.$ac_objext
29466 if { (ac_try="$ac_compile"
29467 case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29472 $as_echo "$ac_try_echo") >&5
29473 (eval "$ac_compile") 2>conftest.er1
29475 grep -v '^ *+' conftest.er1 >conftest.err
29477 cat conftest.err >&5
29478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } && {
29480 test -z "$ac_c_werror_flag" ||
29481 test ! -s conftest.err
29482 } && test -s conftest.$ac_objext; then
29483 if test "$cross_compiling" = yes; then
29484 gl_cv_header_working_stdint_h=yes
29487 cat >conftest.$ac_ext <<_ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29495 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29496 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29497 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29498 #include <stdint.h>
29501 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29502 included before <wchar.h>. */
29503 #include <stddef.h>
29504 #include <signal.h>
29506 # include <stdio.h>
29508 # include <wchar.h>
29513 #include <string.h>
29514 #define MVAL(macro) MVAL1(macro)
29515 #define MVAL1(expression) #expression
29516 static const char *macro_values[] =
29550 for (mv = macro_values; *mv != NULL; mv++)
29552 const char *value = *mv;
29553 /* Test whether it looks like a cast expression. */
29554 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
29555 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
29556 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
29557 || strncmp (value, "((int)"/*)*/, 6) == 0
29558 || strncmp (value, "((signed short)"/*)*/, 15) == 0
29559 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
29568 rm -f conftest$ac_exeext
29569 if { (ac_try="$ac_link"
29570 case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29575 $as_echo "$ac_try_echo") >&5
29576 (eval "$ac_link") 2>&5
29578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29580 { (case "(($ac_try" in
29581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582 *) ac_try_echo=$ac_try;;
29584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29585 $as_echo "$ac_try_echo") >&5
29586 (eval "$ac_try") 2>&5
29588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; }; then
29590 gl_cv_header_working_stdint_h=yes
29592 $as_echo "$as_me: program exited with status $ac_status" >&5
29593 $as_echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29597 rm -rf conftest.dSYM
29598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29604 $as_echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29613 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
29614 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
29616 if test "$gl_cv_header_working_stdint_h" = yes; then
29621 for ac_header in sys/inttypes.h sys/bitypes.h
29623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29626 $as_echo_n "checking for $ac_header... " >&6; }
29627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628 $as_echo_n "(cached) " >&6
29630 ac_res=`eval 'as_val=${'$as_ac_Header'}
29631 $as_echo "$as_val"'`
29632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29633 $as_echo "$ac_res" >&6; }
29635 # Is the header compilable?
29636 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29637 $as_echo_n "checking $ac_header usability... " >&6; }
29638 cat >conftest.$ac_ext <<_ACEOF
29641 cat confdefs.h >>conftest.$ac_ext
29642 cat >>conftest.$ac_ext <<_ACEOF
29643 /* end confdefs.h. */
29644 $ac_includes_default
29645 #include <$ac_header>
29647 rm -f conftest.$ac_objext
29648 if { (ac_try="$ac_compile"
29649 case "(($ac_try" in
29650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651 *) ac_try_echo=$ac_try;;
29653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29654 $as_echo "$ac_try_echo") >&5
29655 (eval "$ac_compile") 2>conftest.er1
29657 grep -v '^ *+' conftest.er1 >conftest.err
29659 cat conftest.err >&5
29660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } && {
29662 test -z "$ac_c_werror_flag" ||
29663 test ! -s conftest.err
29664 } && test -s conftest.$ac_objext; then
29665 ac_header_compiler=yes
29667 $as_echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29670 ac_header_compiler=no
29673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29674 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29675 $as_echo "$ac_header_compiler" >&6; }
29677 # Is the header present?
29678 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29679 $as_echo_n "checking $ac_header presence... " >&6; }
29680 cat >conftest.$ac_ext <<_ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h. */
29686 #include <$ac_header>
29688 if { (ac_try="$ac_cpp conftest.$ac_ext"
29689 case "(($ac_try" in
29690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691 *) ac_try_echo=$ac_try;;
29693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29694 $as_echo "$ac_try_echo") >&5
29695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29697 grep -v '^ *+' conftest.er1 >conftest.err
29699 cat conftest.err >&5
29700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); } >/dev/null && {
29702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29703 test ! -s conftest.err
29705 ac_header_preproc=yes
29707 $as_echo "$as_me: failed program was:" >&5
29708 sed 's/^/| /' conftest.$ac_ext >&5
29710 ac_header_preproc=no
29713 rm -f conftest.err conftest.$ac_ext
29714 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29715 $as_echo "$ac_header_preproc" >&6; }
29717 # So? What about this header?
29718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29721 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29724 ac_header_preproc=yes
29727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29728 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29730 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29732 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29734 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29738 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29740 ## ------------------------------- ##
29741 ## Report this to bug-wget@gnu.org ##
29742 ## ------------------------------- ##
29744 ) | sed "s/^/$as_me: WARNING: /" >&2
29747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29748 $as_echo_n "checking for $ac_header... " >&6; }
29749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29750 $as_echo_n "(cached) " >&6
29752 eval "$as_ac_Header=\$ac_header_preproc"
29754 ac_res=`eval 'as_val=${'$as_ac_Header'}
29755 $as_echo "$as_val"'`
29756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29757 $as_echo "$ac_res" >&6; }
29760 as_val=`eval 'as_val=${'$as_ac_Header'}
29761 $as_echo "$as_val"'`
29762 if test "x$as_val" = x""yes; then
29763 cat >>confdefs.h <<_ACEOF
29764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29771 if test $ac_cv_header_sys_inttypes_h = yes; then
29772 HAVE_SYS_INTTYPES_H=1
29774 HAVE_SYS_INTTYPES_H=0
29777 if test $ac_cv_header_sys_bitypes_h = yes; then
29778 HAVE_SYS_BITYPES_H=1
29780 HAVE_SYS_BITYPES_H=0
29793 if test $APPLE_UNIVERSAL_BUILD = 0; then
29798 for gltype in ptrdiff_t size_t ; do
29799 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29800 $as_echo_n "checking for bit size of $gltype... " >&6; }
29801 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29802 $as_echo_n "(cached) " >&6
29804 if test "$cross_compiling" = yes; then
29805 # Depending upon the size, compute the lo and hi bounds.
29806 cat >conftest.$ac_ext <<_ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h. */
29813 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29814 included before <wchar.h>. */
29815 #include <stddef.h>
29816 #include <signal.h>
29818 # include <stdio.h>
29820 # include <wchar.h>
29823 #include <limits.h>
29827 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29834 rm -f conftest.$ac_objext
29835 if { (ac_try="$ac_compile"
29836 case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29841 $as_echo "$ac_try_echo") >&5
29842 (eval "$ac_compile") 2>conftest.er1
29844 grep -v '^ *+' conftest.er1 >conftest.err
29846 cat conftest.err >&5
29847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } && {
29849 test -z "$ac_c_werror_flag" ||
29850 test ! -s conftest.err
29851 } && test -s conftest.$ac_objext; then
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29861 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29862 included before <wchar.h>. */
29863 #include <stddef.h>
29864 #include <signal.h>
29866 # include <stdio.h>
29868 # include <wchar.h>
29871 #include <limits.h>
29875 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29882 rm -f conftest.$ac_objext
29883 if { (ac_try="$ac_compile"
29884 case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29889 $as_echo "$ac_try_echo") >&5
29890 (eval "$ac_compile") 2>conftest.er1
29892 grep -v '^ *+' conftest.er1 >conftest.err
29894 cat conftest.err >&5
29895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } && {
29897 test -z "$ac_c_werror_flag" ||
29898 test ! -s conftest.err
29899 } && test -s conftest.$ac_objext; then
29900 ac_hi=$ac_mid; break
29902 $as_echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29905 ac_lo=`expr $ac_mid + 1`
29906 if test $ac_lo -le $ac_mid; then
29910 ac_mid=`expr 2 '*' $ac_mid + 1`
29913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29916 $as_echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29919 cat >conftest.$ac_ext <<_ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h. */
29926 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29927 included before <wchar.h>. */
29928 #include <stddef.h>
29929 #include <signal.h>
29931 # include <stdio.h>
29933 # include <wchar.h>
29936 #include <limits.h>
29940 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29947 rm -f conftest.$ac_objext
29948 if { (ac_try="$ac_compile"
29949 case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29954 $as_echo "$ac_try_echo") >&5
29955 (eval "$ac_compile") 2>conftest.er1
29957 grep -v '^ *+' conftest.er1 >conftest.err
29959 cat conftest.err >&5
29960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); } && {
29962 test -z "$ac_c_werror_flag" ||
29963 test ! -s conftest.err
29964 } && test -s conftest.$ac_objext; then
29967 cat >conftest.$ac_ext <<_ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h. */
29974 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29975 included before <wchar.h>. */
29976 #include <stddef.h>
29977 #include <signal.h>
29979 # include <stdio.h>
29981 # include <wchar.h>
29984 #include <limits.h>
29988 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29995 rm -f conftest.$ac_objext
29996 if { (ac_try="$ac_compile"
29997 case "(($ac_try" in
29998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999 *) ac_try_echo=$ac_try;;
30001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30002 $as_echo "$ac_try_echo") >&5
30003 (eval "$ac_compile") 2>conftest.er1
30005 grep -v '^ *+' conftest.er1 >conftest.err
30007 cat conftest.err >&5
30008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && {
30010 test -z "$ac_c_werror_flag" ||
30011 test ! -s conftest.err
30012 } && test -s conftest.$ac_objext; then
30013 ac_lo=$ac_mid; break
30015 $as_echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30018 ac_hi=`expr '(' $ac_mid ')' - 1`
30019 if test $ac_mid -le $ac_hi; then
30023 ac_mid=`expr 2 '*' $ac_mid`
30026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30029 $as_echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039 # Binary search between lo and hi bounds.
30040 while test "x$ac_lo" != "x$ac_hi"; do
30041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30042 cat >conftest.$ac_ext <<_ACEOF
30045 cat confdefs.h >>conftest.$ac_ext
30046 cat >>conftest.$ac_ext <<_ACEOF
30047 /* end confdefs.h. */
30049 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30050 included before <wchar.h>. */
30051 #include <stddef.h>
30052 #include <signal.h>
30054 # include <stdio.h>
30056 # include <wchar.h>
30059 #include <limits.h>
30063 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30070 rm -f conftest.$ac_objext
30071 if { (ac_try="$ac_compile"
30072 case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30077 $as_echo "$ac_try_echo") >&5
30078 (eval "$ac_compile") 2>conftest.er1
30080 grep -v '^ *+' conftest.er1 >conftest.err
30082 cat conftest.err >&5
30083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); } && {
30085 test -z "$ac_c_werror_flag" ||
30086 test ! -s conftest.err
30087 } && test -s conftest.$ac_objext; then
30090 $as_echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30093 ac_lo=`expr '(' $ac_mid ')' + 1`
30096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30099 ?*) result=$ac_lo;;
30100 '') result=unknown ;;
30103 cat >conftest.$ac_ext <<_ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h. */
30110 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30111 included before <wchar.h>. */
30112 #include <stddef.h>
30113 #include <signal.h>
30115 # include <stdio.h>
30117 # include <wchar.h>
30120 #include <limits.h>
30121 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30122 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30124 #include <stdlib.h>
30129 FILE *f = fopen ("conftest.val", "w");
30132 if ((sizeof ($gltype) * CHAR_BIT) < 0)
30134 long int i = longval ();
30135 if (i != (sizeof ($gltype) * CHAR_BIT))
30137 fprintf (f, "%ld", i);
30141 unsigned long int i = ulongval ();
30142 if (i != (sizeof ($gltype) * CHAR_BIT))
30144 fprintf (f, "%lu", i);
30146 /* Do not output a trailing newline, as this causes \r\n confusion
30147 on some platforms. */
30148 return ferror (f) || fclose (f) != 0;
30154 rm -f conftest$ac_exeext
30155 if { (ac_try="$ac_link"
30156 case "(($ac_try" in
30157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30158 *) ac_try_echo=$ac_try;;
30160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30161 $as_echo "$ac_try_echo") >&5
30162 (eval "$ac_link") 2>&5
30164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30166 { (case "(($ac_try" in
30167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30168 *) ac_try_echo=$ac_try;;
30170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30171 $as_echo "$ac_try_echo") >&5
30172 (eval "$ac_try") 2>&5
30174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); }; }; then
30176 result=`cat conftest.val`
30178 $as_echo "$as_me: program exited with status $ac_status" >&5
30179 $as_echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30182 ( exit $ac_status )
30185 rm -rf conftest.dSYM
30186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30189 eval gl_cv_bitsizeof_${gltype}=\$result
30192 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30193 $as_echo "$as_val"'`
30194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30195 $as_echo "$ac_res" >&6; }
30196 eval result=\$gl_cv_bitsizeof_${gltype}
30197 if test $result = unknown; then
30200 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30201 cat >>confdefs.h <<_ACEOF
30202 #define BITSIZEOF_${GLTYPE} $result
30205 eval BITSIZEOF_${GLTYPE}=\$result
30215 for gltype in sig_atomic_t wchar_t wint_t ; do
30216 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30217 $as_echo_n "checking for bit size of $gltype... " >&6; }
30218 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30219 $as_echo_n "(cached) " >&6
30221 if test "$cross_compiling" = yes; then
30222 # Depending upon the size, compute the lo and hi bounds.
30223 cat >conftest.$ac_ext <<_ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h. */
30230 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30231 included before <wchar.h>. */
30232 #include <stddef.h>
30233 #include <signal.h>
30235 # include <stdio.h>
30237 # include <wchar.h>
30240 #include <limits.h>
30244 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30251 rm -f conftest.$ac_objext
30252 if { (ac_try="$ac_compile"
30253 case "(($ac_try" in
30254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255 *) ac_try_echo=$ac_try;;
30257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30258 $as_echo "$ac_try_echo") >&5
30259 (eval "$ac_compile") 2>conftest.er1
30261 grep -v '^ *+' conftest.er1 >conftest.err
30263 cat conftest.err >&5
30264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } && {
30266 test -z "$ac_c_werror_flag" ||
30267 test ! -s conftest.err
30268 } && test -s conftest.$ac_objext; then
30271 cat >conftest.$ac_ext <<_ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h. */
30278 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30279 included before <wchar.h>. */
30280 #include <stddef.h>
30281 #include <signal.h>
30283 # include <stdio.h>
30285 # include <wchar.h>
30288 #include <limits.h>
30292 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30299 rm -f conftest.$ac_objext
30300 if { (ac_try="$ac_compile"
30301 case "(($ac_try" in
30302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303 *) ac_try_echo=$ac_try;;
30305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30306 $as_echo "$ac_try_echo") >&5
30307 (eval "$ac_compile") 2>conftest.er1
30309 grep -v '^ *+' conftest.er1 >conftest.err
30311 cat conftest.err >&5
30312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); } && {
30314 test -z "$ac_c_werror_flag" ||
30315 test ! -s conftest.err
30316 } && test -s conftest.$ac_objext; then
30317 ac_hi=$ac_mid; break
30319 $as_echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30322 ac_lo=`expr $ac_mid + 1`
30323 if test $ac_lo -le $ac_mid; then
30327 ac_mid=`expr 2 '*' $ac_mid + 1`
30330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30333 $as_echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30336 cat >conftest.$ac_ext <<_ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h. */
30343 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30344 included before <wchar.h>. */
30345 #include <stddef.h>
30346 #include <signal.h>
30348 # include <stdio.h>
30350 # include <wchar.h>
30353 #include <limits.h>
30357 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30364 rm -f conftest.$ac_objext
30365 if { (ac_try="$ac_compile"
30366 case "(($ac_try" in
30367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368 *) ac_try_echo=$ac_try;;
30370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30371 $as_echo "$ac_try_echo") >&5
30372 (eval "$ac_compile") 2>conftest.er1
30374 grep -v '^ *+' conftest.er1 >conftest.err
30376 cat conftest.err >&5
30377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } && {
30379 test -z "$ac_c_werror_flag" ||
30380 test ! -s conftest.err
30381 } && test -s conftest.$ac_objext; then
30384 cat >conftest.$ac_ext <<_ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h. */
30391 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30392 included before <wchar.h>. */
30393 #include <stddef.h>
30394 #include <signal.h>
30396 # include <stdio.h>
30398 # include <wchar.h>
30401 #include <limits.h>
30405 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30412 rm -f conftest.$ac_objext
30413 if { (ac_try="$ac_compile"
30414 case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30419 $as_echo "$ac_try_echo") >&5
30420 (eval "$ac_compile") 2>conftest.er1
30422 grep -v '^ *+' conftest.er1 >conftest.err
30424 cat conftest.err >&5
30425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } && {
30427 test -z "$ac_c_werror_flag" ||
30428 test ! -s conftest.err
30429 } && test -s conftest.$ac_objext; then
30430 ac_lo=$ac_mid; break
30432 $as_echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30435 ac_hi=`expr '(' $ac_mid ')' - 1`
30436 if test $ac_mid -le $ac_hi; then
30440 ac_mid=`expr 2 '*' $ac_mid`
30443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30446 $as_echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456 # Binary search between lo and hi bounds.
30457 while test "x$ac_lo" != "x$ac_hi"; do
30458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30459 cat >conftest.$ac_ext <<_ACEOF
30462 cat confdefs.h >>conftest.$ac_ext
30463 cat >>conftest.$ac_ext <<_ACEOF
30464 /* end confdefs.h. */
30466 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30467 included before <wchar.h>. */
30468 #include <stddef.h>
30469 #include <signal.h>
30471 # include <stdio.h>
30473 # include <wchar.h>
30476 #include <limits.h>
30480 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30487 rm -f conftest.$ac_objext
30488 if { (ac_try="$ac_compile"
30489 case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30494 $as_echo "$ac_try_echo") >&5
30495 (eval "$ac_compile") 2>conftest.er1
30497 grep -v '^ *+' conftest.er1 >conftest.err
30499 cat conftest.err >&5
30500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); } && {
30502 test -z "$ac_c_werror_flag" ||
30503 test ! -s conftest.err
30504 } && test -s conftest.$ac_objext; then
30507 $as_echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30510 ac_lo=`expr '(' $ac_mid ')' + 1`
30513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30516 ?*) result=$ac_lo;;
30517 '') result=unknown ;;
30520 cat >conftest.$ac_ext <<_ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h. */
30527 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30528 included before <wchar.h>. */
30529 #include <stddef.h>
30530 #include <signal.h>
30532 # include <stdio.h>
30534 # include <wchar.h>
30537 #include <limits.h>
30538 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30539 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30541 #include <stdlib.h>
30546 FILE *f = fopen ("conftest.val", "w");
30549 if ((sizeof ($gltype) * CHAR_BIT) < 0)
30551 long int i = longval ();
30552 if (i != (sizeof ($gltype) * CHAR_BIT))
30554 fprintf (f, "%ld", i);
30558 unsigned long int i = ulongval ();
30559 if (i != (sizeof ($gltype) * CHAR_BIT))
30561 fprintf (f, "%lu", i);
30563 /* Do not output a trailing newline, as this causes \r\n confusion
30564 on some platforms. */
30565 return ferror (f) || fclose (f) != 0;
30571 rm -f conftest$ac_exeext
30572 if { (ac_try="$ac_link"
30573 case "(($ac_try" in
30574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575 *) ac_try_echo=$ac_try;;
30577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30578 $as_echo "$ac_try_echo") >&5
30579 (eval "$ac_link") 2>&5
30581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30583 { (case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30588 $as_echo "$ac_try_echo") >&5
30589 (eval "$ac_try") 2>&5
30591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; }; then
30593 result=`cat conftest.val`
30595 $as_echo "$as_me: program exited with status $ac_status" >&5
30596 $as_echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30599 ( exit $ac_status )
30602 rm -rf conftest.dSYM
30603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30606 eval gl_cv_bitsizeof_${gltype}=\$result
30609 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30610 $as_echo "$as_val"'`
30611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30612 $as_echo "$ac_res" >&6; }
30613 eval result=\$gl_cv_bitsizeof_${gltype}
30614 if test $result = unknown; then
30617 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30618 cat >>confdefs.h <<_ACEOF
30619 #define BITSIZEOF_${GLTYPE} $result
30622 eval BITSIZEOF_${GLTYPE}=\$result
30631 for gltype in sig_atomic_t wchar_t wint_t ; do
30632 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
30633 $as_echo_n "checking whether $gltype is signed... " >&6; }
30634 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
30635 $as_echo_n "(cached) " >&6
30637 cat >conftest.$ac_ext <<_ACEOF
30640 cat confdefs.h >>conftest.$ac_ext
30641 cat >>conftest.$ac_ext <<_ACEOF
30642 /* end confdefs.h. */
30644 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30645 included before <wchar.h>. */
30646 #include <stddef.h>
30647 #include <signal.h>
30649 # include <stdio.h>
30651 # include <wchar.h>
30654 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
30663 rm -f conftest.$ac_objext
30664 if { (ac_try="$ac_compile"
30665 case "(($ac_try" in
30666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667 *) ac_try_echo=$ac_try;;
30669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30670 $as_echo "$ac_try_echo") >&5
30671 (eval "$ac_compile") 2>conftest.er1
30673 grep -v '^ *+' conftest.er1 >conftest.err
30675 cat conftest.err >&5
30676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); } && {
30678 test -z "$ac_c_werror_flag" ||
30679 test ! -s conftest.err
30680 } && test -s conftest.$ac_objext; then
30683 $as_echo "$as_me: failed program was:" >&5
30684 sed 's/^/| /' conftest.$ac_ext >&5
30689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30690 eval gl_cv_type_${gltype}_signed=\$result
30693 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
30694 $as_echo "$as_val"'`
30695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30696 $as_echo "$ac_res" >&6; }
30697 eval result=\$gl_cv_type_${gltype}_signed
30698 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30699 if test "$result" = yes; then
30700 cat >>confdefs.h <<_ACEOF
30701 #define HAVE_SIGNED_${GLTYPE} 1
30704 eval HAVE_SIGNED_${GLTYPE}=1
30706 eval HAVE_SIGNED_${GLTYPE}=0
30711 gl_cv_type_ptrdiff_t_signed=yes
30712 gl_cv_type_size_t_signed=no
30713 if test $APPLE_UNIVERSAL_BUILD = 0; then
30718 for gltype in ptrdiff_t size_t ; do
30719 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30720 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30721 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30722 $as_echo_n "(cached) " >&6
30724 eval gl_cv_type_${gltype}_suffix=no
30725 eval result=\$gl_cv_type_${gltype}_signed
30726 if test "$result" = yes; then
30731 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30733 '') gltype1='int';;
30734 l) gltype1='long int';;
30735 ll) gltype1='long long int';;
30736 i64) gltype1='__int64';;
30737 u) gltype1='unsigned int';;
30738 ul) gltype1='unsigned long int';;
30739 ull) gltype1='unsigned long long int';;
30740 ui64)gltype1='unsigned __int64';;
30742 cat >conftest.$ac_ext <<_ACEOF
30745 cat confdefs.h >>conftest.$ac_ext
30746 cat >>conftest.$ac_ext <<_ACEOF
30747 /* end confdefs.h. */
30749 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30750 included before <wchar.h>. */
30751 #include <stddef.h>
30752 #include <signal.h>
30754 # include <stdio.h>
30756 # include <wchar.h>
30759 extern $gltype foo;
30760 extern $gltype1 foo;
30769 rm -f conftest.$ac_objext
30770 if { (ac_try="$ac_compile"
30771 case "(($ac_try" in
30772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773 *) ac_try_echo=$ac_try;;
30775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30776 $as_echo "$ac_try_echo") >&5
30777 (eval "$ac_compile") 2>conftest.er1
30779 grep -v '^ *+' conftest.er1 >conftest.err
30781 cat conftest.err >&5
30782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } && {
30784 test -z "$ac_c_werror_flag" ||
30785 test ! -s conftest.err
30786 } && test -s conftest.$ac_objext; then
30787 eval gl_cv_type_${gltype}_suffix=\$glsuf
30789 $as_echo "$as_me: failed program was:" >&5
30790 sed 's/^/| /' conftest.$ac_ext >&5
30795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30796 eval result=\$gl_cv_type_${gltype}_suffix
30797 test "$result" != no && break
30800 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30801 $as_echo "$as_val"'`
30802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30803 $as_echo "$ac_res" >&6; }
30804 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30805 eval result=\$gl_cv_type_${gltype}_suffix
30806 test "$result" = no && result=
30807 eval ${GLTYPE}_SUFFIX=\$result
30808 cat >>confdefs.h <<_ACEOF
30809 #define ${GLTYPE}_SUFFIX $result
30821 for gltype in sig_atomic_t wchar_t wint_t ; do
30822 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30823 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30824 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30825 $as_echo_n "(cached) " >&6
30827 eval gl_cv_type_${gltype}_suffix=no
30828 eval result=\$gl_cv_type_${gltype}_signed
30829 if test "$result" = yes; then
30834 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30836 '') gltype1='int';;
30837 l) gltype1='long int';;
30838 ll) gltype1='long long int';;
30839 i64) gltype1='__int64';;
30840 u) gltype1='unsigned int';;
30841 ul) gltype1='unsigned long int';;
30842 ull) gltype1='unsigned long long int';;
30843 ui64)gltype1='unsigned __int64';;
30845 cat >conftest.$ac_ext <<_ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h. */
30852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30853 included before <wchar.h>. */
30854 #include <stddef.h>
30855 #include <signal.h>
30857 # include <stdio.h>
30859 # include <wchar.h>
30862 extern $gltype foo;
30863 extern $gltype1 foo;
30872 rm -f conftest.$ac_objext
30873 if { (ac_try="$ac_compile"
30874 case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30879 $as_echo "$ac_try_echo") >&5
30880 (eval "$ac_compile") 2>conftest.er1
30882 grep -v '^ *+' conftest.er1 >conftest.err
30884 cat conftest.err >&5
30885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } && {
30887 test -z "$ac_c_werror_flag" ||
30888 test ! -s conftest.err
30889 } && test -s conftest.$ac_objext; then
30890 eval gl_cv_type_${gltype}_suffix=\$glsuf
30892 $as_echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30899 eval result=\$gl_cv_type_${gltype}_suffix
30900 test "$result" != no && break
30903 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30904 $as_echo "$as_val"'`
30905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30906 $as_echo "$ac_res" >&6; }
30907 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30908 eval result=\$gl_cv_type_${gltype}_suffix
30909 test "$result" = no && result=
30910 eval ${GLTYPE}_SUFFIX=\$result
30911 cat >>confdefs.h <<_ACEOF
30912 #define ${GLTYPE}_SUFFIX $result
30925 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
30926 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
30927 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
30928 $as_echo_n "(cached) " >&6
30930 cat >conftest.$ac_ext <<_ACEOF
30934 rm -f conftest.$ac_objext
30935 if { (ac_try="$ac_compile"
30936 case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30941 $as_echo "$ac_try_echo") >&5
30942 (eval "$ac_compile") 2>conftest.er1
30944 grep -v '^ *+' conftest.er1 >conftest.err
30946 cat conftest.err >&5
30947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } && {
30949 test -z "$ac_c_werror_flag" ||
30950 test ! -s conftest.err
30951 } && test -s conftest.$ac_objext; then
30952 gl_cv_header_wchar_h_standalone=yes
30954 $as_echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 gl_cv_header_wchar_h_standalone=no
30960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30962 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
30963 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
30966 if test $gt_cv_c_wint_t = yes; then
30975 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
30985 if test $ac_cv_header_wchar_h = yes; then
31002 if test $gl_cv_have_include_next = yes; then
31003 gl_cv_next_wchar_h='<'wchar.h'>'
31005 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
31006 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31007 if test "${gl_cv_next_wchar_h+set}" = set; then
31008 $as_echo_n "(cached) " >&6
31011 if test $ac_cv_header_wchar_h = yes; then
31012 cat >conftest.$ac_ext <<_ACEOF
31015 cat confdefs.h >>conftest.$ac_ext
31016 cat >>conftest.$ac_ext <<_ACEOF
31017 /* end confdefs.h. */
31022 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31023 *) gl_absname_cpp="$ac_cpp" ;;
31025 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31026 sed -n '\#/wchar.h#{
31027 s#.*"\(.*/wchar.h\)".*#\1#
31033 gl_cv_next_wchar_h='<'wchar.h'>'
31037 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
31038 $as_echo "$gl_cv_next_wchar_h" >&6; }
31040 NEXT_WCHAR_H=$gl_cv_next_wchar_h
31042 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31044 gl_next_as_first_directive='<'wchar.h'>'
31046 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31047 gl_next_as_first_directive=$gl_cv_next_wchar_h
31049 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
31074 gl_source_base='tests'
31082 LIBMD5_LIBDEPS="$gl_libdeps"
31084 LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
31089 cat >>confdefs.h <<\_ACEOF
31097 # Check whether --enable-ipv6 was given.
31098 if test "${enable_ipv6+set}" = set; then
31099 enableval=$enable_ipv6; case "${enable_ipv6}" in
31101 { $as_echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
31102 $as_echo "$as_me: disabling IPv6 at user request" >&6;}
31113 { { $as_echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
31114 $as_echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
31115 { (exit 1); exit 1; }; }
31127 if test "X$ipv6" = "Xyes"; then
31129 for ac_func in getaddrinfo
31131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31133 $as_echo_n "checking for $ac_func... " >&6; }
31134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31135 $as_echo_n "(cached) " >&6
31137 cat >conftest.$ac_ext <<_ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h. */
31143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31145 #define $ac_func innocuous_$ac_func
31147 /* System header to define __stub macros and hopefully few prototypes,
31148 which can conflict with char $ac_func (); below.
31149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31150 <limits.h> exists even on freestanding compilers. */
31153 # include <limits.h>
31155 # include <assert.h>
31160 /* Override any GCC internal prototype to avoid an error.
31161 Use char because int might match the return type of a GCC
31162 builtin and then its argument prototype would still apply. */
31167 /* The GNU C library defines this for functions which it implements
31168 to always fail with ENOSYS. Some functions are actually named
31169 something starting with __ and the normal name is an alias. */
31170 #if defined __stub_$ac_func || defined __stub___$ac_func
31177 return $ac_func ();
31182 rm -f conftest.$ac_objext conftest$ac_exeext
31183 if { (ac_try="$ac_link"
31184 case "(($ac_try" in
31185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31186 *) ac_try_echo=$ac_try;;
31188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31189 $as_echo "$ac_try_echo") >&5
31190 (eval "$ac_link") 2>conftest.er1
31192 grep -v '^ *+' conftest.er1 >conftest.err
31194 cat conftest.err >&5
31195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); } && {
31197 test -z "$ac_c_werror_flag" ||
31198 test ! -s conftest.err
31199 } && test -s conftest$ac_exeext && {
31200 test "$cross_compiling" = yes ||
31201 $as_test_x conftest$ac_exeext
31203 eval "$as_ac_var=yes"
31205 $as_echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 eval "$as_ac_var=no"
31211 rm -rf conftest.dSYM
31212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31213 conftest$ac_exeext conftest.$ac_ext
31215 ac_res=`eval 'as_val=${'$as_ac_var'}
31216 $as_echo "$as_val"'`
31217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31218 $as_echo "$ac_res" >&6; }
31219 as_val=`eval 'as_val=${'$as_ac_var'}
31220 $as_echo "$as_val"'`
31221 if test "x$as_val" = x""yes; then
31222 cat >>confdefs.h <<_ACEOF
31223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31228 { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
31229 $as_echo "$as_me: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&6;}
31237 if test "X$ipv6" = "Xyes"; then
31239 { $as_echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
31240 $as_echo_n "checking for INET6 protocol support... " >&6; }
31241 if test "${wget_cv_proto_inet6+set}" = set; then
31242 $as_echo_n "(cached) " >&6
31245 cat >conftest.$ac_ext <<_ACEOF
31248 cat confdefs.h >>conftest.$ac_ext
31249 cat >>conftest.$ac_ext <<_ACEOF
31250 /* end confdefs.h. */
31252 #include <sys/types.h>
31253 #include <sys/socket.h>
31256 #error Missing PF_INET6
31259 #error Mlssing AF_INET6
31263 if { (ac_try="$ac_cpp conftest.$ac_ext"
31264 case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31269 $as_echo "$ac_try_echo") >&5
31270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31272 grep -v '^ *+' conftest.er1 >conftest.err
31274 cat conftest.err >&5
31275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } >/dev/null && {
31277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31278 test ! -s conftest.err
31281 wget_cv_proto_inet6=yes
31284 $as_echo "$as_me: failed program was:" >&5
31285 sed 's/^/| /' conftest.$ac_ext >&5
31288 wget_cv_proto_inet6=no
31292 rm -f conftest.err conftest.$ac_ext
31295 { $as_echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
31296 $as_echo "$wget_cv_proto_inet6" >&6; }
31298 if test "X$wget_cv_proto_inet6" = "Xyes"; then :
31302 { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&5
31303 $as_echo "$as_me: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&6;}
31310 if test "X$ipv6" = "Xyes"; then
31312 wget_have_sockaddr_in6=
31313 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
31314 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
31315 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
31316 $as_echo_n "(cached) " >&6
31318 ac_cv_type_struct_sockaddr_in6=no
31319 cat >conftest.$ac_ext <<_ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h. */
31326 #include <sys/types.h>
31327 #include <sys/socket.h>
31328 #include <netinet/in.h>
31334 if (sizeof (struct sockaddr_in6))
31340 rm -f conftest.$ac_objext
31341 if { (ac_try="$ac_compile"
31342 case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31347 $as_echo "$ac_try_echo") >&5
31348 (eval "$ac_compile") 2>conftest.er1
31350 grep -v '^ *+' conftest.er1 >conftest.err
31352 cat conftest.err >&5
31353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); } && {
31355 test -z "$ac_c_werror_flag" ||
31356 test ! -s conftest.err
31357 } && test -s conftest.$ac_objext; then
31358 cat >conftest.$ac_ext <<_ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h. */
31365 #include <sys/types.h>
31366 #include <sys/socket.h>
31367 #include <netinet/in.h>
31373 if (sizeof ((struct sockaddr_in6)))
31379 rm -f conftest.$ac_objext
31380 if { (ac_try="$ac_compile"
31381 case "(($ac_try" in
31382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383 *) ac_try_echo=$ac_try;;
31385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31386 $as_echo "$ac_try_echo") >&5
31387 (eval "$ac_compile") 2>conftest.er1
31389 grep -v '^ *+' conftest.er1 >conftest.err
31391 cat conftest.err >&5
31392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } && {
31394 test -z "$ac_c_werror_flag" ||
31395 test ! -s conftest.err
31396 } && test -s conftest.$ac_objext; then
31399 $as_echo "$as_me: failed program was:" >&5
31400 sed 's/^/| /' conftest.$ac_ext >&5
31402 ac_cv_type_struct_sockaddr_in6=yes
31405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31407 $as_echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31415 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
31416 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
31417 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
31419 cat >>confdefs.h <<_ACEOF
31420 #define HAVE_STRUCT_SOCKADDR_IN6 1
31424 wget_have_sockaddr_in6=yes
31428 wget_have_sockaddr_in6=no
31433 if test "X$wget_have_sockaddr_in6" = "Xyes"; then :
31437 { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
31438 $as_echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
31443 if test "X$ipv6" = "Xyes"; then
31445 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
31446 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
31447 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
31448 $as_echo_n "(cached) " >&6
31450 ac_cv_type_struct_sockaddr_storage=no
31451 cat >conftest.$ac_ext <<_ACEOF
31454 cat confdefs.h >>conftest.$ac_ext
31455 cat >>conftest.$ac_ext <<_ACEOF
31456 /* end confdefs.h. */
31458 #include <sys/types.h>
31459 #include <sys/socket.h>
31465 if (sizeof (struct sockaddr_storage))
31471 rm -f conftest.$ac_objext
31472 if { (ac_try="$ac_compile"
31473 case "(($ac_try" in
31474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475 *) ac_try_echo=$ac_try;;
31477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31478 $as_echo "$ac_try_echo") >&5
31479 (eval "$ac_compile") 2>conftest.er1
31481 grep -v '^ *+' conftest.er1 >conftest.err
31483 cat conftest.err >&5
31484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 (exit $ac_status); } && {
31486 test -z "$ac_c_werror_flag" ||
31487 test ! -s conftest.err
31488 } && test -s conftest.$ac_objext; then
31489 cat >conftest.$ac_ext <<_ACEOF
31492 cat confdefs.h >>conftest.$ac_ext
31493 cat >>conftest.$ac_ext <<_ACEOF
31494 /* end confdefs.h. */
31496 #include <sys/types.h>
31497 #include <sys/socket.h>
31503 if (sizeof ((struct sockaddr_storage)))
31509 rm -f conftest.$ac_objext
31510 if { (ac_try="$ac_compile"
31511 case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31516 $as_echo "$ac_try_echo") >&5
31517 (eval "$ac_compile") 2>conftest.er1
31519 grep -v '^ *+' conftest.er1 >conftest.err
31521 cat conftest.err >&5
31522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } && {
31524 test -z "$ac_c_werror_flag" ||
31525 test ! -s conftest.err
31526 } && test -s conftest.$ac_objext; then
31529 $as_echo "$as_me: failed program was:" >&5
31530 sed 's/^/| /' conftest.$ac_ext >&5
31532 ac_cv_type_struct_sockaddr_storage=yes
31535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31537 $as_echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31545 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
31546 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
31547 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
31549 cat >>confdefs.h <<_ACEOF
31550 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
31560 wget_member_sin6_scope_id=
31561 if test "X$wget_have_sockaddr_in6" = "Xyes"; then
31562 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
31563 $as_echo_n "checking for struct sockaddr_in6.sin6_scope_id... " >&6; }
31564 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
31565 $as_echo_n "(cached) " >&6
31567 cat >conftest.$ac_ext <<_ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h. */
31574 #include <sys/types.h>
31575 #include <sys/socket.h>
31576 #include <netinet/in.h>
31582 static struct sockaddr_in6 ac_aggr;
31583 if (ac_aggr.sin6_scope_id)
31589 rm -f conftest.$ac_objext
31590 if { (ac_try="$ac_compile"
31591 case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31596 $as_echo "$ac_try_echo") >&5
31597 (eval "$ac_compile") 2>conftest.er1
31599 grep -v '^ *+' conftest.er1 >conftest.err
31601 cat conftest.err >&5
31602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603 (exit $ac_status); } && {
31604 test -z "$ac_c_werror_flag" ||
31605 test ! -s conftest.err
31606 } && test -s conftest.$ac_objext; then
31607 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
31609 $as_echo "$as_me: failed program was:" >&5
31610 sed 's/^/| /' conftest.$ac_ext >&5
31612 cat >conftest.$ac_ext <<_ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h. */
31619 #include <sys/types.h>
31620 #include <sys/socket.h>
31621 #include <netinet/in.h>
31627 static struct sockaddr_in6 ac_aggr;
31628 if (sizeof ac_aggr.sin6_scope_id)
31634 rm -f conftest.$ac_objext
31635 if { (ac_try="$ac_compile"
31636 case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31641 $as_echo "$ac_try_echo") >&5
31642 (eval "$ac_compile") 2>conftest.er1
31644 grep -v '^ *+' conftest.er1 >conftest.err
31646 cat conftest.err >&5
31647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); } && {
31649 test -z "$ac_c_werror_flag" ||
31650 test ! -s conftest.err
31651 } && test -s conftest.$ac_objext; then
31652 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
31654 $as_echo "$as_me: failed program was:" >&5
31655 sed 's/^/| /' conftest.$ac_ext >&5
31657 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
31660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31665 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
31666 $as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
31667 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then
31669 wget_member_sin6_scope_id=yes
31673 wget_member_sin6_scope_id=no
31679 if test "X$wget_member_sin6_scope_id" = "Xyes"; then
31681 cat >>confdefs.h <<\_ACEOF
31682 #define HAVE_SOCKADDR_IN6_SCOPE_ID 1
31693 if test "X$ipv6" = "Xyes"; then
31695 cat >>confdefs.h <<\_ACEOF
31696 #define ENABLE_IPV6 1
31699 { $as_echo "$as_me:$LINENO: Enabling support for IPv6." >&5
31700 $as_echo "$as_me: Enabling support for IPv6." >&6;}
31701 elif test "x$force_ipv6" = "xyes"; then
31702 { { $as_echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
31703 $as_echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
31704 { (exit 1); exit 1; }; }
31708 ALL_LINGUAS="en@quot en@boldquot en_US $(cd ${srcdir}/po && ls *.po | grep -v 'en@.*quot' | grep -v 'en_US\.po' | sed -e 's/\.po$//' | tr '\012' ' ')"
31711 for ac_prog in makeinfo
31713 # Extract the first word of "$ac_prog", so it can be a program name with args.
31714 set dummy $ac_prog; ac_word=$2
31715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31716 $as_echo_n "checking for $ac_word... " >&6; }
31717 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
31718 $as_echo_n "(cached) " >&6
31720 if test -n "$MAKEINFO"; then
31721 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
31723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31724 for as_dir in $PATH
31727 test -z "$as_dir" && as_dir=.
31728 for ac_exec_ext in '' $ac_executable_extensions; do
31729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31730 ac_cv_prog_MAKEINFO="$ac_prog"
31731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31740 MAKEINFO=$ac_cv_prog_MAKEINFO
31741 if test -n "$MAKEINFO"; then
31742 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
31743 $as_echo "$MAKEINFO" >&6; }
31745 { $as_echo "$as_me:$LINENO: result: no" >&5
31746 $as_echo "no" >&6; }
31750 test -n "$MAKEINFO" && break
31752 test -n "$MAKEINFO" || MAKEINFO="true"
31756 for ac_prog in perl5 perl
31758 # Extract the first word of "$ac_prog", so it can be a program name with args.
31759 set dummy $ac_prog; ac_word=$2
31760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31761 $as_echo_n "checking for $ac_word... " >&6; }
31762 if test "${ac_cv_path_PERL+set}" = set; then
31763 $as_echo_n "(cached) " >&6
31767 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31771 for as_dir in $PATH
31774 test -z "$as_dir" && as_dir=.
31775 for ac_exec_ext in '' $ac_executable_extensions; do
31776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31777 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31788 PERL=$ac_cv_path_PERL
31789 if test -n "$PERL"; then
31790 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
31791 $as_echo "$PERL" >&6; }
31793 { $as_echo "$as_me:$LINENO: result: no" >&5
31794 $as_echo "no" >&6; }
31798 test -n "$PERL" && break
31800 test -n "$PERL" || PERL="no"
31802 # Extract the first word of "pod2man", so it can be a program name with args.
31803 set dummy pod2man; ac_word=$2
31804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31805 $as_echo_n "checking for $ac_word... " >&6; }
31806 if test "${ac_cv_path_POD2MAN+set}" = set; then
31807 $as_echo_n "(cached) " >&6
31811 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
31814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31815 for as_dir in $PATH
31818 test -z "$as_dir" && as_dir=.
31819 for ac_exec_ext in '' $ac_executable_extensions; do
31820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31821 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
31822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31829 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
31833 POD2MAN=$ac_cv_path_POD2MAN
31834 if test -n "$POD2MAN"; then
31835 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
31836 $as_echo "$POD2MAN" >&6; }
31838 { $as_echo "$as_me:$LINENO: result: no" >&5
31839 $as_echo "no" >&6; }
31844 if test "x${POD2MAN}" = xno; then
31845 COMMENT_IF_NO_POD2MAN="# "
31847 COMMENT_IF_NO_POD2MAN=
31853 # Check whether --enable-iri was given.
31854 if test "${enable_iri+set}" = set; then
31855 enableval=$enable_iri; case "${enable_iri}" in
31857 { $as_echo "$as_me:$LINENO: disabling IRIs at user request" >&5
31858 $as_echo "$as_me: disabling IRIs at user request" >&6;}
31869 { { $as_echo "$as_me:$LINENO: error: Invalid --enable-iri argument \`$enable_iri'" >&5
31870 $as_echo "$as_me: error: Invalid --enable-iri argument \`$enable_iri'" >&2;}
31871 { (exit 1); exit 1; }; }
31884 # Check whether --with-libidn was given.
31885 if test "${with_libidn+set}" = set; then
31886 withval=$with_libidn; libidn=$withval
31891 if test "X$iri" != "Xno"; then
31898 am_save_CPPFLAGS="$CPPFLAGS"
31900 for element in $INCICONV; do
31902 for x in $CPPFLAGS; do
31904 acl_save_prefix="$prefix"
31905 prefix="$acl_final_prefix"
31906 acl_save_exec_prefix="$exec_prefix"
31907 exec_prefix="$acl_final_exec_prefix"
31909 exec_prefix="$acl_save_exec_prefix"
31910 prefix="$acl_save_prefix"
31912 if test "X$x" = "X$element"; then
31917 if test -z "$haveit"; then
31918 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31923 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
31924 $as_echo_n "checking for iconv... " >&6; }
31925 if test "${am_cv_func_iconv+set}" = set; then
31926 $as_echo_n "(cached) " >&6
31929 am_cv_func_iconv="no, consider installing GNU libiconv"
31931 cat >conftest.$ac_ext <<_ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h. */
31937 #include <stdlib.h>
31942 iconv_t cd = iconv_open("","");
31943 iconv(cd,NULL,NULL,NULL,NULL);
31949 rm -f conftest.$ac_objext conftest$ac_exeext
31950 if { (ac_try="$ac_link"
31951 case "(($ac_try" in
31952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953 *) ac_try_echo=$ac_try;;
31955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31956 $as_echo "$ac_try_echo") >&5
31957 (eval "$ac_link") 2>conftest.er1
31959 grep -v '^ *+' conftest.er1 >conftest.err
31961 cat conftest.err >&5
31962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); } && {
31964 test -z "$ac_c_werror_flag" ||
31965 test ! -s conftest.err
31966 } && test -s conftest$ac_exeext && {
31967 test "$cross_compiling" = yes ||
31968 $as_test_x conftest$ac_exeext
31970 am_cv_func_iconv=yes
31972 $as_echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31978 rm -rf conftest.dSYM
31979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31980 conftest$ac_exeext conftest.$ac_ext
31981 if test "$am_cv_func_iconv" != yes; then
31982 am_save_LIBS="$LIBS"
31983 LIBS="$LIBS $LIBICONV"
31984 cat >conftest.$ac_ext <<_ACEOF
31987 cat confdefs.h >>conftest.$ac_ext
31988 cat >>conftest.$ac_ext <<_ACEOF
31989 /* end confdefs.h. */
31990 #include <stdlib.h>
31995 iconv_t cd = iconv_open("","");
31996 iconv(cd,NULL,NULL,NULL,NULL);
32002 rm -f conftest.$ac_objext conftest$ac_exeext
32003 if { (ac_try="$ac_link"
32004 case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32009 $as_echo "$ac_try_echo") >&5
32010 (eval "$ac_link") 2>conftest.er1
32012 grep -v '^ *+' conftest.er1 >conftest.err
32014 cat conftest.err >&5
32015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); } && {
32017 test -z "$ac_c_werror_flag" ||
32018 test ! -s conftest.err
32019 } && test -s conftest$ac_exeext && {
32020 test "$cross_compiling" = yes ||
32021 $as_test_x conftest$ac_exeext
32023 am_cv_lib_iconv=yes
32024 am_cv_func_iconv=yes
32026 $as_echo "$as_me: failed program was:" >&5
32027 sed 's/^/| /' conftest.$ac_ext >&5
32032 rm -rf conftest.dSYM
32033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32034 conftest$ac_exeext conftest.$ac_ext
32035 LIBS="$am_save_LIBS"
32039 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32040 $as_echo "$am_cv_func_iconv" >&6; }
32041 if test "$am_cv_func_iconv" = yes; then
32042 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
32043 $as_echo_n "checking for working iconv... " >&6; }
32044 if test "${am_cv_func_iconv_works+set}" = set; then
32045 $as_echo_n "(cached) " >&6
32048 am_save_LIBS="$LIBS"
32049 if test $am_cv_lib_iconv = yes; then
32050 LIBS="$LIBS $LIBICONV"
32052 if test "$cross_compiling" = yes; then
32054 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
32055 *) am_cv_func_iconv_works="guessing yes" ;;
32058 cat >conftest.$ac_ext <<_ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h. */
32066 #include <string.h>
32069 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
32072 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
32073 if (cd_utf8_to_88591 != (iconv_t)(-1))
32075 static const char input[] = "\342\202\254"; /* EURO SIGN */
32077 const char *inptr = input;
32078 size_t inbytesleft = strlen (input);
32079 char *outptr = buf;
32080 size_t outbytesleft = sizeof (buf);
32081 size_t res = iconv (cd_utf8_to_88591,
32082 (char **) &inptr, &inbytesleft,
32083 &outptr, &outbytesleft);
32088 #if 0 /* This bug could be worked around by the caller. */
32089 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
32091 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
32092 if (cd_88591_to_utf8 != (iconv_t)(-1))
32094 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
32096 const char *inptr = input;
32097 size_t inbytesleft = strlen (input);
32098 char *outptr = buf;
32099 size_t outbytesleft = sizeof (buf);
32100 size_t res = iconv (cd_88591_to_utf8,
32101 (char **) &inptr, &inbytesleft,
32102 &outptr, &outbytesleft);
32108 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
32110 if (/* Try standardized names. */
32111 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
32112 /* Try IRIX, OSF/1 names. */
32113 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
32114 /* Try AIX names. */
32115 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
32116 /* Try HP-UX names. */
32117 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
32122 rm -f conftest$ac_exeext
32123 if { (ac_try="$ac_link"
32124 case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32129 $as_echo "$ac_try_echo") >&5
32130 (eval "$ac_link") 2>&5
32132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32134 { (case "(($ac_try" in
32135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136 *) ac_try_echo=$ac_try;;
32138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32139 $as_echo "$ac_try_echo") >&5
32140 (eval "$ac_try") 2>&5
32142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; }; then
32144 am_cv_func_iconv_works=yes
32146 $as_echo "$as_me: program exited with status $ac_status" >&5
32147 $as_echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32150 ( exit $ac_status )
32151 am_cv_func_iconv_works=no
32153 rm -rf conftest.dSYM
32154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32158 LIBS="$am_save_LIBS"
32161 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
32162 $as_echo "$am_cv_func_iconv_works" >&6; }
32163 case "$am_cv_func_iconv_works" in
32164 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
32165 *) am_func_iconv=yes ;;
32168 am_func_iconv=no am_cv_lib_iconv=no
32170 if test "$am_func_iconv" = yes; then
32172 cat >>confdefs.h <<\_ACEOF
32173 #define HAVE_ICONV 1
32177 if test "$am_cv_lib_iconv" = yes; then
32178 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
32179 $as_echo_n "checking how to link with libiconv... " >&6; }
32180 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
32181 $as_echo "$LIBICONV" >&6; }
32183 CPPFLAGS="$am_save_CPPFLAGS"
32190 if test "$am_cv_func_iconv" = yes; then
32191 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
32192 $as_echo_n "checking for iconv declaration... " >&6; }
32193 if test "${am_cv_proto_iconv+set}" = set; then
32194 $as_echo_n "(cached) " >&6
32197 cat >conftest.$ac_ext <<_ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h. */
32204 #include <stdlib.h>
32210 #if defined(__STDC__) || defined(__cplusplus)
32211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32224 rm -f conftest.$ac_objext
32225 if { (ac_try="$ac_compile"
32226 case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32231 $as_echo "$ac_try_echo") >&5
32232 (eval "$ac_compile") 2>conftest.er1
32234 grep -v '^ *+' conftest.er1 >conftest.err
32236 cat conftest.err >&5
32237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); } && {
32239 test -z "$ac_c_werror_flag" ||
32240 test ! -s conftest.err
32241 } && test -s conftest.$ac_objext; then
32242 am_cv_proto_iconv_arg1=""
32244 $as_echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32247 am_cv_proto_iconv_arg1="const"
32250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32251 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);"
32254 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
32255 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
32256 }$am_cv_proto_iconv" >&5
32258 }$am_cv_proto_iconv" >&6; }
32260 cat >>confdefs.h <<_ACEOF
32261 #define ICONV_CONST $am_cv_proto_iconv_arg1
32267 if test "X$am_cv_func_iconv" != "Xyes"; then
32269 if test "X$force_iri" = "Xyes"; then
32270 { { $as_echo "$as_me:$LINENO: error: Libiconv is required for IRIs support" >&5
32271 $as_echo "$as_me: error: Libiconv is required for IRIs support" >&2;}
32272 { (exit 1); exit 1; }; }
32274 { $as_echo "$as_me:$LINENO: disabling IRIs because libiconv wasn't found" >&5
32275 $as_echo "$as_me: disabling IRIs because libiconv wasn't found" >&6;}
32281 # For some reason, this seems to be set even when we don't check.
32282 # Explicitly unset.
32288 if test "X$iri" != "Xno"; then
32289 if test "$libidn" != ""; then
32290 LDFLAGS="${LDFLAGS} -L$libidn/lib"
32291 CPPFLAGS="${CPPFLAGS} -I$libidn/include"
32294 # If idna.h can't be found, check to see if it was installed under
32295 # /usr/include/idn (OpenSolaris, at least, places it there).
32296 # Check for idn-int.h in that case, because idna.h won't find
32297 # idn-int.h until we've decided to add -I/usr/include/idn.
32298 if test "${ac_cv_header_idna_h+set}" = set; then
32299 { $as_echo "$as_me:$LINENO: checking for idna.h" >&5
32300 $as_echo_n "checking for idna.h... " >&6; }
32301 if test "${ac_cv_header_idna_h+set}" = set; then
32302 $as_echo_n "(cached) " >&6
32304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
32305 $as_echo "$ac_cv_header_idna_h" >&6; }
32307 # Is the header compilable?
32308 { $as_echo "$as_me:$LINENO: checking idna.h usability" >&5
32309 $as_echo_n "checking idna.h usability... " >&6; }
32310 cat >conftest.$ac_ext <<_ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h. */
32316 $ac_includes_default
32319 rm -f conftest.$ac_objext
32320 if { (ac_try="$ac_compile"
32321 case "(($ac_try" in
32322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323 *) ac_try_echo=$ac_try;;
32325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32326 $as_echo "$ac_try_echo") >&5
32327 (eval "$ac_compile") 2>conftest.er1
32329 grep -v '^ *+' conftest.er1 >conftest.err
32331 cat conftest.err >&5
32332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } && {
32334 test -z "$ac_c_werror_flag" ||
32335 test ! -s conftest.err
32336 } && test -s conftest.$ac_objext; then
32337 ac_header_compiler=yes
32339 $as_echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_header_compiler=no
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32347 $as_echo "$ac_header_compiler" >&6; }
32349 # Is the header present?
32350 { $as_echo "$as_me:$LINENO: checking idna.h presence" >&5
32351 $as_echo_n "checking idna.h presence... " >&6; }
32352 cat >conftest.$ac_ext <<_ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32360 if { (ac_try="$ac_cpp conftest.$ac_ext"
32361 case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32366 $as_echo "$ac_try_echo") >&5
32367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32369 grep -v '^ *+' conftest.er1 >conftest.err
32371 cat conftest.err >&5
32372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); } >/dev/null && {
32374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32375 test ! -s conftest.err
32377 ac_header_preproc=yes
32379 $as_echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 ac_header_preproc=no
32385 rm -f conftest.err conftest.$ac_ext
32386 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32387 $as_echo "$ac_header_preproc" >&6; }
32389 # So? What about this header?
32390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32392 { $as_echo "$as_me:$LINENO: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&5
32393 $as_echo "$as_me: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32394 { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the compiler's result" >&5
32395 $as_echo "$as_me: WARNING: idna.h: proceeding with the compiler's result" >&2;}
32396 ac_header_preproc=yes
32399 { $as_echo "$as_me:$LINENO: WARNING: idna.h: present but cannot be compiled" >&5
32400 $as_echo "$as_me: WARNING: idna.h: present but cannot be compiled" >&2;}
32401 { $as_echo "$as_me:$LINENO: WARNING: idna.h: check for missing prerequisite headers?" >&5
32402 $as_echo "$as_me: WARNING: idna.h: check for missing prerequisite headers?" >&2;}
32403 { $as_echo "$as_me:$LINENO: WARNING: idna.h: see the Autoconf documentation" >&5
32404 $as_echo "$as_me: WARNING: idna.h: see the Autoconf documentation" >&2;}
32405 { $as_echo "$as_me:$LINENO: WARNING: idna.h: section \"Present But Cannot Be Compiled\"" >&5
32406 $as_echo "$as_me: WARNING: idna.h: section \"Present But Cannot Be Compiled\"" >&2;}
32407 { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the preprocessor's result" >&5
32408 $as_echo "$as_me: WARNING: idna.h: proceeding with the preprocessor's result" >&2;}
32409 { $as_echo "$as_me:$LINENO: WARNING: idna.h: in the future, the compiler will take precedence" >&5
32410 $as_echo "$as_me: WARNING: idna.h: in the future, the compiler will take precedence" >&2;}
32412 ## ------------------------------- ##
32413 ## Report this to bug-wget@gnu.org ##
32414 ## ------------------------------- ##
32416 ) | sed "s/^/$as_me: WARNING: /" >&2
32419 { $as_echo "$as_me:$LINENO: checking for idna.h" >&5
32420 $as_echo_n "checking for idna.h... " >&6; }
32421 if test "${ac_cv_header_idna_h+set}" = set; then
32422 $as_echo_n "(cached) " >&6
32424 ac_cv_header_idna_h=$ac_header_preproc
32426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
32427 $as_echo "$ac_cv_header_idna_h" >&6; }
32430 if test "x$ac_cv_header_idna_h" = x""yes; then
32433 if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32434 { $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
32435 $as_echo_n "checking for idn/idn-int.h... " >&6; }
32436 if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32437 $as_echo_n "(cached) " >&6
32439 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
32440 $as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
32442 # Is the header compilable?
32443 { $as_echo "$as_me:$LINENO: checking idn/idn-int.h usability" >&5
32444 $as_echo_n "checking idn/idn-int.h usability... " >&6; }
32445 cat >conftest.$ac_ext <<_ACEOF
32448 cat confdefs.h >>conftest.$ac_ext
32449 cat >>conftest.$ac_ext <<_ACEOF
32450 /* end confdefs.h. */
32451 $ac_includes_default
32452 #include <idn/idn-int.h>
32454 rm -f conftest.$ac_objext
32455 if { (ac_try="$ac_compile"
32456 case "(($ac_try" in
32457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458 *) ac_try_echo=$ac_try;;
32460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32461 $as_echo "$ac_try_echo") >&5
32462 (eval "$ac_compile") 2>conftest.er1
32464 grep -v '^ *+' conftest.er1 >conftest.err
32466 cat conftest.err >&5
32467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); } && {
32469 test -z "$ac_c_werror_flag" ||
32470 test ! -s conftest.err
32471 } && test -s conftest.$ac_objext; then
32472 ac_header_compiler=yes
32474 $as_echo "$as_me: failed program was:" >&5
32475 sed 's/^/| /' conftest.$ac_ext >&5
32477 ac_header_compiler=no
32480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32482 $as_echo "$ac_header_compiler" >&6; }
32484 # Is the header present?
32485 { $as_echo "$as_me:$LINENO: checking idn/idn-int.h presence" >&5
32486 $as_echo_n "checking idn/idn-int.h presence... " >&6; }
32487 cat >conftest.$ac_ext <<_ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32493 #include <idn/idn-int.h>
32495 if { (ac_try="$ac_cpp conftest.$ac_ext"
32496 case "(($ac_try" in
32497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 *) ac_try_echo=$ac_try;;
32500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32501 $as_echo "$ac_try_echo") >&5
32502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32504 grep -v '^ *+' conftest.er1 >conftest.err
32506 cat conftest.err >&5
32507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } >/dev/null && {
32509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32510 test ! -s conftest.err
32512 ac_header_preproc=yes
32514 $as_echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32517 ac_header_preproc=no
32520 rm -f conftest.err conftest.$ac_ext
32521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32522 $as_echo "$ac_header_preproc" >&6; }
32524 # So? What about this header?
32525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32527 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&5
32528 $as_echo "$as_me: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32529 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&5
32530 $as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&2;}
32531 ac_header_preproc=yes
32534 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: present but cannot be compiled" >&5
32535 $as_echo "$as_me: WARNING: idn/idn-int.h: present but cannot be compiled" >&2;}
32536 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: check for missing prerequisite headers?" >&5
32537 $as_echo "$as_me: WARNING: idn/idn-int.h: check for missing prerequisite headers?" >&2;}
32538 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: see the Autoconf documentation" >&5
32539 $as_echo "$as_me: WARNING: idn/idn-int.h: see the Autoconf documentation" >&2;}
32540 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: section \"Present But Cannot Be Compiled\"" >&5
32541 $as_echo "$as_me: WARNING: idn/idn-int.h: section \"Present But Cannot Be Compiled\"" >&2;}
32542 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&5
32543 $as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&2;}
32544 { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&5
32545 $as_echo "$as_me: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&2;}
32547 ## ------------------------------- ##
32548 ## Report this to bug-wget@gnu.org ##
32549 ## ------------------------------- ##
32551 ) | sed "s/^/$as_me: WARNING: /" >&2
32554 { $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
32555 $as_echo_n "checking for idn/idn-int.h... " >&6; }
32556 if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32557 $as_echo_n "(cached) " >&6
32559 ac_cv_header_idn_idn_int_h=$ac_header_preproc
32561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
32562 $as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
32565 if test "x$ac_cv_header_idn_idn_int_h" = x""yes; then
32566 CPPFLAGS="${CPPFLAGS} -I/usr/include/idn"
32577 if test "X$iri" != "Xno"; then
32578 { $as_echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
32579 $as_echo_n "checking for stringprep_check_version in -lidn... " >&6; }
32580 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
32581 $as_echo_n "(cached) " >&6
32583 ac_check_lib_save_LIBS=$LIBS
32585 cat >conftest.$ac_ext <<_ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32592 /* Override any GCC internal prototype to avoid an error.
32593 Use char because int might match the return type of a GCC
32594 builtin and then its argument prototype would still apply. */
32598 char stringprep_check_version ();
32602 return stringprep_check_version ();
32607 rm -f conftest.$ac_objext conftest$ac_exeext
32608 if { (ac_try="$ac_link"
32609 case "(($ac_try" in
32610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611 *) ac_try_echo=$ac_try;;
32613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32614 $as_echo "$ac_try_echo") >&5
32615 (eval "$ac_link") 2>conftest.er1
32617 grep -v '^ *+' conftest.er1 >conftest.err
32619 cat conftest.err >&5
32620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); } && {
32622 test -z "$ac_c_werror_flag" ||
32623 test ! -s conftest.err
32624 } && test -s conftest$ac_exeext && {
32625 test "$cross_compiling" = yes ||
32626 $as_test_x conftest$ac_exeext
32628 ac_cv_lib_idn_stringprep_check_version=yes
32630 $as_echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32633 ac_cv_lib_idn_stringprep_check_version=no
32636 rm -rf conftest.dSYM
32637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32638 conftest$ac_exeext conftest.$ac_ext
32639 LIBS=$ac_check_lib_save_LIBS
32641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
32642 $as_echo "$ac_cv_lib_idn_stringprep_check_version" >&6; }
32643 if test "x$ac_cv_lib_idn_stringprep_check_version" = x""yes; then
32644 iri=yes LIBS="${LIBS} -lidn"
32651 if test "X$iri" != "Xno" ; then
32653 cat >>confdefs.h <<\_ACEOF
32654 #define ENABLE_IRI 1
32657 { $as_echo "$as_me:$LINENO: Enabling support for IRI." >&5
32658 $as_echo "$as_me: Enabling support for IRI." >&6;}
32660 { $as_echo "$as_me:$LINENO: WARNING: Libidn not found" >&5
32661 $as_echo "$as_me: WARNING: Libidn not found" >&2;}
32666 if test "X$iri" != "Xno"; then
32667 IRI_IS_ENABLED_TRUE=
32668 IRI_IS_ENABLED_FALSE='#'
32670 IRI_IS_ENABLED_TRUE='#'
32671 IRI_IS_ENABLED_FALSE=
32676 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in tests/Makefile tests/WgetTest.pm lib/Makefile md5/Makefile windows/Makefile"
32678 ac_config_headers="$ac_config_headers src/config.h"
32680 cat >confcache <<\_ACEOF
32681 # This file is a shell script that caches the results of configure
32682 # tests run on this system so they can be shared between configure
32683 # scripts and configure runs, see configure's option --config-cache.
32684 # It is not useful on other systems. If it contains results you don't
32685 # want to keep, you may remove or edit it.
32687 # config.status only pays attention to the cache file if you give it
32688 # the --recheck option to rerun configure.
32690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32692 # following values.
32696 # The following way of writing the cache mishandles newlines in values,
32697 # but we know of no workaround that is simple, portable, and efficient.
32698 # So, we kill variables containing newlines.
32699 # Ultrix sh set writes to stderr and can't be redirected directly,
32700 # and sets the high bit in the cache file unless we assign to the vars.
32702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32703 eval ac_val=\$$ac_var
32707 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
32708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32711 _ | IFS | as_nl) ;; #(
32712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32713 *) $as_unset $ac_var ;;
32719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32720 *${as_nl}ac_space=\ *)
32721 # `set' does not quote correctly, so add quotes (double-quote
32722 # substitution turns \\\\ into \\, and sed turns \\ into \).
32725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32728 # `set' quotes correctly as required by POSIX, so do not add quotes.
32729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32743 if test -w "$cache_file"; then
32744 test "x$cache_file" != "x/dev/null" &&
32745 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
32746 $as_echo "$as_me: updating cache $cache_file" >&6;}
32747 cat confcache >$cache_file
32749 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32750 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32756 # Let make expand exec_prefix.
32757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32759 DEFS=-DHAVE_CONFIG_H
32763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32764 # 1. Remove the extension, and $U if already installed.
32765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32766 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32768 # will be set to the directory where LIBOBJS objects are built.
32769 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32770 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32772 LIBOBJS=$ac_libobjs
32774 LTLIBOBJS=$ac_ltlibobjs
32777 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32778 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32779 Usually this means the macro was only invoked conditionally." >&5
32780 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
32781 Usually this means the macro was only invoked conditionally." >&2;}
32782 { (exit 1); exit 1; }; }
32784 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32785 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32786 Usually this means the macro was only invoked conditionally." >&5
32787 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32788 Usually this means the macro was only invoked conditionally." >&2;}
32789 { (exit 1); exit 1; }; }
32791 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32792 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32793 Usually this means the macro was only invoked conditionally." >&5
32794 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32795 Usually this means the macro was only invoked conditionally." >&2;}
32796 { (exit 1); exit 1; }; }
32801 if test -n "$gl_LIBOBJS"; then
32802 # Remove the extension.
32803 sed_drop_objext='s/\.o$//;s/\.obj$//'
32804 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32805 gl_libobjs="$gl_libobjs $i.$ac_objext"
32806 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
32809 gl_LIBOBJS=$gl_libobjs
32811 gl_LTLIBOBJS=$gl_ltlibobjs
32817 if test -n "$gltests_LIBOBJS"; then
32818 # Remove the extension.
32819 sed_drop_objext='s/\.o$//;s/\.obj$//'
32820 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32821 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
32822 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
32825 gltests_LIBOBJS=$gltests_libobjs
32827 gltests_LTLIBOBJS=$gltests_ltlibobjs
32831 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32832 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32833 Usually this means the macro was only invoked conditionally." >&5
32834 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32835 Usually this means the macro was only invoked conditionally." >&2;}
32836 { (exit 1); exit 1; }; }
32842 if test -n "$md5_LIBOBJS"; then
32843 # Remove the extension.
32844 sed_drop_objext='s/\.o$//;s/\.obj$//'
32845 for i in `for i in $md5_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32846 md5_libobjs="$md5_libobjs $i.$ac_objext"
32847 md5_ltlibobjs="$md5_ltlibobjs $i.lo"
32850 md5_LIBOBJS=$md5_libobjs
32852 md5_LTLIBOBJS=$md5_ltlibobjs
32857 md5tests_ltlibobjs=
32858 if test -n "$md5tests_LIBOBJS"; then
32859 # Remove the extension.
32860 sed_drop_objext='s/\.o$//;s/\.obj$//'
32861 for i in `for i in $md5tests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32862 md5tests_libobjs="$md5tests_libobjs $i.$ac_objext"
32863 md5tests_ltlibobjs="$md5tests_ltlibobjs $i.lo"
32866 md5tests_LIBOBJS=$md5tests_libobjs
32868 md5tests_LTLIBOBJS=$md5tests_ltlibobjs
32871 if test -z "${IRI_IS_ENABLED_TRUE}" && test -z "${IRI_IS_ENABLED_FALSE}"; then
32872 { { $as_echo "$as_me:$LINENO: error: conditional \"IRI_IS_ENABLED\" was never defined.
32873 Usually this means the macro was only invoked conditionally." >&5
32874 $as_echo "$as_me: error: conditional \"IRI_IS_ENABLED\" was never defined.
32875 Usually this means the macro was only invoked conditionally." >&2;}
32876 { (exit 1); exit 1; }; }
32879 : ${CONFIG_STATUS=./config.status}
32881 ac_clean_files_save=$ac_clean_files
32882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32883 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32884 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32885 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32887 # Generated by $as_me.
32888 # Run this file to recreate the current configuration.
32889 # Compiler output produced by configure, useful for debugging
32890 # configure, is in config.log if it exists.
32893 ac_cs_recheck=false
32895 SHELL=\${CONFIG_SHELL-$SHELL}
32898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32899 ## --------------------- ##
32900 ## M4sh Initialization. ##
32901 ## --------------------- ##
32903 # Be more Bourne compatible
32904 DUALCASE=1; export DUALCASE # for MKS sh
32905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32908 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32909 # is contrary to our usage. Disable this feature.
32910 alias -g '${1+"$@"}'='"$@"'
32911 setopt NO_GLOB_SUBST
32913 case `(set -o) 2>/dev/null` in
32914 *posix*) set -o posix ;;
32923 # Avoid depending upon Character Ranges.
32924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32927 as_cr_digits='0123456789'
32928 as_cr_alnum=$as_cr_Letters$as_cr_digits
32933 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32934 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32936 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32937 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32938 as_echo='printf %s\n'
32939 as_echo_n='printf %s'
32941 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32942 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32943 as_echo_n='/usr/ucb/echo -n'
32945 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32946 as_echo_n_body='eval
32950 expr "X$arg" : "X\\(.*\\)$as_nl";
32951 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32953 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32955 export as_echo_n_body
32956 as_echo_n='sh -c $as_echo_n_body as_echo'
32958 export as_echo_body
32959 as_echo='sh -c $as_echo_body as_echo'
32962 # The user is always right.
32963 if test "${PATH_SEPARATOR+set}" != set; then
32965 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32966 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32971 # Support unset when possible.
32972 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32980 # We need space, tab and new line, in precisely that order. Quoting is
32981 # there to prevent editors from complaining about space-tab.
32982 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32983 # splitting by setting IFS to empty value.)
32986 # Find who we are. Look in the path if we contain no directory separator.
32988 *[\\/]* ) as_myself=$0 ;;
32989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990 for as_dir in $PATH
32993 test -z "$as_dir" && as_dir=.
32994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33000 # We did not find ourselves, most probably we were run as `sh COMMAND'
33001 # in which case we are not to be found in the path.
33002 if test "x$as_myself" = x; then
33005 if test ! -f "$as_myself"; then
33006 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33007 { (exit 1); exit 1; }
33010 # Work around bugs in pre-3.0 UWIN ksh.
33011 for as_var in ENV MAIL MAILPATH
33012 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33024 # Required to use basename.
33025 if expr a : '\(a\)' >/dev/null 2>&1 &&
33026 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33032 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33033 as_basename=basename
33039 # Name of the executable.
33040 as_me=`$as_basename -- "$0" ||
33041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33042 X"$0" : 'X\(//\)$' \| \
33043 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33045 sed '/^.*\/\([^/][^/]*\)\/*$/{
33064 as_lineno_1=$LINENO
33065 as_lineno_2=$LINENO
33066 test "x$as_lineno_1" != "x$as_lineno_2" &&
33067 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33069 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33070 # uniformly replaced by the line number. The first 'sed' inserts a
33071 # line-number line after each line using $LINENO; the second 'sed'
33072 # does the real work. The second script uses 'N' to pair each
33073 # line-number line with the line containing $LINENO, and appends
33074 # trailing '-' during substitution so that $LINENO is not a special
33075 # case at line end.
33076 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33077 # scripts with optimization help from Paolo Bonzini. Blame Lee
33078 # E. McMahon (1931-1989) for sed's syntax. :-)
33090 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33093 ' >$as_me.lineno &&
33094 chmod +x "$as_me.lineno" ||
33095 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33096 { (exit 1); exit 1; }; }
33098 # Don't try to exec as it changes $[0], causing all sort of problems
33099 # (the dirname of $[0] is not the place where we might find the
33100 # original and so on. Autoconf is especially sensitive to this).
33101 . "./$as_me.lineno"
33102 # Exit status is that of the last command.
33107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33113 ECHO_C= ECHO_N= ECHO_T=
33114 case `echo -n x` in
33116 case `echo 'x\c'` in
33117 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33123 if expr a : '\(a\)' >/dev/null 2>&1 &&
33124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33130 rm -f conf$$ conf$$.exe conf$$.file
33131 if test -d conf$$.dir; then
33132 rm -f conf$$.dir/conf$$.file
33135 mkdir conf$$.dir 2>/dev/null
33137 if (echo >conf$$.file) 2>/dev/null; then
33138 if ln -s conf$$.file conf$$ 2>/dev/null; then
33140 # ... but there are two gotchas:
33141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33143 # In both cases, we have to default to `cp -p'.
33144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33146 elif ln conf$$.file conf$$ 2>/dev/null; then
33154 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33155 rmdir conf$$.dir 2>/dev/null
33157 if mkdir -p . 2>/dev/null; then
33160 test -d ./-p && rmdir ./-p
33164 if test -x / >/dev/null 2>&1; then
33165 as_test_x='test -x'
33167 if ls -dL / >/dev/null 2>&1; then
33174 if test -d "$1"; then
33180 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33181 ???[sx]*):;;*)false;;esac;fi
33185 as_executable_p=$as_test_x
33187 # Sed expression to map a string onto a valid CPP name.
33188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33190 # Sed expression to map a string onto a valid variable name.
33191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33196 # Save the log message, to keep $[0] and so on meaningful, and to
33197 # report actual input values of CONFIG_FILES etc. instead of their
33198 # values after options handling.
33200 This file was extended by wget $as_me 1.12, which was
33201 generated by GNU Autoconf 2.63. Invocation command line was
33203 CONFIG_FILES = $CONFIG_FILES
33204 CONFIG_HEADERS = $CONFIG_HEADERS
33205 CONFIG_LINKS = $CONFIG_LINKS
33206 CONFIG_COMMANDS = $CONFIG_COMMANDS
33209 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33214 case $ac_config_files in *"
33215 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33218 case $ac_config_headers in *"
33219 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33224 # Files that config.status was made for.
33225 config_files="$ac_config_files"
33226 config_headers="$ac_config_headers"
33227 config_links="$ac_config_links"
33228 config_commands="$ac_config_commands"
33232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33234 \`$as_me' instantiates files from templates according to the
33235 current configuration.
33237 Usage: $0 [OPTION]... [FILE]...
33239 -h, --help print this help, then exit
33240 -V, --version print version number and configuration settings, then exit
33241 -q, --quiet, --silent
33242 do not print progress messages
33243 -d, --debug don't remove temporary files
33244 --recheck update $as_me by reconfiguring in the same conditions
33245 --file=FILE[:TEMPLATE]
33246 instantiate the configuration file FILE
33247 --header=FILE[:TEMPLATE]
33248 instantiate the configuration header FILE
33250 Configuration files:
33253 Configuration headers:
33256 Configuration links:
33259 Configuration commands:
33262 Report bugs to <bug-autoconf@gnu.org>."
33265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33267 wget config.status 1.12
33268 configured by $0, generated by GNU Autoconf 2.63,
33269 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33271 Copyright (C) 2008 Free Software Foundation, Inc.
33272 This config.status script is free software; the Free Software Foundation
33273 gives unlimited permission to copy, distribute and modify it."
33280 test -n "\$AWK" || AWK=awk
33283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33284 # The default lists apply if the user does not specify any file.
33290 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33302 # Handling of the options.
33303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33305 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33306 $as_echo "$ac_cs_version"; exit ;;
33307 --debug | --debu | --deb | --de | --d | -d )
33309 --file | --fil | --fi | --f )
33312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33314 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
33315 ac_need_defaults=false;;
33316 --header | --heade | --head | --hea )
33319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33321 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
33322 ac_need_defaults=false;;
33324 # Conflict between --help and --header
33325 { $as_echo "$as_me: error: ambiguous option: $1
33326 Try \`$0 --help' for more information." >&2
33327 { (exit 1); exit 1; }; };;
33328 --help | --hel | -h )
33329 $as_echo "$ac_cs_usage"; exit ;;
33330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33334 # This is an error.
33335 -*) { $as_echo "$as_me: error: unrecognized option: $1
33336 Try \`$0 --help' for more information." >&2
33337 { (exit 1); exit 1; }; } ;;
33339 *) ac_config_targets="$ac_config_targets $1"
33340 ac_need_defaults=false ;;
33346 ac_configure_extra_args=
33348 if $ac_cs_silent; then
33350 ac_configure_extra_args="$ac_configure_extra_args --silent"
33354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33355 if \$ac_cs_recheck; then
33356 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33358 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33359 CONFIG_SHELL='$SHELL'
33360 export CONFIG_SHELL
33365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33370 ## Running $as_me. ##
33376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33381 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33382 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33383 # from automake < 1.5.
33384 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33385 # Capture the value of LINGUAS because we need it to compute CATALOGS.
33386 LINGUAS="${LINGUAS-%UNSET%}"
33388 GNUmakefile=$GNUmakefile
33392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33394 # Handling of arguments.
33395 for ac_config_target in $ac_config_targets
33397 case $ac_config_target in
33398 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33399 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33400 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
33401 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33402 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33403 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33404 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
33405 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33406 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33407 "tests/WgetTest.pm") CONFIG_FILES="$CONFIG_FILES tests/WgetTest.pm" ;;
33408 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
33409 "md5/Makefile") CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
33410 "windows/Makefile") CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
33411 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
33413 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33414 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33415 { (exit 1); exit 1; }; };;
33420 # If the user did not use the arguments to specify the items to instantiate,
33421 # then the envvar interface is used. Set only those that are not.
33422 # We use the long form for the default assignment because of an extremely
33423 # bizarre bug on SunOS 4.1.3.
33424 if $ac_need_defaults; then
33425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33427 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33431 # Have a temporary directory for convenience. Make it in the build tree
33432 # simply because there is no reason against having it here, and in addition,
33433 # creating and moving files from /tmp can sometimes cause problems.
33434 # Hook for its removal unless debugging.
33435 # Note that there is a small window in which the directory will not be cleaned:
33436 # after its creation but before its name has been assigned to `$tmp'.
33440 trap 'exit_status=$?
33441 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33443 trap '{ (exit 1); exit 1; }' 1 2 13 15
33445 # Create a (secure) tmp directory for tmp files.
33448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33449 test -n "$tmp" && test -d "$tmp"
33452 tmp=./conf$$-$RANDOM
33453 (umask 077 && mkdir "$tmp")
33456 $as_echo "$as_me: cannot create a temporary directory in ." >&2
33457 { (exit 1); exit 1; }
33460 # Set up the scripts for CONFIG_FILES section.
33461 # No need to generate them if there are no CONFIG_FILES.
33462 # This happens for instance with `./config.status config.h'.
33463 if test -n "$CONFIG_FILES"; then
33467 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33471 ac_cs_awk_cr=$ac_cr
33474 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33479 echo "cat >conf$$subs.awk <<_ACEOF" &&
33480 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33482 } >conf$$subs.sh ||
33483 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33484 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33485 { (exit 1); exit 1; }; }
33486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33488 for ac_last_try in false false false false false :; do
33489 . ./conf$$subs.sh ||
33490 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33491 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33492 { (exit 1); exit 1; }; }
33494 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33495 if test $ac_delim_n = $ac_delim_num; then
33497 elif $ac_last_try; then
33498 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33499 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33500 { (exit 1); exit 1; }; }
33502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33505 rm -f conf$$subs.sh
33507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33508 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33512 s/^/S["/; s/!.*/"]=/
33522 s/\(.\{148\}\).*/\1/
33524 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33536 s/\(.\{148\}\).*/\1/
33538 s/["\\]/\\&/g; s/^/"/; s/$/"/
33542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33547 ' <conf$$subs.awk | sed '
33552 ' >>$CONFIG_STATUS || ac_write_fail=1
33553 rm -f conf$$subs.awk
33554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33556 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33557 for (key in S) S_is_set[key] = 1
33563 nfields = split(line, field, "@")
33565 len = length(field[1])
33566 for (i = 2; i < nfields; i++) {
33568 keylen = length(key)
33569 if (S_is_set[key]) {
33571 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33572 len += length(value) + length(field[++i])
33583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33584 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33585 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33588 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33589 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
33590 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
33591 { (exit 1); exit 1; }; }
33594 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33595 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33596 # trailing colons and then remove the whole line if VPATH becomes empty
33597 # (actually we leave an empty line to preserve line numbers).
33598 if test "x$srcdir" = x.; then
33599 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33600 s/:*\$(srcdir):*/:/
33601 s/:*\${srcdir}:*/:/
33603 s/^\([^=]*=[ ]*\):*/\1/
33609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33610 fi # test -n "$CONFIG_FILES"
33612 # Set up the scripts for CONFIG_HEADERS section.
33613 # No need to generate them if there are no CONFIG_HEADERS.
33614 # This happens for instance with `./config.status Makefile'.
33615 if test -n "$CONFIG_HEADERS"; then
33616 cat >"$tmp/defines.awk" <<\_ACAWK ||
33620 # Transform confdefs.h into an awk script `defines.awk', embedded as
33621 # here-document in config.status, that substitutes the proper values into
33622 # config.h.in to produce config.h.
33624 # Create a delimiter string that does not exist in confdefs.h, to ease
33625 # handling of long lines.
33627 for ac_last_try in false false :; do
33628 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33629 if test -z "$ac_t"; then
33631 elif $ac_last_try; then
33632 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
33633 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
33634 { (exit 1); exit 1; }; }
33636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33640 # For the awk script, D is an array of macro values keyed by name,
33641 # likewise P contains macro parameters if any. Preserve backslash
33642 # newline sequences.
33644 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33646 s/.\{148\}/&'"$ac_delim"'/g
33649 s/^[ ]*#[ ]*define[ ][ ]*/ /
33656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33658 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33662 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33663 D["\1"]=" \3\\\\\\n"\\/p
33665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33670 s/.\{148\}/&'"$ac_delim"'/g
33675 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33678 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33680 ' <confdefs.h | sed '
33681 s/'"$ac_delim"'/"\\\
33682 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33685 for (key in D) D_is_set[key] = 1
33688 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33690 split(line, arg, " ")
33691 if (arg[1] == "#") {
33695 defundef = substr(arg[1], 2)
33698 split(mac1, mac2, "(") #)
33700 prefix = substr(line, 1, index(line, defundef) - 1)
33701 if (D_is_set[macro]) {
33702 # Preserve the white space surrounding the "#".
33703 print prefix "define", macro P[macro] D[macro]
33706 # Replace #undef with comments. This is necessary, for example,
33707 # in the case of _POSIX_SOURCE, which is predefined and required
33708 # on some systems where configure will not decide to define it.
33709 if (defundef == "undef") {
33710 print "/*", prefix defundef, macro, "*/"
33718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33719 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
33720 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
33721 { (exit 1); exit 1; }; }
33722 fi # test -n "$CONFIG_HEADERS"
33725 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33730 :[FHLC]) ac_mode=$ac_tag; continue;;
33732 case $ac_mode$ac_tag in
33734 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
33735 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
33736 { (exit 1); exit 1; }; };;
33737 :[FH]-) ac_tag=-:-;;
33738 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33755 -) ac_f="$tmp/stdin";;
33756 *) # Look for the file first in the build tree, then in the source tree
33757 # (if the path is not absolute). The absolute path cannot be DOS-style,
33758 # because $ac_f cannot contain `:'.
33762 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33764 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33765 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33766 { (exit 1); exit 1; }; };;
33768 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33769 ac_file_inputs="$ac_file_inputs '$ac_f'"
33772 # Let's still pretend it is `configure' which instantiates (i.e., don't
33773 # use $as_me), people would be surprised to read:
33774 # /* config.h. Generated by config.status. */
33775 configure_input='Generated from '`
33776 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33778 if test x"$ac_file" != x-; then
33779 configure_input="$ac_file. $configure_input"
33780 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
33781 $as_echo "$as_me: creating $ac_file" >&6;}
33783 # Neutralize special characters interpreted by sed in replacement strings.
33784 case $configure_input in #(
33785 *\&* | *\|* | *\\* )
33786 ac_sed_conf_input=`$as_echo "$configure_input" |
33787 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33788 *) ac_sed_conf_input=$configure_input;;
33792 *:-:* | *:-) cat >"$tmp/stdin" \
33793 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33794 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33795 { (exit 1); exit 1; }; } ;;
33800 ac_dir=`$as_dirname -- "$ac_file" ||
33801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33802 X"$ac_file" : 'X\(//\)[^/]' \| \
33803 X"$ac_file" : 'X\(//\)$' \| \
33804 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33805 $as_echo X"$ac_file" |
33806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33810 /^X\(\/\/\)[^/].*/{
33825 -*) as_dir=./$as_dir;;
33827 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33831 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33832 *) as_qdir=$as_dir;;
33834 as_dirs="'$as_qdir' $as_dirs"
33835 as_dir=`$as_dirname -- "$as_dir" ||
33836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33837 X"$as_dir" : 'X\(//\)[^/]' \| \
33838 X"$as_dir" : 'X\(//\)$' \| \
33839 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33840 $as_echo X"$as_dir" |
33841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33845 /^X\(\/\/\)[^/].*/{
33858 test -d "$as_dir" && break
33860 test -z "$as_dirs" || eval "mkdir $as_dirs"
33861 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33862 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33863 { (exit 1); exit 1; }; }; }
33867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33869 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33870 # A ".." for each directory in $ac_dir_suffix.
33871 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33872 case $ac_top_builddir_sub in
33873 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33874 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33877 ac_abs_top_builddir=$ac_pwd
33878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33879 # for backward compatibility:
33880 ac_top_builddir=$ac_top_build_prefix
33883 .) # We are building in place.
33885 ac_top_srcdir=$ac_top_builddir_sub
33886 ac_abs_top_srcdir=$ac_pwd ;;
33887 [\\/]* | ?:[\\/]* ) # Absolute name.
33888 ac_srcdir=$srcdir$ac_dir_suffix;
33889 ac_top_srcdir=$srcdir
33890 ac_abs_top_srcdir=$srcdir ;;
33891 *) # Relative name.
33892 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33893 ac_top_srcdir=$ac_top_build_prefix$srcdir
33894 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33906 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33907 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33909 ac_MKDIR_P=$MKDIR_P
33911 [\\/$]* | ?:[\\/]* ) ;;
33912 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33917 # If the template does not know about datarootdir, expand it.
33918 # FIXME: This hack should be removed a few years after 2.60.
33919 ac_datarootdir_hack=; ac_datarootdir_seen=
33932 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33933 *datarootdir*) ac_datarootdir_seen=yes;;
33934 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33935 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33936 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33939 ac_datarootdir_hack='
33940 s&@datadir@&$datadir&g
33941 s&@docdir@&$docdir&g
33942 s&@infodir@&$infodir&g
33943 s&@localedir@&$localedir&g
33944 s&@mandir@&$mandir&g
33945 s&\\\${datarootdir}&$datarootdir&g' ;;
33949 # Neutralize VPATH when `$srcdir' = `.'.
33950 # Shell code in configure.ac might set extrasub.
33951 # FIXME: do we really want to maintain this feature?
33952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33953 ac_sed_extra="$ac_vpsub
33956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33959 s|@configure_input@|$ac_sed_conf_input|;t t
33960 s&@top_builddir@&$ac_top_builddir_sub&;t t
33961 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33962 s&@srcdir@&$ac_srcdir&;t t
33963 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33964 s&@top_srcdir@&$ac_top_srcdir&;t t
33965 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33966 s&@builddir@&$ac_builddir&;t t
33967 s&@abs_builddir@&$ac_abs_builddir&;t t
33968 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33969 s&@INSTALL@&$ac_INSTALL&;t t
33970 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33971 $ac_datarootdir_hack
33973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33974 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33975 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33976 { (exit 1); exit 1; }; }
33978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33979 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33981 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33982 which seems to be undefined. Please make sure it is defined." >&5
33983 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33984 which seems to be undefined. Please make sure it is defined." >&2;}
33988 -) cat "$tmp/out" && rm -f "$tmp/out";;
33989 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33991 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33992 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33993 { (exit 1); exit 1; }; }
33999 if test x"$ac_file" != x-; then
34001 $as_echo "/* $configure_input */" \
34002 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34003 } >"$tmp/config.h" \
34004 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34005 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34006 { (exit 1); exit 1; }; }
34007 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34008 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34009 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34012 mv "$tmp/config.h" "$ac_file" \
34013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34014 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34015 { (exit 1); exit 1; }; }
34018 $as_echo "/* $configure_input */" \
34019 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34020 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
34021 $as_echo "$as_me: error: could not create -" >&2;}
34022 { (exit 1); exit 1; }; }
34024 # Compute "$ac_file"'s index in $config_headers.
34027 for _am_header in $config_headers :; do
34028 case $_am_header in
34029 $_am_arg | $_am_arg:* )
34032 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34035 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34036 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34037 X"$_am_arg" : 'X\(//\)[^/]' \| \
34038 X"$_am_arg" : 'X\(//\)$' \| \
34039 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34040 $as_echo X"$_am_arg" |
34041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34045 /^X\(\/\/\)[^/].*/{
34057 s/.*/./; q'`/stamp-h$_am_stamp_count
34064 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
34067 # Prefer the file from the source tree if names are identical.
34068 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34069 ac_source=$srcdir/$ac_source
34072 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
34073 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34075 if test ! -r "$ac_source"; then
34076 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
34077 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
34078 { (exit 1); exit 1; }; }
34082 # Try a relative symlink, then a hard link, then a copy.
34084 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34085 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34087 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34088 ln "$ac_source" "$ac_file" 2>/dev/null ||
34089 cp -p "$ac_source" "$ac_file" ||
34090 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
34091 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
34092 { (exit 1); exit 1; }; }
34095 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
34096 $as_echo "$as_me: executing $ac_file commands" >&6;}
34101 case $ac_file$ac_mode in
34102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34103 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34104 # are listed without --file. Let's play safe and only enable the eval
34105 # if we detect the quoting.
34106 case $CONFIG_FILES in
34107 *\'*) eval set x "$CONFIG_FILES" ;;
34108 *) set x $CONFIG_FILES ;;
34113 # Strip MF so we end up with the name of the file.
34114 mf=`echo "$mf" | sed -e 's/:.*$//'`
34115 # Check whether this is an Automake generated Makefile or not.
34116 # We used to match only the files named `Makefile.in', but
34117 # some people rename them; so instead we look at the file content.
34118 # Grep'ing the first line is not enough: some people post-process
34119 # each Makefile.in and add a new line on top of each file to say so.
34120 # Grep'ing the whole file is not good either: AIX grep has a line
34121 # limit of 2048, but all sed's we know have understand at least 4000.
34122 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34123 dirpart=`$as_dirname -- "$mf" ||
34124 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34125 X"$mf" : 'X\(//\)[^/]' \| \
34126 X"$mf" : 'X\(//\)$' \| \
34127 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34133 /^X\(\/\/\)[^/].*/{
34149 # Extract the definition of DEPDIR, am__include, and am__quote
34150 # from the Makefile without running `make'.
34151 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34152 test -z "$DEPDIR" && continue
34153 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34154 test -z "am__include" && continue
34155 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34156 # When using ansi2knr, U may be empty or an underscore; expand it
34157 U=`sed -n 's/^U = //p' < "$mf"`
34158 # Find all dependency output files, they are included files with
34159 # $(DEPDIR) in their names. We invoke sed twice because it is the
34160 # simplest approach to changing $(DEPDIR) to its actual value in the
34162 for file in `sed -n "
34163 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34164 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34165 # Make sure the directory exists.
34166 test -f "$dirpart/$file" && continue
34167 fdir=`$as_dirname -- "$file" ||
34168 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34169 X"$file" : 'X\(//\)[^/]' \| \
34170 X"$file" : 'X\(//\)$' \| \
34171 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34172 $as_echo X"$file" |
34173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34177 /^X\(\/\/\)[^/].*/{
34190 { as_dir=$dirpart/$fdir
34192 -*) as_dir=./$as_dir;;
34194 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34198 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34199 *) as_qdir=$as_dir;;
34201 as_dirs="'$as_qdir' $as_dirs"
34202 as_dir=`$as_dirname -- "$as_dir" ||
34203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34204 X"$as_dir" : 'X\(//\)[^/]' \| \
34205 X"$as_dir" : 'X\(//\)$' \| \
34206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34207 $as_echo X"$as_dir" |
34208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34212 /^X\(\/\/\)[^/].*/{
34225 test -d "$as_dir" && break
34227 test -z "$as_dirs" || eval "mkdir $as_dirs"
34228 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34229 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34230 { (exit 1); exit 1; }; }; }
34231 # echo "creating $dirpart/$file"
34232 echo '# dummy' > "$dirpart/$file"
34237 "po-directories":C)
34238 for ac_file in $CONFIG_FILES; do
34239 # Support "outfile[:infile[:infile...]]"
34241 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
34243 # PO directories have a Makefile.in generated from Makefile.in.in.
34244 case "$ac_file" in */Makefile.in)
34245 # Adjust a relative srcdir.
34246 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
34247 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
34248 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
34249 # In autoconf-2.13 it is called $ac_given_srcdir.
34250 # In autoconf-2.50 it is called $srcdir.
34251 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
34252 case "$ac_given_srcdir" in
34253 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
34254 /*) top_srcdir="$ac_given_srcdir" ;;
34255 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
34257 # Treat a directory as a PO directory if and only if it has a
34258 # POTFILES.in file. This allows packages to have multiple PO
34259 # directories under different names or in different locations.
34260 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
34261 rm -f "$ac_dir/POTFILES"
34262 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
34263 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
34264 POMAKEFILEDEPS="POTFILES.in"
34265 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
34266 # on $ac_dir but don't depend on user-specified configuration
34268 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
34269 # The LINGUAS file contains the set of available languages.
34270 if test -n "$OBSOLETE_ALL_LINGUAS"; then
34271 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
34273 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
34274 # Hide the ALL_LINGUAS assigment from automake < 1.5.
34275 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
34276 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
34278 # The set of available languages was given in configure.in.
34279 # Hide the ALL_LINGUAS assigment from automake < 1.5.
34280 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
34283 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
34284 # Compute UPDATEPOFILES
34285 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
34286 # Compute DUMMYPOFILES
34287 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
34289 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
34290 case "$ac_given_srcdir" in
34292 *) srcdirpre='$(srcdir)/' ;;
34298 for lang in $ALL_LINGUAS; do
34299 POFILES="$POFILES $srcdirpre$lang.po"
34300 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
34301 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
34302 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
34304 # CATALOGS depends on both $ac_dir and the user's LINGUAS
34305 # environment variable.
34307 if test -n "$ALL_LINGUAS"; then
34308 for presentlang in $ALL_LINGUAS; do
34310 if test "%UNSET%" != "$LINGUAS"; then
34311 desiredlanguages="$LINGUAS"
34313 desiredlanguages="$ALL_LINGUAS"
34315 for desiredlang in $desiredlanguages; do
34316 # Use the presentlang catalog if desiredlang is
34317 # a. equal to presentlang, or
34318 # b. a variant of presentlang (because in this case,
34319 # presentlang can be used as a fallback for messages
34320 # which are not translated in the desiredlang catalog).
34321 case "$desiredlang" in
34322 "$presentlang"*) useit=yes;;
34325 if test $useit = yes; then
34326 INST_LINGUAS="$INST_LINGUAS $presentlang"
34331 if test -n "$INST_LINGUAS"; then
34332 for lang in $INST_LINGUAS; do
34333 CATALOGS="$CATALOGS $lang.gmo"
34336 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
34337 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"
34338 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
34339 if test -f "$f"; then
34341 *.orig | *.bak | *~) ;;
34342 *) cat "$f" >> "$ac_dir/Makefile" ;;
34355 { (exit 0); exit 0; }
34357 chmod +x $CONFIG_STATUS
34358 ac_clean_files=$ac_clean_files_save
34360 test $ac_write_fail = 0 ||
34361 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
34362 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
34363 { (exit 1); exit 1; }; }
34366 # configure is writing to config.log, and then calls config.status.
34367 # config.status does its own redirection, appending to config.log.
34368 # Unfortunately, on DOS this fails, as config.log is still kept open
34369 # by configure, so config.status won't be able to write to it; its
34370 # output is simply discarded. So we exec the FD to /dev/null,
34371 # effectively closing config.log, so it can be properly (re)opened and
34372 # appended to by config.status. When coming back to configure, we
34373 # need to make the FD available again.
34374 if test "$no_create" != yes; then
34376 ac_config_status_args=
34377 test "$silent" = yes &&
34378 ac_config_status_args="$ac_config_status_args --quiet"
34380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34383 # would make configure fail if this is the last instruction.
34384 $ac_cs_success || { (exit 1); exit 1; }
34386 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34387 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34388 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}