2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for GNU tar 1.23.
5 # Report bugs to <bug-tar@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.
597 PACKAGE_NAME='GNU tar'
598 PACKAGE_TARNAME='tar'
599 PACKAGE_VERSION='1.23'
600 PACKAGE_STRING='GNU tar 1.23'
601 PACKAGE_BUGREPORT='bug-tar@gnu.org'
603 ac_unique_file="src/tar.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
642 gl_fnmatch_required=POSIX
643 gl_getopt_required=POSIX
644 gl_getopt_required=POSIX
646 ac_subst_vars='gltests_LTLIBOBJS
655 BACKUP_LIBEXEC_SCRIPTS
660 XGETTEXT_EXTRA_OPTIONS
668 GETTEXT_MACRO_VERSION
672 DEFAULT_QUOTING_STYLE
675 DEFAULT_ARCHIVE_FORMAT
685 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
690 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
693 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
695 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
696 TIME_H_DEFINES_STRUCT_TIMESPEC
697 NEXT_AS_FIRST_DIRECTIVE_TIME_H
701 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
703 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
705 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
707 NEXT_AS_FIRST_DIRECTIVE_STRING_H
709 HAVE_DECL_STRNCASECMP
712 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
714 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
716 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
721 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
797 LOCALCHARSET_TESTS_ENVIRONMENT
800 HAVE_LANGINFO_CODESET
802 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
807 UINT64_MAX_EQ_ULONG_MAX
808 UINT32_MAX_LT_UINTMAX_MAX
809 INT64_MAX_EQ_LONG_MAX
810 INT32_MAX_LT_INTMAX_MAX
812 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
831 HAVE_SIGNED_SIG_ATOMIC_T
834 BITSIZEOF_SIG_ATOMIC_T
837 APPLE_UNIVERSAL_BUILD
841 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
845 HAVE_UNSIGNED_LONG_LONG_INT
847 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
857 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
863 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
865 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
873 REPLACE_STDIO_WRITE_FUNCS
882 REPLACE_OBSTACK_PRINTF
902 HAVE_DECL_OBSTACK_PRINTF
906 GNULIB_VSPRINTF_POSIX
910 GNULIB_VFPRINTF_POSIX
914 GNULIB_STDIO_H_SIGPIPE
927 GNULIB_OBSTACK_PRINTF_POSIX
928 GNULIB_OBSTACK_PRINTF
993 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
995 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
998 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1012 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1013 UNISTD_H_HAVE_WINSOCK2_H
1040 HAVE_DECL_GETLOGIN_R
1071 GNULIB_UNISTD_H_SIGPIPE
1072 GNULIB_UNISTD_H_GETOPT
1091 GNULIB_GETDTABLESIZE
1092 GNULIB_GETDOMAINNAME
1111 REPLACE_CANONICALIZE_FILE_NAME
1114 HAVE_STRUCT_RANDOM_DATA
1129 HAVE_DECL_GETLOADAVG
1130 HAVE_CANONICALIZE_FILE_NAME
1140 GNULIB_REALLOC_POSIX
1151 GNULIB_CANONICALIZE_FILE_NAME
1192 GL_COND_LIBTOOL_FALSE
1193 GL_COND_LIBTOOL_TRUE
1225 AM_DEFAULT_VERBOSITY
1234 INSTALL_STRIP_PROGRAM
1276 program_transform_name
1288 enable_option_checking
1290 enable_dependency_tracking
1294 with_packager_version
1295 with_packager_bug_reports
1306 with_libiconv_prefix
1309 enable_backup_scripts
1311 ac_precious_vars='build_alias
1323 DEFAULT_ARCHIVE_FORMAT
1326 DEFAULT_QUOTING_STYLE'
1329 # Initialize some variables set by options.
1331 ac_init_version=false
1332 ac_unrecognized_opts=
1333 ac_unrecognized_sep=
1334 # The variables have the same names as the options, with
1335 # dashes changed to underlines.
1336 cache_file=/dev/null
1343 program_transform_name=s,x,x,
1351 # Installation directory options.
1352 # These are left unexpanded so users can "make install exec_prefix=/foo"
1353 # and all the variables that are supposed to be based on exec_prefix
1354 # by default will actually change.
1355 # Use braces instead of parens because sh, perl, etc. also accept them.
1356 # (The list follows the same order as the GNU Coding Standards.)
1357 bindir='${exec_prefix}/bin'
1358 sbindir='${exec_prefix}/sbin'
1359 libexecdir='${exec_prefix}/libexec'
1360 datarootdir='${prefix}/share'
1361 datadir='${datarootdir}'
1362 sysconfdir='${prefix}/etc'
1363 sharedstatedir='${prefix}/com'
1364 localstatedir='${prefix}/var'
1365 includedir='${prefix}/include'
1366 oldincludedir='/usr/include'
1367 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1368 infodir='${datarootdir}/info'
1373 libdir='${exec_prefix}/lib'
1374 localedir='${datarootdir}/locale'
1375 mandir='${datarootdir}/man'
1381 # If the previous option needs an argument, assign it.
1382 if test -n "$ac_prev"; then
1383 eval $ac_prev=\$ac_option
1389 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1393 # Accept the important Cygnus configure options, so we can diagnose typos.
1395 case $ac_dashdash$ac_option in
1399 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1401 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1402 bindir=$ac_optarg ;;
1404 -build | --build | --buil | --bui | --bu)
1405 ac_prev=build_alias ;;
1406 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1407 build_alias=$ac_optarg ;;
1409 -cache-file | --cache-file | --cache-fil | --cache-fi \
1410 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1411 ac_prev=cache_file ;;
1412 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1413 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1414 cache_file=$ac_optarg ;;
1416 --config-cache | -C)
1417 cache_file=config.cache ;;
1419 -datadir | --datadir | --datadi | --datad)
1421 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1422 datadir=$ac_optarg ;;
1424 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1425 | --dataroo | --dataro | --datar)
1426 ac_prev=datarootdir ;;
1427 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1428 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1429 datarootdir=$ac_optarg ;;
1431 -disable-* | --disable-*)
1432 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1433 # Reject names that are not valid shell variable names.
1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1436 { (exit 1); exit 1; }; }
1437 ac_useropt_orig=$ac_useropt
1438 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1441 "enable_$ac_useropt"
1443 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1444 ac_unrecognized_sep=', ';;
1446 eval enable_$ac_useropt=no ;;
1448 -docdir | --docdir | --docdi | --doc | --do)
1450 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1451 docdir=$ac_optarg ;;
1453 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1455 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1456 dvidir=$ac_optarg ;;
1458 -enable-* | --enable-*)
1459 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1463 { (exit 1); exit 1; }; }
1464 ac_useropt_orig=$ac_useropt
1465 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466 case $ac_user_opts in
1468 "enable_$ac_useropt"
1470 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1471 ac_unrecognized_sep=', ';;
1473 eval enable_$ac_useropt=\$ac_optarg ;;
1475 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1476 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1477 | --exec | --exe | --ex)
1478 ac_prev=exec_prefix ;;
1479 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1480 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1481 | --exec=* | --exe=* | --ex=*)
1482 exec_prefix=$ac_optarg ;;
1484 -gas | --gas | --ga | --g)
1485 # Obsolete; use --with-gas.
1488 -help | --help | --hel | --he | -h)
1489 ac_init_help=long ;;
1490 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1491 ac_init_help=recursive ;;
1492 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1493 ac_init_help=short ;;
1495 -host | --host | --hos | --ho)
1496 ac_prev=host_alias ;;
1497 -host=* | --host=* | --hos=* | --ho=*)
1498 host_alias=$ac_optarg ;;
1500 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1502 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1504 htmldir=$ac_optarg ;;
1506 -includedir | --includedir | --includedi | --included | --include \
1507 | --includ | --inclu | --incl | --inc)
1508 ac_prev=includedir ;;
1509 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1510 | --includ=* | --inclu=* | --incl=* | --inc=*)
1511 includedir=$ac_optarg ;;
1513 -infodir | --infodir | --infodi | --infod | --info | --inf)
1515 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1516 infodir=$ac_optarg ;;
1518 -libdir | --libdir | --libdi | --libd)
1520 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1521 libdir=$ac_optarg ;;
1523 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1524 | --libexe | --libex | --libe)
1525 ac_prev=libexecdir ;;
1526 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1527 | --libexe=* | --libex=* | --libe=*)
1528 libexecdir=$ac_optarg ;;
1530 -localedir | --localedir | --localedi | --localed | --locale)
1531 ac_prev=localedir ;;
1532 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1533 localedir=$ac_optarg ;;
1535 -localstatedir | --localstatedir | --localstatedi | --localstated \
1536 | --localstate | --localstat | --localsta | --localst | --locals)
1537 ac_prev=localstatedir ;;
1538 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1539 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1540 localstatedir=$ac_optarg ;;
1542 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1544 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1545 mandir=$ac_optarg ;;
1547 -nfp | --nfp | --nf)
1548 # Obsolete; use --without-fp.
1551 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1552 | --no-cr | --no-c | -n)
1555 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1556 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1559 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1560 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1561 | --oldin | --oldi | --old | --ol | --o)
1562 ac_prev=oldincludedir ;;
1563 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1564 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1565 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1566 oldincludedir=$ac_optarg ;;
1568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1571 prefix=$ac_optarg ;;
1573 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1574 | --program-pre | --program-pr | --program-p)
1575 ac_prev=program_prefix ;;
1576 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1577 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1578 program_prefix=$ac_optarg ;;
1580 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1581 | --program-suf | --program-su | --program-s)
1582 ac_prev=program_suffix ;;
1583 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1584 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1585 program_suffix=$ac_optarg ;;
1587 -program-transform-name | --program-transform-name \
1588 | --program-transform-nam | --program-transform-na \
1589 | --program-transform-n | --program-transform- \
1590 | --program-transform | --program-transfor \
1591 | --program-transfo | --program-transf \
1592 | --program-trans | --program-tran \
1593 | --progr-tra | --program-tr | --program-t)
1594 ac_prev=program_transform_name ;;
1595 -program-transform-name=* | --program-transform-name=* \
1596 | --program-transform-nam=* | --program-transform-na=* \
1597 | --program-transform-n=* | --program-transform-=* \
1598 | --program-transform=* | --program-transfor=* \
1599 | --program-transfo=* | --program-transf=* \
1600 | --program-trans=* | --program-tran=* \
1601 | --progr-tra=* | --program-tr=* | --program-t=*)
1602 program_transform_name=$ac_optarg ;;
1604 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1606 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1607 pdfdir=$ac_optarg ;;
1609 -psdir | --psdir | --psdi | --psd | --ps)
1611 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1618 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1620 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1622 sbindir=$ac_optarg ;;
1624 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1625 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1626 | --sharedst | --shareds | --shared | --share | --shar \
1628 ac_prev=sharedstatedir ;;
1629 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1630 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1631 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1633 sharedstatedir=$ac_optarg ;;
1635 -site | --site | --sit)
1637 -site=* | --site=* | --sit=*)
1640 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1642 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1643 srcdir=$ac_optarg ;;
1645 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1646 | --syscon | --sysco | --sysc | --sys | --sy)
1647 ac_prev=sysconfdir ;;
1648 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1649 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1650 sysconfdir=$ac_optarg ;;
1652 -target | --target | --targe | --targ | --tar | --ta | --t)
1653 ac_prev=target_alias ;;
1654 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1655 target_alias=$ac_optarg ;;
1657 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1660 -version | --version | --versio | --versi | --vers | -V)
1661 ac_init_version=: ;;
1664 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1665 # Reject names that are not valid shell variable names.
1666 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1667 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1668 { (exit 1); exit 1; }; }
1669 ac_useropt_orig=$ac_useropt
1670 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1671 case $ac_user_opts in
1675 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1676 ac_unrecognized_sep=', ';;
1678 eval with_$ac_useropt=\$ac_optarg ;;
1680 -without-* | --without-*)
1681 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1685 { (exit 1); exit 1; }; }
1686 ac_useropt_orig=$ac_useropt
1687 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1688 case $ac_user_opts in
1692 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1693 ac_unrecognized_sep=', ';;
1695 eval with_$ac_useropt=no ;;
1698 # Obsolete; use --with-x.
1701 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1702 | --x-incl | --x-inc | --x-in | --x-i)
1703 ac_prev=x_includes ;;
1704 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1705 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1706 x_includes=$ac_optarg ;;
1708 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1709 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1710 ac_prev=x_libraries ;;
1711 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1712 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1713 x_libraries=$ac_optarg ;;
1715 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1716 Try \`$0 --help' for more information." >&2
1717 { (exit 1); exit 1; }; }
1721 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1722 # Reject names that are not valid shell variable names.
1723 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1724 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1725 { (exit 1); exit 1; }; }
1726 eval $ac_envvar=\$ac_optarg
1727 export $ac_envvar ;;
1730 # FIXME: should be removed in autoconf 3.0.
1731 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1732 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1733 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1734 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1740 if test -n "$ac_prev"; then
1741 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1742 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1743 { (exit 1); exit 1; }; }
1746 if test -n "$ac_unrecognized_opts"; then
1747 case $enable_option_checking in
1749 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1750 { (exit 1); exit 1; }; } ;;
1751 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1755 # Check all directory arguments for consistency.
1756 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1757 datadir sysconfdir sharedstatedir localstatedir includedir \
1758 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1759 libdir localedir mandir
1761 eval ac_val=\$$ac_var
1762 # Remove trailing slashes.
1765 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1766 eval $ac_var=\$ac_val;;
1768 # Be sure to have absolute directory names.
1770 [\\/$]* | ?:[\\/]* ) continue;;
1771 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1773 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1774 { (exit 1); exit 1; }; }
1777 # There might be people who depend on the old broken behavior: `$host'
1778 # used to hold the argument of --host etc.
1779 # FIXME: To remove some day.
1782 target=$target_alias
1784 # FIXME: To remove some day.
1785 if test "x$host_alias" != x; then
1786 if test "x$build_alias" = x; then
1787 cross_compiling=maybe
1788 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1789 If a cross compiler is detected then cross compile mode will be used." >&2
1790 elif test "x$build_alias" != "x$host_alias"; then
1796 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1798 test "$silent" = yes && exec 6>/dev/null
1801 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1802 ac_ls_di=`ls -di .` &&
1803 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1804 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1805 { (exit 1); exit 1; }; }
1806 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1807 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1808 { (exit 1); exit 1; }; }
1811 # Find the source files, if location was not specified.
1812 if test -z "$srcdir"; then
1813 ac_srcdir_defaulted=yes
1814 # Try the directory containing this script, then the parent directory.
1815 ac_confdir=`$as_dirname -- "$as_myself" ||
1816 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1817 X"$as_myself" : 'X\(//\)[^/]' \| \
1818 X"$as_myself" : 'X\(//\)$' \| \
1819 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1820 $as_echo X"$as_myself" |
1821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1839 if test ! -r "$srcdir/$ac_unique_file"; then
1843 ac_srcdir_defaulted=no
1845 if test ! -r "$srcdir/$ac_unique_file"; then
1846 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1847 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1848 { (exit 1); exit 1; }; }
1850 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1852 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1853 { (exit 1); exit 1; }; }
1855 # When building in place, set srcdir=.
1856 if test "$ac_abs_confdir" = "$ac_pwd"; then
1859 # Remove unnecessary trailing slashes from srcdir.
1860 # Double slashes in file names in object file debugging info
1861 # mess up M-x gdb in Emacs.
1863 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1865 for ac_var in $ac_precious_vars; do
1866 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1867 eval ac_env_${ac_var}_value=\$${ac_var}
1868 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1869 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1873 # Report the --help message.
1875 if test "$ac_init_help" = "long"; then
1876 # Omit some internal or obsolete options to make the list less imposing.
1877 # This message is too long to be a string in the A/UX 3.1 sh.
1879 \`configure' configures GNU tar 1.23 to adapt to many kinds of systems.
1881 Usage: $0 [OPTION]... [VAR=VALUE]...
1883 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1884 VAR=VALUE. See below for descriptions of some of the useful variables.
1886 Defaults for the options are specified in brackets.
1889 -h, --help display this help and exit
1890 --help=short display options specific to this package
1891 --help=recursive display the short help of all the included packages
1892 -V, --version display version information and exit
1893 -q, --quiet, --silent do not print \`checking...' messages
1894 --cache-file=FILE cache test results in FILE [disabled]
1895 -C, --config-cache alias for \`--cache-file=config.cache'
1896 -n, --no-create do not create output files
1897 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1899 Installation directories:
1900 --prefix=PREFIX install architecture-independent files in PREFIX
1901 [$ac_default_prefix]
1902 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1905 By default, \`make install' will install all the files in
1906 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1907 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1908 for instance \`--prefix=\$HOME'.
1910 For better control, use the options below.
1912 Fine tuning of the installation directories:
1913 --bindir=DIR user executables [EPREFIX/bin]
1914 --sbindir=DIR system admin executables [EPREFIX/sbin]
1915 --libexecdir=DIR program executables [EPREFIX/libexec]
1916 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1917 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1918 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1919 --libdir=DIR object code libraries [EPREFIX/lib]
1920 --includedir=DIR C header files [PREFIX/include]
1921 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1922 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1923 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1924 --infodir=DIR info documentation [DATAROOTDIR/info]
1925 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1926 --mandir=DIR man documentation [DATAROOTDIR/man]
1927 --docdir=DIR documentation root [DATAROOTDIR/doc/tar]
1928 --htmldir=DIR html documentation [DOCDIR]
1929 --dvidir=DIR dvi documentation [DOCDIR]
1930 --pdfdir=DIR pdf documentation [DOCDIR]
1931 --psdir=DIR ps documentation [DOCDIR]
1937 --program-prefix=PREFIX prepend PREFIX to installed program names
1938 --program-suffix=SUFFIX append SUFFIX to installed program names
1939 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1942 --build=BUILD configure for building on BUILD [guessed]
1943 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1947 if test -n "$ac_init_help"; then
1948 case $ac_init_help in
1949 short | recursive ) echo "Configuration of GNU tar 1.23:";;
1954 --disable-option-checking ignore unrecognized --enable/--with options
1955 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1956 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1957 --enable-silent-rules less verbose build output (undo: `make V=1')
1958 --disable-silent-rules verbose build output (undo: `make V=0')
1959 --disable-dependency-tracking speeds up one-time build
1960 --enable-dependency-tracking do not reject slow dependency extractors
1961 --disable-largefile omit support for large files
1962 --disable-rpath do not hardcode runtime library paths
1963 --disable-nls do not use Native Language Support
1964 --enable-backup-scripts Create and install backup and restore scripts
1967 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1968 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1969 --without-included-regex
1970 don't compile regex; this is the default on systems
1971 with recent-enough versions of the GNU C Library
1972 (use with caution on other systems).
1973 --with-packager String identifying the packager of this software
1974 --with-packager-version Packager-specific version information
1975 --with-packager-bug-reports
1976 Packager info for bug reports (URL/e-mail/...)
1977 --with-rmt=FILE Use FILE as the default `rmt' program. Do not build
1978 included copy of `rmt'.
1979 --with-compress=PROG use PROG as compress compressor program
1980 --with-gzip=PROG use PROG as gzip compressor program
1981 --with-bzip2=PROG use PROG as bzip2 compressor program
1982 --with-lzip=PROG use PROG as lzip compressor program
1983 --with-lzma=PROG use PROG as lzma compressor program
1984 --with-lzop=PROG use PROG as lzop compressor program
1985 --with-xz=PROG use PROG as xz compressor program
1986 --with-gnu-ld assume the C compiler uses GNU ld default=no
1987 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1988 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1989 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1990 --without-libintl-prefix don't search for libintl in includedir and libdir
1992 Some influential environment variables:
1993 CC C compiler command
1994 CFLAGS C compiler flags
1995 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1996 nonstandard directory <lib dir>
1997 LIBS libraries to pass to the linker, e.g. -l<library>
1998 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1999 you have headers in a nonstandard directory <include dir>
2000 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2001 the first program found out of: `bison -y', `byacc', `yacc'.
2002 YFLAGS The list of arguments that will be passed by default to $YACC.
2003 This script will default YFLAGS to the empty string to avoid a
2004 default value of `-d' given by some make applications.
2007 Define full file name of the directory where to install `rmt'.
2008 (default: $(libexecdir))
2009 DEFAULT_ARCHIVE_FORMAT
2010 Set the default archive format. Allowed values are: V7, OLDGNU,
2011 USTAR, POSIX, GNU. Default is GNU
2013 Set the name of the default archive (default: -)
2015 Define default blocking factor (default: 20)
2016 DEFAULT_QUOTING_STYLE
2017 Set the default quoting style. Allowed values are: literal,
2018 shell, shell-always, c, escape, locale, clocale . Default is
2021 Use these variables to override the choices made by `configure' or to help
2022 it to find libraries and programs with nonstandard names/locations.
2024 Report bugs to <bug-tar@gnu.org>.
2029 if test "$ac_init_help" = "recursive"; then
2030 # If there are subdirs, report their specific --help.
2031 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2032 test -d "$ac_dir" ||
2033 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2038 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2041 # A ".." for each directory in $ac_dir_suffix.
2042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2043 case $ac_top_builddir_sub in
2044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2048 ac_abs_top_builddir=$ac_pwd
2049 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2050 # for backward compatibility:
2051 ac_top_builddir=$ac_top_build_prefix
2054 .) # We are building in place.
2056 ac_top_srcdir=$ac_top_builddir_sub
2057 ac_abs_top_srcdir=$ac_pwd ;;
2058 [\\/]* | ?:[\\/]* ) # Absolute name.
2059 ac_srcdir=$srcdir$ac_dir_suffix;
2060 ac_top_srcdir=$srcdir
2061 ac_abs_top_srcdir=$srcdir ;;
2063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2064 ac_top_srcdir=$ac_top_build_prefix$srcdir
2065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2067 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2069 cd "$ac_dir" || { ac_status=$?; continue; }
2070 # Check for guested configure.
2071 if test -f "$ac_srcdir/configure.gnu"; then
2073 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2074 elif test -f "$ac_srcdir/configure"; then
2076 $SHELL "$ac_srcdir/configure" --help=recursive
2078 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2080 cd "$ac_pwd" || { ac_status=$?; break; }
2084 test -n "$ac_init_help" && exit $ac_status
2085 if $ac_init_version; then
2087 GNU tar configure 1.23
2088 generated by GNU Autoconf 2.63
2090 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2091 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2092 This configure script is free software; the Free Software Foundation
2093 gives unlimited permission to copy, distribute and modify it.
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2101 It was created by GNU tar $as_me 1.23, which was
2102 generated by GNU Autoconf 2.63. Invocation command line was
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 $as_echo "PATH: $as_dir"
2154 # Keep a trace of the command line.
2155 # Strip out --no-create and --no-recursion so they do not pile up.
2156 # Strip out --silent because we don't want to record it for future runs.
2157 # Also quote any args containing shell meta-characters.
2158 # Make two passes to allow for proper duplicate-argument suppression.
2162 ac_must_keep_next=false
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2178 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2179 if test $ac_must_keep_next = true; then
2180 ac_must_keep_next=false # Got value, back to normal.
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 -* ) ac_must_keep_next=true ;;
2194 ac_configure_args="$ac_configure_args '$ac_arg'"
2199 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2200 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2202 # When interrupted or exit'd, cleanup temporary files, and complete
2203 # config.log. We remove comments because anyway the quotes in there
2204 # would cause problems or look ugly.
2205 # WARNING: Use '\'' to represent an apostrophe within the trap.
2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207 trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
2213 ## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##
2218 # The following way of writing the cache mishandles newlines in values,
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2225 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) $as_unset $ac_var ;;
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 ## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##
2256 for ac_var in $ac_subst_vars
2258 eval ac_val=\$$ac_var
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 $as_echo "$ac_var='\''$ac_val'\''"
2266 if test -n "$ac_subst_files"; then
2268 ## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##
2273 for ac_var in $ac_subst_files
2275 eval ac_val=\$$ac_var
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 $as_echo "$ac_var='\''$ac_val'\''"
2284 if test -s confdefs.h; then
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 # Predefined preprocessor variables.
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2337 # Let the site file select an alternate cache file if it wants to.
2338 # Prefer an explicitly selected file to automatically selected ones.
2341 if test -n "$CONFIG_SITE"; then
2342 ac_site_file1=$CONFIG_SITE
2343 elif test "x$prefix" != xNONE; then
2344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
2347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 test "x$ac_site_file" = xNONE && continue
2353 if test -r "$ac_site_file"; then
2354 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356 sed 's/^/| /' "$ac_site_file" >&5
2361 if test -r "$cache_file"; then
2362 # Some versions of bash will fail to source /dev/null (special
2363 # files actually), so we avoid doing that.
2364 if test -f "$cache_file"; then
2365 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
2373 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 ac_header_list="$ac_header_list fcntl.h"
2379 ac_header_list="$ac_header_list linux/fd.h"
2380 ac_header_list="$ac_header_list memory.h"
2381 ac_header_list="$ac_header_list net/errno.h"
2382 ac_header_list="$ac_header_list sgtty.h"
2383 ac_header_list="$ac_header_list string.h"
2384 ac_header_list="$ac_header_list stropts.h"
2385 ac_header_list="$ac_header_list sys/param.h"
2386 ac_header_list="$ac_header_list sys/device.h"
2387 ac_header_list="$ac_header_list sys/filio.h"
2388 ac_header_list="$ac_header_list sys/gentape.h"
2389 ac_header_list="$ac_header_list sys/inet.h"
2390 ac_header_list="$ac_header_list sys/io/trioctl.h"
2391 ac_header_list="$ac_header_list sys/mtio.h"
2392 ac_header_list="$ac_header_list sys/time.h"
2393 ac_header_list="$ac_header_list sys/tprintf.h"
2394 ac_header_list="$ac_header_list sys/tape.h"
2395 ac_header_list="$ac_header_list unistd.h"
2396 ac_header_list="$ac_header_list locale.h"
2397 ac_func_list="$ac_func_list flockfile"
2398 ac_func_list="$ac_func_list funlockfile"
2399 ac_header_list="$ac_header_list features.h"
2400 ac_header_list="$ac_header_list linewrap.h"
2401 ac_func_list="$ac_func_list pathconf"
2402 ac_func_list="$ac_func_list btowc"
2403 ac_func_list="$ac_func_list canonicalize_file_name"
2404 ac_func_list="$ac_func_list realpath"
2405 ac_func_list="$ac_func_list chown"
2406 ac_func_list="$ac_func_list fchown"
2407 ac_header_list="$ac_header_list dirent.h"
2408 ac_func_list="$ac_func_list fdopendir"
2409 ac_func_list="$ac_func_list dup2"
2410 ac_header_list="$ac_header_list errno.h"
2411 ac_func_list="$ac_func_list fchdir"
2412 ac_func_list="$ac_func_list fcntl"
2413 ac_header_list="$ac_header_list float.h"
2414 ac_func_list="$ac_func_list isblank"
2415 ac_func_list="$ac_func_list iswctype"
2416 ac_func_list="$ac_func_list mbsrtowcs"
2417 ac_func_list="$ac_func_list mempcpy"
2418 ac_func_list="$ac_func_list wmemchr"
2419 ac_func_list="$ac_func_list wmemcpy"
2420 ac_func_list="$ac_func_list wmempcpy"
2421 ac_header_list="$ac_header_list wctype.h"
2422 gl_fnmatch_required=GNU
2423 ac_header_list="$ac_header_list stdio_ext.h"
2424 ac_func_list="$ac_func_list __fpending"
2425 ac_func_list="$ac_func_list ftruncate"
2426 ac_func_list="$ac_func_list getdelim"
2427 ac_func_list="$ac_func_list getdtablesize"
2428 gl_getopt_required=GNU
2429 ac_header_list="$ac_header_list getopt.h"
2430 ac_func_list="$ac_func_list gettimeofday"
2431 ac_func_list="$ac_func_list nanotime"
2432 ac_header_list="$ac_header_list stdint.h"
2433 ac_header_list="$ac_header_list wchar.h"
2434 ac_header_list="$ac_header_list inttypes.h"
2435 ac_header_list="$ac_header_list langinfo.h"
2436 ac_func_list="$ac_func_list lchmod"
2437 ac_func_list="$ac_func_list lstat"
2438 ac_func_list="$ac_func_list mbsinit"
2439 ac_func_list="$ac_func_list mbrtowc"
2440 ac_header_list="$ac_header_list sys/mman.h"
2441 ac_func_list="$ac_func_list mprotect"
2442 ac_func_list="$ac_func_list alarm"
2443 ac_func_list="$ac_func_list nl_langinfo"
2444 ac_func_list="$ac_func_list readlink"
2445 ac_func_list="$ac_func_list wcscoll"
2446 ac_func_list="$ac_func_list setenv"
2447 ac_func_list="$ac_func_list sleep"
2448 ac_header_list="$ac_header_list stdarg.h"
2449 ac_header_list="$ac_header_list stddef.h"
2450 ac_header_list="$ac_header_list stdio.h"
2451 ac_header_list="$ac_header_list stdlib.h"
2452 ac_header_list="$ac_header_list sys/socket.h"
2453 ac_header_list="$ac_header_list strings.h"
2454 ac_func_list="$ac_func_list strndup"
2455 ac_header_list="$ac_header_list sys/stat.h"
2456 ac_header_list="$ac_header_list sysexits.h"
2457 ac_header_list="$ac_header_list time.h"
2458 ac_func_list="$ac_func_list pipe"
2459 ac_header_list="$ac_header_list priv.h"
2460 ac_header_list="$ac_header_list utime.h"
2461 ac_func_list="$ac_func_list futimes"
2462 ac_func_list="$ac_func_list futimesat"
2463 ac_func_list="$ac_func_list futimens"
2464 ac_func_list="$ac_func_list utimensat"
2465 ac_func_list="$ac_func_list lutimes"
2466 ac_func_list="$ac_func_list vasnprintf"
2467 ac_func_list="$ac_func_list wcrtomb"
2468 ac_func_list="$ac_func_list iswcntrl"
2469 ac_func_list="$ac_func_list wcwidth"
2470 ac_header_list="$ac_header_list netdb.h"
2471 ac_header_list="$ac_header_list sys/wait.h"
2472 ac_header_list="$ac_header_list pwd.h"
2473 ac_header_list="$ac_header_list grp.h"
2474 ac_func_list="$ac_func_list mkfifo"
2475 ac_func_list="$ac_func_list setlocale"
2476 gt_needs="$gt_needs need-formatstring-macros"
2477 # Check that the precious variables saved in the cache have kept the same
2479 ac_cache_corrupted=false
2480 for ac_var in $ac_precious_vars; do
2481 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2482 eval ac_new_set=\$ac_env_${ac_var}_set
2483 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2484 eval ac_new_val=\$ac_env_${ac_var}_value
2485 case $ac_old_set,$ac_new_set in
2487 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2491 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2492 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2493 ac_cache_corrupted=: ;;
2496 if test "x$ac_old_val" != "x$ac_new_val"; then
2497 # differences in whitespace do not lead to failure.
2498 ac_old_val_w=`echo x $ac_old_val`
2499 ac_new_val_w=`echo x $ac_new_val`
2500 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2501 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2502 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2503 ac_cache_corrupted=:
2505 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2506 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2507 eval $ac_var=\$ac_old_val
2509 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2510 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2511 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2512 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2515 # Pass precious variables to config.status.
2516 if test "$ac_new_set" = set; then
2518 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2519 *) ac_arg=$ac_var=$ac_new_val ;;
2521 case " $ac_configure_args " in
2522 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2523 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2527 if $ac_cache_corrupted; then
2528 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2531 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2532 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2533 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2534 { (exit 1); exit 1; }; }
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 for ac_dir in build-aux "$srcdir"/build-aux; do
2571 if test -f "$ac_dir/install-sh"; then
2573 ac_install_sh="$ac_aux_dir/install-sh -c"
2575 elif test -f "$ac_dir/install.sh"; then
2577 ac_install_sh="$ac_aux_dir/install.sh -c"
2579 elif test -f "$ac_dir/shtool"; then
2581 ac_install_sh="$ac_aux_dir/shtool install -c"
2585 if test -z "$ac_aux_dir"; then
2586 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2587 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2588 { (exit 1); exit 1; }; }
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2596 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2597 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2600 ac_config_headers="$ac_config_headers config.h"
2603 am__api_version='1.11'
2605 # Find a good install program. We prefer a C program (faster),
2606 # so one script is as good as another. But avoid the broken or
2607 # incompatible versions:
2608 # SysV /etc/install, /usr/sbin/install
2609 # SunOS /usr/etc/install
2610 # IRIX /sbin/install
2612 # AmigaOS /C/install, which installs bootblocks on floppy discs
2613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2616 # OS/2's system install, which has a completely different semantic
2617 # ./install, which can be erroneously created by make from ./install.sh.
2618 # Reject install programs that cannot install multiple files.
2619 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2620 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2621 if test -z "$INSTALL"; then
2622 if test "${ac_cv_path_install+set}" = set; then
2623 $as_echo_n "(cached) " >&6
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 # Account for people who put trailing slashes in PATH elements.
2632 ./ | .// | /cC/* | \
2633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2634 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2637 # OSF1 and SCO ODT 3.0 have their own names for install.
2638 # Don't use installbsd from OSF since it installs stuff as root
2640 for ac_prog in ginstall scoinst install; do
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2643 if test $ac_prog = install &&
2644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645 # AIX install. It has an incompatible calling convention.
2647 elif test $ac_prog = install &&
2648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2649 # program-specific install script used by HP pwplus--don't use.
2652 rm -rf conftest.one conftest.two conftest.dir
2653 echo one > conftest.one
2654 echo two > conftest.two
2656 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2657 test -s conftest.one && test -s conftest.two &&
2658 test -s conftest.dir/conftest.one &&
2659 test -s conftest.dir/conftest.two
2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2674 rm -rf conftest.one conftest.two conftest.dir
2677 if test "${ac_cv_path_install+set}" = set; then
2678 INSTALL=$ac_cv_path_install
2680 # As a last resort, use the slow shell script. Don't cache a
2681 # value for INSTALL within a source directory, because that will
2682 # break other packages using the cache if that directory is
2683 # removed, or if the value is a relative name.
2684 INSTALL=$ac_install_sh
2687 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2688 $as_echo "$INSTALL" >&6; }
2690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2691 # It thinks the first close brace ends the variable substitution.
2692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2698 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2699 $as_echo_n "checking whether build environment is sane... " >&6; }
2702 echo timestamp > conftest.file
2703 # Reject unsafe characters in $srcdir or the absolute working directory
2704 # name. Accept space and tab only in the latter.
2708 *[\\\"\#\$\&\'\`$am_lf]*)
2709 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2710 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2711 { (exit 1); exit 1; }; };;
2714 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2715 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2716 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2717 { (exit 1); exit 1; }; };;
2720 # Do `set' in a subshell so we don't clobber the current shell's
2721 # arguments. Must try -L first in case configure is actually a
2722 # symlink; some systems play weird games with the mod time of symlinks
2723 # (eg FreeBSD returns the mod time of the symlink's containing
2726 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2727 if test "$*" = "X"; then
2729 set X `ls -t "$srcdir/configure" conftest.file`
2732 if test "$*" != "X $srcdir/configure conftest.file" \
2733 && test "$*" != "X conftest.file $srcdir/configure"; then
2735 # If neither matched, then we have a broken ls. This can happen
2736 # if, for instance, CONFIG_SHELL is bash and it inherits a
2737 # broken ls alias from the environment. This has actually
2738 # happened. Such a system could not be considered "sane".
2739 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2740 alias in your environment" >&5
2741 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2742 alias in your environment" >&2;}
2743 { (exit 1); exit 1; }; }
2746 test "$2" = conftest.file
2752 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2753 Check your system clock" >&5
2754 $as_echo "$as_me: error: newly created file is older than distributed files!
2755 Check your system clock" >&2;}
2756 { (exit 1); exit 1; }; }
2758 { $as_echo "$as_me:$LINENO: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760 test "$program_prefix" != NONE &&
2761 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2762 # Use a double $ so make ignores it.
2763 test "$program_suffix" != NONE &&
2764 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2765 # Double any \ or $.
2766 # By default was `s,x,x', remove it if useless.
2767 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2768 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2770 # expand $ac_aux_dir to an absolute path
2771 am_aux_dir=`cd $ac_aux_dir && pwd`
2773 if test x"${MISSING+set}" != xset; then
2776 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2778 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2781 # Use eval to expand $SHELL
2782 if eval "$MISSING --run true"; then
2783 am_missing_run="$MISSING --run "
2786 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2787 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2790 if test x"${install_sh}" != xset; then
2793 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2795 install_sh="\${SHELL} $am_aux_dir/install-sh"
2799 # Installed binaries are usually stripped using `strip' when the user
2800 # run `make install-strip'. However `strip' might not be the right
2801 # tool to use in cross-compilation environments, therefore Automake
2802 # will honor the `STRIP' environment variable to overrule this program.
2803 if test "$cross_compiling" != no; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}strip; ac_word=$2
2807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_STRIP+set}" = set; then
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$STRIP"; then
2813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 STRIP=$ac_cv_prog_STRIP
2833 if test -n "$STRIP"; then
2834 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2835 $as_echo "$STRIP" >&6; }
2837 { $as_echo "$as_me:$LINENO: result: no" >&5
2838 $as_echo "no" >&6; }
2843 if test -z "$ac_cv_prog_STRIP"; then
2845 # Extract the first word of "strip", so it can be a program name with args.
2846 set dummy strip; ac_word=$2
2847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$ac_ct_STRIP"; then
2853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_ac_ct_STRIP="strip"
2863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2873 if test -n "$ac_ct_STRIP"; then
2874 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2875 $as_echo "$ac_ct_STRIP" >&6; }
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2881 if test "x$ac_ct_STRIP" = x; then
2884 case $cross_compiling:$ac_tool_warned in
2886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888 ac_tool_warned=yes ;;
2893 STRIP="$ac_cv_prog_STRIP"
2897 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2899 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2900 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2901 if test -z "$MKDIR_P"; then
2902 if test "${ac_cv_path_mkdir+set}" = set; then
2903 $as_echo_n "(cached) " >&6
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2909 test -z "$as_dir" && as_dir=.
2910 for ac_prog in mkdir gmkdir; do
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2913 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2914 'mkdir (GNU coreutils) '* | \
2915 'mkdir (coreutils) '* | \
2916 'mkdir (fileutils) '4.1*)
2917 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2927 if test "${ac_cv_path_mkdir+set}" = set; then
2928 MKDIR_P="$ac_cv_path_mkdir -p"
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for MKDIR_P within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 test -d ./--version && rmdir ./--version
2935 MKDIR_P="$ac_install_sh -d"
2938 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2939 $as_echo "$MKDIR_P" >&6; }
2944 [\\/$]* | ?:[\\/]*) ;;
2945 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2948 for ac_prog in gawk mawk nawk awk
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_AWK+set}" = set; then
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$AWK"; then
2958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_AWK="$ac_prog"
2968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$AWK"; then
2979 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2980 $as_echo "$AWK" >&6; }
2982 { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2987 test -n "$AWK" && break
2990 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2991 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2993 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2994 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2995 $as_echo_n "(cached) " >&6
2997 cat >conftest.make <<\_ACEOF
3000 @echo '@@@%%%=$(MAKE)=@@@%%%'
3002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3005 eval ac_cv_prog_make_${ac_make}_set=yes;;
3007 eval ac_cv_prog_make_${ac_make}_set=no;;
3011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3012 { $as_echo "$as_me:$LINENO: result: yes" >&5
3013 $as_echo "yes" >&6; }
3016 { $as_echo "$as_me:$LINENO: result: no" >&5
3017 $as_echo "no" >&6; }
3018 SET_MAKE="MAKE=${MAKE-make}"
3021 rm -rf .tst 2>/dev/null
3022 mkdir .tst 2>/dev/null
3023 if test -d .tst; then
3028 rmdir .tst 2>/dev/null
3030 # Check whether --enable-silent-rules was given.
3031 if test "${enable_silent_rules+set}" = set; then
3032 enableval=$enable_silent_rules;
3035 case $enable_silent_rules in
3036 yes) AM_DEFAULT_VERBOSITY=0;;
3037 no) AM_DEFAULT_VERBOSITY=1;;
3038 *) AM_DEFAULT_VERBOSITY=1;;
3042 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3043 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3044 # is not polluted with repeated "-I."
3045 am__isrc=' -I$(srcdir)'
3046 # test to see if srcdir already configured
3047 if test -f $srcdir/config.status; then
3048 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3049 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3050 { (exit 1); exit 1; }; }
3054 # test whether we have cygpath
3055 if test -z "$CYGPATH_W"; then
3056 if (cygpath --version) >/dev/null 2>/dev/null; then
3057 CYGPATH_W='cygpath -w'
3064 # Define the identity of the package.
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE "$PACKAGE"
3074 cat >>confdefs.h <<_ACEOF
3075 #define VERSION "$VERSION"
3078 # Some tools Automake needs.
3080 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3083 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3086 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3092 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3094 # We need awk for the "check" target. The system "awk" is bad on
3096 # Always define AMTAR for backward compatibility.
3098 AMTAR=${AMTAR-"${am_missing_run}tar"}
3101 { $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
3102 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3103 # Loop over all known methods to create a tar archive until one works.
3104 _am_tools='gnutar plaintar pax cpio none'
3105 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3106 # Do not fold the above two line into one, because Tru64 sh and
3107 # Solaris sh will not grok spaces in the rhs of `-'.
3108 for _am_tool in $_am_tools
3112 for _am_tar in tar gnutar gtar;
3114 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3115 ($_am_tar --version) >&5 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } && break
3120 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3121 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3122 am__untar="$_am_tar -xf -"
3125 # Must skip GNU tar: if it does not support --format= it doesn't create
3126 # ustar tarball either.
3127 (tar --version) >/dev/null 2>&1 && continue
3128 am__tar='tar chf - "$$tardir"'
3129 am__tar_='tar chf - "$tardir"'
3130 am__untar='tar xf -'
3133 am__tar='pax -L -x ustar -w "$$tardir"'
3134 am__tar_='pax -L -x ustar -w "$tardir"'
3138 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3139 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3140 am__untar='cpio -i -H ustar -d'
3149 # If the value was cached, stop now. We just wanted to have am__tar
3150 # and am__untar set.
3151 test -n "${am_cv_prog_tar_ustar}" && break
3153 # tar/untar a dummy directory, and stop if the command works
3156 echo GrepMe > conftest.dir/file
3157 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3158 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }
3163 if test -s conftest.tar; then
3164 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3165 ($am__untar <conftest.tar) >&5 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }
3169 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3174 if test "${am_cv_prog_tar_ustar+set}" = set; then
3175 $as_echo_n "(cached) " >&6
3177 am_cv_prog_tar_ustar=$_am_tool
3180 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
3181 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3188 # Enable silent rules by default:
3189 # Check whether --enable-silent-rules was given.
3190 if test "${enable_silent_rules+set}" = set; then
3191 enableval=$enable_silent_rules;
3194 case $enable_silent_rules in
3195 yes) AM_DEFAULT_VERBOSITY=0;;
3196 no) AM_DEFAULT_VERBOSITY=1;;
3197 *) AM_DEFAULT_VERBOSITY=0;;
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 if test -n "$ac_tool_prefix"; then
3208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if test "${ac_cv_prog_CC+set}" = set; then
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 if test -n "$CC"; then
3237 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3238 $as_echo "$CC" >&6; }
3240 { $as_echo "$as_me:$LINENO: result: no" >&5
3241 $as_echo "no" >&6; }
3246 if test -z "$ac_cv_prog_CC"; then
3248 # Extract the first word of "gcc", so it can be a program name with args.
3249 set dummy gcc; ac_word=$2
3250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3253 $as_echo_n "(cached) " >&6
3255 if test -n "$ac_ct_CC"; then
3256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265 ac_cv_prog_ac_ct_CC="gcc"
3266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276 if test -n "$ac_ct_CC"; then
3277 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3278 $as_echo "$ac_ct_CC" >&6; }
3280 { $as_echo "$as_me:$LINENO: result: no" >&5
3281 $as_echo "no" >&6; }
3284 if test "x$ac_ct_CC" = x; then
3287 case $cross_compiling:$ac_tool_warned in
3289 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3291 ac_tool_warned=yes ;;
3299 if test -z "$CC"; then
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}cc; ac_word=$2
3303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then
3306 $as_echo_n "(cached) " >&6
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC="${ac_tool_prefix}cc"
3319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3333 { $as_echo "$as_me:$LINENO: result: no" >&5
3334 $as_echo "no" >&6; }
3340 if test -z "$CC"; then
3341 # Extract the first word of "cc", so it can be a program name with args.
3342 set dummy cc; ac_word=$2
3343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346 $as_echo_n "(cached) " >&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3360 ac_prog_rejected=yes
3364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 if test $ac_prog_rejected = yes; then
3372 # We found a bogon in the path, so make sure we never use it.
3373 set dummy $ac_cv_prog_CC
3375 if test $# != 0; then
3376 # We chose a different compiler from the bogus one.
3377 # However, it has the same basename, so the bogon will be chosen
3378 # first if we set CC to just the basename; use the full file name.
3380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3390 { $as_echo "$as_me:$LINENO: result: no" >&5
3391 $as_echo "no" >&6; }
3396 if test -z "$CC"; then
3397 if test -n "$ac_tool_prefix"; then
3398 for ac_prog in cl.exe
3400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if test "${ac_cv_prog_CC+set}" = set; then
3405 $as_echo_n "(cached) " >&6
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test -n "$CC"; then
3429 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3432 { $as_echo "$as_me:$LINENO: result: no" >&5
3433 $as_echo "no" >&6; }
3437 test -n "$CC" && break
3440 if test -z "$CC"; then
3442 for ac_prog in cl.exe
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3449 $as_echo_n "(cached) " >&6
3451 if test -n "$ac_ct_CC"; then
3452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_ac_ct_CC="$ac_prog"
3462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 $as_echo "$ac_ct_CC" >&6; }
3476 { $as_echo "$as_me:$LINENO: result: no" >&5
3477 $as_echo "no" >&6; }
3481 test -n "$ac_ct_CC" && break
3484 if test "x$ac_ct_CC" = x; then
3487 case $cross_compiling:$ac_tool_warned in
3489 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3500 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3503 See \`config.log' for more details." >&5
3504 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3505 See \`config.log' for more details." >&2;}
3506 { (exit 1); exit 1; }; }; }
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3512 { (ac_try="$ac_compiler --version >&5"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3518 $as_echo "$ac_try_echo") >&5
3519 (eval "$ac_compiler --version >&5") 2>&5
3521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3523 { (ac_try="$ac_compiler -v >&5"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529 $as_echo "$ac_try_echo") >&5
3530 (eval "$ac_compiler -v >&5") 2>&5
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }
3534 { (ac_try="$ac_compiler -V >&5"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541 (eval "$ac_compiler -V >&5") 2>&5
3543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3561 ac_clean_files_save=$ac_clean_files
3562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3563 # Try to create an executable without -o first, disregard a.out.
3564 # It will help us diagnose broken compilers, and finding out an intuition
3566 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3570 # The possible output files:
3571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3574 for ac_file in $ac_files
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3583 if { (ac_try="$ac_link_default"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3589 $as_echo "$ac_try_echo") >&5
3590 (eval "$ac_link_default") 2>&5
3592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; then
3594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3597 # so that the user can short-circuit this test for compilers unknown to
3599 for ac_file in $ac_files ''
3601 test -f "$ac_file" || continue
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3606 # We found the default executable, but exeext='' is most
3610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 # We set ac_cv_exeext here because the later test for it is not
3615 # safe: cross compilers may not add the suffix if given an `-o'
3616 # argument, so we may need to know it at that point already.
3617 # Even if this section looks crufty: it has the advantage of
3624 test "$ac_cv_exeext" = no && ac_cv_exeext=
3630 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3631 $as_echo "$ac_file" >&6; }
3632 if test -z "$ac_file"; then
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3639 See \`config.log' for more details." >&5
3640 $as_echo "$as_me: error: C compiler cannot create executables
3641 See \`config.log' for more details." >&2;}
3642 { (exit 77); exit 77; }; }; }
3645 ac_exeext=$ac_cv_exeext
3647 # Check that the compiler produces executables we can run. If not, either
3648 # the compiler is broken, or we cross compile.
3649 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3652 # If not cross compiling, check that we can run a simple program.
3653 if test "$cross_compiling" != yes; then
3654 if { ac_try='./$ac_file'
3655 { (case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661 (eval "$ac_try") 2>&5
3663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3667 if test "$cross_compiling" = maybe; then
3670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3673 If you meant to cross compile, use \`--host'.
3674 See \`config.log' for more details." >&5
3675 $as_echo "$as_me: error: cannot run C compiled programs.
3676 If you meant to cross compile, use \`--host'.
3677 See \`config.log' for more details." >&2;}
3678 { (exit 1); exit 1; }; }; }
3682 { $as_echo "$as_me:$LINENO: result: yes" >&5
3683 $as_echo "yes" >&6; }
3685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3690 $as_echo_n "checking whether we are cross compiling... " >&6; }
3691 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3692 $as_echo "$cross_compiling" >&6; }
3694 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { (ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_link") 2>&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; then
3707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3711 for ac_file in conftest.exe conftest conftest.*; do
3712 test -f "$ac_file" || continue
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details." >&5
3725 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3726 See \`config.log' for more details." >&2;}
3727 { (exit 1); exit 1; }; }; }
3730 rm -f conftest$ac_cv_exeext
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3732 $as_echo "$ac_cv_exeext" >&6; }
3734 rm -f conftest.$ac_ext
3735 EXEEXT=$ac_cv_exeext
3737 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3738 $as_echo_n "checking for suffix of object files... " >&6; }
3739 if test "${ac_cv_objext+set}" = set; then
3740 $as_echo_n "(cached) " >&6
3742 cat >conftest.$ac_ext <<_ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3757 rm -f conftest.o conftest.obj
3758 if { (ac_try="$ac_compile"
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3764 $as_echo "$ac_try_echo") >&5
3765 (eval "$ac_compile") 2>&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; then
3769 for ac_file in conftest.o conftest.obj conftest.*; do
3770 test -f "$ac_file" || continue;
3772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3773 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778 $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3784 See \`config.log' for more details." >&5
3785 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3786 See \`config.log' for more details." >&2;}
3787 { (exit 1); exit 1; }; }; }
3790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3792 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3793 $as_echo "$ac_cv_objext" >&6; }
3794 OBJEXT=$ac_cv_objext
3796 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3799 $as_echo_n "(cached) " >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3826 $as_echo "$ac_try_echo") >&5
3827 (eval "$ac_compile") 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } && {
3834 test -z "$ac_c_werror_flag" ||
3835 test ! -s conftest.err
3836 } && test -s conftest.$ac_objext; then
3839 $as_echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3849 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3850 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3851 if test $ac_compiler_gnu = yes; then
3856 ac_test_CFLAGS=${CFLAGS+set}
3857 ac_save_CFLAGS=$CFLAGS
3858 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3859 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3860 if test "${ac_cv_prog_cc_g+set}" = set; then
3861 $as_echo_n "(cached) " >&6
3863 ac_save_c_werror_flag=$ac_c_werror_flag
3864 ac_c_werror_flag=yes
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3889 $as_echo "$ac_try_echo") >&5
3890 (eval "$ac_compile") 2>conftest.er1
3892 grep -v '^ *+' conftest.er1 >conftest.err
3894 cat conftest.err >&5
3895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && {
3897 test -z "$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 } && test -s conftest.$ac_objext; then
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3906 cat >conftest.$ac_ext <<_ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 $as_echo "$ac_try_echo") >&5
3929 (eval "$ac_compile") 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && {
3936 test -z "$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3938 } && test -s conftest.$ac_objext; then
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ac_c_werror_flag=$ac_save_c_werror_flag
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3968 $as_echo "$ac_try_echo") >&5
3969 (eval "$ac_compile") 2>conftest.er1
3971 grep -v '^ *+' conftest.er1 >conftest.err
3973 cat conftest.err >&5
3974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && {
3976 test -z "$ac_c_werror_flag" ||
3977 test ! -s conftest.err
3978 } && test -s conftest.$ac_objext; then
3981 $as_echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 ac_c_werror_flag=$ac_save_c_werror_flag
3996 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3997 $as_echo "$ac_cv_prog_cc_g" >&6; }
3998 if test "$ac_test_CFLAGS" = set; then
3999 CFLAGS=$ac_save_CFLAGS
4000 elif test $ac_cv_prog_cc_g = yes; then
4001 if test "$GCC" = yes; then
4007 if test "$GCC" = yes; then
4013 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4015 if test "${ac_cv_prog_cc_c89+set}" = set; then
4016 $as_echo_n "(cached) " >&6
4018 ac_cv_prog_cc_c89=no
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4028 #include <sys/types.h>
4029 #include <sys/stat.h>
4030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4031 struct buf { int x; };
4032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4033 static char *e (p, i)
4039 static char *f (char * (*g) (char **, int), char **p, ...)
4044 s = g (p, va_arg (v,int));
4049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4050 function prototypes and stuff, but not '\xHH' hex character constants.
4051 These don't provoke an error unfortunately, instead are silently treated
4052 as 'x'. The following induces an error, until -std is added to get
4053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4054 array size at least. It's necessary to write '\x00'==0 to get something
4055 that's true only with -std. */
4056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4059 inside strings and character constants. */
4061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4063 int test (int i, double x);
4064 struct s1 {int (*f) (int a);};
4065 struct s2 {int (*f) (double a);};
4066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4080 CC="$ac_save_CC $ac_arg"
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_cv_prog_cc_c89=$ac_arg
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4107 rm -f core conftest.err conftest.$ac_objext
4108 test "x$ac_cv_prog_cc_c89" != "xno" && break
4110 rm -f conftest.$ac_ext
4115 case "x$ac_cv_prog_cc_c89" in
4117 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4118 $as_echo "none needed" >&6; } ;;
4120 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;;
4123 CC="$CC $ac_cv_prog_cc_c89"
4124 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 DEPDIR="${am__leading_dot}deps"
4136 ac_config_commands="$ac_config_commands depfiles"
4139 am_make=${MAKE-make}
4140 cat > confinc << 'END'
4142 @echo this is the am__doit target
4145 # If we don't find an include directive, just comment out the code.
4146 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4147 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4151 # First try GNU make style include.
4152 echo "include confinc" > confmf
4153 # Ignore all kinds of additional output from `make'.
4154 case `$am_make -s -f confmf 2> /dev/null` in #(
4155 *the\ am__doit\ target*)
4161 # Now try BSD make style include.
4162 if test "$am__include" = "#"; then
4163 echo '.include "confinc"' > confmf
4164 case `$am_make -s -f confmf 2> /dev/null` in #(
4165 *the\ am__doit\ target*)
4166 am__include=.include
4174 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4175 $as_echo "$_am_result" >&6; }
4176 rm -f confinc confmf
4178 # Check whether --enable-dependency-tracking was given.
4179 if test "${enable_dependency_tracking+set}" = set; then
4180 enableval=$enable_dependency_tracking;
4183 if test "x$enable_dependency_tracking" != xno; then
4184 am_depcomp="$ac_aux_dir/depcomp"
4187 if test "x$enable_dependency_tracking" != xno; then
4197 depcc="$CC" am_compiler_list=
4199 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4200 $as_echo_n "checking dependency style of $depcc... " >&6; }
4201 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4204 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4205 # We make a subdir and do the tests there. Otherwise we can end up
4206 # making bogus files that we don't know about and never remove. For
4207 # instance it was reported that on HP-UX the gcc test will end up
4208 # making a dummy file named `D' -- because `-MD' means `put the output
4211 # Copy depcomp to subdir because otherwise we won't find it if we're
4212 # using a relative directory.
4213 cp "$am_depcomp" conftest.dir
4215 # We will build objects and dependencies in a subdirectory because
4216 # it helps to detect inapplicable dependency modes. For instance
4217 # both Tru64's cc and ICC support -MD to output dependencies as a
4218 # side effect of compilation, but ICC will put the dependencies in
4219 # the current directory while Tru64 will put them in the object
4223 am_cv_CC_dependencies_compiler_type=none
4224 if test "$am_compiler_list" = ""; then
4225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4228 case " $depcc " in #(
4229 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4232 for depmode in $am_compiler_list; do
4233 # Setup a source with many dependencies, because some compilers
4234 # like to wrap large dependency lists on column 80 (with \), and
4235 # we should not choose a depcomp mode which is confused by this.
4237 # We need to recreate these files for each test, as the compiler may
4238 # overwrite some of them when testing with obscure command lines.
4239 # This happens at least with the AIX C compiler.
4241 for i in 1 2 3 4 5 6; do
4242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4244 # Solaris 8's {/usr,}/bin/sh.
4245 touch sub/conftst$i.h
4247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4249 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4250 # mode. It turns out that the SunPro C++ compiler does not properly
4251 # handle `-M -o', and we need to detect this. Also, some Intel
4252 # versions had trouble with output in subdirs
4253 am__obj=sub/conftest.${OBJEXT-o}
4254 am__minus_obj="-o $am__obj"
4257 # This depmode causes a compiler race in universal mode.
4258 test "$am__universal" = false || continue
4261 # after this tag, mechanisms are not by side-effect, so they'll
4262 # only be used when explicitly requested
4263 if test "x$enable_dependency_tracking" = xyes; then
4269 msvisualcpp | msvcmsys)
4270 # This compiler won't grok `-c -o', but also, the minuso test has
4271 # not run yet. These depmodes are late enough in the game, and
4272 # so weak that their functioning should not be impacted.
4273 am__obj=conftest.${OBJEXT-o}
4278 if depmode=$depmode \
4279 source=sub/conftest.c object=$am__obj \
4280 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4281 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4282 >/dev/null 2>conftest.err &&
4283 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4285 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4287 # icc doesn't choke on unknown options, it will just issue warnings
4288 # or remarks (even with -Werror). So we grep stderr for any message
4289 # that says an option was ignored or not supported.
4290 # When given -MP, icc 7.0 and 7.1 complain thusly:
4291 # icc: Command line warning: ignoring option '-M'; no argument required
4292 # The diagnosis changed in icc 8.0:
4293 # icc: Command line remark: option '-MP' not supported
4294 if (grep 'ignoring option' conftest.err ||
4295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4296 am_cv_CC_dependencies_compiler_type=$depmode
4305 am_cv_CC_dependencies_compiler_type=none
4309 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4310 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4314 test "x$enable_dependency_tracking" != xno \
4315 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4317 am__fastdepCC_FALSE='#'
4319 am__fastdepCC_TRUE='#'
4320 am__fastdepCC_FALSE=
4325 if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if test "${ac_cv_prog_RANLIB+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4333 if test -n "$RANLIB"; then
4334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 RANLIB=$ac_cv_prog_RANLIB
4354 if test -n "$RANLIB"; then
4355 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4356 $as_echo "$RANLIB" >&6; }
4358 { $as_echo "$as_me:$LINENO: result: no" >&5
4359 $as_echo "no" >&6; }
4364 if test -z "$ac_cv_prog_RANLIB"; then
4365 ac_ct_RANLIB=$RANLIB
4366 # Extract the first word of "ranlib", so it can be a program name with args.
4367 set dummy ranlib; ac_word=$2
4368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4373 if test -n "$ac_ct_RANLIB"; then
4374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ac_ct_RANLIB="ranlib"
4384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4394 if test -n "$ac_ct_RANLIB"; then
4395 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4396 $as_echo "$ac_ct_RANLIB" >&6; }
4398 { $as_echo "$as_me:$LINENO: result: no" >&5
4399 $as_echo "no" >&6; }
4402 if test "x$ac_ct_RANLIB" = x; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4411 RANLIB=$ac_ct_RANLIB
4414 RANLIB="$ac_cv_prog_RANLIB"
4417 for ac_prog in 'bison -y' byacc
4419 # Extract the first word of "$ac_prog", so it can be a program name with args.
4420 set dummy $ac_prog; ac_word=$2
4421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if test "${ac_cv_prog_YACC+set}" = set; then
4424 $as_echo_n "(cached) " >&6
4426 if test -n "$YACC"; then
4427 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_YACC="$ac_prog"
4437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 YACC=$ac_cv_prog_YACC
4447 if test -n "$YACC"; then
4448 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4449 $as_echo "$YACC" >&6; }
4451 { $as_echo "$as_me:$LINENO: result: no" >&5
4452 $as_echo "no" >&6; }
4456 test -n "$YACC" && break
4458 test -n "$YACC" || YACC="yacc"
4460 if test "x$CC" != xcc; then
4461 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4462 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4464 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4465 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4467 set dummy $CC; ac_cc=`$as_echo "$2" |
4468 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4469 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4470 $as_echo_n "(cached) " >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4487 # Make sure it works both with $CC and with simple cc.
4488 # We do the test twice because some compilers refuse to overwrite an
4489 # existing .o file with -o, though they will create one.
4490 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4492 if { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4497 $as_echo "$ac_try_echo") >&5
4498 (eval "$ac_try") 2>&5
4500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4507 $as_echo "$ac_try_echo") >&5
4508 (eval "$ac_try") 2>&5
4510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); };
4513 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4514 if test "x$CC" != xcc; then
4515 # Test first that cc exists at all.
4516 if { ac_try='cc -c conftest.$ac_ext >&5'
4517 { (case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4522 $as_echo "$ac_try_echo") >&5
4523 (eval "$ac_try") 2>&5
4525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4529 if { (case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535 (eval "$ac_try") 2>&5
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4544 $as_echo "$ac_try_echo") >&5
4545 (eval "$ac_try") 2>&5
4547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); };
4553 # cc exists but doesn't like -o.
4554 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4559 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4561 rm -f core conftest*
4564 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4565 { $as_echo "$as_me:$LINENO: result: yes" >&5
4566 $as_echo "yes" >&6; }
4568 { $as_echo "$as_me:$LINENO: result: no" >&5
4569 $as_echo "no" >&6; }
4571 cat >>confdefs.h <<\_ACEOF
4572 #define NO_MINUS_C_MINUS_O 1
4577 # FIXME: we rely on the cache variable name because
4578 # there is no other way.
4580 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4581 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4582 if test "$am_t" != yes; then
4583 # Losing compiler, so override with the script.
4584 # FIXME: It is wrong to rewrite CC.
4585 # But if we don't then we get into trouble of one sort or another.
4586 # A longer-term fix would be to have automake use am__CC in this case,
4587 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4588 CC="$am_aux_dir/compile $CC"
4592 # Make sure we can run config.sub.
4593 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4595 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4596 { (exit 1); exit 1; }; }
4598 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4599 $as_echo_n "checking build system type... " >&6; }
4600 if test "${ac_cv_build+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4603 ac_build_alias=$build_alias
4604 test "x$ac_build_alias" = x &&
4605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606 test "x$ac_build_alias" = x &&
4607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4608 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4609 { (exit 1); exit 1; }; }
4610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4612 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4613 { (exit 1); exit 1; }; }
4616 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4617 $as_echo "$ac_cv_build" >&6; }
4618 case $ac_cv_build in
4620 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4621 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4622 { (exit 1); exit 1; }; };;
4625 ac_save_IFS=$IFS; IFS='-'
4631 # Remember, the first character of IFS is used to create $*,
4632 # except with old shells:
4635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4638 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4639 $as_echo_n "checking host system type... " >&6; }
4640 if test "${ac_cv_host+set}" = set; then
4641 $as_echo_n "(cached) " >&6
4643 if test "x$host_alias" = x; then
4644 ac_cv_host=$ac_cv_build
4646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4648 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4649 { (exit 1); exit 1; }; }
4653 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4654 $as_echo "$ac_cv_host" >&6; }
4657 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4658 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4659 { (exit 1); exit 1; }; };;
4662 ac_save_IFS=$IFS; IFS='-'
4668 # Remember, the first character of IFS is used to create $*,
4669 # except with old shells:
4672 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4682 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4683 # On Suns, sometimes $CPP names a directory.
4684 if test -n "$CPP" && test -d "$CPP"; then
4687 if test -z "$CPP"; then
4688 if test "${ac_cv_prog_CPP+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4691 # Double quotes because CPP needs to be expanded
4692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4695 for ac_c_preproc_warn_flag in '' yes
4697 # Use a header file that comes with gcc, so configuring glibc
4698 # with a fresh cross-compiler works.
4699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 # <limits.h> exists even on freestanding compilers.
4701 # On the NeXT, cc -E runs the code through the compiler's parser,
4702 # not just through cpp. "Syntax error" is here to catch this case.
4703 cat >conftest.$ac_ext <<_ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4710 # include <limits.h>
4712 # include <assert.h>
4716 if { (ac_try="$ac_cpp conftest.$ac_ext"
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null && {
4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4735 $as_echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4738 # Broken: fails on valid input.
4742 rm -f conftest.err conftest.$ac_ext
4744 # OK, works on sane cases. Now check whether nonexistent headers
4745 # can be detected and how.
4746 cat >conftest.$ac_ext <<_ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752 #include <ac_nonexistent.h>
4754 if { (ac_try="$ac_cpp conftest.$ac_ext"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null && {
4768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4771 # Broken: success on invalid input.
4774 $as_echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 # Passes both tests.
4782 rm -f conftest.err conftest.$ac_ext
4785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786 rm -f conftest.err conftest.$ac_ext
4787 if $ac_preproc_ok; then
4799 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4800 $as_echo "$CPP" >&6; }
4802 for ac_c_preproc_warn_flag in '' yes
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 # include <limits.h>
4819 # include <assert.h>
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829 $as_echo "$ac_try_echo") >&5
4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } >/dev/null && {
4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4842 $as_echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 # Broken: fails on valid input.
4849 rm -f conftest.err conftest.$ac_ext
4851 # OK, works on sane cases. Now check whether nonexistent headers
4852 # can be detected and how.
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 <ac_nonexistent.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 # Broken: success on invalid input.
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 # Passes both tests.
4889 rm -f conftest.err conftest.$ac_ext
4892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893 rm -f conftest.err conftest.$ac_ext
4894 if $ac_preproc_ok; then
4897 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4900 See \`config.log' for more details." >&5
4901 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4902 See \`config.log' for more details." >&2;}
4903 { (exit 1); exit 1; }; }; }
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4915 if test "${ac_cv_path_GREP+set}" = set; then
4916 $as_echo_n "(cached) " >&6
4918 if test -z "$GREP"; then
4919 ac_path_GREP_found=false
4920 # Loop through the user's path and test for each of PROGNAME-LIST
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925 test -z "$as_dir" && as_dir=.
4926 for ac_prog in grep ggrep; do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4930 # Check for GNU ac_path_GREP and select it if it is found.
4931 # Check for GNU $ac_path_GREP
4932 case `"$ac_path_GREP" --version 2>&1` in
4934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4937 $as_echo_n 0123456789 >"conftest.in"
4940 cat "conftest.in" "conftest.in" >"conftest.tmp"
4941 mv "conftest.tmp" "conftest.in"
4942 cp "conftest.in" "conftest.nl"
4943 $as_echo 'GREP' >> "conftest.nl"
4944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946 ac_count=`expr $ac_count + 1`
4947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4948 # Best one so far, save it but keep looking for a better one
4949 ac_cv_path_GREP="$ac_path_GREP"
4950 ac_path_GREP_max=$ac_count
4952 # 10*(2^10) chars as input seems more than enough
4953 test $ac_count -gt 10 && break
4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958 $ac_path_GREP_found && break 3
4963 if test -z "$ac_cv_path_GREP"; then
4964 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4965 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4966 { (exit 1); exit 1; }; }
4969 ac_cv_path_GREP=$GREP
4973 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4974 $as_echo "$ac_cv_path_GREP" >&6; }
4975 GREP="$ac_cv_path_GREP"
4978 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4979 $as_echo_n "checking for egrep... " >&6; }
4980 if test "${ac_cv_path_EGREP+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4984 then ac_cv_path_EGREP="$GREP -E"
4986 if test -z "$EGREP"; then
4987 ac_path_EGREP_found=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 test -z "$as_dir" && as_dir=.
4994 for ac_prog in egrep; do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4997 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4998 # Check for GNU ac_path_EGREP and select it if it is found.
4999 # Check for GNU $ac_path_EGREP
5000 case `"$ac_path_EGREP" --version 2>&1` in
5002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5005 $as_echo_n 0123456789 >"conftest.in"
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 $as_echo 'EGREP' >> "conftest.nl"
5012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014 ac_count=`expr $ac_count + 1`
5015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_EGREP="$ac_path_EGREP"
5018 ac_path_EGREP_max=$ac_count
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 $ac_path_EGREP_found && break 3
5031 if test -z "$ac_cv_path_EGREP"; then
5032 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034 { (exit 1); exit 1; }; }
5037 ac_cv_path_EGREP=$EGREP
5042 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5043 $as_echo "$ac_cv_path_EGREP" >&6; }
5044 EGREP="$ac_cv_path_EGREP"
5047 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5048 $as_echo_n "checking for ANSI C header files... " >&6; }
5049 if test "${ac_cv_header_stdc+set}" = set; then
5050 $as_echo_n "(cached) " >&6
5052 cat >conftest.$ac_ext <<_ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5071 rm -f conftest.$ac_objext
5072 if { (ac_try="$ac_compile"
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_compile") 2>conftest.er1
5081 grep -v '^ *+' conftest.er1 >conftest.err
5083 cat conftest.err >&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } && {
5086 test -z "$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 } && test -s conftest.$ac_objext; then
5089 ac_cv_header_stdc=yes
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_cv_header_stdc=no
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 if test $ac_cv_header_stdc = yes; then
5100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5111 $EGREP "memchr" >/dev/null 2>&1; then
5114 ac_cv_header_stdc=no
5120 if test $ac_cv_header_stdc = yes; then
5121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 $EGREP "free" >/dev/null 2>&1; then
5135 ac_cv_header_stdc=no
5141 if test $ac_cv_header_stdc = yes; then
5142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5143 if test "$cross_compiling" = yes; then
5146 cat >conftest.$ac_ext <<_ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5154 #if ((' ' & 0x0FF) == 0x020)
5155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5158 # define ISLOWER(c) \
5159 (('a' <= (c) && (c) <= 'i') \
5160 || ('j' <= (c) && (c) <= 'r') \
5161 || ('s' <= (c) && (c) <= 'z'))
5162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5170 for (i = 0; i < 256; i++)
5171 if (XOR (islower (i), ISLOWER (i))
5172 || toupper (i) != TOUPPER (i))
5177 rm -f conftest$ac_exeext
5178 if { (ac_try="$ac_link"
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184 $as_echo "$ac_try_echo") >&5
5185 (eval "$ac_link") 2>&5
5187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5194 $as_echo "$ac_try_echo") >&5
5195 (eval "$ac_try") 2>&5
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5201 $as_echo "$as_me: program exited with status $ac_status" >&5
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_cv_header_stdc=no
5208 rm -rf conftest.dSYM
5209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5216 $as_echo "$ac_cv_header_stdc" >&6; }
5217 if test $ac_cv_header_stdc = yes; then
5219 cat >>confdefs.h <<\_ACEOF
5220 #define STDC_HEADERS 1
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5236 inttypes.h stdint.h unistd.h
5238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5240 $as_echo_n "checking for $ac_header... " >&6; }
5241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5242 $as_echo_n "(cached) " >&6
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 $ac_includes_default
5252 #include <$ac_header>
5254 rm -f conftest.$ac_objext
5255 if { (ac_try="$ac_compile"
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262 (eval "$ac_compile") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest.$ac_objext; then
5272 eval "$as_ac_Header=yes"
5274 $as_echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 eval "$as_ac_Header=no"
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 ac_res=`eval 'as_val=${'$as_ac_Header'}
5283 $as_echo "$as_val"'`
5284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5285 $as_echo "$ac_res" >&6; }
5286 as_val=`eval 'as_val=${'$as_ac_Header'}
5287 $as_echo "$as_val"'`
5288 if test "x$as_val" = x""yes; then
5289 cat >>confdefs.h <<_ACEOF
5290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301 if test "${ac_cv_header_minix_config_h+set}" = set; then
5302 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5303 $as_echo_n "checking for minix/config.h... " >&6; }
5304 if test "${ac_cv_header_minix_config_h+set}" = set; then
5305 $as_echo_n "(cached) " >&6
5307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5308 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5310 # Is the header compilable?
5311 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5312 $as_echo_n "checking minix/config.h usability... " >&6; }
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 $ac_includes_default
5320 #include <minix/config.h>
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && {
5337 test -z "$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 } && test -s conftest.$ac_objext; then
5340 ac_header_compiler=yes
5342 $as_echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 ac_header_compiler=no
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5350 $as_echo "$ac_header_compiler" >&6; }
5352 # Is the header present?
5353 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5354 $as_echo_n "checking minix/config.h presence... " >&6; }
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #include <minix/config.h>
5363 if { (ac_try="$ac_cpp conftest.$ac_ext"
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369 $as_echo "$ac_try_echo") >&5
5370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null && {
5377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5380 ac_header_preproc=yes
5382 $as_echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_header_preproc=no
5388 rm -f conftest.err conftest.$ac_ext
5389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 $as_echo "$ac_header_preproc" >&6; }
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5395 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5396 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5398 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5399 ac_header_preproc=yes
5402 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5403 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5404 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5405 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5406 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5407 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5408 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5409 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5410 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5411 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5412 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5413 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5415 ## ------------------------------ ##
5416 ## Report this to bug-tar@gnu.org ##
5417 ## ------------------------------ ##
5419 ) | sed "s/^/$as_me: WARNING: /" >&2
5422 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5423 $as_echo_n "checking for minix/config.h... " >&6; }
5424 if test "${ac_cv_header_minix_config_h+set}" = set; then
5425 $as_echo_n "(cached) " >&6
5427 ac_cv_header_minix_config_h=$ac_header_preproc
5429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5430 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5433 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5440 if test "$MINIX" = yes; then
5442 cat >>confdefs.h <<\_ACEOF
5443 #define _POSIX_SOURCE 1
5447 cat >>confdefs.h <<\_ACEOF
5448 #define _POSIX_1_SOURCE 2
5452 cat >>confdefs.h <<\_ACEOF
5461 cat >>confdefs.h <<\_ACEOF
5462 #define _XOPEN_SOURCE 500
5470 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5471 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5472 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5473 $as_echo_n "(cached) " >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5482 # define __EXTENSIONS__ 1
5483 $ac_includes_default
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_safe_to_define___extensions__=yes
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_cv_safe_to_define___extensions__=no
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5521 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5522 test $ac_cv_safe_to_define___extensions__ = yes &&
5523 cat >>confdefs.h <<\_ACEOF
5524 #define __EXTENSIONS__ 1
5527 cat >>confdefs.h <<\_ACEOF
5528 #define _ALL_SOURCE 1
5531 cat >>confdefs.h <<\_ACEOF
5532 #define _GNU_SOURCE 1
5535 cat >>confdefs.h <<\_ACEOF
5536 #define _POSIX_PTHREAD_SEMANTICS 1
5539 cat >>confdefs.h <<\_ACEOF
5540 #define _TANDEM_SOURCE 1
5551 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5553 if test "${ac_cv_sys_largefile_source+set}" = set; then
5554 $as_echo_n "(cached) " >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <sys/types.h> /* for off_t */
5568 int (*fp) (FILE *, off_t, int) = fseeko;
5569 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5574 rm -f conftest.$ac_objext conftest$ac_exeext
5575 if { (ac_try="$ac_link"
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5581 $as_echo "$ac_try_echo") >&5
5582 (eval "$ac_link") 2>conftest.er1
5584 grep -v '^ *+' conftest.er1 >conftest.err
5586 cat conftest.err >&5
5587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && {
5589 test -z "$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 } && test -s conftest$ac_exeext && {
5592 test "$cross_compiling" = yes ||
5593 $as_test_x conftest$ac_exeext
5595 ac_cv_sys_largefile_source=no; break
5597 $as_echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5603 rm -rf conftest.dSYM
5604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5605 conftest$ac_exeext conftest.$ac_ext
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #define _LARGEFILE_SOURCE 1
5613 #include <sys/types.h> /* for off_t */
5618 int (*fp) (FILE *, off_t, int) = fseeko;
5619 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (ac_try="$ac_link"
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631 $as_echo "$ac_try_echo") >&5
5632 (eval "$ac_link") 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && {
5639 test -z "$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 } && test -s conftest$ac_exeext && {
5642 test "$cross_compiling" = yes ||
5643 $as_test_x conftest$ac_exeext
5645 ac_cv_sys_largefile_source=1; break
5647 $as_echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5653 rm -rf conftest.dSYM
5654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5655 conftest$ac_exeext conftest.$ac_ext
5656 ac_cv_sys_largefile_source=unknown
5660 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5661 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5662 case $ac_cv_sys_largefile_source in #(
5665 cat >>confdefs.h <<_ACEOF
5666 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5672 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5673 # in glibc 2.1.3, but that breaks too many other things.
5674 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5675 if test $ac_cv_sys_largefile_source != unknown; then
5677 cat >>confdefs.h <<\_ACEOF
5678 #define HAVE_FSEEKO 1
5683 case $ac_cv_prog_cc_stdc in
5684 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5685 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5686 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5687 if test "${ac_cv_prog_cc_c99+set}" = set; then
5688 $as_echo_n "(cached) " >&6
5690 ac_cv_prog_cc_c99=no
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5699 #include <stdbool.h>
5704 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5705 #define debug(...) fprintf (stderr, __VA_ARGS__)
5706 #define showlist(...) puts (#__VA_ARGS__)
5707 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5709 test_varargs_macros (void)
5714 debug ("X = %d\n", x);
5715 showlist (The first, second, and third items.);
5716 report (x>y, "x is %d but y is %d", x, y);
5719 // Check long long types.
5720 #define BIG64 18446744073709551615ull
5721 #define BIG32 4294967295ul
5722 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5724 your preprocessor is broken;
5728 your preprocessor is broken;
5730 static long long int bignum = -9223372036854775807LL;
5731 static unsigned long long int ubignum = BIG64;
5733 struct incomplete_array
5741 const wchar_t *name;
5745 typedef const char *ccp;
5748 test_restrict (ccp restrict text)
5750 // See if C++-style comments work.
5751 // Iterate through items via the restricted pointer.
5752 // Also check for declarations in for loops.
5753 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5758 // Check varargs and va_copy.
5760 test_varargs (const char *format, ...)
5763 va_start (args, format);
5765 va_copy (args_copy, args);
5776 str = va_arg (args_copy, const char *);
5779 number = va_arg (args_copy, int);
5782 fnumber = va_arg (args_copy, double);
5797 _Bool success = false;
5800 if (test_restrict ("String literal") == 0)
5802 char *restrict newvar = "Another string";
5805 test_varargs ("s, d' f .", "string", 65, 34.234);
5806 test_varargs_macros ();
5808 // Check flexible array members.
5809 struct incomplete_array *ia =
5810 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5812 for (int i = 0; i < ia->datasize; ++i)
5813 ia->data[i] = i * 1.234;
5815 // Check named initializers.
5816 struct named_init ni = {
5818 .name = L"Test wide string",
5819 .average = 543.34343,
5824 int dynamic_array[ni.number];
5825 dynamic_array[ni.number - 1] = 543;
5827 // work around unused variable warnings
5828 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5829 || dynamic_array[ni.number - 1] != 543);
5835 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5837 CC="$ac_save_CC $ac_arg"
5838 rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5845 $as_echo "$ac_try_echo") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
5856 ac_cv_prog_cc_c99=$ac_arg
5858 $as_echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5864 rm -f core conftest.err conftest.$ac_objext
5865 test "x$ac_cv_prog_cc_c99" != "xno" && break
5867 rm -f conftest.$ac_ext
5872 case "x$ac_cv_prog_cc_c99" in
5874 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5875 $as_echo "none needed" >&6; } ;;
5877 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5878 $as_echo "unsupported" >&6; } ;;
5880 CC="$CC $ac_cv_prog_cc_c99"
5881 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5882 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5884 if test "x$ac_cv_prog_cc_c99" != xno; then
5885 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5887 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5889 if test "${ac_cv_prog_cc_c89+set}" = set; then
5890 $as_echo_n "(cached) " >&6
5892 ac_cv_prog_cc_c89=no
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5902 #include <sys/types.h>
5903 #include <sys/stat.h>
5904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5905 struct buf { int x; };
5906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5907 static char *e (p, i)
5913 static char *f (char * (*g) (char **, int), char **p, ...)
5918 s = g (p, va_arg (v,int));
5923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5924 function prototypes and stuff, but not '\xHH' hex character constants.
5925 These don't provoke an error unfortunately, instead are silently treated
5926 as 'x'. The following induces an error, until -std is added to get
5927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5928 array size at least. It's necessary to write '\x00'==0 to get something
5929 that's true only with -std. */
5930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5933 inside strings and character constants. */
5935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5937 int test (int i, double x);
5938 struct s1 {int (*f) (int a);};
5939 struct s2 {int (*f) (double a);};
5940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5954 CC="$ac_save_CC $ac_arg"
5955 rm -f conftest.$ac_objext
5956 if { (ac_try="$ac_compile"
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962 $as_echo "$ac_try_echo") >&5
5963 (eval "$ac_compile") 2>conftest.er1
5965 grep -v '^ *+' conftest.er1 >conftest.err
5967 cat conftest.err >&5
5968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && {
5970 test -z "$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 } && test -s conftest.$ac_objext; then
5973 ac_cv_prog_cc_c89=$ac_arg
5975 $as_echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5981 rm -f core conftest.err conftest.$ac_objext
5982 test "x$ac_cv_prog_cc_c89" != "xno" && break
5984 rm -f conftest.$ac_ext
5989 case "x$ac_cv_prog_cc_c89" in
5991 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5992 $as_echo "none needed" >&6; } ;;
5994 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5995 $as_echo "unsupported" >&6; } ;;
5997 CC="$CC $ac_cv_prog_cc_c89"
5998 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6001 if test "x$ac_cv_prog_cc_c89" != xno; then
6002 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6004 ac_cv_prog_cc_stdc=no
6012 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
6013 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6014 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6015 $as_echo_n "(cached) " >&6
6018 case $ac_cv_prog_cc_stdc in
6019 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6020 $as_echo "unsupported" >&6; } ;;
6021 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
6022 $as_echo "none needed" >&6; } ;;
6023 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6024 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6036 # Check whether --enable-largefile was given.
6037 if test "${enable_largefile+set}" = set; then
6038 enableval=$enable_largefile;
6041 if test "$enable_largefile" != no; then
6043 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6044 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6045 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6046 $as_echo_n "(cached) " >&6
6048 ac_cv_sys_largefile_CC=no
6049 if test "$GCC" != yes; then
6052 # IRIX 6.2 and later do not support large files by default,
6053 # so use the C compiler's -n32 option if that helps.
6054 cat >conftest.$ac_ext <<_ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 #include <sys/types.h>
6061 /* Check that off_t can represent 2**63 - 1 correctly.
6062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6063 since some C++ compilers masquerading as C compilers
6064 incorrectly reject 9223372036854775807. */
6065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6067 && LARGE_OFF_T % 2147483647 == 1)
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6084 $as_echo "$ac_try_echo") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest.$ac_objext; then
6097 $as_echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6103 rm -f core conftest.err conftest.$ac_objext
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6112 $as_echo "$ac_try_echo") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6115 grep -v '^ *+' conftest.er1 >conftest.err
6117 cat conftest.err >&5
6118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
6123 ac_cv_sys_largefile_CC=' -n32'; break
6125 $as_echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6131 rm -f core conftest.err conftest.$ac_objext
6135 rm -f conftest.$ac_ext
6138 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6139 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6140 if test "$ac_cv_sys_largefile_CC" != no; then
6141 CC=$CC$ac_cv_sys_largefile_CC
6144 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6145 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6146 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6147 $as_echo_n "(cached) " >&6
6150 cat >conftest.$ac_ext <<_ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <sys/types.h>
6157 /* Check that off_t can represent 2**63 - 1 correctly.
6158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6159 since some C++ compilers masquerading as C compilers
6160 incorrectly reject 9223372036854775807. */
6161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6163 && LARGE_OFF_T % 2147483647 == 1)
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6180 $as_echo "$ac_try_echo") >&5
6181 (eval "$ac_compile") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1 >conftest.err
6185 cat conftest.err >&5
6186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest.$ac_objext; then
6191 ac_cv_sys_file_offset_bits=no; break
6193 $as_echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #define _FILE_OFFSET_BITS 64
6207 #include <sys/types.h>
6208 /* Check that off_t can represent 2**63 - 1 correctly.
6209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6210 since some C++ compilers masquerading as C compilers
6211 incorrectly reject 9223372036854775807. */
6212 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6214 && LARGE_OFF_T % 2147483647 == 1)
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_cv_sys_file_offset_bits=64; break
6244 $as_echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 ac_cv_sys_file_offset_bits=unknown
6255 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6256 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6257 case $ac_cv_sys_file_offset_bits in #(
6260 cat >>confdefs.h <<_ACEOF
6261 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6266 if test $ac_cv_sys_file_offset_bits = unknown; then
6267 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6268 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6269 if test "${ac_cv_sys_large_files+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <sys/types.h>
6280 /* Check that off_t can represent 2**63 - 1 correctly.
6281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6282 since some C++ compilers masquerading as C compilers
6283 incorrectly reject 9223372036854775807. */
6284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6286 && LARGE_OFF_T % 2147483647 == 1)
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303 $as_echo "$ac_try_echo") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 ac_cv_sys_large_files=no; break
6316 $as_echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #define _LARGE_FILES 1
6330 #include <sys/types.h>
6331 /* Check that off_t can represent 2**63 - 1 correctly.
6332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6333 since some C++ compilers masquerading as C compilers
6334 incorrectly reject 9223372036854775807. */
6335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6337 && LARGE_OFF_T % 2147483647 == 1)
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6354 $as_echo "$ac_try_echo") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest.$ac_objext; then
6365 ac_cv_sys_large_files=1; break
6367 $as_echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 ac_cv_sys_large_files=unknown
6378 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6379 $as_echo "$ac_cv_sys_large_files" >&6; }
6380 case $ac_cv_sys_large_files in #(
6383 cat >>confdefs.h <<_ACEOF
6384 #define _LARGE_FILES $ac_cv_sys_large_files
6392 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6393 $as_echo_n "checking for library containing strerror... " >&6; }
6394 if test "${ac_cv_search_strerror+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6397 ac_func_search_save_LIBS=$LIBS
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6405 /* Override any GCC internal prototype to avoid an error.
6406 Use char because int might match the return type of a GCC
6407 builtin and then its argument prototype would still apply. */
6420 for ac_lib in '' cposix; do
6421 if test -z "$ac_lib"; then
6422 ac_res="none required"
6425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6434 $as_echo "$ac_try_echo") >&5
6435 (eval "$ac_link") 2>conftest.er1
6437 grep -v '^ *+' conftest.er1 >conftest.err
6439 cat conftest.err >&5
6440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest$ac_exeext && {
6445 test "$cross_compiling" = yes ||
6446 $as_test_x conftest$ac_exeext
6448 ac_cv_search_strerror=$ac_res
6450 $as_echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6456 rm -rf conftest.dSYM
6457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6459 if test "${ac_cv_search_strerror+set}" = set; then
6463 if test "${ac_cv_search_strerror+set}" = set; then
6466 ac_cv_search_strerror=no
6469 LIBS=$ac_func_search_save_LIBS
6471 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6472 $as_echo "$ac_cv_search_strerror" >&6; }
6473 ac_res=$ac_cv_search_strerror
6474 if test "$ac_res" != no; then
6475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6479 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6480 $as_echo_n "checking for inline... " >&6; }
6481 if test "${ac_cv_c_inline+set}" = set; then
6482 $as_echo_n "(cached) " >&6
6485 for ac_kw in inline __inline__ __inline; do
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6494 static $ac_kw foo_t static_foo () {return 0; }
6495 $ac_kw foo_t foo () {return 0; }
6499 rm -f conftest.$ac_objext
6500 if { (ac_try="$ac_compile"
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506 $as_echo "$ac_try_echo") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6517 ac_cv_c_inline=$ac_kw
6519 $as_echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 test "$ac_cv_c_inline" != no && break
6530 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6531 $as_echo "$ac_cv_c_inline" >&6; }
6534 case $ac_cv_c_inline in
6537 case $ac_cv_c_inline in
6539 *) ac_val=$ac_cv_c_inline;;
6541 cat >>confdefs.h <<_ACEOF
6543 #define inline $ac_val
6554 for ac_header in $ac_header_list
6556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6559 $as_echo_n "checking for $ac_header... " >&6; }
6560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6561 $as_echo_n "(cached) " >&6
6563 ac_res=`eval 'as_val=${'$as_ac_Header'}
6564 $as_echo "$as_val"'`
6565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6566 $as_echo "$ac_res" >&6; }
6568 # Is the header compilable?
6569 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6570 $as_echo_n "checking $ac_header usability... " >&6; }
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 $ac_includes_default
6578 #include <$ac_header>
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6587 $as_echo "$ac_try_echo") >&5
6588 (eval "$ac_compile") 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest.$ac_objext; then
6598 ac_header_compiler=yes
6600 $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_header_compiler=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6608 $as_echo "$ac_header_compiler" >&6; }
6610 # Is the header present?
6611 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6612 $as_echo_n "checking $ac_header presence... " >&6; }
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <$ac_header>
6621 if { (ac_try="$ac_cpp conftest.$ac_ext"
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6627 $as_echo "$ac_try_echo") >&5
6628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } >/dev/null && {
6635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6638 ac_header_preproc=yes
6640 $as_echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_header_preproc=no
6646 rm -f conftest.err conftest.$ac_ext
6647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 $as_echo "$ac_header_preproc" >&6; }
6650 # So? What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6654 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6657 ac_header_preproc=yes
6660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6663 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6665 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6667 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6671 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6673 ## ------------------------------ ##
6674 ## Report this to bug-tar@gnu.org ##
6675 ## ------------------------------ ##
6677 ) | sed "s/^/$as_me: WARNING: /" >&2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6681 $as_echo_n "checking for $ac_header... " >&6; }
6682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6683 $as_echo_n "(cached) " >&6
6685 eval "$as_ac_Header=\$ac_header_preproc"
6687 ac_res=`eval 'as_val=${'$as_ac_Header'}
6688 $as_echo "$as_val"'`
6689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6690 $as_echo "$ac_res" >&6; }
6693 as_val=`eval 'as_val=${'$as_ac_Header'}
6694 $as_echo "$as_val"'`
6695 if test "x$as_val" = x""yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6786 for ac_header in sys/buf.h
6788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6790 $as_echo_n "checking for $ac_header... " >&6; }
6791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6792 $as_echo_n "(cached) " >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 #if HAVE_SYS_PARAM_H
6801 #include <sys/param.h>
6804 #include <$ac_header>
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 eval "$as_ac_Header=yes"
6826 $as_echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 eval "$as_ac_Header=no"
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 ac_res=`eval 'as_val=${'$as_ac_Header'}
6835 $as_echo "$as_val"'`
6836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6838 as_val=`eval 'as_val=${'$as_ac_Header'}
6839 $as_echo "$as_val"'`
6840 if test "x$as_val" = x""yes; then
6841 cat >>confdefs.h <<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6850 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6851 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6852 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6853 $as_echo_n "(cached) " >&6
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <sys/types.h>
6862 #include <sys/wait.h>
6864 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6867 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6875 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6880 rm -f conftest.$ac_objext
6881 if { (ac_try="$ac_compile"
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6890 grep -v '^ *+' conftest.er1 >conftest.err
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_header_sys_wait_h=yes
6900 $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_header_sys_wait_h=no
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6909 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6910 if test $ac_cv_header_sys_wait_h = yes; then
6912 cat >>confdefs.h <<\_ACEOF
6913 #define HAVE_SYS_WAIT_H 1
6925 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6926 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6927 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6928 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6930 $as_echo_n "(cached) " >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <sys/types.h>
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 eval "$as_ac_Header=yes"
6970 $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 eval "$as_ac_Header=no"
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 ac_res=`eval 'as_val=${'$as_ac_Header'}
6979 $as_echo "$as_val"'`
6980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6981 $as_echo "$ac_res" >&6; }
6982 as_val=`eval 'as_val=${'$as_ac_Header'}
6983 $as_echo "$as_val"'`
6984 if test "x$as_val" = x""yes; then
6985 cat >>confdefs.h <<_ACEOF
6986 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6989 ac_header_dirent=$ac_hdr; break
6993 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6994 if test $ac_header_dirent = dirent.h; then
6995 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6996 $as_echo_n "checking for library containing opendir... " >&6; }
6997 if test "${ac_cv_search_opendir+set}" = set; then
6998 $as_echo_n "(cached) " >&6
7000 ac_func_search_save_LIBS=$LIBS
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7008 /* Override any GCC internal prototype to avoid an error.
7009 Use char because int might match the return type of a GCC
7010 builtin and then its argument prototype would still apply. */
7023 for ac_lib in '' dir; do
7024 if test -z "$ac_lib"; then
7025 ac_res="none required"
7028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (ac_try="$ac_link"
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038 (eval "$ac_link") 2>conftest.er1
7040 grep -v '^ *+' conftest.er1 >conftest.err
7042 cat conftest.err >&5
7043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest$ac_exeext && {
7048 test "$cross_compiling" = yes ||
7049 $as_test_x conftest$ac_exeext
7051 ac_cv_search_opendir=$ac_res
7053 $as_echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7059 rm -rf conftest.dSYM
7060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7062 if test "${ac_cv_search_opendir+set}" = set; then
7066 if test "${ac_cv_search_opendir+set}" = set; then
7069 ac_cv_search_opendir=no
7072 LIBS=$ac_func_search_save_LIBS
7074 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7075 $as_echo "$ac_cv_search_opendir" >&6; }
7076 ac_res=$ac_cv_search_opendir
7077 if test "$ac_res" != no; then
7078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7083 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7084 $as_echo_n "checking for library containing opendir... " >&6; }
7085 if test "${ac_cv_search_opendir+set}" = set; then
7086 $as_echo_n "(cached) " >&6
7088 ac_func_search_save_LIBS=$LIBS
7089 cat >conftest.$ac_ext <<_ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7096 /* Override any GCC internal prototype to avoid an error.
7097 Use char because int might match the return type of a GCC
7098 builtin and then its argument prototype would still apply. */
7111 for ac_lib in '' x; do
7112 if test -z "$ac_lib"; then
7113 ac_res="none required"
7116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7118 rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7125 $as_echo "$ac_try_echo") >&5
7126 (eval "$ac_link") 2>conftest.er1
7128 grep -v '^ *+' conftest.er1 >conftest.err
7130 cat conftest.err >&5
7131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } && {
7133 test -z "$ac_c_werror_flag" ||
7134 test ! -s conftest.err
7135 } && test -s conftest$ac_exeext && {
7136 test "$cross_compiling" = yes ||
7137 $as_test_x conftest$ac_exeext
7139 ac_cv_search_opendir=$ac_res
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7147 rm -rf conftest.dSYM
7148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7150 if test "${ac_cv_search_opendir+set}" = set; then
7154 if test "${ac_cv_search_opendir+set}" = set; then
7157 ac_cv_search_opendir=no
7160 LIBS=$ac_func_search_save_LIBS
7162 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7163 $as_echo "$ac_cv_search_opendir" >&6; }
7164 ac_res=$ac_cv_search_opendir
7165 if test "$ac_res" != no; then
7166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7172 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7173 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7174 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7175 $as_echo_n "(cached) " >&6
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7187 return makedev(0, 0);
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200 (eval "$ac_link") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1 >conftest.err
7204 cat conftest.err >&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest$ac_exeext && {
7210 test "$cross_compiling" = yes ||
7211 $as_test_x conftest$ac_exeext
7213 ac_cv_header_sys_types_h_makedev=yes
7215 $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_header_sys_types_h_makedev=no
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
7226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7227 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7229 if test $ac_cv_header_sys_types_h_makedev = no; then
7230 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7231 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7232 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7233 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7234 $as_echo_n "(cached) " >&6
7236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7237 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7239 # Is the header compilable?
7240 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7241 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
7242 cat >conftest.$ac_ext <<_ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 #include <sys/mkdev.h>
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7258 $as_echo "$ac_try_echo") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_header_compiler=yes
7271 $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_header_compiler=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 $as_echo "$ac_header_compiler" >&6; }
7281 # Is the header present?
7282 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7283 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #include <sys/mkdev.h>
7292 if { (ac_try="$ac_cpp conftest.$ac_ext"
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7298 $as_echo "$ac_try_echo") >&5
7299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } >/dev/null && {
7306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7309 ac_header_preproc=yes
7311 $as_echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 ac_header_preproc=no
7317 rm -f conftest.err conftest.$ac_ext
7318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319 $as_echo "$ac_header_preproc" >&6; }
7321 # So? What about this header?
7322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7324 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7325 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7327 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7328 ac_header_preproc=yes
7331 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7332 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7333 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7334 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7335 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7336 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7337 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
7338 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
7339 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7340 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7341 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7342 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7344 ## ------------------------------ ##
7345 ## Report this to bug-tar@gnu.org ##
7346 ## ------------------------------ ##
7348 ) | sed "s/^/$as_me: WARNING: /" >&2
7351 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7352 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7353 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7354 $as_echo_n "(cached) " >&6
7356 ac_cv_header_sys_mkdev_h=$ac_header_preproc
7358 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7359 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7362 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define MAJOR_IN_MKDEV 1
7372 if test $ac_cv_header_sys_mkdev_h = no; then
7373 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7374 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7375 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7376 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7377 $as_echo_n "(cached) " >&6
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7380 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7382 # Is the header compilable?
7383 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7384 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
7385 cat >conftest.$ac_ext <<_ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7392 #include <sys/sysmacros.h>
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7401 $as_echo "$ac_try_echo") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 ac_header_compiler=yes
7414 $as_echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_header_compiler=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 $as_echo "$ac_header_compiler" >&6; }
7424 # Is the header present?
7425 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7426 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
7427 cat >conftest.$ac_ext <<_ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #include <sys/sysmacros.h>
7435 if { (ac_try="$ac_cpp conftest.$ac_ext"
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } >/dev/null && {
7449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7452 ac_header_preproc=yes
7454 $as_echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 ac_header_preproc=no
7460 rm -f conftest.err conftest.$ac_ext
7461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7462 $as_echo "$ac_header_preproc" >&6; }
7464 # So? What about this header?
7465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7467 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7468 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7469 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7470 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7471 ac_header_preproc=yes
7474 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7475 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7476 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7477 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7478 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7479 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7480 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7481 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7482 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7483 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7484 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7485 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7487 ## ------------------------------ ##
7488 ## Report this to bug-tar@gnu.org ##
7489 ## ------------------------------ ##
7491 ) | sed "s/^/$as_me: WARNING: /" >&2
7494 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7495 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7496 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7497 $as_echo_n "(cached) " >&6
7499 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7502 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7505 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
7507 cat >>confdefs.h <<\_ACEOF
7508 #define MAJOR_IN_SYSMACROS 1
7517 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7518 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7519 if test "${ac_cv_header_stat_broken+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 #include <sys/types.h>
7529 #include <sys/stat.h>
7531 #if defined S_ISBLK && defined S_IFDIR
7532 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7535 #if defined S_ISBLK && defined S_IFCHR
7536 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7539 #if defined S_ISLNK && defined S_IFREG
7540 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7543 #if defined S_ISSOCK && defined S_IFREG
7544 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7548 rm -f conftest.$ac_objext
7549 if { (ac_try="$ac_compile"
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7555 $as_echo "$ac_try_echo") >&5
7556 (eval "$ac_compile") 2>conftest.er1
7558 grep -v '^ *+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } && {
7563 test -z "$ac_c_werror_flag" ||
7564 test ! -s conftest.err
7565 } && test -s conftest.$ac_objext; then
7566 ac_cv_header_stat_broken=no
7568 $as_echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_header_stat_broken=yes
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7577 $as_echo "$ac_cv_header_stat_broken" >&6; }
7578 if test $ac_cv_header_stat_broken = yes; then
7580 cat >>confdefs.h <<\_ACEOF
7581 #define STAT_MACROS_BROKEN 1
7586 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7587 $as_echo_n "checking for ANSI C header files... " >&6; }
7588 if test "${ac_cv_header_stdc+set}" = set; then
7589 $as_echo_n "(cached) " >&6
7591 cat >conftest.$ac_ext <<_ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7617 $as_echo "$ac_try_echo") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
7628 ac_cv_header_stdc=yes
7630 $as_echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_header_stdc=no
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 if test $ac_cv_header_stdc = yes; then
7639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7640 cat >conftest.$ac_ext <<_ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7650 $EGREP "memchr" >/dev/null 2>&1; then
7653 ac_cv_header_stdc=no
7659 if test $ac_cv_header_stdc = yes; then
7660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7661 cat >conftest.$ac_ext <<_ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7671 $EGREP "free" >/dev/null 2>&1; then
7674 ac_cv_header_stdc=no
7680 if test $ac_cv_header_stdc = yes; then
7681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7682 if test "$cross_compiling" = yes; then
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7693 #if ((' ' & 0x0FF) == 0x020)
7694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7697 # define ISLOWER(c) \
7698 (('a' <= (c) && (c) <= 'i') \
7699 || ('j' <= (c) && (c) <= 'r') \
7700 || ('s' <= (c) && (c) <= 'z'))
7701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7709 for (i = 0; i < 256; i++)
7710 if (XOR (islower (i), ISLOWER (i))
7711 || toupper (i) != TOUPPER (i))
7716 rm -f conftest$ac_exeext
7717 if { (ac_try="$ac_link"
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723 $as_echo "$ac_try_echo") >&5
7724 (eval "$ac_link") 2>&5
7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734 (eval "$ac_try") 2>&5
7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7740 $as_echo "$as_me: program exited with status $ac_status" >&5
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7745 ac_cv_header_stdc=no
7747 rm -rf conftest.dSYM
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define STDC_HEADERS 1
7765 { $as_echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7766 $as_echo_n "checking for st_fstype string in struct stat... " >&6; }
7767 if test "${diff_cv_st_fstype_string+set}" = set; then
7768 $as_echo_n "(cached) " >&6
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 #include <sys/types.h>
7777 #include <sys/stat.h>
7781 struct stat s; s.st_fstype[0] = 'x';
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7793 $as_echo "$ac_try_echo") >&5
7794 (eval "$ac_compile") 2>conftest.er1
7796 grep -v '^ *+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } && {
7801 test -z "$ac_c_werror_flag" ||
7802 test ! -s conftest.err
7803 } && test -s conftest.$ac_objext; then
7804 diff_cv_st_fstype_string=yes
7806 $as_echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 diff_cv_st_fstype_string=no
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 { $as_echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7816 $as_echo "$diff_cv_st_fstype_string" >&6; }
7817 if test $diff_cv_st_fstype_string = yes; then
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_ST_FSTYPE_STRING 1
7825 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7826 $as_echo_n "checking return type of signal handlers... " >&6; }
7827 if test "${ac_cv_type_signal+set}" = set; then
7828 $as_echo_n "(cached) " >&6
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 #include <sys/types.h>
7842 return *(signal (0, 0)) (0) == 1;
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 ac_cv_type_signal=int
7867 $as_echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 ac_cv_type_signal=void
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7876 $as_echo "$ac_cv_type_signal" >&6; }
7878 cat >>confdefs.h <<_ACEOF
7879 #define RETSIGTYPE $ac_cv_type_signal
7883 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7884 $as_echo_n "checking for mode_t... " >&6; }
7885 if test "${ac_cv_type_mode_t+set}" = set; then
7886 $as_echo_n "(cached) " >&6
7888 ac_cv_type_mode_t=no
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7899 if (sizeof (mode_t))
7905 rm -f conftest.$ac_objext
7906 if { (ac_try="$ac_compile"
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7912 $as_echo "$ac_try_echo") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7933 if (sizeof ((mode_t)))
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7946 $as_echo "$ac_try_echo") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7959 $as_echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_type_mode_t=yes
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7976 $as_echo "$ac_cv_type_mode_t" >&6; }
7977 if test "x$ac_cv_type_mode_t" = x""yes; then
7981 cat >>confdefs.h <<_ACEOF
7987 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7988 $as_echo_n "checking for pid_t... " >&6; }
7989 if test "${ac_cv_type_pid_t+set}" = set; then
7990 $as_echo_n "(cached) " >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8016 $as_echo "$ac_try_echo") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 $ac_includes_default
8037 if (sizeof ((pid_t)))
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8063 $as_echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_type_pid_t=yes
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 $as_echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8080 $as_echo "$ac_cv_type_pid_t" >&6; }
8081 if test "x$ac_cv_type_pid_t" = x""yes; then
8085 cat >>confdefs.h <<_ACEOF
8091 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8092 $as_echo_n "checking for off_t... " >&6; }
8093 if test "${ac_cv_type_off_t+set}" = set; then
8094 $as_echo_n "(cached) " >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && {
8128 test -z "$ac_c_werror_flag" ||
8129 test ! -s conftest.err
8130 } && test -s conftest.$ac_objext; then
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8141 if (sizeof ((off_t)))
8147 rm -f conftest.$ac_objext
8148 if { (ac_try="$ac_compile"
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8154 $as_echo "$ac_try_echo") >&5
8155 (eval "$ac_compile") 2>conftest.er1
8157 grep -v '^ *+' conftest.er1 >conftest.err
8159 cat conftest.err >&5
8160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } && {
8162 test -z "$ac_c_werror_flag" ||
8163 test ! -s conftest.err
8164 } && test -s conftest.$ac_objext; then
8167 $as_echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 ac_cv_type_off_t=yes
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8184 $as_echo "$ac_cv_type_off_t" >&6; }
8185 if test "x$ac_cv_type_off_t" = x""yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define off_t long int
8195 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8196 $as_echo_n "checking for size_t... " >&6; }
8197 if test "${ac_cv_type_size_t+set}" = set; then
8198 $as_echo_n "(cached) " >&6
8200 ac_cv_type_size_t=no
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 $ac_includes_default
8211 if (sizeof (size_t))
8217 rm -f conftest.$ac_objext
8218 if { (ac_try="$ac_compile"
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8224 $as_echo "$ac_try_echo") >&5
8225 (eval "$ac_compile") 2>conftest.er1
8227 grep -v '^ *+' conftest.er1 >conftest.err
8229 cat conftest.err >&5
8230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest.$ac_objext; then
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8245 if (sizeof ((size_t)))
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258 $as_echo "$ac_try_echo") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 ac_cv_type_size_t=yes
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 $as_echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8288 $as_echo "$ac_cv_type_size_t" >&6; }
8289 if test "x$ac_cv_type_size_t" = x""yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define size_t unsigned int
8299 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8300 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8301 if test "${ac_cv_type_uid_t+set}" = set; then
8302 $as_echo_n "(cached) " >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #include <sys/types.h>
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314 $EGREP "uid_t" >/dev/null 2>&1; then
8315 ac_cv_type_uid_t=yes
8322 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8323 $as_echo "$ac_cv_type_uid_t" >&6; }
8324 if test $ac_cv_type_uid_t = no; then
8326 cat >>confdefs.h <<\_ACEOF
8331 cat >>confdefs.h <<\_ACEOF
8337 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
8338 $as_echo_n "checking for major_t... " >&6; }
8339 if test "${ac_cv_type_major_t+set}" = set; then
8340 $as_echo_n "(cached) " >&6
8342 ac_cv_type_major_t=no
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8353 if (sizeof (major_t))
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8366 $as_echo "$ac_try_echo") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 cat >conftest.$ac_ext <<_ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8387 if (sizeof ((major_t)))
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8400 $as_echo "$ac_try_echo") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8403 grep -v '^ *+' conftest.er1 >conftest.err
8405 cat conftest.err >&5
8406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.$ac_objext; then
8413 $as_echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_type_major_t=yes
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 $as_echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
8430 $as_echo "$ac_cv_type_major_t" >&6; }
8431 if test "x$ac_cv_type_major_t" = x""yes; then
8435 cat >>confdefs.h <<\_ACEOF
8441 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
8442 $as_echo_n "checking for minor_t... " >&6; }
8443 if test "${ac_cv_type_minor_t+set}" = set; then
8444 $as_echo_n "(cached) " >&6
8446 ac_cv_type_minor_t=no
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 $ac_includes_default
8457 if (sizeof (minor_t))
8463 rm -f conftest.$ac_objext
8464 if { (ac_try="$ac_compile"
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8470 $as_echo "$ac_try_echo") >&5
8471 (eval "$ac_compile") 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } && {
8478 test -z "$ac_c_werror_flag" ||
8479 test ! -s conftest.err
8480 } && test -s conftest.$ac_objext; then
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8491 if (sizeof ((minor_t)))
8497 rm -f conftest.$ac_objext
8498 if { (ac_try="$ac_compile"
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504 $as_echo "$ac_try_echo") >&5
8505 (eval "$ac_compile") 2>conftest.er1
8507 grep -v '^ *+' conftest.er1 >conftest.err
8509 cat conftest.err >&5
8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && {
8512 test -z "$ac_c_werror_flag" ||
8513 test ! -s conftest.err
8514 } && test -s conftest.$ac_objext; then
8517 $as_echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_cv_type_minor_t=yes
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 $as_echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8534 $as_echo "$ac_cv_type_minor_t" >&6; }
8535 if test "x$ac_cv_type_minor_t" = x""yes; then
8539 cat >>confdefs.h <<\_ACEOF
8545 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
8546 $as_echo_n "checking for dev_t... " >&6; }
8547 if test "${ac_cv_type_dev_t+set}" = set; then
8548 $as_echo_n "(cached) " >&6
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8595 if (sizeof ((dev_t)))
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8608 $as_echo "$ac_try_echo") >&5
8609 (eval "$ac_compile") 2>conftest.er1
8611 grep -v '^ *+' conftest.er1 >conftest.err
8613 cat conftest.err >&5
8614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && {
8616 test -z "$ac_c_werror_flag" ||
8617 test ! -s conftest.err
8618 } && test -s conftest.$ac_objext; then
8621 $as_echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_cv_type_dev_t=yes
8627 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
8637 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8638 $as_echo "$ac_cv_type_dev_t" >&6; }
8639 if test "x$ac_cv_type_dev_t" = x""yes; then
8643 cat >>confdefs.h <<_ACEOF
8644 #define dev_t unsigned
8649 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
8650 $as_echo_n "checking for ino_t... " >&6; }
8651 if test "${ac_cv_type_ino_t+set}" = set; then
8652 $as_echo_n "(cached) " >&6
8655 cat >conftest.$ac_ext <<_ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 cat >conftest.$ac_ext <<_ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8699 if (sizeof ((ino_t)))
8705 rm -f conftest.$ac_objext
8706 if { (ac_try="$ac_compile"
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8712 $as_echo "$ac_try_echo") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8725 $as_echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_type_ino_t=yes
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8742 $as_echo "$ac_cv_type_ino_t" >&6; }
8743 if test "x$ac_cv_type_ino_t" = x""yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define ino_t unsigned
8755 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8756 $as_echo_n "checking for ssize_t... " >&6; }
8757 if test "${gt_cv_ssize_t+set}" = set; then
8758 $as_echo_n "(cached) " >&6
8760 cat >conftest.$ac_ext <<_ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 #include <sys/types.h>
8770 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8776 rm -f conftest.$ac_objext
8777 if { (ac_try="$ac_compile"
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8783 $as_echo "$ac_try_echo") >&5
8784 (eval "$ac_compile") 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } && {
8791 test -z "$ac_c_werror_flag" ||
8792 test ! -s conftest.err
8793 } && test -s conftest.$ac_objext; then
8796 $as_echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8805 $as_echo "$gt_cv_ssize_t" >&6; }
8806 if test $gt_cv_ssize_t = no; then
8808 cat >>confdefs.h <<\_ACEOF
8823 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8824 # for constant arguments. Useless!
8825 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8826 $as_echo_n "checking for working alloca.h... " >&6; }
8827 if test "${ac_cv_working_alloca_h+set}" = set; then
8828 $as_echo_n "(cached) " >&6
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8840 char *p = (char *) alloca (2 * sizeof (int));
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853 $as_echo "$ac_try_echo") >&5
8854 (eval "$ac_link") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1 >conftest.err
8858 cat conftest.err >&5
8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest$ac_exeext && {
8864 test "$cross_compiling" = yes ||
8865 $as_test_x conftest$ac_exeext
8867 ac_cv_working_alloca_h=yes
8869 $as_echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_cv_working_alloca_h=no
8875 rm -rf conftest.dSYM
8876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8877 conftest$ac_exeext conftest.$ac_ext
8879 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8880 $as_echo "$ac_cv_working_alloca_h" >&6; }
8881 if test $ac_cv_working_alloca_h = yes; then
8883 cat >>confdefs.h <<\_ACEOF
8884 #define HAVE_ALLOCA_H 1
8889 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8890 $as_echo_n "checking for alloca... " >&6; }
8891 if test "${ac_cv_func_alloca_works+set}" = set; then
8892 $as_echo_n "(cached) " >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 # define alloca __builtin_alloca
8904 # include <malloc.h>
8905 # define alloca _alloca
8907 # ifdef HAVE_ALLOCA_H
8908 # include <alloca.h>
8913 # ifndef alloca /* predefined by HP cc +Olibcalls */
8924 char *p = (char *) alloca (1);
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (ac_try="$ac_link"
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938 (eval "$ac_link") 2>conftest.er1
8940 grep -v '^ *+' conftest.er1 >conftest.err
8942 cat conftest.err >&5
8943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_c_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest$ac_exeext && {
8948 test "$cross_compiling" = yes ||
8949 $as_test_x conftest$ac_exeext
8951 ac_cv_func_alloca_works=yes
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_func_alloca_works=no
8959 rm -rf conftest.dSYM
8960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961 conftest$ac_exeext conftest.$ac_ext
8963 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8964 $as_echo "$ac_cv_func_alloca_works" >&6; }
8966 if test $ac_cv_func_alloca_works = yes; then
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_ALLOCA 1
8973 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8974 # that cause trouble. Some versions do not even contain alloca or
8975 # contain a buggy version. If you still want to use their alloca,
8976 # use ar to extract alloca.o from them instead of compiling alloca.c.
8982 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8984 cat >>confdefs.h <<\_ACEOF
8989 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8990 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8991 if test "${ac_cv_os_cray+set}" = set; then
8992 $as_echo_n "(cached) " >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 #if defined CRAY && ! defined CRAY2
9007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9008 $EGREP "webecray" >/dev/null 2>&1; then
9016 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9017 $as_echo "$ac_cv_os_cray" >&6; }
9018 if test $ac_cv_os_cray = yes; then
9019 for ac_func in _getb67 GETB67 getb67; do
9020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9021 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9022 $as_echo_n "checking for $ac_func... " >&6; }
9023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9024 $as_echo_n "(cached) " >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9034 #define $ac_func innocuous_$ac_func
9036 /* System header to define __stub macros and hopefully few prototypes,
9037 which can conflict with char $ac_func (); below.
9038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039 <limits.h> exists even on freestanding compilers. */
9042 # include <limits.h>
9044 # include <assert.h>
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9056 /* The GNU C library defines this for functions which it implements
9057 to always fail with ENOSYS. Some functions are actually named
9058 something starting with __ and the normal name is an alias. */
9059 #if defined __stub_$ac_func || defined __stub___$ac_func
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9078 $as_echo "$ac_try_echo") >&5
9079 (eval "$ac_link") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest$ac_exeext && {
9089 test "$cross_compiling" = yes ||
9090 $as_test_x conftest$ac_exeext
9092 eval "$as_ac_var=yes"
9094 $as_echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 eval "$as_ac_var=no"
9100 rm -rf conftest.dSYM
9101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9102 conftest$ac_exeext conftest.$ac_ext
9104 ac_res=`eval 'as_val=${'$as_ac_var'}
9105 $as_echo "$as_val"'`
9106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9107 $as_echo "$ac_res" >&6; }
9108 as_val=`eval 'as_val=${'$as_ac_var'}
9109 $as_echo "$as_val"'`
9110 if test "x$as_val" = x""yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define CRAY_STACKSEG_END $ac_func
9122 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9123 $as_echo_n "checking stack direction for C alloca... " >&6; }
9124 if test "${ac_cv_c_stack_direction+set}" = set; then
9125 $as_echo_n "(cached) " >&6
9127 if test "$cross_compiling" = yes; then
9128 ac_cv_c_stack_direction=0
9130 cat >conftest.$ac_ext <<_ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9136 $ac_includes_default
9138 find_stack_direction ()
9140 static char *addr = 0;
9145 return find_stack_direction ();
9148 return (&dummy > addr) ? 1 : -1;
9154 return find_stack_direction () < 0;
9157 rm -f conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9164 $as_echo "$ac_try_echo") >&5
9165 (eval "$ac_link") 2>&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9169 { (case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_try") 2>&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_c_stack_direction=1
9181 $as_echo "$as_me: program exited with status $ac_status" >&5
9182 $as_echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9186 ac_cv_c_stack_direction=-1
9188 rm -rf conftest.dSYM
9189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9194 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9195 $as_echo "$ac_cv_c_stack_direction" >&6; }
9197 cat >>confdefs.h <<_ACEOF
9198 #define STACK_DIRECTION $ac_cv_c_stack_direction
9204 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9205 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9206 if test "${ac_cv_c_restrict+set}" = set; then
9207 $as_echo_n "(cached) " >&6
9210 # The order here caters to the fact that C++ does not require restrict.
9211 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 typedef int * int_ptr;
9219 int foo (int_ptr $ac_kw ip) {
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9240 $as_echo "$ac_try_echo") >&5
9241 (eval "$ac_compile") 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest.$ac_objext; then
9251 ac_cv_c_restrict=$ac_kw
9253 $as_echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260 test "$ac_cv_c_restrict" != no && break
9264 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9265 $as_echo "$ac_cv_c_restrict" >&6; }
9268 case $ac_cv_c_restrict in
9270 no) cat >>confdefs.h <<\_ACEOF
9271 #define restrict /**/
9274 *) cat >>confdefs.h <<_ACEOF
9275 #define restrict $ac_cv_c_restrict
9280 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9281 $as_echo_n "checking whether getenv is declared... " >&6; }
9282 if test "${ac_cv_have_decl_getenv+set}" = set; then
9283 $as_echo_n "(cached) " >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 $ac_includes_default
9303 rm -f conftest.$ac_objext
9304 if { (ac_try="$ac_compile"
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310 $as_echo "$ac_try_echo") >&5
9311 (eval "$ac_compile") 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.$ac_objext; then
9321 ac_cv_have_decl_getenv=yes
9323 $as_echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_have_decl_getenv=no
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9332 $as_echo "$ac_cv_have_decl_getenv" >&6; }
9333 if test "x$ac_cv_have_decl_getenv" = x""yes; then
9335 cat >>confdefs.h <<_ACEOF
9336 #define HAVE_DECL_GETENV 1
9341 cat >>confdefs.h <<_ACEOF
9342 #define HAVE_DECL_GETENV 0
9349 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9350 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
9351 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9352 $as_echo_n "(cached) " >&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
9364 #ifndef clearerr_unlocked
9365 (void) clearerr_unlocked;
9372 rm -f conftest.$ac_objext
9373 if { (ac_try="$ac_compile"
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9379 $as_echo "$ac_try_echo") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_cv_have_decl_clearerr_unlocked=yes
9392 $as_echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_cv_have_decl_clearerr_unlocked=no
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9401 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
9402 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_CLEARERR_UNLOCKED 1
9410 cat >>confdefs.h <<_ACEOF
9411 #define HAVE_DECL_CLEARERR_UNLOCKED 0
9418 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9419 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9420 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9421 $as_echo_n "(cached) " >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 $ac_includes_default
9433 #ifndef feof_unlocked
9434 (void) feof_unlocked;
9441 rm -f conftest.$ac_objext
9442 if { (ac_try="$ac_compile"
9444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9448 $as_echo "$ac_try_echo") >&5
9449 (eval "$ac_compile") 2>conftest.er1
9451 grep -v '^ *+' conftest.er1 >conftest.err
9453 cat conftest.err >&5
9454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && {
9456 test -z "$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9458 } && test -s conftest.$ac_objext; then
9459 ac_cv_have_decl_feof_unlocked=yes
9461 $as_echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 ac_cv_have_decl_feof_unlocked=no
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9470 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9471 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
9473 cat >>confdefs.h <<_ACEOF
9474 #define HAVE_DECL_FEOF_UNLOCKED 1
9479 cat >>confdefs.h <<_ACEOF
9480 #define HAVE_DECL_FEOF_UNLOCKED 0
9487 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9488 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
9489 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9490 $as_echo_n "(cached) " >&6
9492 cat >conftest.$ac_ext <<_ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 $ac_includes_default
9502 #ifndef ferror_unlocked
9503 (void) ferror_unlocked;
9510 rm -f conftest.$ac_objext
9511 if { (ac_try="$ac_compile"
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9517 $as_echo "$ac_try_echo") >&5
9518 (eval "$ac_compile") 2>conftest.er1
9520 grep -v '^ *+' conftest.er1 >conftest.err
9522 cat conftest.err >&5
9523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest.$ac_objext; then
9528 ac_cv_have_decl_ferror_unlocked=yes
9530 $as_echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 ac_cv_have_decl_ferror_unlocked=no
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9539 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
9540 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
9542 cat >>confdefs.h <<_ACEOF
9543 #define HAVE_DECL_FERROR_UNLOCKED 1
9548 cat >>confdefs.h <<_ACEOF
9549 #define HAVE_DECL_FERROR_UNLOCKED 0
9556 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9557 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
9558 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9559 $as_echo_n "(cached) " >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9571 #ifndef fflush_unlocked
9572 (void) fflush_unlocked;
9579 rm -f conftest.$ac_objext
9580 if { (ac_try="$ac_compile"
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9586 $as_echo "$ac_try_echo") >&5
9587 (eval "$ac_compile") 2>conftest.er1
9589 grep -v '^ *+' conftest.er1 >conftest.err
9591 cat conftest.err >&5
9592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_c_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest.$ac_objext; then
9597 ac_cv_have_decl_fflush_unlocked=yes
9599 $as_echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_cv_have_decl_fflush_unlocked=no
9605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9608 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
9609 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
9611 cat >>confdefs.h <<_ACEOF
9612 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9617 cat >>confdefs.h <<_ACEOF
9618 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9625 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9626 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9627 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9628 $as_echo_n "(cached) " >&6
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 $ac_includes_default
9640 #ifndef fgets_unlocked
9641 (void) fgets_unlocked;
9648 rm -f conftest.$ac_objext
9649 if { (ac_try="$ac_compile"
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9655 $as_echo "$ac_try_echo") >&5
9656 (eval "$ac_compile") 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest.$ac_objext; then
9666 ac_cv_have_decl_fgets_unlocked=yes
9668 $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_cv_have_decl_fgets_unlocked=no
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9677 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
9678 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
9680 cat >>confdefs.h <<_ACEOF
9681 #define HAVE_DECL_FGETS_UNLOCKED 1
9686 cat >>confdefs.h <<_ACEOF
9687 #define HAVE_DECL_FGETS_UNLOCKED 0
9694 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9695 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
9696 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9697 $as_echo_n "(cached) " >&6
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9709 #ifndef fputc_unlocked
9710 (void) fputc_unlocked;
9717 rm -f conftest.$ac_objext
9718 if { (ac_try="$ac_compile"
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9724 $as_echo "$ac_try_echo") >&5
9725 (eval "$ac_compile") 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest.$ac_objext; then
9735 ac_cv_have_decl_fputc_unlocked=yes
9737 $as_echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_have_decl_fputc_unlocked=no
9743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9746 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
9747 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
9749 cat >>confdefs.h <<_ACEOF
9750 #define HAVE_DECL_FPUTC_UNLOCKED 1
9755 cat >>confdefs.h <<_ACEOF
9756 #define HAVE_DECL_FPUTC_UNLOCKED 0
9763 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9764 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
9765 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9766 $as_echo_n "(cached) " >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 $ac_includes_default
9778 #ifndef fputs_unlocked
9779 (void) fputs_unlocked;
9786 rm -f conftest.$ac_objext
9787 if { (ac_try="$ac_compile"
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_compile") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest.$ac_objext; then
9804 ac_cv_have_decl_fputs_unlocked=yes
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_have_decl_fputs_unlocked=no
9812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9815 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
9816 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_DECL_FPUTS_UNLOCKED 1
9824 cat >>confdefs.h <<_ACEOF
9825 #define HAVE_DECL_FPUTS_UNLOCKED 0
9832 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
9833 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
9834 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
9835 $as_echo_n "(cached) " >&6
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9847 #ifndef fread_unlocked
9848 (void) fread_unlocked;
9855 rm -f conftest.$ac_objext
9856 if { (ac_try="$ac_compile"
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863 (eval "$ac_compile") 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest.$ac_objext; then
9873 ac_cv_have_decl_fread_unlocked=yes
9875 $as_echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_cv_have_decl_fread_unlocked=no
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9884 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
9885 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
9887 cat >>confdefs.h <<_ACEOF
9888 #define HAVE_DECL_FREAD_UNLOCKED 1
9893 cat >>confdefs.h <<_ACEOF
9894 #define HAVE_DECL_FREAD_UNLOCKED 0
9901 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9902 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
9903 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9904 $as_echo_n "(cached) " >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 $ac_includes_default
9916 #ifndef fwrite_unlocked
9917 (void) fwrite_unlocked;
9924 rm -f conftest.$ac_objext
9925 if { (ac_try="$ac_compile"
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9931 $as_echo "$ac_try_echo") >&5
9932 (eval "$ac_compile") 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest.$ac_objext; then
9942 ac_cv_have_decl_fwrite_unlocked=yes
9944 $as_echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 ac_cv_have_decl_fwrite_unlocked=no
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9953 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
9954 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_DECL_FWRITE_UNLOCKED 1
9962 cat >>confdefs.h <<_ACEOF
9963 #define HAVE_DECL_FWRITE_UNLOCKED 0
9970 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9971 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
9972 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9975 cat >conftest.$ac_ext <<_ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 $ac_includes_default
9985 #ifndef getc_unlocked
9986 (void) getc_unlocked;
9993 rm -f conftest.$ac_objext
9994 if { (ac_try="$ac_compile"
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000 $as_echo "$ac_try_echo") >&5
10001 (eval "$ac_compile") 2>conftest.er1
10003 grep -v '^ *+' conftest.er1 >conftest.err
10005 cat conftest.err >&5
10006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest.$ac_objext; then
10011 ac_cv_have_decl_getc_unlocked=yes
10013 $as_echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_cv_have_decl_getc_unlocked=no
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10022 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10023 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_DECL_GETC_UNLOCKED 1
10031 cat >>confdefs.h <<_ACEOF
10032 #define HAVE_DECL_GETC_UNLOCKED 0
10039 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
10040 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
10041 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
10042 $as_echo_n "(cached) " >&6
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10054 #ifndef getchar_unlocked
10055 (void) getchar_unlocked;
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_cv_have_decl_getchar_unlocked=yes
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_have_decl_getchar_unlocked=no
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
10091 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
10092 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
10094 cat >>confdefs.h <<_ACEOF
10095 #define HAVE_DECL_GETCHAR_UNLOCKED 1
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_DECL_GETCHAR_UNLOCKED 0
10108 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10109 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10110 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10111 $as_echo_n "(cached) " >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10123 #ifndef putc_unlocked
10124 (void) putc_unlocked;
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10138 $as_echo "$ac_try_echo") >&5
10139 (eval "$ac_compile") 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest.$ac_objext; then
10149 ac_cv_have_decl_putc_unlocked=yes
10151 $as_echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 ac_cv_have_decl_putc_unlocked=no
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10160 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10161 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
10163 cat >>confdefs.h <<_ACEOF
10164 #define HAVE_DECL_PUTC_UNLOCKED 1
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_DECL_PUTC_UNLOCKED 0
10177 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
10178 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
10179 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
10180 $as_echo_n "(cached) " >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 $ac_includes_default
10192 #ifndef putchar_unlocked
10193 (void) putchar_unlocked;
10200 rm -f conftest.$ac_objext
10201 if { (ac_try="$ac_compile"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10207 $as_echo "$ac_try_echo") >&5
10208 (eval "$ac_compile") 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && {
10215 test -z "$ac_c_werror_flag" ||
10216 test ! -s conftest.err
10217 } && test -s conftest.$ac_objext; then
10218 ac_cv_have_decl_putchar_unlocked=yes
10220 $as_echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_have_decl_putchar_unlocked=no
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
10229 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
10230 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
10232 cat >>confdefs.h <<_ACEOF
10233 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
10238 cat >>confdefs.h <<_ACEOF
10239 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
10250 for ac_func in $ac_func_list
10252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10253 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10254 $as_echo_n "checking for $ac_func... " >&6; }
10255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10256 $as_echo_n "(cached) " >&6
10258 cat >conftest.$ac_ext <<_ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10266 #define $ac_func innocuous_$ac_func
10268 /* System header to define __stub macros and hopefully few prototypes,
10269 which can conflict with char $ac_func (); below.
10270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10271 <limits.h> exists even on freestanding compilers. */
10274 # include <limits.h>
10276 # include <assert.h>
10281 /* Override any GCC internal prototype to avoid an error.
10282 Use char because int might match the return type of a GCC
10283 builtin and then its argument prototype would still apply. */
10288 /* The GNU C library defines this for functions which it implements
10289 to always fail with ENOSYS. Some functions are actually named
10290 something starting with __ and the normal name is an alias. */
10291 #if defined __stub_$ac_func || defined __stub___$ac_func
10298 return $ac_func ();
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (ac_try="$ac_link"
10305 case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310 $as_echo "$ac_try_echo") >&5
10311 (eval "$ac_link") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest$ac_exeext && {
10321 test "$cross_compiling" = yes ||
10322 $as_test_x conftest$ac_exeext
10324 eval "$as_ac_var=yes"
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 eval "$as_ac_var=no"
10332 rm -rf conftest.dSYM
10333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10334 conftest$ac_exeext conftest.$ac_ext
10336 ac_res=`eval 'as_val=${'$as_ac_var'}
10337 $as_echo "$as_val"'`
10338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10339 $as_echo "$ac_res" >&6; }
10340 as_val=`eval 'as_val=${'$as_ac_var'}
10341 $as_echo "$as_val"'`
10342 if test "x$as_val" = x""yes; then
10343 cat >>confdefs.h <<_ACEOF
10344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10359 XGETTEXT_EXTRA_OPTIONS=
10361 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10362 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
10363 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
10364 $as_echo_n "(cached) " >&6
10366 if test "$cross_compiling" = yes; then
10367 gl_cv_struct_dirent_d_ino=no
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 #include <sys/types.h>
10376 #include <sys/stat.h>
10377 #include <dirent.h>
10382 DIR *dp = opendir (".");
10389 && stat (e->d_name, &st) == 0
10390 && e->d_ino == st.st_ino);
10395 rm -f conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10402 $as_echo "$ac_try_echo") >&5
10403 (eval "$ac_link") 2>&5
10405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10407 { (case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412 $as_echo "$ac_try_echo") >&5
10413 (eval "$ac_try") 2>&5
10415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 gl_cv_struct_dirent_d_ino=yes
10419 $as_echo "$as_me: program exited with status $ac_status" >&5
10420 $as_echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ( exit $ac_status )
10424 gl_cv_struct_dirent_d_ino=no
10426 rm -rf conftest.dSYM
10427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10432 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
10433 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
10434 if test $gl_cv_struct_dirent_d_ino = yes; then
10436 cat >>confdefs.h <<\_ACEOF
10437 #define D_INO_IN_DIRENT 1
10444 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10445 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10446 if test "${ac_cv_win_or_dos+set}" = set; then
10447 $as_echo_n "(cached) " >&6
10450 cat >conftest.$ac_ext <<_ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10461 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10462 neither MSDOS nor Windows
10468 rm -f conftest.$ac_objext
10469 if { (ac_try="$ac_compile"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10475 $as_echo "$ac_try_echo") >&5
10476 (eval "$ac_compile") 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } && {
10483 test -z "$ac_c_werror_flag" ||
10484 test ! -s conftest.err
10485 } && test -s conftest.$ac_objext; then
10486 ac_cv_win_or_dos=yes
10488 $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_win_or_dos=no
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
10498 $as_echo "$ac_cv_win_or_dos" >&6; }
10500 if test x"$ac_cv_win_or_dos" = xyes; then
10501 ac_fs_accepts_drive_letter_prefix=1
10502 ac_fs_backslash_is_file_name_separator=1
10503 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
10504 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
10505 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
10506 $as_echo_n "(cached) " >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10520 #if defined __CYGWIN__
10521 drive letters are always absolute
10527 rm -f conftest.$ac_objext
10528 if { (ac_try="$ac_compile"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534 $as_echo "$ac_try_echo") >&5
10535 (eval "$ac_compile") 2>conftest.er1
10537 grep -v '^ *+' conftest.er1 >conftest.err
10539 cat conftest.err >&5
10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest.$ac_objext; then
10545 ac_cv_drive_letter_can_be_relative=yes
10547 $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ac_cv_drive_letter_can_be_relative=no
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
10557 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10558 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10559 ac_fs_drive_letter_can_be_relative=1
10561 ac_fs_drive_letter_can_be_relative=0
10564 ac_fs_accepts_drive_letter_prefix=0
10565 ac_fs_backslash_is_file_name_separator=0
10566 ac_fs_drive_letter_can_be_relative=0
10570 cat >>confdefs.h <<_ACEOF
10571 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10579 cat >>confdefs.h <<_ACEOF
10580 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10585 cat >>confdefs.h <<_ACEOF
10586 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10590 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
10591 $as_echo_n "checking for long file names... " >&6; }
10592 if test "${ac_cv_sys_long_file_names+set}" = set; then
10593 $as_echo_n "(cached) " >&6
10595 ac_cv_sys_long_file_names=yes
10596 # Test for long file names in all the places we know might matter:
10597 # . the current directory, where building will happen
10598 # $prefix/lib where we will be installing things
10599 # $exec_prefix/lib likewise
10600 # $TMPDIR if set, where it might want to write temporary files
10601 # /tmp where it might want to write temporary files
10602 # /var/tmp likewise
10603 # /usr/tmp likewise
10604 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10605 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10606 # in the usual case where exec_prefix is '${prefix}'.
10608 . | /* | ?:[\\/]*) ;; #(
10611 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10612 ac_xdir=$ac_dir/cf$$
10613 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10614 ac_tf1=$ac_xdir/conftest9012345
10615 ac_tf2=$ac_xdir/conftest9012346
10616 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10617 ac_cv_sys_long_file_names=no
10618 rm -f -r "$ac_xdir" 2>/dev/null
10619 test $ac_cv_sys_long_file_names = no && break
10622 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10623 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10624 if test $ac_cv_sys_long_file_names = yes; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_LONG_FILE_NAMES 1
10640 GNULIB_MBSRTOWCS=0;
10641 GNULIB_MBSNRTOWCS=0;
10643 GNULIB_WCSRTOMBS=0;
10644 GNULIB_WCSNRTOMBS=0;
10656 HAVE_DECL_WCWIDTH=1;
10657 REPLACE_MBSTATE_T=0;
10663 REPLACE_MBSRTOWCS=0;
10664 REPLACE_MBSNRTOWCS=0;
10666 REPLACE_WCSRTOMBS=0;
10667 REPLACE_WCSNRTOMBS=0;
10671 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
10672 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10673 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
10674 $as_echo_n "(cached) " >&6
10676 gl_cv_header_wchar_h_correct_inline=yes
10677 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #define wcstod renamed_wcstod
10686 extern int zero (void);
10687 int main () { return zero(); }
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691 (eval $ac_compile) 2>&5
10693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; then
10695 mv conftest.$ac_objext conftest1.$ac_objext
10696 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 #define wcstod renamed_wcstod
10705 int zero (void) { return 0; }
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>&5
10711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; then
10713 mv conftest.$ac_objext conftest2.$ac_objext
10714 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10717 gl_cv_header_wchar_h_correct_inline=no
10721 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10724 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
10725 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10726 if test $gl_cv_header_wchar_h_correct_inline = no; then
10727 { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10728 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10729 C99 mode. You have four options:
10730 - Add the flag -fgnu89-inline to CC and reconfigure, or
10731 - Fix your include files, using parts of
10732 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10733 - Use a gcc version older than 4.3, or
10734 - Don't use the flags -std=c99 or -std=gnu99.
10735 Configuration aborted." >&5
10736 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10737 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10738 C99 mode. You have four options:
10739 - Add the flag -fgnu89-inline to CC and reconfigure, or
10740 - Fix your include files, using parts of
10741 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10742 - Use a gcc version older than 4.3, or
10743 - Don't use the flags -std=c99 or -std=gnu99.
10744 Configuration aborted." >&2;}
10745 { (exit 1); exit 1; }; }
10751 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10752 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10753 if test "${am_cv_langinfo_codeset+set}" = set; then
10754 $as_echo_n "(cached) " >&6
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 #include <langinfo.h>
10766 char* cs = nl_langinfo(CODESET); return !cs;
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (ac_try="$ac_link"
10773 case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10778 $as_echo "$ac_try_echo") >&5
10779 (eval "$ac_link") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && {
10786 test -z "$ac_c_werror_flag" ||
10787 test ! -s conftest.err
10788 } && test -s conftest$ac_exeext && {
10789 test "$cross_compiling" = yes ||
10790 $as_test_x conftest$ac_exeext
10792 am_cv_langinfo_codeset=yes
10794 $as_echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 am_cv_langinfo_codeset=no
10800 rm -rf conftest.dSYM
10801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10802 conftest$ac_exeext conftest.$ac_ext
10805 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10806 $as_echo "$am_cv_langinfo_codeset" >&6; }
10807 if test $am_cv_langinfo_codeset = yes; then
10809 cat >>confdefs.h <<\_ACEOF
10810 #define HAVE_LANGINFO_CODESET 1
10818 { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
10819 $as_echo_n "checking for a traditional french locale... " >&6; }
10820 if test "${gt_cv_locale_fr+set}" = set; then
10821 $as_echo_n "(cached) " >&6
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10831 #include <locale.h>
10833 #if HAVE_LANGINFO_CODESET
10834 # include <langinfo.h>
10836 #include <stdlib.h>
10837 #include <string.h>
10841 /* Check whether the given locale name is recognized by the system. */
10842 if (setlocale (LC_ALL, "") == NULL) return 1;
10843 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10844 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10845 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10846 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10847 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10848 some unit tests fail. */
10849 #if HAVE_LANGINFO_CODESET
10851 const char *cs = nl_langinfo (CODESET);
10852 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10857 /* On Cygwin, avoid locale names without encoding suffix, because the
10858 locale_charset() function relies on the encoding suffix. Note that
10859 LC_ALL is set on the command line. */
10860 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10862 /* Check whether in the abbreviation of the second month, the second
10863 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10864 one byte long. This excludes the UTF-8 encoding. */
10865 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10866 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10867 /* Check whether the decimal separator is a comma.
10868 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10869 are nl_langinfo(RADIXCHAR) are both ".". */
10870 if (localeconv () ->decimal_point[0] != ',') return 1;
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876 (eval $ac_link) 2>&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && test -s conftest$ac_exeext; then
10880 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10881 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10882 # configure script would override the LC_ALL setting. Likewise for
10883 # LC_CTYPE, which is also set at the beginning of the configure script.
10884 # Test for the usual locale name.
10885 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10886 gt_cv_locale_fr=fr_FR
10888 # Test for the locale name with explicit encoding suffix.
10889 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10890 gt_cv_locale_fr=fr_FR.ISO-8859-1
10892 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10893 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10894 gt_cv_locale_fr=fr_FR.ISO8859-1
10896 # Test for the HP-UX locale name.
10897 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10898 gt_cv_locale_fr=fr_FR.iso88591
10900 # Test for the Solaris 7 locale name.
10901 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10905 gt_cv_locale_fr=none
10915 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
10916 $as_echo "$gt_cv_locale_fr" >&6; }
10917 LOCALE_FR=$gt_cv_locale_fr
10924 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10925 $as_echo_n "checking whether // is distinct from /... " >&6; }
10926 if test "${gl_cv_double_slash_root+set}" = set; then
10927 $as_echo_n "(cached) " >&6
10929 if test x"$cross_compiling" = xyes ; then
10930 # When cross-compiling, there is no way to tell whether // is special
10931 # short of a list of hosts. However, the only known hosts to date
10932 # that have a distinct // are Apollo DomainOS (too old to port to),
10933 # Cygwin, and z/OS. If anyone knows of another system for which // has
10934 # special semantics and is distinct from /, please report it to
10935 # <bug-gnulib@gnu.org>.
10937 *-cygwin | i370-ibm-openedition)
10938 gl_cv_double_slash_root=yes ;;
10940 # Be optimistic and assume that / and // are the same when we
10942 gl_cv_double_slash_root='unknown, assuming no' ;;
10945 set x `ls -di / // 2>/dev/null`
10946 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10947 gl_cv_double_slash_root=no
10949 gl_cv_double_slash_root=yes
10953 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10954 $as_echo "$gl_cv_double_slash_root" >&6; }
10955 if test "$gl_cv_double_slash_root" = yes; then
10957 cat >>confdefs.h <<\_ACEOF
10958 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10972 { $as_echo "$as_me:$LINENO: checking whether realpath works" >&5
10973 $as_echo_n "checking whether realpath works... " >&6; }
10974 if test "${gl_cv_func_realpath_works+set}" = set; then
10975 $as_echo_n "(cached) " >&6
10979 if test "$cross_compiling" = yes; then
10980 gl_cv_func_realpath_works="guessing no"
10982 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10990 #include <stdlib.h>
10996 char *name1 = realpath ("conftest.a", NULL);
10997 char *name2 = realpath ("conftest.b/../conftest.a", NULL);
10998 char *name3 = realpath ("conftest.a/", NULL);
10999 return !(name1 && *name1 == '/' && !name2 && !name3);
11006 rm -f conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11013 $as_echo "$ac_try_echo") >&5
11014 (eval "$ac_link") 2>&5
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11023 $as_echo "$ac_try_echo") >&5
11024 (eval "$ac_try") 2>&5
11026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 gl_cv_func_realpath_works=yes
11030 $as_echo "$as_me: program exited with status $ac_status" >&5
11031 $as_echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ( exit $ac_status )
11035 gl_cv_func_realpath_works=no
11037 rm -rf conftest.dSYM
11038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11044 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_realpath_works" >&5
11045 $as_echo "$gl_cv_func_realpath_works" >&6; }
11046 if test "$gl_cv_func_realpath_works" = yes; then
11048 cat >>confdefs.h <<\_ACEOF
11049 #define FUNC_REALPATH_WORKS 1
11056 GNULIB_CALLOC_POSIX=0;
11057 GNULIB_CANONICALIZE_FILE_NAME=0;
11058 GNULIB_GETLOADAVG=0;
11059 GNULIB_GETSUBOPT=0;
11060 GNULIB_MALLOC_POSIX=0;
11063 GNULIB_MKOSTEMPS=0;
11068 GNULIB_REALLOC_POSIX=0;
11077 HAVE_CALLOC_POSIX=1;
11078 HAVE_CANONICALIZE_FILE_NAME=1;
11079 HAVE_DECL_GETLOADAVG=1;
11081 HAVE_MALLOC_POSIX=1;
11087 HAVE_REALLOC_POSIX=1;
11094 HAVE_STRUCT_RANDOM_DATA=1;
11095 HAVE_SYS_LOADAVG_H=0;
11097 REPLACE_CANONICALIZE_FILE_NAME=0;
11100 REPLACE_REALPATH=0;
11103 REPLACE_UNSETENV=0;
11111 GNULIB_EUIDACCESS=0;
11112 GNULIB_FACCESSAT=0;
11116 GNULIB_FTRUNCATE=0;
11118 GNULIB_GETDOMAINNAME=0;
11119 GNULIB_GETDTABLESIZE=0;
11120 GNULIB_GETGROUPS=0;
11121 GNULIB_GETHOSTNAME=0;
11123 GNULIB_GETLOGIN_R=0;
11124 GNULIB_GETPAGESIZE=0;
11125 GNULIB_GETUSERSHELL=0;
11133 GNULIB_READLINKAT=0;
11137 GNULIB_SYMLINKAT=0;
11138 GNULIB_UNISTD_H_GETOPT=0;
11139 GNULIB_UNISTD_H_SIGPIPE=0;
11152 HAVE_GETDOMAINNAME=1;
11153 HAVE_GETDTABLESIZE=1;
11155 HAVE_GETHOSTNAME=1;
11157 HAVE_GETPAGESIZE=1;
11158 HAVE_GETUSERSHELL=1;
11169 HAVE_DECL_ENVIRON=1;
11170 HAVE_DECL_GETLOGIN_R=1;
11172 HAVE_SYS_PARAM_H=0;
11180 REPLACE_FCHOWNAT=0;
11182 REPLACE_GETGROUPS=0;
11183 REPLACE_GETPAGESIZE=0;
11189 REPLACE_READLINK=0;
11194 REPLACE_UNLINKAT=0;
11197 UNISTD_H_HAVE_WINSOCK2_H=0;
11198 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11202 for ac_header in unistd.h
11204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11207 $as_echo_n "checking for $ac_header... " >&6; }
11208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 $as_echo_n "(cached) " >&6
11211 ac_res=`eval 'as_val=${'$as_ac_Header'}
11212 $as_echo "$as_val"'`
11213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11214 $as_echo "$ac_res" >&6; }
11216 # Is the header compilable?
11217 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11218 $as_echo_n "checking $ac_header usability... " >&6; }
11219 cat >conftest.$ac_ext <<_ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11225 $ac_includes_default
11226 #include <$ac_header>
11228 rm -f conftest.$ac_objext
11229 if { (ac_try="$ac_compile"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11235 $as_echo "$ac_try_echo") >&5
11236 (eval "$ac_compile") 2>conftest.er1
11238 grep -v '^ *+' conftest.er1 >conftest.err
11240 cat conftest.err >&5
11241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_c_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest.$ac_objext; then
11246 ac_header_compiler=yes
11248 $as_echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 ac_header_compiler=no
11254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11256 $as_echo "$ac_header_compiler" >&6; }
11258 # Is the header present?
11259 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11260 $as_echo_n "checking $ac_header presence... " >&6; }
11261 cat >conftest.$ac_ext <<_ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <$ac_header>
11269 if { (ac_try="$ac_cpp conftest.$ac_ext"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11275 $as_echo "$ac_try_echo") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null && {
11283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11286 ac_header_preproc=yes
11288 $as_echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_header_preproc=no
11294 rm -f conftest.err conftest.$ac_ext
11295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 $as_echo "$ac_header_preproc" >&6; }
11298 # So? What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305 ac_header_preproc=yes
11308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11311 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11315 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11321 ## ------------------------------ ##
11322 ## Report this to bug-tar@gnu.org ##
11323 ## ------------------------------ ##
11325 ) | sed "s/^/$as_me: WARNING: /" >&2
11328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 $as_echo_n "checking for $ac_header... " >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 $as_echo_n "(cached) " >&6
11333 eval "$as_ac_Header=\$ac_header_preproc"
11335 ac_res=`eval 'as_val=${'$as_ac_Header'}
11336 $as_echo "$as_val"'`
11337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11338 $as_echo "$ac_res" >&6; }
11341 as_val=`eval 'as_val=${'$as_ac_Header'}
11342 $as_echo "$as_val"'`
11343 if test "x$as_val" = x""yes; then
11344 cat >>confdefs.h <<_ACEOF
11345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11352 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
11353 $as_echo_n "checking for working chown... " >&6; }
11354 if test "${ac_cv_func_chown_works+set}" = set; then
11355 $as_echo_n "(cached) " >&6
11357 if test "$cross_compiling" = yes; then
11358 ac_cv_func_chown_works=no
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11372 char *f = "conftest.chown";
11373 struct stat before, after;
11375 if (creat (f, 0600) < 0)
11377 if (stat (f, &before) < 0)
11379 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11381 if (stat (f, &after) < 0)
11383 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11389 rm -f conftest$ac_exeext
11390 if { (ac_try="$ac_link"
11391 case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11396 $as_echo "$ac_try_echo") >&5
11397 (eval "$ac_link") 2>&5
11399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11401 { (case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407 (eval "$ac_try") 2>&5
11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_cv_func_chown_works=yes
11413 $as_echo "$as_me: program exited with status $ac_status" >&5
11414 $as_echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ( exit $ac_status )
11418 ac_cv_func_chown_works=no
11420 rm -rf conftest.dSYM
11421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11425 rm -f conftest.chown
11428 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11429 $as_echo "$ac_cv_func_chown_works" >&6; }
11430 if test $ac_cv_func_chown_works = yes; then
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_CHOWN 1
11439 { $as_echo "$as_me:$LINENO: checking whether chown dereferences symlinks" >&5
11440 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
11441 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
11442 $as_echo_n "(cached) " >&6
11445 if test "$cross_compiling" = yes; then
11446 gl_cv_func_chown_follows_symlink=yes
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11456 #include <unistd.h>
11457 #include <stdlib.h>
11463 char const *dangling_symlink = "conftest.dangle";
11465 unlink (dangling_symlink);
11466 if (symlink ("conftest.no-such", dangling_symlink))
11469 /* Exit successfully on a conforming system,
11470 i.e., where chown must fail with ENOENT. */
11471 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
11472 && errno == ENOENT));
11476 rm -f conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11483 $as_echo "$ac_try_echo") >&5
11484 (eval "$ac_link") 2>&5
11486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11493 $as_echo "$ac_try_echo") >&5
11494 (eval "$ac_try") 2>&5
11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 gl_cv_func_chown_follows_symlink=yes
11500 $as_echo "$as_me: program exited with status $ac_status" >&5
11501 $as_echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ( exit $ac_status )
11505 gl_cv_func_chown_follows_symlink=no
11507 rm -rf conftest.dSYM
11508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11515 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
11516 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
11518 if test $gl_cv_func_chown_follows_symlink = no; then
11520 cat >>confdefs.h <<\_ACEOF
11521 #define CHOWN_MODIFIES_SYMLINK 1
11545 if test $ac_cv_func_chown = no; then
11555 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11558 if test $gl_cv_func_chown_follows_symlink = no; then
11568 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11572 if test $ac_cv_func_chown_works = no; then
11574 cat >>confdefs.h <<\_ACEOF
11575 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
11587 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11591 { $as_echo "$as_me:$LINENO: checking whether chown honors trailing slash" >&5
11592 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
11593 if test "${gl_cv_func_chown_slash_works+set}" = set; then
11594 $as_echo_n "(cached) " >&6
11596 touch conftest.file && rm -f conftest.link
11597 if test "$cross_compiling" = yes; then
11598 gl_cv_func_chown_slash_works="guessing no"
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11607 #include <unistd.h>
11608 #include <stdlib.h>
11614 if (symlink ("conftest.file", "conftest.link")) return 1;
11615 if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
11621 rm -f conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11628 $as_echo "$ac_try_echo") >&5
11629 (eval "$ac_link") 2>&5
11631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11638 $as_echo "$ac_try_echo") >&5
11639 (eval "$ac_try") 2>&5
11641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 gl_cv_func_chown_slash_works=yes
11645 $as_echo "$as_me: program exited with status $ac_status" >&5
11646 $as_echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 ( exit $ac_status )
11650 gl_cv_func_chown_slash_works=no
11652 rm -rf conftest.dSYM
11653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11657 rm -f conftest.link conftest.file
11659 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_slash_works" >&5
11660 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
11661 if test "$gl_cv_func_chown_slash_works" != yes; then
11663 cat >>confdefs.h <<\_ACEOF
11664 #define CHOWN_TRAILING_SLASH_BUG 1
11676 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11680 { $as_echo "$as_me:$LINENO: checking whether chown always updates ctime" >&5
11681 $as_echo_n "checking whether chown always updates ctime... " >&6; }
11682 if test "${gl_cv_func_chown_ctime_works+set}" = set; then
11683 $as_echo_n "(cached) " >&6
11685 if test "$cross_compiling" = yes; then
11686 gl_cv_func_chown_ctime_works="guessing no"
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11695 #include <unistd.h>
11696 #include <stdlib.h>
11699 #include <sys/stat.h>
11704 struct stat st1, st2;
11705 if (close (creat ("conftest.file", 0600))) return 1;
11706 if (stat ("conftest.file", &st1)) return 2;
11708 if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
11709 if (stat ("conftest.file", &st2)) return 4;
11710 if (st2.st_ctime <= st1.st_ctime) return 5;
11716 rm -f conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11723 $as_echo "$ac_try_echo") >&5
11724 (eval "$ac_link") 2>&5
11726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11728 { (case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11733 $as_echo "$ac_try_echo") >&5
11734 (eval "$ac_try") 2>&5
11736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 gl_cv_func_chown_ctime_works=yes
11740 $as_echo "$as_me: program exited with status $ac_status" >&5
11741 $as_echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 ( exit $ac_status )
11745 gl_cv_func_chown_ctime_works=no
11747 rm -rf conftest.dSYM
11748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11752 rm -f conftest.file
11754 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_ctime_works" >&5
11755 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
11756 if test "$gl_cv_func_chown_ctime_works" != yes; then
11758 cat >>confdefs.h <<\_ACEOF
11759 #define CHOWN_CHANGE_TIME_BUG 1
11771 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11775 if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
11784 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
11791 GNULIB_FDOPENDIR=0;
11793 GNULIB_ALPHASORT=0;
11798 REPLACE_CLOSEDIR=0;
11799 REPLACE_FDOPENDIR=0;
11804 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
11805 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
11806 if test "${gl_cv_have_include_next+set}" = set; then
11807 $as_echo_n "(cached) " >&6
11809 rm -rf conftestd1a conftestd1b conftestd2
11810 mkdir conftestd1a conftestd1b conftestd2
11811 cat <<EOF > conftestd1a/conftest.h
11812 #define DEFINED_IN_CONFTESTD1
11813 #include_next <conftest.h>
11814 #ifdef DEFINED_IN_CONFTESTD2
11817 #error "include_next doesn't work"
11820 cat <<EOF > conftestd1b/conftest.h
11821 #define DEFINED_IN_CONFTESTD1
11823 #include_next <conftest.h>
11824 #ifdef DEFINED_IN_CONFTESTD2
11827 #error "include_next doesn't work"
11830 cat <<EOF > conftestd2/conftest.h
11831 #ifndef DEFINED_IN_CONFTESTD1
11832 #error "include_next test doesn't work"
11834 #define DEFINED_IN_CONFTESTD2
11836 gl_save_CPPFLAGS="$CPPFLAGS"
11837 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
11838 cat >conftest.$ac_ext <<_ACEOF
11839 #include <conftest.h>
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11848 $as_echo "$ac_try_echo") >&5
11849 (eval "$ac_compile") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_c_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest.$ac_objext; then
11859 gl_cv_have_include_next=yes
11861 $as_echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
11865 cat >conftest.$ac_ext <<_ACEOF
11866 #include <conftest.h>
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11875 $as_echo "$ac_try_echo") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.$ac_objext; then
11886 gl_cv_have_include_next=buggy
11888 $as_echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 gl_cv_have_include_next=no
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 CPPFLAGS="$gl_save_CPPFLAGS"
11900 rm -rf conftestd1a conftestd1b conftestd2
11903 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
11904 $as_echo "$gl_cv_have_include_next" >&6; }
11905 PRAGMA_SYSTEM_HEADER=
11906 if test $gl_cv_have_include_next = yes; then
11907 INCLUDE_NEXT=include_next
11908 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
11909 if test -n "$GCC"; then
11910 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
11913 if test $gl_cv_have_include_next = buggy; then
11914 INCLUDE_NEXT=include
11915 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
11917 INCLUDE_NEXT=include
11918 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
11938 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
11948 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
11958 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
11972 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
11973 $as_echo_n "checking if environ is properly declared... " >&6; }
11974 if test "${gt_cv_var_environ_declaration+set}" = set; then
11975 $as_echo_n "(cached) " >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984 #include <unistd.h>
11985 extern struct { int foo; } environ;
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12001 $as_echo "$ac_try_echo") >&5
12002 (eval "$ac_compile") 2>conftest.er1
12004 grep -v '^ *+' conftest.er1 >conftest.err
12006 cat conftest.err >&5
12007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && {
12009 test -z "$ac_c_werror_flag" ||
12010 test ! -s conftest.err
12011 } && test -s conftest.$ac_objext; then
12012 gt_cv_var_environ_declaration=no
12014 $as_echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 gt_cv_var_environ_declaration=yes
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
12024 $as_echo "$gt_cv_var_environ_declaration" >&6; }
12025 if test $gt_cv_var_environ_declaration = yes; then
12027 cat >>confdefs.h <<\_ACEOF
12028 #define HAVE_ENVIRON_DECL 1
12034 if test $gt_cv_var_environ_declaration != yes; then
12035 HAVE_DECL_ENVIRON=0
12042 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12043 $as_echo_n "checking for complete errno.h... " >&6; }
12044 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12045 $as_echo_n "(cached) " >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12056 #if !defined ENOMSG
12062 #if !defined ENOLINK
12065 #if !defined EPROTO
12068 #if !defined EMULTIHOP
12071 #if !defined EBADMSG
12074 #if !defined EOVERFLOW
12077 #if !defined ENOTSUP
12080 #if !defined ESTALE
12083 #if !defined ECANCELED
12088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089 $EGREP "booboo" >/dev/null 2>&1; then
12090 gl_cv_header_errno_h_complete=no
12092 gl_cv_header_errno_h_complete=yes
12098 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12099 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12100 if test $gl_cv_header_errno_h_complete = yes; then
12114 if test $gl_cv_have_include_next = yes; then
12115 gl_cv_next_errno_h='<'errno.h'>'
12117 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12118 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12119 if test "${gl_cv_next_errno_h+set}" = set; then
12120 $as_echo_n "(cached) " >&6
12123 if test $ac_cv_header_errno_h = yes; then
12124 cat >conftest.$ac_ext <<_ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12134 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12135 *) gl_absname_cpp="$ac_cpp" ;;
12137 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12138 sed -n '\#/errno.h#{
12139 s#.*"\(.*/errno.h\)".*#\1#
12145 gl_cv_next_errno_h='<'errno.h'>'
12149 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12150 $as_echo "$gl_cv_next_errno_h" >&6; }
12152 NEXT_ERRNO_H=$gl_cv_next_errno_h
12154 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12155 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12156 gl_next_as_first_directive='<'errno.h'>'
12158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12159 gl_next_as_first_directive=$gl_cv_next_errno_h
12161 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12169 if test -n "$ERRNO_H"; then
12170 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12171 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12172 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12173 $as_echo_n "(cached) " >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12190 $EGREP "yes" >/dev/null 2>&1; then
12191 gl_cv_header_errno_h_EMULTIHOP=yes
12193 gl_cv_header_errno_h_EMULTIHOP=no
12197 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12205 #define _XOPEN_SOURCE_EXTENDED 1
12212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12213 $EGREP "yes" >/dev/null 2>&1; then
12214 gl_cv_header_errno_h_EMULTIHOP=hidden
12218 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12219 if test "$cross_compiling" = yes; then
12220 # Depending upon the size, compute the lo and hi bounds.
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12228 #define _XOPEN_SOURCE_EXTENDED 1
12230 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12232 #include <stdlib.h>
12237 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12244 rm -f conftest.$ac_objext
12245 if { (ac_try="$ac_compile"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12251 $as_echo "$ac_try_echo") >&5
12252 (eval "$ac_compile") 2>conftest.er1
12254 grep -v '^ *+' conftest.er1 >conftest.err
12256 cat conftest.err >&5
12257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } && {
12259 test -z "$ac_c_werror_flag" ||
12260 test ! -s conftest.err
12261 } && test -s conftest.$ac_objext; then
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12271 #define _XOPEN_SOURCE_EXTENDED 1
12273 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12275 #include <stdlib.h>
12280 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12287 rm -f conftest.$ac_objext
12288 if { (ac_try="$ac_compile"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12294 $as_echo "$ac_try_echo") >&5
12295 (eval "$ac_compile") 2>conftest.er1
12297 grep -v '^ *+' conftest.er1 >conftest.err
12299 cat conftest.err >&5
12300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && {
12302 test -z "$ac_c_werror_flag" ||
12303 test ! -s conftest.err
12304 } && test -s conftest.$ac_objext; then
12305 ac_hi=$ac_mid; break
12307 $as_echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 ac_lo=`expr $ac_mid + 1`
12311 if test $ac_lo -le $ac_mid; then
12315 ac_mid=`expr 2 '*' $ac_mid + 1`
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 $as_echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 #define _XOPEN_SOURCE_EXTENDED 1
12333 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12335 #include <stdlib.h>
12340 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
12347 rm -f conftest.$ac_objext
12348 if { (ac_try="$ac_compile"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355 (eval "$ac_compile") 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && {
12362 test -z "$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12364 } && test -s conftest.$ac_objext; then
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12374 #define _XOPEN_SOURCE_EXTENDED 1
12376 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12378 #include <stdlib.h>
12383 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
12390 rm -f conftest.$ac_objext
12391 if { (ac_try="$ac_compile"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_compile") 2>conftest.er1
12400 grep -v '^ *+' conftest.er1 >conftest.err
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest.$ac_objext; then
12408 ac_lo=$ac_mid; break
12410 $as_echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 ac_hi=`expr '(' $ac_mid ')' - 1`
12414 if test $ac_mid -le $ac_hi; then
12418 ac_mid=`expr 2 '*' $ac_mid`
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 $as_echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 # Binary search between lo and hi bounds.
12435 while test "x$ac_lo" != "x$ac_hi"; do
12436 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12437 cat >conftest.$ac_ext <<_ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12444 #define _XOPEN_SOURCE_EXTENDED 1
12446 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12448 #include <stdlib.h>
12453 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12467 $as_echo "$ac_try_echo") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
12480 $as_echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 ac_lo=`expr '(' $ac_mid ')' + 1`
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12500 #define _XOPEN_SOURCE_EXTENDED 1
12502 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12504 #include <stdlib.h>
12506 static long int longval () { return EMULTIHOP; }
12507 static unsigned long int ulongval () { return EMULTIHOP; }
12509 #include <stdlib.h>
12514 FILE *f = fopen ("conftest.val", "w");
12517 if ((EMULTIHOP) < 0)
12519 long int i = longval ();
12520 if (i != (EMULTIHOP))
12522 fprintf (f, "%ld", i);
12526 unsigned long int i = ulongval ();
12527 if (i != (EMULTIHOP))
12529 fprintf (f, "%lu", i);
12531 /* Do not output a trailing newline, as this causes \r\n confusion
12532 on some platforms. */
12533 return ferror (f) || fclose (f) != 0;
12539 rm -f conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12546 $as_echo "$ac_try_echo") >&5
12547 (eval "$ac_link") 2>&5
12549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12556 $as_echo "$ac_try_echo") >&5
12557 (eval "$ac_try") 2>&5
12559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
12563 $as_echo "$as_me: program exited with status $ac_status" >&5
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12568 rm -rf conftest.dSYM
12569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12576 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12577 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12578 case $gl_cv_header_errno_h_EMULTIHOP in
12580 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12583 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12591 if test -n "$ERRNO_H"; then
12592 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
12593 $as_echo_n "checking for ENOLINK value... " >&6; }
12594 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
12595 $as_echo_n "(cached) " >&6
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12612 $EGREP "yes" >/dev/null 2>&1; then
12613 gl_cv_header_errno_h_ENOLINK=yes
12615 gl_cv_header_errno_h_ENOLINK=no
12619 if test $gl_cv_header_errno_h_ENOLINK = no; then
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12627 #define _XOPEN_SOURCE_EXTENDED 1
12634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12635 $EGREP "yes" >/dev/null 2>&1; then
12636 gl_cv_header_errno_h_ENOLINK=hidden
12640 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
12641 if test "$cross_compiling" = yes; then
12642 # Depending upon the size, compute the lo and hi bounds.
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12650 #define _XOPEN_SOURCE_EXTENDED 1
12652 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12654 #include <stdlib.h>
12659 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
12666 rm -f conftest.$ac_objext
12667 if { (ac_try="$ac_compile"
12668 case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12673 $as_echo "$ac_try_echo") >&5
12674 (eval "$ac_compile") 2>conftest.er1
12676 grep -v '^ *+' conftest.er1 >conftest.err
12678 cat conftest.err >&5
12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest.$ac_objext; then
12686 cat >conftest.$ac_ext <<_ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12693 #define _XOPEN_SOURCE_EXTENDED 1
12695 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12697 #include <stdlib.h>
12702 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12716 $as_echo "$ac_try_echo") >&5
12717 (eval "$ac_compile") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && {
12724 test -z "$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 } && test -s conftest.$ac_objext; then
12727 ac_hi=$ac_mid; break
12729 $as_echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_lo=`expr $ac_mid + 1`
12733 if test $ac_lo -le $ac_mid; then
12737 ac_mid=`expr 2 '*' $ac_mid + 1`
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 $as_echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12753 #define _XOPEN_SOURCE_EXTENDED 1
12755 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12757 #include <stdlib.h>
12762 static int test_array [1 - 2 * !((ENOLINK) < 0)];
12769 rm -f conftest.$ac_objext
12770 if { (ac_try="$ac_compile"
12771 case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12776 $as_echo "$ac_try_echo") >&5
12777 (eval "$ac_compile") 2>conftest.er1
12779 grep -v '^ *+' conftest.er1 >conftest.err
12781 cat conftest.err >&5
12782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } && {
12784 test -z "$ac_c_werror_flag" ||
12785 test ! -s conftest.err
12786 } && test -s conftest.$ac_objext; then
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12796 #define _XOPEN_SOURCE_EXTENDED 1
12798 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12800 #include <stdlib.h>
12805 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
12812 rm -f conftest.$ac_objext
12813 if { (ac_try="$ac_compile"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820 (eval "$ac_compile") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest.$ac_objext; then
12830 ac_lo=$ac_mid; break
12832 $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_hi=`expr '(' $ac_mid ')' - 1`
12836 if test $ac_mid -le $ac_hi; then
12840 ac_mid=`expr 2 '*' $ac_mid`
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846 $as_echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 # Binary search between lo and hi bounds.
12857 while test "x$ac_lo" != "x$ac_hi"; do
12858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12859 cat >conftest.$ac_ext <<_ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12866 #define _XOPEN_SOURCE_EXTENDED 1
12868 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12870 #include <stdlib.h>
12875 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
12882 rm -f conftest.$ac_objext
12883 if { (ac_try="$ac_compile"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890 (eval "$ac_compile") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest.$ac_objext; then
12902 $as_echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12905 ac_lo=`expr '(' $ac_mid ')' + 1`
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12922 #define _XOPEN_SOURCE_EXTENDED 1
12924 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12926 #include <stdlib.h>
12928 static long int longval () { return ENOLINK; }
12929 static unsigned long int ulongval () { return ENOLINK; }
12931 #include <stdlib.h>
12936 FILE *f = fopen ("conftest.val", "w");
12941 long int i = longval ();
12942 if (i != (ENOLINK))
12944 fprintf (f, "%ld", i);
12948 unsigned long int i = ulongval ();
12949 if (i != (ENOLINK))
12951 fprintf (f, "%lu", i);
12953 /* Do not output a trailing newline, as this causes \r\n confusion
12954 on some platforms. */
12955 return ferror (f) || fclose (f) != 0;
12961 rm -f conftest$ac_exeext
12962 if { (ac_try="$ac_link"
12963 case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12968 $as_echo "$ac_try_echo") >&5
12969 (eval "$ac_link") 2>&5
12971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12973 { (case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979 (eval "$ac_try") 2>&5
12981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
12985 $as_echo "$as_me: program exited with status $ac_status" >&5
12986 $as_echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12990 rm -rf conftest.dSYM
12991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12998 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
12999 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13000 case $gl_cv_header_errno_h_ENOLINK in
13002 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13005 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13013 if test -n "$ERRNO_H"; then
13014 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13015 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13016 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13017 $as_echo_n "(cached) " >&6
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13034 $EGREP "yes" >/dev/null 2>&1; then
13035 gl_cv_header_errno_h_EOVERFLOW=yes
13037 gl_cv_header_errno_h_EOVERFLOW=no
13041 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13042 cat >conftest.$ac_ext <<_ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 #define _XOPEN_SOURCE_EXTENDED 1
13056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13057 $EGREP "yes" >/dev/null 2>&1; then
13058 gl_cv_header_errno_h_EOVERFLOW=hidden
13062 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13063 if test "$cross_compiling" = yes; then
13064 # Depending upon the size, compute the lo and hi bounds.
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13072 #define _XOPEN_SOURCE_EXTENDED 1
13074 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13076 #include <stdlib.h>
13081 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13088 rm -f conftest.$ac_objext
13089 if { (ac_try="$ac_compile"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095 $as_echo "$ac_try_echo") >&5
13096 (eval "$ac_compile") 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest.$ac_objext; then
13108 cat >conftest.$ac_ext <<_ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13115 #define _XOPEN_SOURCE_EXTENDED 1
13117 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13119 #include <stdlib.h>
13124 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13131 rm -f conftest.$ac_objext
13132 if { (ac_try="$ac_compile"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13138 $as_echo "$ac_try_echo") >&5
13139 (eval "$ac_compile") 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest.$ac_objext; then
13149 ac_hi=$ac_mid; break
13151 $as_echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ac_lo=`expr $ac_mid + 1`
13155 if test $ac_lo -le $ac_mid; then
13159 ac_mid=`expr 2 '*' $ac_mid + 1`
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 $as_echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13168 cat >conftest.$ac_ext <<_ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13175 #define _XOPEN_SOURCE_EXTENDED 1
13177 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13179 #include <stdlib.h>
13184 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13191 rm -f conftest.$ac_objext
13192 if { (ac_try="$ac_compile"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198 $as_echo "$ac_try_echo") >&5
13199 (eval "$ac_compile") 2>conftest.er1
13201 grep -v '^ *+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && {
13206 test -z "$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 } && test -s conftest.$ac_objext; then
13211 cat >conftest.$ac_ext <<_ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13218 #define _XOPEN_SOURCE_EXTENDED 1
13220 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13222 #include <stdlib.h>
13227 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241 $as_echo "$ac_try_echo") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest.$ac_objext; then
13252 ac_lo=$ac_mid; break
13254 $as_echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ac_hi=`expr '(' $ac_mid ')' - 1`
13258 if test $ac_mid -le $ac_hi; then
13262 ac_mid=`expr 2 '*' $ac_mid`
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 # Binary search between lo and hi bounds.
13279 while test "x$ac_lo" != "x$ac_hi"; do
13280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13288 #define _XOPEN_SOURCE_EXTENDED 1
13290 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13292 #include <stdlib.h>
13297 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13304 rm -f conftest.$ac_objext
13305 if { (ac_try="$ac_compile"
13306 case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13311 $as_echo "$ac_try_echo") >&5
13312 (eval "$ac_compile") 2>conftest.er1
13314 grep -v '^ *+' conftest.er1 >conftest.err
13316 cat conftest.err >&5
13317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest.$ac_objext; then
13324 $as_echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ac_lo=`expr '(' $ac_mid ')' + 1`
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
13337 cat >conftest.$ac_ext <<_ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13344 #define _XOPEN_SOURCE_EXTENDED 1
13346 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13348 #include <stdlib.h>
13350 static long int longval () { return EOVERFLOW; }
13351 static unsigned long int ulongval () { return EOVERFLOW; }
13353 #include <stdlib.h>
13358 FILE *f = fopen ("conftest.val", "w");
13361 if ((EOVERFLOW) < 0)
13363 long int i = longval ();
13364 if (i != (EOVERFLOW))
13366 fprintf (f, "%ld", i);
13370 unsigned long int i = ulongval ();
13371 if (i != (EOVERFLOW))
13373 fprintf (f, "%lu", i);
13375 /* Do not output a trailing newline, as this causes \r\n confusion
13376 on some platforms. */
13377 return ferror (f) || fclose (f) != 0;
13383 rm -f conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391 (eval "$ac_link") 2>&5
13393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13395 { (case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400 $as_echo "$ac_try_echo") >&5
13401 (eval "$ac_try") 2>&5
13403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
13407 $as_echo "$as_me: program exited with status $ac_status" >&5
13408 $as_echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13412 rm -rf conftest.dSYM
13413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13420 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13421 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13422 case $gl_cv_header_errno_h_EOVERFLOW in
13424 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13427 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13435 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13436 $as_echo_n "checking whether strerror_r is declared... " >&6; }
13437 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13438 $as_echo_n "(cached) " >&6
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 $ac_includes_default
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13465 $as_echo "$ac_try_echo") >&5
13466 (eval "$ac_compile") 2>conftest.er1
13468 grep -v '^ *+' conftest.er1 >conftest.err
13470 cat conftest.err >&5
13471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_c_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest.$ac_objext; then
13476 ac_cv_have_decl_strerror_r=yes
13478 $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_cv_have_decl_strerror_r=no
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13487 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
13488 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
13490 cat >>confdefs.h <<_ACEOF
13491 #define HAVE_DECL_STRERROR_R 1
13496 cat >>confdefs.h <<_ACEOF
13497 #define HAVE_DECL_STRERROR_R 0
13505 for ac_func in strerror_r
13507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13508 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13509 $as_echo_n "checking for $ac_func... " >&6; }
13510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13511 $as_echo_n "(cached) " >&6
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13521 #define $ac_func innocuous_$ac_func
13523 /* System header to define __stub macros and hopefully few prototypes,
13524 which can conflict with char $ac_func (); below.
13525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13526 <limits.h> exists even on freestanding compilers. */
13529 # include <limits.h>
13531 # include <assert.h>
13536 /* Override any GCC internal prototype to avoid an error.
13537 Use char because int might match the return type of a GCC
13538 builtin and then its argument prototype would still apply. */
13543 /* The GNU C library defines this for functions which it implements
13544 to always fail with ENOSYS. Some functions are actually named
13545 something starting with __ and the normal name is an alias. */
13546 #if defined __stub_$ac_func || defined __stub___$ac_func
13553 return $ac_func ();
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (ac_try="$ac_link"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13565 $as_echo "$ac_try_echo") >&5
13566 (eval "$ac_link") 2>conftest.er1
13568 grep -v '^ *+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest$ac_exeext && {
13576 test "$cross_compiling" = yes ||
13577 $as_test_x conftest$ac_exeext
13579 eval "$as_ac_var=yes"
13581 $as_echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 eval "$as_ac_var=no"
13587 rm -rf conftest.dSYM
13588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13589 conftest$ac_exeext conftest.$ac_ext
13591 ac_res=`eval 'as_val=${'$as_ac_var'}
13592 $as_echo "$as_val"'`
13593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13594 $as_echo "$ac_res" >&6; }
13595 as_val=`eval 'as_val=${'$as_ac_var'}
13596 $as_echo "$as_val"'`
13597 if test "x$as_val" = x""yes; then
13598 cat >>confdefs.h <<_ACEOF
13599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13605 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13606 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13607 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13608 $as_echo_n "(cached) " >&6
13611 ac_cv_func_strerror_r_char_p=no
13612 if test $ac_cv_have_decl_strerror_r = yes; then
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 $ac_includes_default
13625 char x = *strerror_r (0, buf, sizeof buf);
13626 char *p = strerror_r (0, buf, sizeof buf);
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13640 $as_echo "$ac_try_echo") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13643 grep -v '^ *+' conftest.er1 >conftest.err
13645 cat conftest.err >&5
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest.$ac_objext; then
13651 ac_cv_func_strerror_r_char_p=yes
13653 $as_echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 # strerror_r is not declared. Choose between
13662 # systems that have relatively inaccessible declarations for the
13663 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13664 # former has a strerror_r that returns char*, while the latter
13665 # has a strerror_r that returns `int'.
13666 # This test should segfault on the DEC system.
13667 if test "$cross_compiling" = yes; then
13670 cat >conftest.$ac_ext <<_ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 $ac_includes_default
13677 extern char *strerror_r ();
13682 char x = *strerror_r (0, buf, sizeof buf);
13683 return ! isalpha (x);
13688 rm -f conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696 (eval "$ac_link") 2>&5
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705 $as_echo "$ac_try_echo") >&5
13706 (eval "$ac_try") 2>&5
13708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_func_strerror_r_char_p=yes
13712 $as_echo "$as_me: program exited with status $ac_status" >&5
13713 $as_echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13717 rm -rf conftest.dSYM
13718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13725 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
13726 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13727 if test $ac_cv_func_strerror_r_char_p = yes; then
13729 cat >>confdefs.h <<\_ACEOF
13730 #define STRERROR_R_CHAR_P 1
13747 GNULIB_UTIMENSAT=0;
13761 REPLACE_FUTIMENS=0;
13767 REPLACE_UTIMENSAT=0;
13783 { $as_echo "$as_me:$LINENO: checking for promoted mode_t type" >&5
13784 $as_echo_n "checking for promoted mode_t type... " >&6; }
13785 if test "${gl_cv_promoted_mode_t+set}" = set; then
13786 $as_echo_n "(cached) " >&6
13789 cat >conftest.$ac_ext <<_ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 #include <sys/types.h>
13799 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13804 rm -f conftest.$ac_objext
13805 if { (ac_try="$ac_compile"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13811 $as_echo "$ac_try_echo") >&5
13812 (eval "$ac_compile") 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } && {
13819 test -z "$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 } && test -s conftest.$ac_objext; then
13822 gl_cv_promoted_mode_t='int'
13824 $as_echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 gl_cv_promoted_mode_t='mode_t'
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 { $as_echo "$as_me:$LINENO: result: $gl_cv_promoted_mode_t" >&5
13834 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13836 cat >>confdefs.h <<_ACEOF
13837 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13847 GNULIB_FPRINTF_POSIX=0;
13859 GNULIB_OBSTACK_PRINTF=0;
13860 GNULIB_OBSTACK_PRINTF_POSIX=0;
13864 GNULIB_PRINTF_POSIX=0;
13872 GNULIB_SPRINTF_POSIX=0;
13873 GNULIB_STDIO_H_SIGPIPE=0;
13874 GNULIB_VASPRINTF=0;
13877 GNULIB_VFPRINTF_POSIX=0;
13879 GNULIB_VPRINTF_POSIX=0;
13880 GNULIB_VSNPRINTF=0;
13881 GNULIB_VSPRINTF_POSIX=0;
13882 HAVE_DECL_FPURGE=1;
13883 HAVE_DECL_GETDELIM=1;
13884 HAVE_DECL_GETLINE=1;
13885 HAVE_DECL_OBSTACK_PRINTF=1;
13886 HAVE_DECL_SNPRINTF=1;
13887 HAVE_DECL_VSNPRINTF=1;
13903 REPLACE_GETDELIM=0;
13905 REPLACE_OBSTACK_PRINTF=0;
13911 REPLACE_RENAMEAT=0;
13912 REPLACE_SNPRINTF=0;
13914 REPLACE_STDIO_WRITE_FUNCS=0;
13915 REPLACE_VASPRINTF=0;
13916 REPLACE_VDPRINTF=0;
13917 REPLACE_VFPRINTF=0;
13919 REPLACE_VSNPRINTF=0;
13920 REPLACE_VSPRINTF=0;
13926 { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
13927 $as_echo_n "checking for working fcntl.h... " >&6; }
13928 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
13929 $as_echo_n "(cached) " >&6
13931 if test "$cross_compiling" = yes; then
13932 gl_cv_header_working_fcntl_h=cross-compiling
13934 cat >conftest.$ac_ext <<_ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 #include <sys/types.h>
13941 #include <sys/stat.h>
13942 #include <unistd.h>
13945 #define O_NOATIME 0
13948 #define O_NOFOLLOW 0
13950 static int const constants[] =
13952 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
13953 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
13960 int status = !constants;
13962 static char const sym[] = "conftest.sym";
13963 if (symlink (".", sym) != 0
13964 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
13969 static char const file[] = "confdefs.h";
13970 int fd = open (file, O_RDONLY | O_NOATIME);
13972 struct stat st0, st1;
13974 || fstat (fd, &st0) != 0
13976 || read (fd, &c, 1) != 1
13978 || stat (file, &st1) != 0
13979 || st0.st_atime != st1.st_atime)
13987 rm -f conftest$ac_exeext
13988 if { (ac_try="$ac_link"
13989 case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13994 $as_echo "$ac_try_echo") >&5
13995 (eval "$ac_link") 2>&5
13997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005 (eval "$ac_try") 2>&5
14007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 gl_cv_header_working_fcntl_h=yes
14011 $as_echo "$as_me: program exited with status $ac_status" >&5
14012 $as_echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ( exit $ac_status )
14017 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
14018 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
14019 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
14020 *) gl_cv_header_working_fcntl_h='no';;
14023 rm -rf conftest.dSYM
14024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14029 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
14030 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
14032 case $gl_cv_header_working_fcntl_h in #(
14033 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_WORKING_O_NOATIME $ac_val
14042 case $gl_cv_header_working_fcntl_h in #(
14043 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
14047 cat >>confdefs.h <<_ACEOF
14048 #define HAVE_WORKING_O_NOFOLLOW $ac_val
14056 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14057 $as_echo_n "checking for mbstate_t... " >&6; }
14058 if test "${ac_cv_type_mbstate_t+set}" = set; then
14059 $as_echo_n "(cached) " >&6
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 $ac_includes_default
14068 # include <wchar.h>
14072 mbstate_t x; return sizeof x;
14077 rm -f conftest.$ac_objext
14078 if { (ac_try="$ac_compile"
14079 case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14084 $as_echo "$ac_try_echo") >&5
14085 (eval "$ac_compile") 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
14095 ac_cv_type_mbstate_t=yes
14097 $as_echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ac_cv_type_mbstate_t=no
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14106 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14107 if test $ac_cv_type_mbstate_t = yes; then
14109 cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_MBSTATE_T 1
14115 cat >>confdefs.h <<\_ACEOF
14116 #define mbstate_t int
14142 { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14143 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14144 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14145 $as_echo_n "(cached) " >&6
14147 cat >conftest.$ac_ext <<_ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14157 #if defined __SL64 && defined __SCLE /* cygwin */
14158 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14159 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
14160 it is easier to do a version check than building a runtime test. */
14161 # include <cygwin/version.h>
14162 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_link") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext && {
14188 test "$cross_compiling" = yes ||
14189 $as_test_x conftest$ac_exeext
14191 gl_cv_var_stdin_large_offset=yes
14193 $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 gl_cv_var_stdin_large_offset=no
14199 rm -rf conftest.dSYM
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201 conftest$ac_exeext conftest.$ac_ext
14203 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14204 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14209 { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
14210 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
14211 if test "${gl_cv_func_getcwd_null+set}" = set; then
14212 $as_echo_n "(cached) " >&6
14214 if test "$cross_compiling" = yes; then
14217 # Guess yes on glibc systems.
14218 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
14219 # Guess yes on Cygwin.
14220 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
14221 # Guess yes on mingw.
14222 mingw*) gl_cv_func_getcwd_null="guessing yes";;
14223 # If we don't know, assume the worst.
14224 *) gl_cv_func_getcwd_null="guessing no";;
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14235 # include <unistd.h>
14244 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14245 /* mingw cwd does not start with '/', but getcwd does allocate. */
14247 if (chdir ("/") != 0)
14251 char *f = getcwd (NULL, 0);
14252 return ! (f && f[0] == '/' && !f[1]);
14260 rm -f conftest$ac_exeext
14261 if { (ac_try="$ac_link"
14262 case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14267 $as_echo "$ac_try_echo") >&5
14268 (eval "$ac_link") 2>&5
14270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14277 $as_echo "$ac_try_echo") >&5
14278 (eval "$ac_try") 2>&5
14280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 gl_cv_func_getcwd_null=yes
14284 $as_echo "$as_me: program exited with status $ac_status" >&5
14285 $as_echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14288 ( exit $ac_status )
14289 gl_cv_func_getcwd_null=no
14291 rm -rf conftest.dSYM
14292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14297 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
14298 $as_echo "$gl_cv_func_getcwd_null" >&6; }
14300 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
14301 $as_echo_n "checking whether getcwd is declared... " >&6; }
14302 if test "${ac_cv_have_decl_getcwd+set}" = set; then
14303 $as_echo_n "(cached) " >&6
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 $ac_includes_default
14323 rm -f conftest.$ac_objext
14324 if { (ac_try="$ac_compile"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330 $as_echo "$ac_try_echo") >&5
14331 (eval "$ac_compile") 2>conftest.er1
14333 grep -v '^ *+' conftest.er1 >conftest.err
14335 cat conftest.err >&5
14336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } && {
14338 test -z "$ac_c_werror_flag" ||
14339 test ! -s conftest.err
14340 } && test -s conftest.$ac_objext; then
14341 ac_cv_have_decl_getcwd=yes
14343 $as_echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_cv_have_decl_getcwd=no
14349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
14352 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
14353 if test "x$ac_cv_have_decl_getcwd" = x""yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_DECL_GETCWD 1
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_DECL_GETCWD 0
14369 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
14370 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14371 if test "${ac_cv_header_stdbool_h+set}" = set; then
14372 $as_echo_n "(cached) " >&6
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14381 #include <stdbool.h>
14383 "error: bool is not defined"
14386 "error: false is not defined"
14389 "error: false is not 0"
14392 "error: true is not defined"
14395 "error: true is not 1"
14397 #ifndef __bool_true_false_are_defined
14398 "error: __bool_true_false_are_defined is not defined"
14401 struct s { _Bool s: 1; _Bool t; } s;
14403 char a[true == 1 ? 1 : -1];
14404 char b[false == 0 ? 1 : -1];
14405 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14406 char d[(bool) 0.5 == true ? 1 : -1];
14408 char f[(_Bool) 0.0 == false ? 1 : -1];
14410 char h[sizeof (_Bool)];
14411 char i[sizeof s.t];
14412 enum { j = false, k = true, l = false * true, m = true * 256 };
14414 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14415 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14416 #if defined __xlc__ || defined __GNUC__
14417 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
14418 reported by James Lemley on 2005-10-05; see
14419 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
14420 This test is not quite right, since xlc is allowed to
14421 reject this program, as the initializer for xlcbug is
14422 not one of the forms that C requires support for.
14423 However, doing the test right would require a run-time
14424 test, and that would make cross-compilation harder.
14425 Let us hope that IBM fixes the xlc bug, and also adds
14426 support for this kind of constant expression. In the
14427 meantime, this test will reject xlc, which is OK, since
14428 our stdbool.h substitute should suffice. We also test
14429 this with GCC, where it should work, to detect more
14430 quickly whether someone messes up the test in the
14432 char digs[] = "0123456789";
14433 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
14435 /* Catch a bug in an HP-UX C compiler. See
14436 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14437 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14448 /* Refer to every declared value, to avoid compiler optimizations. */
14449 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14450 + !m + !n + !o + !p + !q + !pq);
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14463 $as_echo "$ac_try_echo") >&5
14464 (eval "$ac_compile") 2>conftest.er1
14466 grep -v '^ *+' conftest.er1 >conftest.err
14468 cat conftest.err >&5
14469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && {
14471 test -z "$ac_c_werror_flag" ||
14472 test ! -s conftest.err
14473 } && test -s conftest.$ac_objext; then
14474 ac_cv_header_stdbool_h=yes
14476 $as_echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_cv_header_stdbool_h=no
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
14485 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14486 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
14487 $as_echo_n "checking for _Bool... " >&6; }
14488 if test "${ac_cv_type__Bool+set}" = set; then
14489 $as_echo_n "(cached) " >&6
14491 ac_cv_type__Bool=no
14492 cat >conftest.$ac_ext <<_ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 $ac_includes_default
14502 if (sizeof (_Bool))
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516 (eval "$ac_compile") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } && {
14523 test -z "$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14525 } && test -s conftest.$ac_objext; then
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 $ac_includes_default
14536 if (sizeof ((_Bool)))
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 $as_echo "$ac_try_echo") >&5
14550 (eval "$ac_compile") 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest.$ac_objext; then
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ac_cv_type__Bool=yes
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 $as_echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
14579 $as_echo "$ac_cv_type__Bool" >&6; }
14580 if test "x$ac_cv_type__Bool" = x""yes; then
14582 cat >>confdefs.h <<_ACEOF
14583 #define HAVE__BOOL 1
14589 if test $ac_cv_header_stdbool_h = yes; then
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_STDBOOL_H 1
14599 # Define two additional variables used in the Makefile substitution.
14601 if test "$ac_cv_header_stdbool_h" = yes; then
14604 STDBOOL_H='stdbool.h'
14608 if test "$ac_cv_type__Bool" = yes; then
14619 # getdate.y works with bison only.
14620 : ${YACC='bison -y'}
14623 { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
14624 $as_echo_n "checking for compound literals... " >&6; }
14625 if test "${gl_cv_compound_literals+set}" = set; then
14626 $as_echo_n "(cached) " >&6
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 struct s { int i, j; };
14638 struct s t = (struct s) { 3, 4 };
14639 if (t.i != 0) return 0;
14644 rm -f conftest.$ac_objext
14645 if { (ac_try="$ac_compile"
14646 case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14651 $as_echo "$ac_try_echo") >&5
14652 (eval "$ac_compile") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest.$ac_objext; then
14662 gl_cv_compound_literals=yes
14664 $as_echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 gl_cv_compound_literals=no
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
14673 $as_echo "$gl_cv_compound_literals" >&6; }
14674 if test $gl_cv_compound_literals = yes; then
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_COMPOUND_LITERALS 1
14682 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14683 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14684 if test "${ac_cv_struct_tm+set}" = set; then
14685 $as_echo_n "(cached) " >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 #include <sys/types.h>
14700 int *p = &tm.tm_sec;
14706 rm -f conftest.$ac_objext
14707 if { (ac_try="$ac_compile"
14708 case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14713 $as_echo "$ac_try_echo") >&5
14714 (eval "$ac_compile") 2>conftest.er1
14716 grep -v '^ *+' conftest.er1 >conftest.err
14718 cat conftest.err >&5
14719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } && {
14721 test -z "$ac_c_werror_flag" ||
14722 test ! -s conftest.err
14723 } && test -s conftest.$ac_objext; then
14724 ac_cv_struct_tm=time.h
14726 $as_echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_cv_struct_tm=sys/time.h
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14734 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14735 $as_echo "$ac_cv_struct_tm" >&6; }
14736 if test $ac_cv_struct_tm = sys/time.h; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define TM_IN_SYS_TIME 1
14745 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
14746 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
14747 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
14748 $as_echo_n "(cached) " >&6
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14761 static struct tm ac_aggr;
14762 if (ac_aggr.tm_gmtoff)
14768 rm -f conftest.$ac_objext
14769 if { (ac_try="$ac_compile"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14775 $as_echo "$ac_try_echo") >&5
14776 (eval "$ac_compile") 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } && {
14783 test -z "$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14785 } && test -s conftest.$ac_objext; then
14786 ac_cv_member_struct_tm_tm_gmtoff=yes
14788 $as_echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14802 static struct tm ac_aggr;
14803 if (sizeof ac_aggr.tm_gmtoff)
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14816 $as_echo "$ac_try_echo") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14819 grep -v '^ *+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest.$ac_objext; then
14827 ac_cv_member_struct_tm_tm_gmtoff=yes
14829 $as_echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_member_struct_tm_tm_gmtoff=no
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
14841 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
14842 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_TM_GMTOFF 1
14851 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14852 $as_echo_n "checking whether getdelim is declared... " >&6; }
14853 if test "${ac_cv_have_decl_getdelim+set}" = set; then
14854 $as_echo_n "(cached) " >&6
14856 cat >conftest.$ac_ext <<_ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 $ac_includes_default
14874 rm -f conftest.$ac_objext
14875 if { (ac_try="$ac_compile"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881 $as_echo "$ac_try_echo") >&5
14882 (eval "$ac_compile") 2>conftest.er1
14884 grep -v '^ *+' conftest.er1 >conftest.err
14886 cat conftest.err >&5
14887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 } && test -s conftest.$ac_objext; then
14892 ac_cv_have_decl_getdelim=yes
14894 $as_echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_cv_have_decl_getdelim=no
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14903 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
14904 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_DECL_GETDELIM 1
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_DECL_GETDELIM 0
14924 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14925 $as_echo_n "checking whether getline is declared... " >&6; }
14926 if test "${ac_cv_have_decl_getline+set}" = set; then
14927 $as_echo_n "(cached) " >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 $ac_includes_default
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14954 $as_echo "$ac_try_echo") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } && {
14962 test -z "$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14964 } && test -s conftest.$ac_objext; then
14965 ac_cv_have_decl_getline=yes
14967 $as_echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_cv_have_decl_getline=no
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14976 $as_echo "$ac_cv_have_decl_getline" >&6; }
14977 if test "x$ac_cv_have_decl_getline" = x""yes; then
14979 cat >>confdefs.h <<_ACEOF
14980 #define HAVE_DECL_GETLINE 1
14985 cat >>confdefs.h <<_ACEOF
14986 #define HAVE_DECL_GETLINE 0
15010 if test $gl_cv_have_include_next = yes; then
15011 gl_cv_next_getopt_h='<'getopt.h'>'
15013 { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
15014 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15015 if test "${gl_cv_next_getopt_h+set}" = set; then
15016 $as_echo_n "(cached) " >&6
15019 if test $ac_cv_header_getopt_h = yes; then
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 #include <getopt.h>
15030 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15031 *) gl_absname_cpp="$ac_cpp" ;;
15033 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15034 sed -n '\#/getopt.h#{
15035 s#.*"\(.*/getopt.h\)".*#\1#
15041 gl_cv_next_getopt_h='<'getopt.h'>'
15045 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
15046 $as_echo "$gl_cv_next_getopt_h" >&6; }
15048 NEXT_GETOPT_H=$gl_cv_next_getopt_h
15050 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15051 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15052 gl_next_as_first_directive='<'getopt.h'>'
15054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15055 gl_next_as_first_directive=$gl_cv_next_getopt_h
15057 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15067 if test $ac_cv_header_getopt_h = yes; then
15076 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15078 for ac_header in getopt.h
15080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 $as_echo_n "checking for $ac_header... " >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085 $as_echo_n "(cached) " >&6
15087 ac_res=`eval 'as_val=${'$as_ac_Header'}
15088 $as_echo "$as_val"'`
15089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15090 $as_echo "$ac_res" >&6; }
15092 # Is the header compilable?
15093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15094 $as_echo_n "checking $ac_header usability... " >&6; }
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 $ac_includes_default
15102 #include <$ac_header>
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15111 $as_echo "$ac_try_echo") >&5
15112 (eval "$ac_compile") 2>conftest.er1
15114 grep -v '^ *+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } && {
15119 test -z "$ac_c_werror_flag" ||
15120 test ! -s conftest.err
15121 } && test -s conftest.$ac_objext; then
15122 ac_header_compiler=yes
15124 $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_header_compiler=no
15130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15132 $as_echo "$ac_header_compiler" >&6; }
15134 # Is the header present?
15135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15136 $as_echo_n "checking $ac_header presence... " >&6; }
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 #include <$ac_header>
15145 if { (ac_try="$ac_cpp conftest.$ac_ext"
15146 case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15151 $as_echo "$ac_try_echo") >&5
15152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } >/dev/null && {
15159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15160 test ! -s conftest.err
15162 ac_header_preproc=yes
15164 $as_echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ac_header_preproc=no
15170 rm -f conftest.err conftest.$ac_ext
15171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15172 $as_echo "$ac_header_preproc" >&6; }
15174 # So? What about this header?
15175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15181 ac_header_preproc=yes
15184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15187 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15191 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15197 ## ------------------------------ ##
15198 ## Report this to bug-tar@gnu.org ##
15199 ## ------------------------------ ##
15201 ) | sed "s/^/$as_me: WARNING: /" >&2
15204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15205 $as_echo_n "checking for $ac_header... " >&6; }
15206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15207 $as_echo_n "(cached) " >&6
15209 eval "$as_ac_Header=\$ac_header_preproc"
15211 ac_res=`eval 'as_val=${'$as_ac_Header'}
15212 $as_echo "$as_val"'`
15213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15214 $as_echo "$ac_res" >&6; }
15217 as_val=`eval 'as_val=${'$as_ac_Header'}
15218 $as_echo "$as_val"'`
15219 if test "x$as_val" = x""yes; then
15220 cat >>confdefs.h <<_ACEOF
15221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15225 gl_replace_getopt=yes
15232 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15234 for ac_func in getopt_long_only
15236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15238 $as_echo_n "checking for $ac_func... " >&6; }
15239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15240 $as_echo_n "(cached) " >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15250 #define $ac_func innocuous_$ac_func
15252 /* System header to define __stub macros and hopefully few prototypes,
15253 which can conflict with char $ac_func (); below.
15254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15255 <limits.h> exists even on freestanding compilers. */
15258 # include <limits.h>
15260 # include <assert.h>
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15272 /* The GNU C library defines this for functions which it implements
15273 to always fail with ENOSYS. Some functions are actually named
15274 something starting with __ and the normal name is an alias. */
15275 #if defined __stub_$ac_func || defined __stub___$ac_func
15282 return $ac_func ();
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15294 $as_echo "$ac_try_echo") >&5
15295 (eval "$ac_link") 2>conftest.er1
15297 grep -v '^ *+' conftest.er1 >conftest.err
15299 cat conftest.err >&5
15300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_c_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext && {
15305 test "$cross_compiling" = yes ||
15306 $as_test_x conftest$ac_exeext
15308 eval "$as_ac_var=yes"
15310 $as_echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 eval "$as_ac_var=no"
15316 rm -rf conftest.dSYM
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318 conftest$ac_exeext conftest.$ac_ext
15320 ac_res=`eval 'as_val=${'$as_ac_var'}
15321 $as_echo "$as_val"'`
15322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15323 $as_echo "$ac_res" >&6; }
15324 as_val=`eval 'as_val=${'$as_ac_var'}
15325 $as_echo "$as_val"'`
15326 if test "x$as_val" = x""yes; then
15327 cat >>confdefs.h <<_ACEOF
15328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15332 gl_replace_getopt=yes
15338 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15339 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15340 $as_echo_n "checking whether optreset is declared... " >&6; }
15341 if test "${ac_cv_have_decl_optreset+set}" = set; then
15342 $as_echo_n "(cached) " >&6
15344 cat >conftest.$ac_ext <<_ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 #include <getopt.h>
15363 rm -f conftest.$ac_objext
15364 if { (ac_try="$ac_compile"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15370 $as_echo "$ac_try_echo") >&5
15371 (eval "$ac_compile") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest.$ac_objext; then
15381 ac_cv_have_decl_optreset=yes
15383 $as_echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 ac_cv_have_decl_optreset=no
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15392 $as_echo "$ac_cv_have_decl_optreset" >&6; }
15393 if test "x$ac_cv_have_decl_optreset" = x""yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define HAVE_DECL_OPTRESET 1
15401 cat >>confdefs.h <<_ACEOF
15402 #define HAVE_DECL_OPTRESET 0
15411 if test -z "$gl_replace_getopt"; then
15412 { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15413 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15414 if test "${gl_cv_func_getopt_posix+set}" = set; then
15415 $as_echo_n "(cached) " >&6
15418 if test "$cross_compiling" = yes; then
15420 mingw*) gl_cv_func_getopt_posix="guessing no";;
15421 *) gl_cv_func_getopt_posix="guessing yes";;
15425 cat >conftest.$ac_ext <<_ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15432 #include <unistd.h>
15433 #include <stdlib.h>
15434 #include <string.h>
15436 #if !HAVE_DECL_OPTRESET
15437 # define OPTIND_MIN 0
15439 # define OPTIND_MIN 1
15450 argv[argc++] = "program";
15451 argv[argc++] = "-a";
15452 argv[argc++] = "foo";
15453 argv[argc++] = "bar";
15455 optind = OPTIND_MIN;
15458 c = getopt (argc, argv, "ab");
15461 c = getopt (argc, argv, "ab");
15464 if (!(optind == 2))
15467 /* Some internal state exists at this point. */
15473 argv[argc++] = "program";
15474 argv[argc++] = "donald";
15475 argv[argc++] = "-p";
15476 argv[argc++] = "billy";
15477 argv[argc++] = "duck";
15478 argv[argc++] = "-a";
15479 argv[argc++] = "bar";
15481 optind = OPTIND_MIN;
15484 c = getopt (argc, argv, "+abp:q:");
15487 if (!(strcmp (argv[0], "program") == 0))
15489 if (!(strcmp (argv[1], "donald") == 0))
15491 if (!(strcmp (argv[2], "-p") == 0))
15493 if (!(strcmp (argv[3], "billy") == 0))
15495 if (!(strcmp (argv[4], "duck") == 0))
15497 if (!(strcmp (argv[5], "-a") == 0))
15499 if (!(strcmp (argv[6], "bar") == 0))
15501 if (!(optind == 1))
15509 rm -f conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15516 $as_echo "$ac_try_echo") >&5
15517 (eval "$ac_link") 2>&5
15519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15521 { (case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15526 $as_echo "$ac_try_echo") >&5
15527 (eval "$ac_try") 2>&5
15529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 gl_cv_func_getopt_posix=yes
15533 $as_echo "$as_me: program exited with status $ac_status" >&5
15534 $as_echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ( exit $ac_status )
15538 gl_cv_func_getopt_posix=no
15540 rm -rf conftest.dSYM
15541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15547 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15548 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15549 case "$gl_cv_func_getopt_posix" in
15550 *no) gl_replace_getopt=yes ;;
15554 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15555 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15556 $as_echo_n "checking for working GNU getopt function... " >&6; }
15557 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15558 $as_echo_n "(cached) " >&6
15560 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
15561 # optstring is necessary for programs like m4 that have POSIX-mandated
15562 # semantics for supporting options interspersed with files.
15563 # Also, since getopt_long is a GNU extension, we require optind=0.
15564 gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes}
15566 export POSIXLY_CORRECT
15567 if test "$cross_compiling" = yes; then
15568 case $host_os:$ac_cv_have_decl_optreset in
15569 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
15570 *:yes) gl_cv_func_getopt_gnu=no;;
15571 *) gl_cv_func_getopt_gnu=yes;;
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <getopt.h>
15582 #include <stddef.h>
15583 #include <string.h>
15589 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15590 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15591 OSF/1 5.1, Solaris 10. */
15594 myargv[0] = "conftest";
15598 if (getopt (2, myargv, "+a") != '?')
15601 /* This code succeeds on glibc 2.8, mingw,
15602 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15603 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
15605 char *argv[] = { "program", "-p", "foo", "bar", NULL };
15608 if (getopt (4, argv, "p::") != 'p')
15610 if (optarg != NULL)
15612 if (getopt (4, argv, "p::") != -1)
15617 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
15619 char *argv[] = { "program", "foo", "-p", NULL };
15621 if (getopt (3, argv, "-p") != 1)
15623 if (getopt (3, argv, "-p") != 'p')
15632 rm -f conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640 (eval "$ac_link") 2>&5
15642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15644 { (case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650 (eval "$ac_try") 2>&5
15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 gl_cv_func_getopt_gnu=yes
15656 $as_echo "$as_me: program exited with status $ac_status" >&5
15657 $as_echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ( exit $ac_status )
15661 gl_cv_func_getopt_gnu=no
15663 rm -rf conftest.dSYM
15664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15668 if test "$gl_had_POSIXLY_CORRECT" != yes; then
15669 $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }
15673 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15674 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15675 if test "$gl_cv_func_getopt_gnu" = "no"; then
15676 gl_replace_getopt=yes
15685 if test -n "$gl_replace_getopt"; then
15691 cat >>confdefs.h <<\_ACEOF
15692 #define __GETOPT_PREFIX rpl_
15697 GNULIB_UNISTD_H_GETOPT=1
15706 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15716 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15735 GNULIB_GETTIMEOFDAY=0;
15736 HAVE_GETTIMEOFDAY=1;
15737 HAVE_STRUCT_TIMEVAL=1;
15739 REPLACE_GETTIMEOFDAY=0;
15761 if test $gl_cv_have_include_next = yes; then
15762 gl_cv_next_sys_time_h='<'sys/time.h'>'
15764 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
15765 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
15766 if test "${gl_cv_next_sys_time_h+set}" = set; then
15767 $as_echo_n "(cached) " >&6
15770 if test $ac_cv_header_sys_time_h = yes; then
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 #include <sys/time.h>
15781 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15782 *) gl_absname_cpp="$ac_cpp" ;;
15784 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15785 sed -n '\#/sys/time.h#{
15786 s#.*"\(.*/sys/time.h\)".*#\1#
15792 gl_cv_next_sys_time_h='<'sys/time.h'>'
15796 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
15797 $as_echo "$gl_cv_next_sys_time_h" >&6; }
15799 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
15801 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15803 gl_next_as_first_directive='<'sys/time.h'>'
15805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15806 gl_next_as_first_directive=$gl_cv_next_sys_time_h
15808 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
15813 if test $ac_cv_header_sys_time_h != yes; then
15817 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
15818 $as_echo_n "checking for struct timeval... " >&6; }
15819 if test "${gl_cv_sys_struct_timeval+set}" = set; then
15820 $as_echo_n "(cached) " >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 #if HAVE_SYS_TIME_H
15829 #include <sys/time.h>
15836 static struct timeval x; x.tv_sec = x.tv_usec;
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15848 $as_echo "$ac_try_echo") >&5
15849 (eval "$ac_compile") 2>conftest.er1
15851 grep -v '^ *+' conftest.er1 >conftest.err
15853 cat conftest.err >&5
15854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && {
15856 test -z "$ac_c_werror_flag" ||
15857 test ! -s conftest.err
15858 } && test -s conftest.$ac_objext; then
15859 gl_cv_sys_struct_timeval=yes
15861 $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 gl_cv_sys_struct_timeval=no
15867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
15870 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
15871 if test $gl_cv_sys_struct_timeval != yes; then
15872 HAVE_STRUCT_TIMEVAL=0
15877 for gl_func in gettimeofday; do
15878 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15879 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
15880 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15881 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+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. */
15891 #if HAVE_SYS_TIME_H
15892 # include <sys/time.h>
15905 rm -f conftest.$ac_objext
15906 if { (ac_try="$ac_compile"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15912 $as_echo "$ac_try_echo") >&5
15913 (eval "$ac_compile") 2>conftest.er1
15915 grep -v '^ *+' conftest.er1 >conftest.err
15917 cat conftest.err >&5
15918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } && {
15920 test -z "$ac_c_werror_flag" ||
15921 test ! -s conftest.err
15922 } && test -s conftest.$ac_objext; then
15923 eval "$as_gl_Symbol=yes"
15925 $as_echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 eval "$as_gl_Symbol=no"
15931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
15934 $as_echo "$as_val"'`
15935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15936 $as_echo "$ac_res" >&6; }
15937 as_val=`eval 'as_val=${'$as_gl_Symbol'}
15938 $as_echo "$as_val"'`
15939 if test "x$as_val" = x""yes; then
15940 cat >>confdefs.h <<_ACEOF
15941 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15944 eval ac_cv_have_decl_$gl_func=yes
15954 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
15955 $as_echo_n "checking for long long int... " >&6; }
15956 if test "${ac_cv_type_long_long_int+set}" = set; then
15957 $as_echo_n "(cached) " >&6
15959 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 /* For now, do not test the preprocessor; as of 2007 there are too many
15967 implementations with broken preprocessors. Perhaps this can
15968 be revisited in 2012. In the meantime, code should not expect
15969 #if to work with literals wider than 32 bits. */
15970 /* Test literals. */
15971 long long int ll = 9223372036854775807ll;
15972 long long int nll = -9223372036854775807LL;
15973 unsigned long long int ull = 18446744073709551615ULL;
15974 /* Test constant expressions. */
15975 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15977 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15983 /* Test availability of runtime routines for shift and division. */
15984 long long int llmax = 9223372036854775807ll;
15985 unsigned long long int ullmax = 18446744073709551615ull;
15986 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15987 | (llmax / ll) | (llmax % ll)
15988 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15989 | (ullmax / ull) | (ullmax % ull));
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_link") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest$ac_exeext && {
16013 test "$cross_compiling" = yes ||
16014 $as_test_x conftest$ac_exeext
16016 if test "$cross_compiling" = yes; then
16017 ac_cv_type_long_long_int=yes
16019 cat >conftest.$ac_ext <<_ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 #include <limits.h>
16028 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16029 # define LLONG_MAX (HALF - 1 + HALF)
16034 long long int n = 1;
16038 long long int m = n << i;
16041 if (LLONG_MAX / 2 < m)
16049 rm -f conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056 $as_echo "$ac_try_echo") >&5
16057 (eval "$ac_link") 2>&5
16059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16061 { (case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16066 $as_echo "$ac_try_echo") >&5
16067 (eval "$ac_try") 2>&5
16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_cv_type_long_long_int=yes
16073 $as_echo "$as_me: program exited with status $ac_status" >&5
16074 $as_echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 ( exit $ac_status )
16078 ac_cv_type_long_long_int=no
16080 rm -rf conftest.dSYM
16081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16086 $as_echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_cv_type_long_long_int=no
16092 rm -rf conftest.dSYM
16093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16094 conftest$ac_exeext conftest.$ac_ext
16096 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16097 $as_echo "$ac_cv_type_long_long_int" >&6; }
16098 if test $ac_cv_type_long_long_int = yes; then
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_LONG_LONG_INT 1
16107 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16108 $as_echo_n "checking for unsigned long long int... " >&6; }
16109 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16110 $as_echo_n "(cached) " >&6
16112 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 /* For now, do not test the preprocessor; as of 2007 there are too many
16120 implementations with broken preprocessors. Perhaps this can
16121 be revisited in 2012. In the meantime, code should not expect
16122 #if to work with literals wider than 32 bits. */
16123 /* Test literals. */
16124 long long int ll = 9223372036854775807ll;
16125 long long int nll = -9223372036854775807LL;
16126 unsigned long long int ull = 18446744073709551615ULL;
16127 /* Test constant expressions. */
16128 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16130 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16136 /* Test availability of runtime routines for shift and division. */
16137 long long int llmax = 9223372036854775807ll;
16138 unsigned long long int ullmax = 18446744073709551615ull;
16139 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16140 | (llmax / ll) | (llmax % ll)
16141 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16142 | (ullmax / ull) | (ullmax % ull));
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156 (eval "$ac_link") 2>conftest.er1
16158 grep -v '^ *+' conftest.er1 >conftest.err
16160 cat conftest.err >&5
16161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest$ac_exeext && {
16166 test "$cross_compiling" = yes ||
16167 $as_test_x conftest$ac_exeext
16169 ac_cv_type_unsigned_long_long_int=yes
16171 $as_echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16174 ac_cv_type_unsigned_long_long_int=no
16177 rm -rf conftest.dSYM
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179 conftest$ac_exeext conftest.$ac_ext
16181 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16182 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16183 if test $ac_cv_type_unsigned_long_long_int = yes; then
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16196 gl_cv_c_multiarch=no
16197 cat >conftest.$ac_ext <<_ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 #ifndef __APPLE_CC__
16204 not a universal capable compiler
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217 (eval "$ac_compile") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && {
16224 test -z "$ac_c_werror_flag" ||
16225 test ! -s conftest.err
16226 } && test -s conftest.$ac_objext; then
16230 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16231 if test -n "$prev"; then
16233 i?86 | x86_64 | ppc | ppc64)
16234 if test -z "$arch" || test "$arch" = "$word"; then
16237 gl_cv_c_multiarch=yes
16243 if test "x$word" = "x-arch"; then
16250 $as_echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 if test $gl_cv_c_multiarch = yes; then
16259 cat >>confdefs.h <<\_ACEOF
16260 #define AA_APPLE_UNIVERSAL_BUILD 1
16263 APPLE_UNIVERSAL_BUILD=1
16265 APPLE_UNIVERSAL_BUILD=0
16273 if test $ac_cv_type_long_long_int = yes; then
16274 HAVE_LONG_LONG_INT=1
16276 HAVE_LONG_LONG_INT=0
16280 if test $ac_cv_type_unsigned_long_long_int = yes; then
16281 HAVE_UNSIGNED_LONG_LONG_INT=1
16283 HAVE_UNSIGNED_LONG_LONG_INT=0
16287 if test $ac_cv_header_inttypes_h = yes; then
16294 if test $ac_cv_header_sys_types_h = yes; then
16312 if test $gl_cv_have_include_next = yes; then
16313 gl_cv_next_stdint_h='<'stdint.h'>'
16315 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16316 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16317 if test "${gl_cv_next_stdint_h+set}" = set; then
16318 $as_echo_n "(cached) " >&6
16321 if test $ac_cv_header_stdint_h = yes; then
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 #include <stdint.h>
16332 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16333 *) gl_absname_cpp="$ac_cpp" ;;
16335 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16336 sed -n '\#/stdint.h#{
16337 s#.*"\(.*/stdint.h\)".*#\1#
16343 gl_cv_next_stdint_h='<'stdint.h'>'
16347 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16348 $as_echo "$gl_cv_next_stdint_h" >&6; }
16350 NEXT_STDINT_H=$gl_cv_next_stdint_h
16352 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16354 gl_next_as_first_directive='<'stdint.h'>'
16356 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16357 gl_next_as_first_directive=$gl_cv_next_stdint_h
16359 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16363 if test $ac_cv_header_stdint_h = yes; then
16370 if test $ac_cv_header_stdint_h = yes; then
16371 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16372 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16373 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16374 $as_echo_n "(cached) " >&6
16376 gl_cv_header_working_stdint_h=no
16377 cat >conftest.$ac_ext <<_ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16385 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16386 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16387 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16388 #include <stdint.h>
16389 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16390 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16391 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16395 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16396 included before <wchar.h>. */
16397 #include <stddef.h>
16398 #include <signal.h>
16400 # include <stdio.h>
16402 # include <wchar.h>
16407 int8_t a1 = INT8_MAX;
16408 int8_t a1min = INT8_MIN;
16411 int16_t a2 = INT16_MAX;
16412 int16_t a2min = INT16_MIN;
16415 int32_t a3 = INT32_MAX;
16416 int32_t a3min = INT32_MIN;
16419 int64_t a4 = INT64_MAX;
16420 int64_t a4min = INT64_MIN;
16423 uint8_t b1 = UINT8_MAX;
16425 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16428 uint16_t b2 = UINT16_MAX;
16431 uint32_t b3 = UINT32_MAX;
16434 uint64_t b4 = UINT64_MAX;
16436 int_least8_t c1 = INT8_C (0x7f);
16437 int_least8_t c1max = INT_LEAST8_MAX;
16438 int_least8_t c1min = INT_LEAST8_MIN;
16439 int_least16_t c2 = INT16_C (0x7fff);
16440 int_least16_t c2max = INT_LEAST16_MAX;
16441 int_least16_t c2min = INT_LEAST16_MIN;
16442 int_least32_t c3 = INT32_C (0x7fffffff);
16443 int_least32_t c3max = INT_LEAST32_MAX;
16444 int_least32_t c3min = INT_LEAST32_MIN;
16445 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16446 int_least64_t c4max = INT_LEAST64_MAX;
16447 int_least64_t c4min = INT_LEAST64_MIN;
16448 uint_least8_t d1 = UINT8_C (0xff);
16449 uint_least8_t d1max = UINT_LEAST8_MAX;
16450 uint_least16_t d2 = UINT16_C (0xffff);
16451 uint_least16_t d2max = UINT_LEAST16_MAX;
16452 uint_least32_t d3 = UINT32_C (0xffffffff);
16453 uint_least32_t d3max = UINT_LEAST32_MAX;
16454 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16455 uint_least64_t d4max = UINT_LEAST64_MAX;
16456 int_fast8_t e1 = INT_FAST8_MAX;
16457 int_fast8_t e1min = INT_FAST8_MIN;
16458 int_fast16_t e2 = INT_FAST16_MAX;
16459 int_fast16_t e2min = INT_FAST16_MIN;
16460 int_fast32_t e3 = INT_FAST32_MAX;
16461 int_fast32_t e3min = INT_FAST32_MIN;
16462 int_fast64_t e4 = INT_FAST64_MAX;
16463 int_fast64_t e4min = INT_FAST64_MIN;
16464 uint_fast8_t f1 = UINT_FAST8_MAX;
16465 uint_fast16_t f2 = UINT_FAST16_MAX;
16466 uint_fast32_t f3 = UINT_FAST32_MAX;
16467 uint_fast64_t f4 = UINT_FAST64_MAX;
16469 intptr_t g = INTPTR_MAX;
16470 intptr_t gmin = INTPTR_MIN;
16473 uintptr_t h = UINTPTR_MAX;
16475 intmax_t i = INTMAX_MAX;
16476 uintmax_t j = UINTMAX_MAX;
16478 #include <limits.h> /* for CHAR_BIT */
16479 #define TYPE_MINIMUM(t) \
16480 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16481 #define TYPE_MAXIMUM(t) \
16482 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16485 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16486 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16488 /* Detect bug in FreeBSD 6.0 / ia64. */
16489 int check_SIG_ATOMIC:
16490 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16491 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16493 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16495 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16496 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16498 /* Detect bug in mingw. */
16500 WINT_MIN == TYPE_MINIMUM (wint_t)
16501 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16504 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16506 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16507 int check_UINT16_C:
16508 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16510 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16512 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16515 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16518 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16521 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16523 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16524 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16525 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16526 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16527 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16528 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16529 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16530 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16531 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16532 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16533 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16551 $as_echo "$ac_try_echo") >&5
16552 (eval "$ac_compile") 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } && {
16559 test -z "$ac_c_werror_flag" ||
16560 test ! -s conftest.err
16561 } && test -s conftest.$ac_objext; then
16562 if test "$cross_compiling" = yes; then
16563 gl_cv_header_working_stdint_h=yes
16566 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16574 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16575 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16576 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16577 #include <stdint.h>
16580 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16581 included before <wchar.h>. */
16582 #include <stddef.h>
16583 #include <signal.h>
16585 # include <stdio.h>
16587 # include <wchar.h>
16592 #include <string.h>
16593 #define MVAL(macro) MVAL1(macro)
16594 #define MVAL1(expression) #expression
16595 static const char *macro_values[] =
16629 for (mv = macro_values; *mv != NULL; mv++)
16631 const char *value = *mv;
16632 /* Test whether it looks like a cast expression. */
16633 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16634 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16635 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16636 || strncmp (value, "((int)"/*)*/, 6) == 0
16637 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16638 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16647 rm -f conftest$ac_exeext
16648 if { (ac_try="$ac_link"
16649 case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16654 $as_echo "$ac_try_echo") >&5
16655 (eval "$ac_link") 2>&5
16657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16664 $as_echo "$ac_try_echo") >&5
16665 (eval "$ac_try") 2>&5
16667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 gl_cv_header_working_stdint_h=yes
16671 $as_echo "$as_me: program exited with status $ac_status" >&5
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16676 rm -rf conftest.dSYM
16677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16693 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16695 if test "$gl_cv_header_working_stdint_h" = yes; then
16700 for ac_header in sys/inttypes.h sys/bitypes.h
16702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16705 $as_echo_n "checking for $ac_header... " >&6; }
16706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16707 $as_echo_n "(cached) " >&6
16709 ac_res=`eval 'as_val=${'$as_ac_Header'}
16710 $as_echo "$as_val"'`
16711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16712 $as_echo "$ac_res" >&6; }
16714 # Is the header compilable?
16715 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16716 $as_echo_n "checking $ac_header usability... " >&6; }
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 $ac_includes_default
16724 #include <$ac_header>
16726 rm -f conftest.$ac_objext
16727 if { (ac_try="$ac_compile"
16728 case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16733 $as_echo "$ac_try_echo") >&5
16734 (eval "$ac_compile") 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest.$ac_objext; then
16744 ac_header_compiler=yes
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 ac_header_compiler=no
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16754 $as_echo "$ac_header_compiler" >&6; }
16756 # Is the header present?
16757 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16758 $as_echo_n "checking $ac_header presence... " >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <$ac_header>
16767 if { (ac_try="$ac_cpp conftest.$ac_ext"
16768 case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16773 $as_echo "$ac_try_echo") >&5
16774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } >/dev/null && {
16781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16784 ac_header_preproc=yes
16786 $as_echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_preproc=no
16792 rm -f conftest.err conftest.$ac_ext
16793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794 $as_echo "$ac_header_preproc" >&6; }
16796 # So? What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16800 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16802 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16803 ac_header_preproc=yes
16806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16807 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16809 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16811 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16813 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16817 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16819 ## ------------------------------ ##
16820 ## Report this to bug-tar@gnu.org ##
16821 ## ------------------------------ ##
16823 ) | sed "s/^/$as_me: WARNING: /" >&2
16826 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16827 $as_echo_n "checking for $ac_header... " >&6; }
16828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16829 $as_echo_n "(cached) " >&6
16831 eval "$as_ac_Header=\$ac_header_preproc"
16833 ac_res=`eval 'as_val=${'$as_ac_Header'}
16834 $as_echo "$as_val"'`
16835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16836 $as_echo "$ac_res" >&6; }
16839 as_val=`eval 'as_val=${'$as_ac_Header'}
16840 $as_echo "$as_val"'`
16841 if test "x$as_val" = x""yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16850 if test $ac_cv_header_sys_inttypes_h = yes; then
16851 HAVE_SYS_INTTYPES_H=1
16853 HAVE_SYS_INTTYPES_H=0
16856 if test $ac_cv_header_sys_bitypes_h = yes; then
16857 HAVE_SYS_BITYPES_H=1
16859 HAVE_SYS_BITYPES_H=0
16872 if test $APPLE_UNIVERSAL_BUILD = 0; then
16877 for gltype in ptrdiff_t size_t ; do
16878 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
16879 $as_echo_n "checking for bit size of $gltype... " >&6; }
16880 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
16881 $as_echo_n "(cached) " >&6
16883 if test "$cross_compiling" = yes; then
16884 # Depending upon the size, compute the lo and hi bounds.
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16892 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16893 included before <wchar.h>. */
16894 #include <stddef.h>
16895 #include <signal.h>
16897 # include <stdio.h>
16899 # include <wchar.h>
16902 #include <limits.h>
16906 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16920 $as_echo "$ac_try_echo") >&5
16921 (eval "$ac_compile") 2>conftest.er1
16923 grep -v '^ *+' conftest.er1 >conftest.err
16925 cat conftest.err >&5
16926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } && {
16928 test -z "$ac_c_werror_flag" ||
16929 test ! -s conftest.err
16930 } && test -s conftest.$ac_objext; then
16933 cat >conftest.$ac_ext <<_ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16940 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16941 included before <wchar.h>. */
16942 #include <stddef.h>
16943 #include <signal.h>
16945 # include <stdio.h>
16947 # include <wchar.h>
16950 #include <limits.h>
16954 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
16961 rm -f conftest.$ac_objext
16962 if { (ac_try="$ac_compile"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16968 $as_echo "$ac_try_echo") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1 >conftest.err
16973 cat conftest.err >&5
16974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest.$ac_objext; then
16979 ac_hi=$ac_mid; break
16981 $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_lo=`expr $ac_mid + 1`
16985 if test $ac_lo -le $ac_mid; then
16989 ac_mid=`expr 2 '*' $ac_mid + 1`
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 $as_echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 cat >conftest.$ac_ext <<_ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17005 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17006 included before <wchar.h>. */
17007 #include <stddef.h>
17008 #include <signal.h>
17010 # include <stdio.h>
17012 # include <wchar.h>
17015 #include <limits.h>
17019 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17026 rm -f conftest.$ac_objext
17027 if { (ac_try="$ac_compile"
17028 case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17033 $as_echo "$ac_try_echo") >&5
17034 (eval "$ac_compile") 2>conftest.er1
17036 grep -v '^ *+' conftest.er1 >conftest.err
17038 cat conftest.err >&5
17039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } && {
17041 test -z "$ac_c_werror_flag" ||
17042 test ! -s conftest.err
17043 } && test -s conftest.$ac_objext; then
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17053 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17054 included before <wchar.h>. */
17055 #include <stddef.h>
17056 #include <signal.h>
17058 # include <stdio.h>
17060 # include <wchar.h>
17063 #include <limits.h>
17067 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17074 rm -f conftest.$ac_objext
17075 if { (ac_try="$ac_compile"
17076 case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17081 $as_echo "$ac_try_echo") >&5
17082 (eval "$ac_compile") 2>conftest.er1
17084 grep -v '^ *+' conftest.er1 >conftest.err
17086 cat conftest.err >&5
17087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } && {
17089 test -z "$ac_c_werror_flag" ||
17090 test ! -s conftest.err
17091 } && test -s conftest.$ac_objext; then
17092 ac_lo=$ac_mid; break
17094 $as_echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 ac_hi=`expr '(' $ac_mid ')' - 1`
17098 if test $ac_mid -le $ac_hi; then
17102 ac_mid=`expr 2 '*' $ac_mid`
17105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17108 $as_echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118 # Binary search between lo and hi bounds.
17119 while test "x$ac_lo" != "x$ac_hi"; do
17120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17121 cat >conftest.$ac_ext <<_ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17128 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17129 included before <wchar.h>. */
17130 #include <stddef.h>
17131 #include <signal.h>
17133 # include <stdio.h>
17135 # include <wchar.h>
17138 #include <limits.h>
17142 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17149 rm -f conftest.$ac_objext
17150 if { (ac_try="$ac_compile"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17156 $as_echo "$ac_try_echo") >&5
17157 (eval "$ac_compile") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } && {
17164 test -z "$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17166 } && test -s conftest.$ac_objext; then
17169 $as_echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ac_lo=`expr '(' $ac_mid ')' + 1`
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 ?*) result=$ac_lo;;
17179 '') result=unknown ;;
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17189 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17190 included before <wchar.h>. */
17191 #include <stddef.h>
17192 #include <signal.h>
17194 # include <stdio.h>
17196 # include <wchar.h>
17199 #include <limits.h>
17200 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17201 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17203 #include <stdlib.h>
17208 FILE *f = fopen ("conftest.val", "w");
17211 if ((sizeof ($gltype) * CHAR_BIT) < 0)
17213 long int i = longval ();
17214 if (i != (sizeof ($gltype) * CHAR_BIT))
17216 fprintf (f, "%ld", i);
17220 unsigned long int i = ulongval ();
17221 if (i != (sizeof ($gltype) * CHAR_BIT))
17223 fprintf (f, "%lu", i);
17225 /* Do not output a trailing newline, as this causes \r\n confusion
17226 on some platforms. */
17227 return ferror (f) || fclose (f) != 0;
17233 rm -f conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240 $as_echo "$ac_try_echo") >&5
17241 (eval "$ac_link") 2>&5
17243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17250 $as_echo "$ac_try_echo") >&5
17251 (eval "$ac_try") 2>&5
17253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 result=`cat conftest.val`
17257 $as_echo "$as_me: program exited with status $ac_status" >&5
17258 $as_echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ( exit $ac_status )
17264 rm -rf conftest.dSYM
17265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17268 eval gl_cv_bitsizeof_${gltype}=\$result
17271 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17272 $as_echo "$as_val"'`
17273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17274 $as_echo "$ac_res" >&6; }
17275 eval result=\$gl_cv_bitsizeof_${gltype}
17276 if test $result = unknown; then
17279 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17280 cat >>confdefs.h <<_ACEOF
17281 #define BITSIZEOF_${GLTYPE} $result
17284 eval BITSIZEOF_${GLTYPE}=\$result
17294 for gltype in sig_atomic_t wchar_t wint_t ; do
17295 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17296 $as_echo_n "checking for bit size of $gltype... " >&6; }
17297 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17298 $as_echo_n "(cached) " >&6
17300 if test "$cross_compiling" = yes; then
17301 # Depending upon the size, compute the lo and hi bounds.
17302 cat >conftest.$ac_ext <<_ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17309 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17310 included before <wchar.h>. */
17311 #include <stddef.h>
17312 #include <signal.h>
17314 # include <stdio.h>
17316 # include <wchar.h>
17319 #include <limits.h>
17323 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17337 $as_echo "$ac_try_echo") >&5
17338 (eval "$ac_compile") 2>conftest.er1
17340 grep -v '^ *+' conftest.er1 >conftest.err
17342 cat conftest.err >&5
17343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } && {
17345 test -z "$ac_c_werror_flag" ||
17346 test ! -s conftest.err
17347 } && test -s conftest.$ac_objext; then
17350 cat >conftest.$ac_ext <<_ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17357 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17358 included before <wchar.h>. */
17359 #include <stddef.h>
17360 #include <signal.h>
17362 # include <stdio.h>
17364 # include <wchar.h>
17367 #include <limits.h>
17371 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17378 rm -f conftest.$ac_objext
17379 if { (ac_try="$ac_compile"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17385 $as_echo "$ac_try_echo") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17388 grep -v '^ *+' conftest.er1 >conftest.err
17390 cat conftest.err >&5
17391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest.$ac_objext; then
17396 ac_hi=$ac_mid; break
17398 $as_echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 ac_lo=`expr $ac_mid + 1`
17402 if test $ac_lo -le $ac_mid; then
17406 ac_mid=`expr 2 '*' $ac_mid + 1`
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 $as_echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 cat >conftest.$ac_ext <<_ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17422 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17423 included before <wchar.h>. */
17424 #include <stddef.h>
17425 #include <signal.h>
17427 # include <stdio.h>
17429 # include <wchar.h>
17432 #include <limits.h>
17436 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17443 rm -f conftest.$ac_objext
17444 if { (ac_try="$ac_compile"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17450 $as_echo "$ac_try_echo") >&5
17451 (eval "$ac_compile") 2>conftest.er1
17453 grep -v '^ *+' conftest.er1 >conftest.err
17455 cat conftest.err >&5
17456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } && {
17458 test -z "$ac_c_werror_flag" ||
17459 test ! -s conftest.err
17460 } && test -s conftest.$ac_objext; then
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17470 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17471 included before <wchar.h>. */
17472 #include <stddef.h>
17473 #include <signal.h>
17475 # include <stdio.h>
17477 # include <wchar.h>
17480 #include <limits.h>
17484 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17491 rm -f conftest.$ac_objext
17492 if { (ac_try="$ac_compile"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17498 $as_echo "$ac_try_echo") >&5
17499 (eval "$ac_compile") 2>conftest.er1
17501 grep -v '^ *+' conftest.er1 >conftest.err
17503 cat conftest.err >&5
17504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } && {
17506 test -z "$ac_c_werror_flag" ||
17507 test ! -s conftest.err
17508 } && test -s conftest.$ac_objext; then
17509 ac_lo=$ac_mid; break
17511 $as_echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 ac_hi=`expr '(' $ac_mid ')' - 1`
17515 if test $ac_mid -le $ac_hi; then
17519 ac_mid=`expr 2 '*' $ac_mid`
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525 $as_echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535 # Binary search between lo and hi bounds.
17536 while test "x$ac_lo" != "x$ac_hi"; do
17537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17545 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17546 included before <wchar.h>. */
17547 #include <stddef.h>
17548 #include <signal.h>
17550 # include <stdio.h>
17552 # include <wchar.h>
17555 #include <limits.h>
17559 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17566 rm -f conftest.$ac_objext
17567 if { (ac_try="$ac_compile"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17573 $as_echo "$ac_try_echo") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest.$ac_objext; then
17586 $as_echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 ac_lo=`expr '(' $ac_mid ')' + 1`
17592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 ?*) result=$ac_lo;;
17596 '') result=unknown ;;
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17606 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17607 included before <wchar.h>. */
17608 #include <stddef.h>
17609 #include <signal.h>
17611 # include <stdio.h>
17613 # include <wchar.h>
17616 #include <limits.h>
17617 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17618 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17620 #include <stdlib.h>
17625 FILE *f = fopen ("conftest.val", "w");
17628 if ((sizeof ($gltype) * CHAR_BIT) < 0)
17630 long int i = longval ();
17631 if (i != (sizeof ($gltype) * CHAR_BIT))
17633 fprintf (f, "%ld", i);
17637 unsigned long int i = ulongval ();
17638 if (i != (sizeof ($gltype) * CHAR_BIT))
17640 fprintf (f, "%lu", i);
17642 /* Do not output a trailing newline, as this causes \r\n confusion
17643 on some platforms. */
17644 return ferror (f) || fclose (f) != 0;
17650 rm -f conftest$ac_exeext
17651 if { (ac_try="$ac_link"
17652 case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17657 $as_echo "$ac_try_echo") >&5
17658 (eval "$ac_link") 2>&5
17660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17667 $as_echo "$ac_try_echo") >&5
17668 (eval "$ac_try") 2>&5
17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 result=`cat conftest.val`
17674 $as_echo "$as_me: program exited with status $ac_status" >&5
17675 $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ( exit $ac_status )
17681 rm -rf conftest.dSYM
17682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17685 eval gl_cv_bitsizeof_${gltype}=\$result
17688 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17689 $as_echo "$as_val"'`
17690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17691 $as_echo "$ac_res" >&6; }
17692 eval result=\$gl_cv_bitsizeof_${gltype}
17693 if test $result = unknown; then
17696 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17697 cat >>confdefs.h <<_ACEOF
17698 #define BITSIZEOF_${GLTYPE} $result
17701 eval BITSIZEOF_${GLTYPE}=\$result
17710 for gltype in sig_atomic_t wchar_t wint_t ; do
17711 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17712 $as_echo_n "checking whether $gltype is signed... " >&6; }
17713 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17714 $as_echo_n "(cached) " >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17723 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17724 included before <wchar.h>. */
17725 #include <stddef.h>
17726 #include <signal.h>
17728 # include <stdio.h>
17730 # include <wchar.h>
17733 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17749 $as_echo "$ac_try_echo") >&5
17750 (eval "$ac_compile") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest.$ac_objext; then
17762 $as_echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769 eval gl_cv_type_${gltype}_signed=\$result
17772 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
17773 $as_echo "$as_val"'`
17774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17775 $as_echo "$ac_res" >&6; }
17776 eval result=\$gl_cv_type_${gltype}_signed
17777 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17778 if test "$result" = yes; then
17779 cat >>confdefs.h <<_ACEOF
17780 #define HAVE_SIGNED_${GLTYPE} 1
17783 eval HAVE_SIGNED_${GLTYPE}=1
17785 eval HAVE_SIGNED_${GLTYPE}=0
17790 gl_cv_type_ptrdiff_t_signed=yes
17791 gl_cv_type_size_t_signed=no
17792 if test $APPLE_UNIVERSAL_BUILD = 0; then
17797 for gltype in ptrdiff_t size_t ; do
17798 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17799 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17800 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17801 $as_echo_n "(cached) " >&6
17803 eval gl_cv_type_${gltype}_suffix=no
17804 eval result=\$gl_cv_type_${gltype}_signed
17805 if test "$result" = yes; then
17810 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17812 '') gltype1='int';;
17813 l) gltype1='long int';;
17814 ll) gltype1='long long int';;
17815 i64) gltype1='__int64';;
17816 u) gltype1='unsigned int';;
17817 ul) gltype1='unsigned long int';;
17818 ull) gltype1='unsigned long long int';;
17819 ui64)gltype1='unsigned __int64';;
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17828 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17829 included before <wchar.h>. */
17830 #include <stddef.h>
17831 #include <signal.h>
17833 # include <stdio.h>
17835 # include <wchar.h>
17838 extern $gltype foo;
17839 extern $gltype1 foo;
17848 rm -f conftest.$ac_objext
17849 if { (ac_try="$ac_compile"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17855 $as_echo "$ac_try_echo") >&5
17856 (eval "$ac_compile") 2>conftest.er1
17858 grep -v '^ *+' conftest.er1 >conftest.err
17860 cat conftest.err >&5
17861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } && {
17863 test -z "$ac_c_werror_flag" ||
17864 test ! -s conftest.err
17865 } && test -s conftest.$ac_objext; then
17866 eval gl_cv_type_${gltype}_suffix=\$glsuf
17868 $as_echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875 eval result=\$gl_cv_type_${gltype}_suffix
17876 test "$result" != no && break
17879 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17880 $as_echo "$as_val"'`
17881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17882 $as_echo "$ac_res" >&6; }
17883 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17884 eval result=\$gl_cv_type_${gltype}_suffix
17885 test "$result" = no && result=
17886 eval ${GLTYPE}_SUFFIX=\$result
17887 cat >>confdefs.h <<_ACEOF
17888 #define ${GLTYPE}_SUFFIX $result
17900 for gltype in sig_atomic_t wchar_t wint_t ; do
17901 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17902 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17903 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17904 $as_echo_n "(cached) " >&6
17906 eval gl_cv_type_${gltype}_suffix=no
17907 eval result=\$gl_cv_type_${gltype}_signed
17908 if test "$result" = yes; then
17913 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17915 '') gltype1='int';;
17916 l) gltype1='long int';;
17917 ll) gltype1='long long int';;
17918 i64) gltype1='__int64';;
17919 u) gltype1='unsigned int';;
17920 ul) gltype1='unsigned long int';;
17921 ull) gltype1='unsigned long long int';;
17922 ui64)gltype1='unsigned __int64';;
17924 cat >conftest.$ac_ext <<_ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17931 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17932 included before <wchar.h>. */
17933 #include <stddef.h>
17934 #include <signal.h>
17936 # include <stdio.h>
17938 # include <wchar.h>
17941 extern $gltype foo;
17942 extern $gltype1 foo;
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17958 $as_echo "$ac_try_echo") >&5
17959 (eval "$ac_compile") 2>conftest.er1
17961 grep -v '^ *+' conftest.er1 >conftest.err
17963 cat conftest.err >&5
17964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest.$ac_objext; then
17969 eval gl_cv_type_${gltype}_suffix=\$glsuf
17971 $as_echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 eval result=\$gl_cv_type_${gltype}_suffix
17979 test "$result" != no && break
17982 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17983 $as_echo "$as_val"'`
17984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17985 $as_echo "$ac_res" >&6; }
17986 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17987 eval result=\$gl_cv_type_${gltype}_suffix
17988 test "$result" = no && result=
17989 eval ${GLTYPE}_SUFFIX=\$result
17990 cat >>confdefs.h <<_ACEOF
17991 #define ${GLTYPE}_SUFFIX $result
18004 for ac_header in inttypes.h
18006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18009 $as_echo_n "checking for $ac_header... " >&6; }
18010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18011 $as_echo_n "(cached) " >&6
18013 ac_res=`eval 'as_val=${'$as_ac_Header'}
18014 $as_echo "$as_val"'`
18015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18016 $as_echo "$ac_res" >&6; }
18018 # Is the header compilable?
18019 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18020 $as_echo_n "checking $ac_header usability... " >&6; }
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 $ac_includes_default
18028 #include <$ac_header>
18030 rm -f conftest.$ac_objext
18031 if { (ac_try="$ac_compile"
18032 case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18037 $as_echo "$ac_try_echo") >&5
18038 (eval "$ac_compile") 2>conftest.er1
18040 grep -v '^ *+' conftest.er1 >conftest.err
18042 cat conftest.err >&5
18043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && {
18045 test -z "$ac_c_werror_flag" ||
18046 test ! -s conftest.err
18047 } && test -s conftest.$ac_objext; then
18048 ac_header_compiler=yes
18050 $as_echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18053 ac_header_compiler=no
18056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18058 $as_echo "$ac_header_compiler" >&6; }
18060 # Is the header present?
18061 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18062 $as_echo_n "checking $ac_header presence... " >&6; }
18063 cat >conftest.$ac_ext <<_ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 #include <$ac_header>
18071 if { (ac_try="$ac_cpp conftest.$ac_ext"
18072 case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18077 $as_echo "$ac_try_echo") >&5
18078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18080 grep -v '^ *+' conftest.er1 >conftest.err
18082 cat conftest.err >&5
18083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } >/dev/null && {
18085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18086 test ! -s conftest.err
18088 ac_header_preproc=yes
18090 $as_echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18093 ac_header_preproc=no
18096 rm -f conftest.err conftest.$ac_ext
18097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18098 $as_echo "$ac_header_preproc" >&6; }
18100 # So? What about this header?
18101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18104 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18107 ac_header_preproc=yes
18110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18111 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18113 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18115 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18117 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18119 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18121 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18123 ## ------------------------------ ##
18124 ## Report this to bug-tar@gnu.org ##
18125 ## ------------------------------ ##
18127 ) | sed "s/^/$as_me: WARNING: /" >&2
18130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18131 $as_echo_n "checking for $ac_header... " >&6; }
18132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18133 $as_echo_n "(cached) " >&6
18135 eval "$as_ac_Header=\$ac_header_preproc"
18137 ac_res=`eval 'as_val=${'$as_ac_Header'}
18138 $as_echo "$as_val"'`
18139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18140 $as_echo "$ac_res" >&6; }
18143 as_val=`eval 'as_val=${'$as_ac_Header'}
18144 $as_echo "$as_val"'`
18145 if test "x$as_val" = x""yes; then
18146 cat >>confdefs.h <<_ACEOF
18147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18154 if test $ac_cv_header_inttypes_h = yes; then
18155 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18156 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18157 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18158 $as_echo_n "(cached) " >&6
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 #include <inttypes.h>
18180 rm -f conftest.$ac_objext
18181 if { (ac_try="$ac_compile"
18182 case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18187 $as_echo "$ac_try_echo") >&5
18188 (eval "$ac_compile") 2>conftest.er1
18190 grep -v '^ *+' conftest.er1 >conftest.err
18192 cat conftest.err >&5
18193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } && {
18195 test -z "$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18197 } && test -s conftest.$ac_objext; then
18198 gt_cv_inttypes_pri_broken=no
18200 $as_echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 gt_cv_inttypes_pri_broken=yes
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18210 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18212 if test "$gt_cv_inttypes_pri_broken" = yes; then
18214 cat >>confdefs.h <<_ACEOF
18215 #define PRI_MACROS_BROKEN 1
18218 PRI_MACROS_BROKEN=1
18220 PRI_MACROS_BROKEN=0
18226 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
18227 $as_echo_n "checking whether imaxabs is declared... " >&6; }
18228 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
18229 $as_echo_n "(cached) " >&6
18231 cat >conftest.$ac_ext <<_ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18237 $ac_includes_default
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18256 $as_echo "$ac_try_echo") >&5
18257 (eval "$ac_compile") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } && {
18264 test -z "$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18266 } && test -s conftest.$ac_objext; then
18267 ac_cv_have_decl_imaxabs=yes
18269 $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_cv_have_decl_imaxabs=no
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
18278 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
18279 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define HAVE_DECL_IMAXABS 1
18287 cat >>confdefs.h <<_ACEOF
18288 #define HAVE_DECL_IMAXABS 0
18295 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
18296 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
18297 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
18298 $as_echo_n "(cached) " >&6
18300 cat >conftest.$ac_ext <<_ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18306 $ac_includes_default
18318 rm -f conftest.$ac_objext
18319 if { (ac_try="$ac_compile"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326 (eval "$ac_compile") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } && {
18333 test -z "$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 } && test -s conftest.$ac_objext; then
18336 ac_cv_have_decl_imaxdiv=yes
18338 $as_echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_cv_have_decl_imaxdiv=no
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18346 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
18347 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
18348 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then
18350 cat >>confdefs.h <<_ACEOF
18351 #define HAVE_DECL_IMAXDIV 1
18356 cat >>confdefs.h <<_ACEOF
18357 #define HAVE_DECL_IMAXDIV 0
18364 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
18365 $as_echo_n "checking whether strtoimax is declared... " >&6; }
18366 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
18367 $as_echo_n "(cached) " >&6
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 $ac_includes_default
18387 rm -f conftest.$ac_objext
18388 if { (ac_try="$ac_compile"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395 (eval "$ac_compile") 2>conftest.er1
18397 grep -v '^ *+' conftest.er1 >conftest.err
18399 cat conftest.err >&5
18400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest.$ac_objext; then
18405 ac_cv_have_decl_strtoimax=yes
18407 $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_cv_have_decl_strtoimax=no
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
18416 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
18417 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then
18419 cat >>confdefs.h <<_ACEOF
18420 #define HAVE_DECL_STRTOIMAX 1
18425 cat >>confdefs.h <<_ACEOF
18426 #define HAVE_DECL_STRTOIMAX 0
18433 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
18434 $as_echo_n "checking whether strtoumax is declared... " >&6; }
18435 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
18436 $as_echo_n "(cached) " >&6
18438 cat >conftest.$ac_ext <<_ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 $ac_includes_default
18456 rm -f conftest.$ac_objext
18457 if { (ac_try="$ac_compile"
18458 case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18463 $as_echo "$ac_try_echo") >&5
18464 (eval "$ac_compile") 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } && {
18471 test -z "$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18473 } && test -s conftest.$ac_objext; then
18474 ac_cv_have_decl_strtoumax=yes
18476 $as_echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_cv_have_decl_strtoumax=no
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
18485 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
18486 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then
18488 cat >>confdefs.h <<_ACEOF
18489 #define HAVE_DECL_STRTOUMAX 1
18494 cat >>confdefs.h <<_ACEOF
18495 #define HAVE_DECL_STRTOUMAX 0
18505 GNULIB_STRTOIMAX=0;
18506 GNULIB_STRTOUMAX=0;
18507 HAVE_DECL_IMAXABS=1;
18508 HAVE_DECL_IMAXDIV=1;
18509 HAVE_DECL_STRTOIMAX=1;
18510 HAVE_DECL_STRTOUMAX=1;
18513 GNULIB_NL_LANGINFO=0;
18514 HAVE_NL_LANGINFO=1;
18515 REPLACE_NL_LANGINFO=0;
18522 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
18523 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18524 if test "${ac_cv_gnu_library_2_1+set}" = set; then
18525 $as_echo_n "(cached) " >&6
18527 cat >conftest.$ac_ext <<_ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18534 #include <features.h>
18535 #ifdef __GNU_LIBRARY__
18536 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18543 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18544 ac_cv_gnu_library_2_1=yes
18546 ac_cv_gnu_library_2_1=no
18553 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
18554 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18556 GLIBC21="$ac_cv_gnu_library_2_1"
18561 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
18562 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
18563 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
18564 $as_echo_n "(cached) " >&6
18566 rm -f conftest.sym conftest.file
18567 echo >conftest.file
18568 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18569 if test "$cross_compiling" = yes; then
18570 ac_cv_func_lstat_dereferences_slashed_symlink=no
18572 cat >conftest.$ac_ext <<_ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 $ac_includes_default
18583 /* Linux will dereference the symlink and fail.
18584 That is better in the sense that it means we will not
18585 have to compile and use the lstat wrapper. */
18586 return lstat ("conftest.sym/", &sbuf) == 0;
18591 rm -f conftest$ac_exeext
18592 if { (ac_try="$ac_link"
18593 case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18598 $as_echo "$ac_try_echo") >&5
18599 (eval "$ac_link") 2>&5
18601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18603 { (case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18608 $as_echo "$ac_try_echo") >&5
18609 (eval "$ac_try") 2>&5
18611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_func_lstat_dereferences_slashed_symlink=yes
18615 $as_echo "$as_me: program exited with status $ac_status" >&5
18616 $as_echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ( exit $ac_status )
18620 ac_cv_func_lstat_dereferences_slashed_symlink=no
18622 rm -rf conftest.dSYM
18623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18628 # If the `ln -s' command failed, then we probably don't even
18629 # have an lstat function.
18630 ac_cv_func_lstat_dereferences_slashed_symlink=no
18632 rm -f conftest.sym conftest.file
18635 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18636 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18638 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18640 cat >>confdefs.h <<_ACEOF
18641 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18645 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
18654 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
18659 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
18660 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
18661 if test "${gl_cv_func_malloc_posix+set}" = set; then
18662 $as_echo_n "(cached) " >&6
18665 cat >conftest.$ac_ext <<_ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18675 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18683 rm -f conftest.$ac_objext
18684 if { (ac_try="$ac_compile"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18690 $as_echo "$ac_try_echo") >&5
18691 (eval "$ac_compile") 2>conftest.er1
18693 grep -v '^ *+' conftest.er1 >conftest.err
18695 cat conftest.err >&5
18696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } && {
18698 test -z "$ac_c_werror_flag" ||
18699 test ! -s conftest.err
18700 } && test -s conftest.$ac_objext; then
18701 gl_cv_func_malloc_posix=yes
18703 $as_echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18706 gl_cv_func_malloc_posix=no
18709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18712 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
18713 $as_echo "$gl_cv_func_malloc_posix" >&6; }
18717 for ac_header in stdlib.h
18719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18722 $as_echo_n "checking for $ac_header... " >&6; }
18723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18724 $as_echo_n "(cached) " >&6
18726 ac_res=`eval 'as_val=${'$as_ac_Header'}
18727 $as_echo "$as_val"'`
18728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18729 $as_echo "$ac_res" >&6; }
18731 # Is the header compilable?
18732 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18733 $as_echo_n "checking $ac_header usability... " >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 $ac_includes_default
18741 #include <$ac_header>
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18750 $as_echo "$ac_try_echo") >&5
18751 (eval "$ac_compile") 2>conftest.er1
18753 grep -v '^ *+' conftest.er1 >conftest.err
18755 cat conftest.err >&5
18756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } && {
18758 test -z "$ac_c_werror_flag" ||
18759 test ! -s conftest.err
18760 } && test -s conftest.$ac_objext; then
18761 ac_header_compiler=yes
18763 $as_echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 ac_header_compiler=no
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18771 $as_echo "$ac_header_compiler" >&6; }
18773 # Is the header present?
18774 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18775 $as_echo_n "checking $ac_header presence... " >&6; }
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 #include <$ac_header>
18784 if { (ac_try="$ac_cpp conftest.$ac_ext"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18790 $as_echo "$ac_try_echo") >&5
18791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1 >conftest.err
18795 cat conftest.err >&5
18796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } >/dev/null && {
18798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18801 ac_header_preproc=yes
18803 $as_echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_header_preproc=no
18809 rm -f conftest.err conftest.$ac_ext
18810 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18811 $as_echo "$ac_header_preproc" >&6; }
18813 # So? What about this header?
18814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18817 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18820 ac_header_preproc=yes
18823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18824 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18826 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18828 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18830 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18832 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18834 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18836 ## ------------------------------ ##
18837 ## Report this to bug-tar@gnu.org ##
18838 ## ------------------------------ ##
18840 ) | sed "s/^/$as_me: WARNING: /" >&2
18843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18844 $as_echo_n "checking for $ac_header... " >&6; }
18845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18846 $as_echo_n "(cached) " >&6
18848 eval "$as_ac_Header=\$ac_header_preproc"
18850 ac_res=`eval 'as_val=${'$as_ac_Header'}
18851 $as_echo "$as_val"'`
18852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18853 $as_echo "$ac_res" >&6; }
18856 as_val=`eval 'as_val=${'$as_ac_Header'}
18857 $as_echo "$as_val"'`
18858 if test "x$as_val" = x""yes; then
18859 cat >>confdefs.h <<_ACEOF
18860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18867 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18868 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18869 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18870 $as_echo_n "(cached) " >&6
18872 if test "$cross_compiling" = yes; then
18873 ac_cv_func_malloc_0_nonnull=no
18875 cat >conftest.$ac_ext <<_ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18882 # include <stdlib.h>
18890 return ! malloc (0);
18895 rm -f conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18902 $as_echo "$ac_try_echo") >&5
18903 (eval "$ac_link") 2>&5
18905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18907 { (case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18912 $as_echo "$ac_try_echo") >&5
18913 (eval "$ac_try") 2>&5
18915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 ac_cv_func_malloc_0_nonnull=yes
18919 $as_echo "$as_me: program exited with status $ac_status" >&5
18920 $as_echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 ( exit $ac_status )
18924 ac_cv_func_malloc_0_nonnull=no
18926 rm -rf conftest.dSYM
18927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18932 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18933 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18934 if test $ac_cv_func_malloc_0_nonnull = yes; then
18935 gl_cv_func_malloc_0_nonnull=1
18937 gl_cv_func_malloc_0_nonnull=0
18942 cat >>confdefs.h <<_ACEOF
18943 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
18954 { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
18955 $as_echo_n "checking for a traditional japanese locale... " >&6; }
18956 if test "${gt_cv_locale_ja+set}" = set; then
18957 $as_echo_n "(cached) " >&6
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18967 #include <locale.h>
18969 #if HAVE_LANGINFO_CODESET
18970 # include <langinfo.h>
18972 #include <stdlib.h>
18973 #include <string.h>
18979 /* Check whether the given locale name is recognized by the system. */
18980 if (setlocale (LC_ALL, "") == NULL) return 1;
18981 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
18982 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
18983 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
18984 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
18985 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
18986 some unit tests fail. */
18987 #if HAVE_LANGINFO_CODESET
18989 const char *cs = nl_langinfo (CODESET);
18990 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
18995 /* On Cygwin, avoid locale names without encoding suffix, because the
18996 locale_charset() function relies on the encoding suffix. Note that
18997 LC_ALL is set on the command line. */
18998 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19000 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
19001 on Cygwin 1.5.x. */
19002 if (MB_CUR_MAX == 1)
19004 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
19005 This excludes the UTF-8 encoding. */
19006 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19007 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
19008 for (p = buf; *p != '\0'; p++)
19009 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
19015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19016 (eval $ac_link) 2>&5
19018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } && test -s conftest$ac_exeext; then
19020 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19021 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19022 # configure script would override the LC_ALL setting. Likewise for
19023 # LC_CTYPE, which is also set at the beginning of the configure script.
19024 # Test for the AIX locale name.
19025 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19026 gt_cv_locale_ja=ja_JP
19028 # Test for the locale name with explicit encoding suffix.
19029 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19030 gt_cv_locale_ja=ja_JP.EUC-JP
19032 # Test for the HP-UX, OSF/1, NetBSD locale name.
19033 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19034 gt_cv_locale_ja=ja_JP.eucJP
19036 # Test for the IRIX, FreeBSD locale name.
19037 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19038 gt_cv_locale_ja=ja_JP.EUC
19040 # Test for the Solaris 7 locale name.
19041 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19044 # Special test for NetBSD 1.6.
19045 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
19046 gt_cv_locale_ja=ja_JP.eucJP
19049 gt_cv_locale_ja=none
19060 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
19061 $as_echo "$gt_cv_locale_ja" >&6; }
19062 LOCALE_JA=$gt_cv_locale_ja
19068 { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
19069 $as_echo_n "checking for a transitional chinese locale... " >&6; }
19070 if test "${gt_cv_locale_zh_CN+set}" = set; then
19071 $as_echo_n "(cached) " >&6
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19081 #include <locale.h>
19082 #include <stdlib.h>
19084 #if HAVE_LANGINFO_CODESET
19085 # include <langinfo.h>
19087 #include <stdlib.h>
19088 #include <string.h>
19094 /* Check whether the given locale name is recognized by the system. */
19095 if (setlocale (LC_ALL, "") == NULL) return 1;
19096 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19097 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19098 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19099 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19100 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19101 some unit tests fail. */
19102 #if HAVE_LANGINFO_CODESET
19104 const char *cs = nl_langinfo (CODESET);
19105 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
19110 /* On Cygwin, avoid locale names without encoding suffix, because the
19111 locale_charset() function relies on the encoding suffix. Note that
19112 LC_ALL is set on the command line. */
19113 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19115 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
19116 This excludes the UTF-8 encoding. */
19117 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19118 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
19119 for (p = buf; *p != '\0'; p++)
19120 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
19122 /* Check whether a typical GB18030 multibyte sequence is recognized as a
19123 single wide character. This excludes the GB2312 and GBK encodings. */
19124 if (mblen ("\203\062\332\066", 5) != 4)
19130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19131 (eval $ac_link) 2>&5
19133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } && test -s conftest$ac_exeext; then
19135 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19136 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19137 # configure script would override the LC_ALL setting. Likewise for
19138 # LC_CTYPE, which is also set at the beginning of the configure script.
19139 # Test for the locale name without encoding suffix.
19140 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19141 gt_cv_locale_zh_CN=zh_CN
19143 # Test for the locale name with explicit encoding suffix.
19144 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19145 gt_cv_locale_zh_CN=zh_CN.GB18030
19148 gt_cv_locale_zh_CN=none
19152 # If there was a link error, due to mblen(), the system is so old that
19153 # it certainly doesn't have a chinese locale.
19154 gt_cv_locale_zh_CN=none
19159 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
19160 $as_echo "$gt_cv_locale_zh_CN" >&6; }
19161 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
19166 { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
19167 $as_echo_n "checking for a french Unicode locale... " >&6; }
19168 if test "${gt_cv_locale_fr_utf8+set}" = set; then
19169 $as_echo_n "(cached) " >&6
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 #include <locale.h>
19181 #if HAVE_LANGINFO_CODESET
19182 # include <langinfo.h>
19184 #include <stdlib.h>
19185 #include <string.h>
19189 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
19190 imitates locale dependent behaviour by looking at the environment
19191 variables, and all locales use the UTF-8 encoding. */
19192 #if !(defined __BEOS__ || defined __HAIKU__)
19193 /* Check whether the given locale name is recognized by the system. */
19194 if (setlocale (LC_ALL, "") == NULL) return 1;
19195 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19196 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19197 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19198 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19199 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19200 some unit tests fail. */
19201 # if HAVE_LANGINFO_CODESET
19203 const char *cs = nl_langinfo (CODESET);
19204 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
19209 /* On Cygwin, avoid locale names without encoding suffix, because the
19210 locale_charset() function relies on the encoding suffix. Note that
19211 LC_ALL is set on the command line. */
19212 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19214 /* Check whether in the abbreviation of the second month, the second
19215 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
19216 two bytes long, with UTF-8 encoding. */
19217 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19218 if (strftime (buf, sizeof (buf), "%b", &t) < 4
19219 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
19222 /* Check whether the decimal separator is a comma.
19223 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
19224 are nl_langinfo(RADIXCHAR) are both ".". */
19225 if (localeconv () ->decimal_point[0] != ',') return 1;
19230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19231 (eval $ac_link) 2>&5
19233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && test -s conftest$ac_exeext; then
19235 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19236 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19237 # configure script would override the LC_ALL setting. Likewise for
19238 # LC_CTYPE, which is also set at the beginning of the configure script.
19239 # Test for the usual locale name.
19240 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19241 gt_cv_locale_fr_utf8=fr_FR
19243 # Test for the locale name with explicit encoding suffix.
19244 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19245 gt_cv_locale_fr_utf8=fr_FR.UTF-8
19247 # Test for the Solaris 7 locale name.
19248 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19249 gt_cv_locale_fr_utf8=fr.UTF-8
19252 gt_cv_locale_fr_utf8=none
19260 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
19261 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
19262 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
19270 GNULIB_RAWMEMCHR=0;
19273 GNULIB_STRCHRNUL=0;
19280 GNULIB_STRCASESTR=0;
19287 GNULIB_MBSCASECMP=0;
19288 GNULIB_MBSNCASECMP=0;
19289 GNULIB_MBSPCASECMP=0;
19290 GNULIB_MBSCASESTR=0;
19297 GNULIB_STRSIGNAL=0;
19298 GNULIB_STRVERSCMP=0;
19300 HAVE_DECL_MEMMEM=1;
19302 HAVE_DECL_MEMRCHR=1;
19307 HAVE_DECL_STRDUP=1;
19308 HAVE_DECL_STRNDUP=1;
19309 HAVE_DECL_STRNLEN=1;
19313 HAVE_DECL_STRTOK_R=1;
19314 HAVE_DECL_STRERROR=1;
19315 HAVE_DECL_STRSIGNAL=1;
19321 REPLACE_STRCASESTR=0;
19322 REPLACE_STRERROR=0;
19324 REPLACE_STRSIGNAL=0;
19325 REPLACE_STRTOK_R=0;
19326 UNDEFINE_STRTOK_R=0;
19329 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
19330 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
19331 if test "${ac_cv_func_mbrtowc+set}" = set; then
19332 $as_echo_n "(cached) " >&6
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19345 char const s[] = "";
19348 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19360 $as_echo "$ac_try_echo") >&5
19361 (eval "$ac_link") 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest$ac_exeext && {
19371 test "$cross_compiling" = yes ||
19372 $as_test_x conftest$ac_exeext
19374 ac_cv_func_mbrtowc=yes
19376 $as_echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_func_mbrtowc=no
19382 rm -rf conftest.dSYM
19383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19384 conftest$ac_exeext conftest.$ac_ext
19386 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
19387 $as_echo "$ac_cv_func_mbrtowc" >&6; }
19388 if test $ac_cv_func_mbrtowc = yes; then
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_MBRTOWC 1
19407 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19408 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19409 # irrelevant for anonymous mappings.
19410 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
19411 $as_echo_n "checking for mmap... " >&6; }
19412 if test "${ac_cv_func_mmap+set}" = set; then
19413 $as_echo_n "(cached) " >&6
19415 cat >conftest.$ac_ext <<_ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
19422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19423 #define mmap innocuous_mmap
19425 /* System header to define __stub macros and hopefully few prototypes,
19426 which can conflict with char mmap (); below.
19427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19428 <limits.h> exists even on freestanding compilers. */
19431 # include <limits.h>
19433 # include <assert.h>
19438 /* Override any GCC internal prototype to avoid an error.
19439 Use char because int might match the return type of a GCC
19440 builtin and then its argument prototype would still apply. */
19445 /* The GNU C library defines this for functions which it implements
19446 to always fail with ENOSYS. Some functions are actually named
19447 something starting with __ and the normal name is an alias. */
19448 #if defined __stub_mmap || defined __stub___mmap
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (ac_try="$ac_link"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468 (eval "$ac_link") 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest$ac_exeext && {
19478 test "$cross_compiling" = yes ||
19479 $as_test_x conftest$ac_exeext
19481 ac_cv_func_mmap=yes
19483 $as_echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19489 rm -rf conftest.dSYM
19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491 conftest$ac_exeext conftest.$ac_ext
19493 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
19494 $as_echo "$ac_cv_func_mmap" >&6; }
19495 if test "x$ac_cv_func_mmap" = x""yes; then
19502 # Try to allow MAP_ANONYMOUS.
19503 gl_have_mmap_anonymous=no
19504 if test $gl_have_mmap = yes; then
19505 { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
19506 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19514 #include <sys/mman.h>
19515 #ifdef MAP_ANONYMOUS
19516 I cant identify this map.
19520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19521 $EGREP "I cant identify this map." >/dev/null 2>&1; then
19522 gl_have_mmap_anonymous=yes
19526 if test $gl_have_mmap_anonymous != yes; then
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 #include <sys/mman.h>
19536 I cant identify this map.
19540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19541 $EGREP "I cant identify this map." >/dev/null 2>&1; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define MAP_ANONYMOUS MAP_ANON
19547 gl_have_mmap_anonymous=yes
19552 { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
19553 $as_echo "$gl_have_mmap_anonymous" >&6; }
19554 if test $gl_have_mmap_anonymous = yes; then
19556 cat >>confdefs.h <<\_ACEOF
19557 #define HAVE_MAP_ANONYMOUS 1
19586 for ac_func in memchr
19588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19589 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19590 $as_echo_n "checking for $ac_func... " >&6; }
19591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19592 $as_echo_n "(cached) " >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19602 #define $ac_func innocuous_$ac_func
19604 /* System header to define __stub macros and hopefully few prototypes,
19605 which can conflict with char $ac_func (); below.
19606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19607 <limits.h> exists even on freestanding compilers. */
19610 # include <limits.h>
19612 # include <assert.h>
19617 /* Override any GCC internal prototype to avoid an error.
19618 Use char because int might match the return type of a GCC
19619 builtin and then its argument prototype would still apply. */
19624 /* The GNU C library defines this for functions which it implements
19625 to always fail with ENOSYS. Some functions are actually named
19626 something starting with __ and the normal name is an alias. */
19627 #if defined __stub_$ac_func || defined __stub___$ac_func
19634 return $ac_func ();
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (ac_try="$ac_link"
19641 case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19646 $as_echo "$ac_try_echo") >&5
19647 (eval "$ac_link") 2>conftest.er1
19649 grep -v '^ *+' conftest.er1 >conftest.err
19651 cat conftest.err >&5
19652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } && {
19654 test -z "$ac_c_werror_flag" ||
19655 test ! -s conftest.err
19656 } && test -s conftest$ac_exeext && {
19657 test "$cross_compiling" = yes ||
19658 $as_test_x conftest$ac_exeext
19660 eval "$as_ac_var=yes"
19662 $as_echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 eval "$as_ac_var=no"
19668 rm -rf conftest.dSYM
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670 conftest$ac_exeext conftest.$ac_ext
19672 ac_res=`eval 'as_val=${'$as_ac_var'}
19673 $as_echo "$as_val"'`
19674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19675 $as_echo "$ac_res" >&6; }
19676 as_val=`eval 'as_val=${'$as_ac_var'}
19677 $as_echo "$as_val"'`
19678 if test "x$as_val" = x""yes; then
19679 cat >>confdefs.h <<_ACEOF
19680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19685 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19691 if test $ac_cv_func_memchr = no; then
19694 for ac_header in bp-sym.h
19696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19699 $as_echo_n "checking for $ac_header... " >&6; }
19700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19701 $as_echo_n "(cached) " >&6
19703 ac_res=`eval 'as_val=${'$as_ac_Header'}
19704 $as_echo "$as_val"'`
19705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19706 $as_echo "$ac_res" >&6; }
19708 # Is the header compilable?
19709 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19710 $as_echo_n "checking $ac_header usability... " >&6; }
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 $ac_includes_default
19718 #include <$ac_header>
19720 rm -f conftest.$ac_objext
19721 if { (ac_try="$ac_compile"
19722 case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19727 $as_echo "$ac_try_echo") >&5
19728 (eval "$ac_compile") 2>conftest.er1
19730 grep -v '^ *+' conftest.er1 >conftest.err
19732 cat conftest.err >&5
19733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } && {
19735 test -z "$ac_c_werror_flag" ||
19736 test ! -s conftest.err
19737 } && test -s conftest.$ac_objext; then
19738 ac_header_compiler=yes
19740 $as_echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 ac_header_compiler=no
19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19748 $as_echo "$ac_header_compiler" >&6; }
19750 # Is the header present?
19751 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19752 $as_echo_n "checking $ac_header presence... " >&6; }
19753 cat >conftest.$ac_ext <<_ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19759 #include <$ac_header>
19761 if { (ac_try="$ac_cpp conftest.$ac_ext"
19762 case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19767 $as_echo "$ac_try_echo") >&5
19768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19770 grep -v '^ *+' conftest.er1 >conftest.err
19772 cat conftest.err >&5
19773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } >/dev/null && {
19775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19778 ac_header_preproc=yes
19780 $as_echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19783 ac_header_preproc=no
19786 rm -f conftest.err conftest.$ac_ext
19787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19788 $as_echo "$ac_header_preproc" >&6; }
19790 # So? What about this header?
19791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19794 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19796 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19797 ac_header_preproc=yes
19800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19801 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19803 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19805 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19807 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19811 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19813 ## ------------------------------ ##
19814 ## Report this to bug-tar@gnu.org ##
19815 ## ------------------------------ ##
19817 ) | sed "s/^/$as_me: WARNING: /" >&2
19820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19821 $as_echo_n "checking for $ac_header... " >&6; }
19822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19823 $as_echo_n "(cached) " >&6
19825 eval "$as_ac_Header=\$ac_header_preproc"
19827 ac_res=`eval 'as_val=${'$as_ac_Header'}
19828 $as_echo "$as_val"'`
19829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19830 $as_echo "$ac_res" >&6; }
19833 as_val=`eval 'as_val=${'$as_ac_Header'}
19834 $as_echo "$as_val"'`
19835 if test "x$as_val" = x""yes; then
19836 cat >>confdefs.h <<_ACEOF
19837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19848 if test $ac_cv_func_memchr = yes; then
19849 # Detect platform-specific bugs in some versions of glibc:
19850 # memchr should not dereference anything with length 0
19851 # http://bugzilla.redhat.com/499689
19852 # memchr should not dereference overestimated length after a match
19853 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19854 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
19855 # Assume that memchr works on platforms that lack mprotect.
19856 { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
19857 $as_echo_n "checking whether memchr works... " >&6; }
19858 if test "${gl_cv_func_memchr_works+set}" = set; then
19859 $as_echo_n "(cached) " >&6
19861 if test "$cross_compiling" = yes; then
19862 gl_cv_func_memchr_works="guessing no"
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19871 #include <string.h>
19872 #if HAVE_SYS_MMAN_H
19873 # include <fcntl.h>
19874 # include <unistd.h>
19875 # include <sys/types.h>
19876 # include <sys/mman.h>
19878 # define MAP_FILE 0
19886 char *fence = NULL;
19887 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19888 # if HAVE_MAP_ANONYMOUS
19889 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
19891 # else /* !HAVE_MAP_ANONYMOUS */
19892 const int flags = MAP_FILE | MAP_PRIVATE;
19893 int fd = open ("/dev/zero", O_RDONLY, 0666);
19897 int pagesize = getpagesize ();
19899 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
19901 if (two_pages != (char *)(-1)
19902 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
19903 fence = two_pages + pagesize;
19908 if (memchr (fence, 0, 0))
19910 strcpy (fence - 9, "12345678");
19911 if (memchr (fence - 9, 0, 79) != fence - 1)
19920 rm -f conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19927 $as_echo "$ac_try_echo") >&5
19928 (eval "$ac_link") 2>&5
19930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937 $as_echo "$ac_try_echo") >&5
19938 (eval "$ac_try") 2>&5
19940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 gl_cv_func_memchr_works=yes
19944 $as_echo "$as_me: program exited with status $ac_status" >&5
19945 $as_echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ( exit $ac_status )
19949 gl_cv_func_memchr_works=no
19951 rm -rf conftest.dSYM
19952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19957 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
19958 $as_echo "$gl_cv_func_memchr_works" >&6; }
19959 if test "$gl_cv_func_memchr_works" != yes; then
19962 for ac_header in bp-sym.h
19964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19967 $as_echo_n "checking for $ac_header... " >&6; }
19968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19969 $as_echo_n "(cached) " >&6
19971 ac_res=`eval 'as_val=${'$as_ac_Header'}
19972 $as_echo "$as_val"'`
19973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19974 $as_echo "$ac_res" >&6; }
19976 # Is the header compilable?
19977 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19978 $as_echo_n "checking $ac_header usability... " >&6; }
19979 cat >conftest.$ac_ext <<_ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 $ac_includes_default
19986 #include <$ac_header>
19988 rm -f conftest.$ac_objext
19989 if { (ac_try="$ac_compile"
19990 case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19995 $as_echo "$ac_try_echo") >&5
19996 (eval "$ac_compile") 2>conftest.er1
19998 grep -v '^ *+' conftest.er1 >conftest.err
20000 cat conftest.err >&5
20001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } && {
20003 test -z "$ac_c_werror_flag" ||
20004 test ! -s conftest.err
20005 } && test -s conftest.$ac_objext; then
20006 ac_header_compiler=yes
20008 $as_echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20011 ac_header_compiler=no
20014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20016 $as_echo "$ac_header_compiler" >&6; }
20018 # Is the header present?
20019 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20020 $as_echo_n "checking $ac_header presence... " >&6; }
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <$ac_header>
20029 if { (ac_try="$ac_cpp conftest.$ac_ext"
20030 case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20035 $as_echo "$ac_try_echo") >&5
20036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20038 grep -v '^ *+' conftest.er1 >conftest.err
20040 cat conftest.err >&5
20041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } >/dev/null && {
20043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20044 test ! -s conftest.err
20046 ac_header_preproc=yes
20048 $as_echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20051 ac_header_preproc=no
20054 rm -f conftest.err conftest.$ac_ext
20055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20056 $as_echo "$ac_header_preproc" >&6; }
20058 # So? What about this header?
20059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20062 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20065 ac_header_preproc=yes
20068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20069 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20071 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20073 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20075 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20079 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20081 ## ------------------------------ ##
20082 ## Report this to bug-tar@gnu.org ##
20083 ## ------------------------------ ##
20085 ) | sed "s/^/$as_me: WARNING: /" >&2
20088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20089 $as_echo_n "checking for $ac_header... " >&6; }
20090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091 $as_echo_n "(cached) " >&6
20093 eval "$as_ac_Header=\$ac_header_preproc"
20095 ac_res=`eval 'as_val=${'$as_ac_Header'}
20096 $as_echo "$as_val"'`
20097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20098 $as_echo "$ac_res" >&6; }
20101 as_val=`eval 'as_val=${'$as_ac_Header'}
20102 $as_echo "$as_val"'`
20103 if test "x$as_val" = x""yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20122 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20127 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
20128 $as_echo_n "checking whether memrchr is declared... " >&6; }
20129 if test "${ac_cv_have_decl_memrchr+set}" = set; then
20130 $as_echo_n "(cached) " >&6
20132 cat >conftest.$ac_ext <<_ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 $ac_includes_default
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157 $as_echo "$ac_try_echo") >&5
20158 (eval "$ac_compile") 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest.$ac_objext; then
20168 ac_cv_have_decl_memrchr=yes
20170 $as_echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_cv_have_decl_memrchr=no
20176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20178 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
20179 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
20180 if test "x$ac_cv_have_decl_memrchr" = x""yes; then
20182 cat >>confdefs.h <<_ACEOF
20183 #define HAVE_DECL_MEMRCHR 1
20188 cat >>confdefs.h <<_ACEOF
20189 #define HAVE_DECL_MEMRCHR 0
20198 GNULIB_NANOSLEEP=0;
20201 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20202 REPLACE_MKTIME=GNULIB_PORTCHECK;
20203 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20204 REPLACE_STRPTIME=GNULIB_PORTCHECK;
20205 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20214 { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
20215 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
20216 if test "${gl_cv_func_unlink_works+set}" = set; then
20217 $as_echo_n "(cached) " >&6
20219 touch conftest.file
20220 # Assume that if we have lstat, we can also check symlinks.
20221 if test $ac_cv_func_lstat = yes; then
20222 ln -s conftest.file conftest.lnk
20224 if test "$cross_compiling" = yes; then
20225 gl_cv_func_unlink_works="guessing no"
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 #include <unistd.h>
20239 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
20241 if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
20248 rm -f conftest$ac_exeext
20249 if { (ac_try="$ac_link"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20255 $as_echo "$ac_try_echo") >&5
20256 (eval "$ac_link") 2>&5
20258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20260 { (case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20265 $as_echo "$ac_try_echo") >&5
20266 (eval "$ac_try") 2>&5
20268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 gl_cv_func_unlink_works=yes
20272 $as_echo "$as_me: program exited with status $ac_status" >&5
20273 $as_echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ( exit $ac_status )
20277 gl_cv_func_unlink_works=no
20279 rm -rf conftest.dSYM
20280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20284 rm -f conftest.file conftest.lnk
20286 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_works" >&5
20287 $as_echo "$gl_cv_func_unlink_works" >&6; }
20288 if test x"$gl_cv_func_unlink_works" != xyes; then
20298 gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
20316 if test $ac_cv_func_setenv = no; then
20319 { $as_echo "$as_me:$LINENO: checking whether setenv validates arguments" >&5
20320 $as_echo_n "checking whether setenv validates arguments... " >&6; }
20321 if test "${gl_cv_func_setenv_works+set}" = set; then
20322 $as_echo_n "(cached) " >&6
20324 if test "$cross_compiling" = yes; then
20325 gl_cv_func_setenv_works="guessing no"
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 #include <stdlib.h>
20341 if (setenv ("", "", 0) != -1) return 1;
20342 if (errno != EINVAL) return 2;
20343 if (setenv ("a", "=", 1) != 0) return 3;
20344 if (strcmp (getenv ("a"), "=") != 0) return 4;
20350 rm -f conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20357 $as_echo "$ac_try_echo") >&5
20358 (eval "$ac_link") 2>&5
20360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20362 { (case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20367 $as_echo "$ac_try_echo") >&5
20368 (eval "$ac_try") 2>&5
20370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 gl_cv_func_setenv_works=yes
20374 $as_echo "$as_me: program exited with status $ac_status" >&5
20375 $as_echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 ( exit $ac_status )
20379 gl_cv_func_setenv_works=no
20381 rm -rf conftest.dSYM
20382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20387 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_setenv_works" >&5
20388 $as_echo "$gl_cv_func_setenv_works" >&6; }
20389 if test "$gl_cv_func_setenv_works" != yes; then
20399 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
20413 for ac_header in search.h
20415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20418 $as_echo_n "checking for $ac_header... " >&6; }
20419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20420 $as_echo_n "(cached) " >&6
20422 ac_res=`eval 'as_val=${'$as_ac_Header'}
20423 $as_echo "$as_val"'`
20424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20425 $as_echo "$ac_res" >&6; }
20427 # Is the header compilable?
20428 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20429 $as_echo_n "checking $ac_header usability... " >&6; }
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 $ac_includes_default
20437 #include <$ac_header>
20439 rm -f conftest.$ac_objext
20440 if { (ac_try="$ac_compile"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20446 $as_echo "$ac_try_echo") >&5
20447 (eval "$ac_compile") 2>conftest.er1
20449 grep -v '^ *+' conftest.er1 >conftest.err
20451 cat conftest.err >&5
20452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } && {
20454 test -z "$ac_c_werror_flag" ||
20455 test ! -s conftest.err
20456 } && test -s conftest.$ac_objext; then
20457 ac_header_compiler=yes
20459 $as_echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_header_compiler=no
20465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20466 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20467 $as_echo "$ac_header_compiler" >&6; }
20469 # Is the header present?
20470 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20471 $as_echo_n "checking $ac_header presence... " >&6; }
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 #include <$ac_header>
20480 if { (ac_try="$ac_cpp conftest.$ac_ext"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20486 $as_echo "$ac_try_echo") >&5
20487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20489 grep -v '^ *+' conftest.er1 >conftest.err
20491 cat conftest.err >&5
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } >/dev/null && {
20494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20497 ac_header_preproc=yes
20499 $as_echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_header_preproc=no
20505 rm -f conftest.err conftest.$ac_ext
20506 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20507 $as_echo "$ac_header_preproc" >&6; }
20509 # So? What about this header?
20510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20513 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20515 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20516 ac_header_preproc=yes
20519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20520 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20522 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20524 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20526 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20530 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20532 ## ------------------------------ ##
20533 ## Report this to bug-tar@gnu.org ##
20534 ## ------------------------------ ##
20536 ) | sed "s/^/$as_me: WARNING: /" >&2
20539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20540 $as_echo_n "checking for $ac_header... " >&6; }
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542 $as_echo_n "(cached) " >&6
20544 eval "$as_ac_Header=\$ac_header_preproc"
20546 ac_res=`eval 'as_val=${'$as_ac_Header'}
20547 $as_echo "$as_val"'`
20548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20549 $as_echo "$ac_res" >&6; }
20552 as_val=`eval 'as_val=${'$as_ac_Header'}
20553 $as_echo "$as_val"'`
20554 if test "x$as_val" = x""yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20564 for ac_func in tsearch
20566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20568 $as_echo_n "checking for $ac_func... " >&6; }
20569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20570 $as_echo_n "(cached) " >&6
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20580 #define $ac_func innocuous_$ac_func
20582 /* System header to define __stub macros and hopefully few prototypes,
20583 which can conflict with char $ac_func (); below.
20584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20585 <limits.h> exists even on freestanding compilers. */
20588 # include <limits.h>
20590 # include <assert.h>
20595 /* Override any GCC internal prototype to avoid an error.
20596 Use char because int might match the return type of a GCC
20597 builtin and then its argument prototype would still apply. */
20602 /* The GNU C library defines this for functions which it implements
20603 to always fail with ENOSYS. Some functions are actually named
20604 something starting with __ and the normal name is an alias. */
20605 #if defined __stub_$ac_func || defined __stub___$ac_func
20612 return $ac_func ();
20617 rm -f conftest.$ac_objext conftest$ac_exeext
20618 if { (ac_try="$ac_link"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20624 $as_echo "$ac_try_echo") >&5
20625 (eval "$ac_link") 2>conftest.er1
20627 grep -v '^ *+' conftest.er1 >conftest.err
20629 cat conftest.err >&5
20630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest$ac_exeext && {
20635 test "$cross_compiling" = yes ||
20636 $as_test_x conftest$ac_exeext
20638 eval "$as_ac_var=yes"
20640 $as_echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 eval "$as_ac_var=no"
20646 rm -rf conftest.dSYM
20647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20648 conftest$ac_exeext conftest.$ac_ext
20650 ac_res=`eval 'as_val=${'$as_ac_var'}
20651 $as_echo "$as_val"'`
20652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20653 $as_echo "$ac_res" >&6; }
20654 as_val=`eval 'as_val=${'$as_ac_var'}
20655 $as_echo "$as_val"'`
20656 if test "x$as_val" = x""yes; then
20657 cat >>confdefs.h <<_ACEOF
20658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20668 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20669 $as_echo_n "checking whether snprintf is declared... " >&6; }
20670 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20671 $as_echo_n "(cached) " >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 $ac_includes_default
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_cv_have_decl_snprintf=yes
20711 $as_echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_cv_have_decl_snprintf=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20720 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20721 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define HAVE_DECL_SNPRINTF 1
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_DECL_SNPRINTF 0
20745 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
20746 $as_echo_n "checking for wchar_t... " >&6; }
20747 if test "${gt_cv_c_wchar_t+set}" = set; then
20748 $as_echo_n "(cached) " >&6
20750 cat >conftest.$ac_ext <<_ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 #include <stddef.h>
20757 wchar_t foo = (wchar_t)'\0';
20766 rm -f conftest.$ac_objext
20767 if { (ac_try="$ac_compile"
20768 case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20773 $as_echo "$ac_try_echo") >&5
20774 (eval "$ac_compile") 2>conftest.er1
20776 grep -v '^ *+' conftest.er1 >conftest.err
20778 cat conftest.err >&5
20779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } && {
20781 test -z "$ac_c_werror_flag" ||
20782 test ! -s conftest.err
20783 } && test -s conftest.$ac_objext; then
20784 gt_cv_c_wchar_t=yes
20786 $as_echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20794 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
20795 $as_echo "$gt_cv_c_wchar_t" >&6; }
20796 if test $gt_cv_c_wchar_t = yes; then
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_WCHAR_T 1
20812 HAVE_DECL_STRNCASECMP=1;
20814 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
20815 $as_echo_n "checking whether strdup is declared... " >&6; }
20816 if test "${ac_cv_have_decl_strdup+set}" = set; then
20817 $as_echo_n "(cached) " >&6
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20837 rm -f conftest.$ac_objext
20838 if { (ac_try="$ac_compile"
20839 case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20844 $as_echo "$ac_try_echo") >&5
20845 (eval "$ac_compile") 2>conftest.er1
20847 grep -v '^ *+' conftest.er1 >conftest.err
20849 cat conftest.err >&5
20850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && {
20852 test -z "$ac_c_werror_flag" ||
20853 test ! -s conftest.err
20854 } && test -s conftest.$ac_objext; then
20855 ac_cv_have_decl_strdup=yes
20857 $as_echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.$ac_ext >&5
20860 ac_cv_have_decl_strdup=no
20863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
20866 $as_echo "$ac_cv_have_decl_strdup" >&6; }
20867 if test "x$ac_cv_have_decl_strdup" = x""yes; then
20869 cat >>confdefs.h <<_ACEOF
20870 #define HAVE_DECL_STRDUP 1
20875 cat >>confdefs.h <<_ACEOF
20876 #define HAVE_DECL_STRDUP 0
20888 if test -z "$ERRNO_H"; then
20889 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
20890 $as_echo_n "checking for working strerror function... " >&6; }
20891 if test "${gl_cv_func_working_strerror+set}" = set; then
20892 $as_echo_n "(cached) " >&6
20894 if test "$cross_compiling" = yes; then
20895 cat >conftest.$ac_ext <<_ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20901 #include <string.h>
20906 return !*strerror (-2);
20911 rm -f conftest.$ac_objext
20912 if { (ac_try="$ac_compile"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20918 $as_echo "$ac_try_echo") >&5
20919 (eval "$ac_compile") 2>conftest.er1
20921 grep -v '^ *+' conftest.er1 >conftest.err
20923 cat conftest.err >&5
20924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } && {
20926 test -z "$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20928 } && test -s conftest.$ac_objext; then
20929 gl_cv_func_working_strerror=yes
20931 $as_echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 gl_cv_func_working_strerror=no
20937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <string.h>
20951 return !*strerror (-2);
20956 rm -f conftest$ac_exeext
20957 if { (ac_try="$ac_link"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964 (eval "$ac_link") 2>&5
20966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20968 { (case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20973 $as_echo "$ac_try_echo") >&5
20974 (eval "$ac_try") 2>&5
20976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 gl_cv_func_working_strerror=yes
20980 $as_echo "$as_me: program exited with status $ac_status" >&5
20981 $as_echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20984 ( exit $ac_status )
20985 gl_cv_func_working_strerror=no
20987 rm -rf conftest.dSYM
20988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20994 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
20995 $as_echo "$gl_cv_func_working_strerror" >&6; }
20996 if test $gl_cv_func_working_strerror = no; then
21002 if test $REPLACE_STRERROR = 1; then
21004 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
21005 $as_echo_n "checking whether strerror is declared... " >&6; }
21006 if test "${ac_cv_have_decl_strerror+set}" = set; then
21007 $as_echo_n "(cached) " >&6
21009 cat >conftest.$ac_ext <<_ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 $ac_includes_default
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21034 $as_echo "$ac_try_echo") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_cv_have_decl_strerror=yes
21047 $as_echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_have_decl_strerror=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
21056 $as_echo "$ac_cv_have_decl_strerror" >&6; }
21057 if test "x$ac_cv_have_decl_strerror" = x""yes; then
21059 cat >>confdefs.h <<_ACEOF
21060 #define HAVE_DECL_STRERROR 1
21065 cat >>confdefs.h <<_ACEOF
21066 #define HAVE_DECL_STRERROR 0
21079 if test $ac_cv_header_sys_socket_h != yes; then
21081 for ac_header in winsock2.h
21083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21086 $as_echo_n "checking for $ac_header... " >&6; }
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088 $as_echo_n "(cached) " >&6
21090 ac_res=`eval 'as_val=${'$as_ac_Header'}
21091 $as_echo "$as_val"'`
21092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21093 $as_echo "$ac_res" >&6; }
21095 # Is the header compilable?
21096 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21097 $as_echo_n "checking $ac_header usability... " >&6; }
21098 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 $ac_includes_default
21105 #include <$ac_header>
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21114 $as_echo "$ac_try_echo") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21117 grep -v '^ *+' conftest.er1 >conftest.err
21119 cat conftest.err >&5
21120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21125 ac_header_compiler=yes
21127 $as_echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_header_compiler=no
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21135 $as_echo "$ac_header_compiler" >&6; }
21137 # Is the header present?
21138 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21139 $as_echo_n "checking $ac_header presence... " >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 #include <$ac_header>
21148 if { (ac_try="$ac_cpp conftest.$ac_ext"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21154 $as_echo "$ac_try_echo") >&5
21155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } >/dev/null && {
21162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21165 ac_header_preproc=yes
21167 $as_echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_header_preproc=no
21173 rm -f conftest.err conftest.$ac_ext
21174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21175 $as_echo "$ac_header_preproc" >&6; }
21177 # So? What about this header?
21178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21181 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21184 ac_header_preproc=yes
21187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21188 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21190 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21192 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21194 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21198 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21200 ## ------------------------------ ##
21201 ## Report this to bug-tar@gnu.org ##
21202 ## ------------------------------ ##
21204 ) | sed "s/^/$as_me: WARNING: /" >&2
21207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21208 $as_echo_n "checking for $ac_header... " >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21210 $as_echo_n "(cached) " >&6
21212 eval "$as_ac_Header=\$ac_header_preproc"
21214 ac_res=`eval 'as_val=${'$as_ac_Header'}
21215 $as_echo "$as_val"'`
21216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21217 $as_echo "$ac_res" >&6; }
21220 as_val=`eval 'as_val=${'$as_ac_Header'}
21221 $as_echo "$as_val"'`
21222 if test "x$as_val" = x""yes; then
21223 cat >>confdefs.h <<_ACEOF
21224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21249 if test $gl_cv_have_include_next = yes; then
21250 gl_cv_next_string_h='<'string.h'>'
21252 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
21253 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21254 if test "${gl_cv_next_string_h+set}" = set; then
21255 $as_echo_n "(cached) " >&6
21258 if test $ac_cv_header_string_h = yes; then
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 #include <string.h>
21269 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21270 *) gl_absname_cpp="$ac_cpp" ;;
21272 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21273 sed -n '\#/string.h#{
21274 s#.*"\(.*/string.h\)".*#\1#
21280 gl_cv_next_string_h='<'string.h'>'
21284 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
21285 $as_echo "$gl_cv_next_string_h" >&6; }
21287 NEXT_STRING_H=$gl_cv_next_string_h
21289 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21291 gl_next_as_first_directive='<'string.h'>'
21293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21294 gl_next_as_first_directive=$gl_cv_next_string_h
21296 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21318 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
21319 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21320 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
21321 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21322 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
21323 $as_echo_n "(cached) " >&6
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include <string.h>
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21349 $as_echo "$ac_try_echo") >&5
21350 (eval "$ac_compile") 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest.$ac_objext; then
21360 eval "$as_gl_Symbol=yes"
21362 $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 eval "$as_gl_Symbol=no"
21368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
21371 $as_echo "$as_val"'`
21372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21373 $as_echo "$ac_res" >&6; }
21374 as_val=`eval 'as_val=${'$as_gl_Symbol'}
21375 $as_echo "$as_val"'`
21376 if test "x$as_val" = x""yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21381 eval ac_cv_have_decl_$gl_func=yes
21402 if test $gl_cv_have_include_next = yes; then
21403 gl_cv_next_strings_h='<'strings.h'>'
21405 { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
21406 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
21407 if test "${gl_cv_next_strings_h+set}" = set; then
21408 $as_echo_n "(cached) " >&6
21411 if test $ac_cv_header_strings_h = yes; then
21412 cat >conftest.$ac_ext <<_ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h. */
21418 #include <strings.h>
21422 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21423 *) gl_absname_cpp="$ac_cpp" ;;
21425 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21426 sed -n '\#/strings.h#{
21427 s#.*"\(.*/strings.h\)".*#\1#
21433 gl_cv_next_strings_h='<'strings.h'>'
21437 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
21438 $as_echo "$gl_cv_next_strings_h" >&6; }
21440 NEXT_STRINGS_H=$gl_cv_next_strings_h
21442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21444 gl_next_as_first_directive='<'strings.h'>'
21446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21447 gl_next_as_first_directive=$gl_cv_next_strings_h
21449 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
21457 for gl_func in strcasecmp strncasecmp; do
21458 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21459 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
21460 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21461 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
21462 $as_echo_n "(cached) " >&6
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 #include <strings.h>
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21488 $as_echo "$ac_try_echo") >&5
21489 (eval "$ac_compile") 2>conftest.er1
21491 grep -v '^ *+' conftest.er1 >conftest.err
21493 cat conftest.err >&5
21494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } && {
21496 test -z "$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 } && test -s conftest.$ac_objext; then
21499 eval "$as_gl_Symbol=yes"
21501 $as_echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 eval "$as_gl_Symbol=no"
21507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21509 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
21510 $as_echo "$as_val"'`
21511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21512 $as_echo "$ac_res" >&6; }
21513 as_val=`eval 'as_val=${'$as_gl_Symbol'}
21514 $as_echo "$as_val"'`
21515 if test "x$as_val" = x""yes; then
21516 cat >>confdefs.h <<_ACEOF
21517 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21520 eval ac_cv_have_decl_$gl_func=yes
21526 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
21527 $as_echo_n "checking whether strndup is declared... " >&6; }
21528 if test "${ac_cv_have_decl_strndup+set}" = set; then
21529 $as_echo_n "(cached) " >&6
21531 cat >conftest.$ac_ext <<_ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 $ac_includes_default
21549 rm -f conftest.$ac_objext
21550 if { (ac_try="$ac_compile"
21551 case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21556 $as_echo "$ac_try_echo") >&5
21557 (eval "$ac_compile") 2>conftest.er1
21559 grep -v '^ *+' conftest.er1 >conftest.err
21561 cat conftest.err >&5
21562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); } && {
21564 test -z "$ac_c_werror_flag" ||
21565 test ! -s conftest.err
21566 } && test -s conftest.$ac_objext; then
21567 ac_cv_have_decl_strndup=yes
21569 $as_echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 ac_cv_have_decl_strndup=no
21575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21577 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
21578 $as_echo "$ac_cv_have_decl_strndup" >&6; }
21579 if test "x$ac_cv_have_decl_strndup" = x""yes; then
21581 cat >>confdefs.h <<_ACEOF
21582 #define HAVE_DECL_STRNDUP 1
21587 cat >>confdefs.h <<_ACEOF
21588 #define HAVE_DECL_STRNDUP 0
21597 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
21598 $as_echo_n "checking whether strnlen is declared... " >&6; }
21599 if test "${ac_cv_have_decl_strnlen+set}" = set; then
21600 $as_echo_n "(cached) " >&6
21602 cat >conftest.$ac_ext <<_ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 $ac_includes_default
21620 rm -f conftest.$ac_objext
21621 if { (ac_try="$ac_compile"
21622 case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21627 $as_echo "$ac_try_echo") >&5
21628 (eval "$ac_compile") 2>conftest.er1
21630 grep -v '^ *+' conftest.er1 >conftest.err
21632 cat conftest.err >&5
21633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } && {
21635 test -z "$ac_c_werror_flag" ||
21636 test ! -s conftest.err
21637 } && test -s conftest.$ac_objext; then
21638 ac_cv_have_decl_strnlen=yes
21640 $as_echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_cv_have_decl_strnlen=no
21646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
21649 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
21650 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
21652 cat >>confdefs.h <<_ACEOF
21653 #define HAVE_DECL_STRNLEN 1
21658 cat >>confdefs.h <<_ACEOF
21659 #define HAVE_DECL_STRNLEN 0
21679 { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
21680 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21681 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
21682 $as_echo_n "(cached) " >&6
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21695 static struct timespec x; x.tv_sec = x.tv_nsec;
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21707 $as_echo "$ac_try_echo") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest.$ac_objext; then
21718 gl_cv_sys_struct_timespec_in_time_h=yes
21720 $as_echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 gl_cv_sys_struct_timespec_in_time_h=no
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21729 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21731 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21732 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21733 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21734 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21736 { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
21737 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21738 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
21739 $as_echo_n "(cached) " >&6
21741 cat >conftest.$ac_ext <<_ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747 #include <sys/time.h>
21752 static struct timespec x; x.tv_sec = x.tv_nsec;
21757 rm -f conftest.$ac_objext
21758 if { (ac_try="$ac_compile"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21764 $as_echo "$ac_try_echo") >&5
21765 (eval "$ac_compile") 2>conftest.er1
21767 grep -v '^ *+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } && {
21772 test -z "$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 } && test -s conftest.$ac_objext; then
21775 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21777 $as_echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 gl_cv_sys_struct_timespec_in_sys_time_h=no
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21786 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21787 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21788 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21808 if test $gl_cv_have_include_next = yes; then
21809 gl_cv_next_time_h='<'time.h'>'
21811 { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
21812 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21813 if test "${gl_cv_next_time_h+set}" = set; then
21814 $as_echo_n "(cached) " >&6
21817 if test $ac_cv_header_time_h = yes; then
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21828 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21829 *) gl_absname_cpp="$ac_cpp" ;;
21831 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21832 sed -n '\#/time.h#{
21833 s#.*"\(.*/time.h\)".*#\1#
21839 gl_cv_next_time_h='<'time.h'>'
21843 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
21844 $as_echo "$gl_cv_next_time_h" >&6; }
21846 NEXT_TIME_H=$gl_cv_next_time_h
21848 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21850 gl_next_as_first_directive='<'time.h'>'
21852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21853 gl_next_as_first_directive=$gl_cv_next_time_h
21855 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21866 { $as_echo "$as_me:$LINENO: checking whether the utimes function works" >&5
21867 $as_echo_n "checking whether the utimes function works... " >&6; }
21868 if test "${gl_cv_func_working_utimes+set}" = set; then
21869 $as_echo_n "(cached) " >&6
21872 if test "$cross_compiling" = yes; then
21873 gl_cv_func_working_utimes=no
21875 cat >conftest.$ac_ext <<_ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21882 #include <sys/types.h>
21883 #include <sys/stat.h>
21885 #include <sys/time.h>
21887 #include <unistd.h>
21888 #include <stdlib.h>
21895 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21897 char const *file = "conftest.utimes";
21902 int ok = ((f = fopen (file, "w"))
21904 && utimes (file, timeval) == 0
21905 && lstat (file, &sbuf) == 0
21906 && sbuf.st_atime == timeval[0].tv_sec
21907 && sbuf.st_mtime == timeval[1].tv_sec);
21913 ((f = fopen (file, "w"))
21915 && time (&now) != (time_t)-1
21916 && utimes (file, NULL) == 0
21917 && lstat (file, &sbuf) == 0
21918 && now - sbuf.st_atime <= 2
21919 && now - sbuf.st_mtime <= 2);
21924 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
21926 && utimes (file, NULL) == 0);
21933 rm -f conftest$ac_exeext
21934 if { (ac_try="$ac_link"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21940 $as_echo "$ac_try_echo") >&5
21941 (eval "$ac_link") 2>&5
21943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21945 { (case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21950 $as_echo "$ac_try_echo") >&5
21951 (eval "$ac_try") 2>&5
21953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 gl_cv_func_working_utimes=yes
21957 $as_echo "$as_me: program exited with status $ac_status" >&5
21958 $as_echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21961 ( exit $ac_status )
21962 gl_cv_func_working_utimes=no
21964 rm -rf conftest.dSYM
21965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21970 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
21971 $as_echo "$gl_cv_func_working_utimes" >&6; }
21973 if test $gl_cv_func_working_utimes = yes; then
21975 cat >>confdefs.h <<\_ACEOF
21976 #define HAVE_WORKING_UTIMES 1
21992 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
21993 $as_echo_n "checking for struct utimbuf... " >&6; }
21994 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
21995 $as_echo_n "(cached) " >&6
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #if HAVE_SYS_TIME_H
22004 #include <sys/time.h>
22007 #ifdef HAVE_UTIME_H
22014 static struct utimbuf x; x.actime = x.modtime;
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027 (eval "$ac_compile") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } && {
22034 test -z "$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 } && test -s conftest.$ac_objext; then
22037 gl_cv_sys_struct_utimbuf=yes
22039 $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 gl_cv_sys_struct_utimbuf=no
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
22048 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22050 if test $gl_cv_sys_struct_utimbuf = yes; then
22052 cat >>confdefs.h <<\_ACEOF
22053 #define HAVE_STRUCT_UTIMBUF 1
22071 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
22072 $as_echo_n "checking for wint_t... " >&6; }
22073 if test "${gt_cv_c_wint_t+set}" = set; then
22074 $as_echo_n "(cached) " >&6
22076 cat >conftest.$ac_ext <<_ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22083 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22085 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22086 before <wchar.h>. */
22087 #include <stddef.h>
22091 wint_t foo = (wchar_t)'\0';
22100 rm -f conftest.$ac_objext
22101 if { (ac_try="$ac_compile"
22102 case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22107 $as_echo "$ac_try_echo") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22110 grep -v '^ *+' conftest.er1 >conftest.err
22112 cat conftest.err >&5
22113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest.$ac_objext; then
22120 $as_echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
22129 $as_echo "$gt_cv_c_wint_t" >&6; }
22130 if test $gt_cv_c_wint_t = yes; then
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_WINT_T 1
22139 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
22140 $as_echo_n "checking for inttypes.h... " >&6; }
22141 if test "${gl_cv_header_inttypes_h+set}" = set; then
22142 $as_echo_n "(cached) " >&6
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 #include <sys/types.h>
22151 #include <inttypes.h>
22155 uintmax_t i = (uintmax_t) -1; return !i;
22160 rm -f conftest.$ac_objext
22161 if { (ac_try="$ac_compile"
22162 case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22167 $as_echo "$ac_try_echo") >&5
22168 (eval "$ac_compile") 2>conftest.er1
22170 grep -v '^ *+' conftest.er1 >conftest.err
22172 cat conftest.err >&5
22173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } && {
22175 test -z "$ac_c_werror_flag" ||
22176 test ! -s conftest.err
22177 } && test -s conftest.$ac_objext; then
22178 gl_cv_header_inttypes_h=yes
22180 $as_echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 gl_cv_header_inttypes_h=no
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
22189 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22190 if test $gl_cv_header_inttypes_h = yes; then
22192 cat >>confdefs.h <<_ACEOF
22193 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22199 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
22200 $as_echo_n "checking for stdint.h... " >&6; }
22201 if test "${gl_cv_header_stdint_h+set}" = set; then
22202 $as_echo_n "(cached) " >&6
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 #include <sys/types.h>
22211 #include <stdint.h>
22215 uintmax_t i = (uintmax_t) -1; return !i;
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228 (eval "$ac_compile") 2>conftest.er1
22230 grep -v '^ *+' conftest.er1 >conftest.err
22232 cat conftest.err >&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest.$ac_objext; then
22238 gl_cv_header_stdint_h=yes
22240 $as_echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 gl_cv_header_stdint_h=no
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
22249 $as_echo "$gl_cv_header_stdint_h" >&6; }
22250 if test $gl_cv_header_stdint_h = yes; then
22252 cat >>confdefs.h <<_ACEOF
22253 #define HAVE_STDINT_H_WITH_UINTMAX 1
22261 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
22262 $as_echo_n "checking for intmax_t... " >&6; }
22263 if test "${gt_cv_c_intmax_t+set}" = set; then
22264 $as_echo_n "(cached) " >&6
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22273 #include <stddef.h>
22274 #include <stdlib.h>
22275 #if HAVE_STDINT_H_WITH_UINTMAX
22276 #include <stdint.h>
22278 #if HAVE_INTTYPES_H_WITH_UINTMAX
22279 #include <inttypes.h>
22285 intmax_t x = -1; return !x;
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22297 $as_echo "$ac_try_echo") >&5
22298 (eval "$ac_compile") 2>conftest.er1
22300 grep -v '^ *+' conftest.er1 >conftest.err
22302 cat conftest.err >&5
22303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } && {
22305 test -z "$ac_c_werror_flag" ||
22306 test ! -s conftest.err
22307 } && test -s conftest.$ac_objext; then
22308 gt_cv_c_intmax_t=yes
22310 $as_echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 gt_cv_c_intmax_t=no
22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22318 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
22319 $as_echo "$gt_cv_c_intmax_t" >&6; }
22320 if test $gt_cv_c_intmax_t = yes; then
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_INTMAX_T 1
22328 test $ac_cv_type_long_long_int = yes \
22329 && ac_type='long long' \
22332 cat >>confdefs.h <<_ACEOF
22333 #define intmax_t $ac_type
22349 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22353 $as_echo_n "checking for $ac_func... " >&6; }
22354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22355 $as_echo_n "(cached) " >&6
22357 cat >conftest.$ac_ext <<_ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22365 #define $ac_func innocuous_$ac_func
22367 /* System header to define __stub macros and hopefully few prototypes,
22368 which can conflict with char $ac_func (); below.
22369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22370 <limits.h> exists even on freestanding compilers. */
22373 # include <limits.h>
22375 # include <assert.h>
22380 /* Override any GCC internal prototype to avoid an error.
22381 Use char because int might match the return type of a GCC
22382 builtin and then its argument prototype would still apply. */
22387 /* The GNU C library defines this for functions which it implements
22388 to always fail with ENOSYS. Some functions are actually named
22389 something starting with __ and the normal name is an alias. */
22390 #if defined __stub_$ac_func || defined __stub___$ac_func
22397 return $ac_func ();
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22409 $as_echo "$ac_try_echo") >&5
22410 (eval "$ac_link") 2>conftest.er1
22412 grep -v '^ *+' conftest.er1 >conftest.err
22414 cat conftest.err >&5
22415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest$ac_exeext && {
22420 test "$cross_compiling" = yes ||
22421 $as_test_x conftest$ac_exeext
22423 eval "$as_ac_var=yes"
22425 $as_echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22428 eval "$as_ac_var=no"
22431 rm -rf conftest.dSYM
22432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22433 conftest$ac_exeext conftest.$ac_ext
22435 ac_res=`eval 'as_val=${'$as_ac_var'}
22436 $as_echo "$as_val"'`
22437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22438 $as_echo "$ac_res" >&6; }
22439 as_val=`eval 'as_val=${'$as_ac_var'}
22440 $as_echo "$as_val"'`
22441 if test "x$as_val" = x""yes; then
22442 cat >>confdefs.h <<_ACEOF
22443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22449 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22450 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22451 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22452 $as_echo_n "(cached) " >&6
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22480 $as_echo "$ac_try_echo") >&5
22481 (eval "$ac_compile") 2>conftest.er1
22483 grep -v '^ *+' conftest.er1 >conftest.err
22485 cat conftest.err >&5
22486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && {
22488 test -z "$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22490 } && test -s conftest.$ac_objext; then
22491 ac_cv_have_decl__snprintf=yes
22493 $as_echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 ac_cv_have_decl__snprintf=no
22499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22502 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22503 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
22505 cat >>confdefs.h <<_ACEOF
22506 #define HAVE_DECL__SNPRINTF 1
22511 cat >>confdefs.h <<_ACEOF
22512 #define HAVE_DECL__SNPRINTF 0
22520 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
22521 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
22522 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
22523 $as_echo_n "(cached) " >&6
22525 cat >conftest.$ac_ext <<_ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 $ac_includes_default
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22550 $as_echo "$ac_try_echo") >&5
22551 (eval "$ac_compile") 2>conftest.er1
22553 grep -v '^ *+' conftest.er1 >conftest.err
22555 cat conftest.err >&5
22556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest.$ac_objext; then
22561 ac_cv_have_decl_vsnprintf=yes
22563 $as_echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566 ac_cv_have_decl_vsnprintf=no
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
22572 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
22573 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
22575 cat >>confdefs.h <<_ACEOF
22576 #define HAVE_DECL_VSNPRINTF 1
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_VSNPRINTF 0
22597 GL_COND_LIBTOOL_TRUE=
22598 GL_COND_LIBTOOL_FALSE='#'
22600 GL_COND_LIBTOOL_TRUE='#'
22601 GL_COND_LIBTOOL_FALSE=
22604 gl_cond_libtool=false
22616 gl_source_base='gnu'
22622 if test $ac_cv_func_alloca_works = no; then
22626 # Define an additional variable used in the Makefile substitution.
22627 if test $ac_cv_working_alloca_h = yes; then
22628 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
22629 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22630 if test "${gl_cv_rpl_alloca+set}" = set; then
22631 $as_echo_n "(cached) " >&6
22634 cat >conftest.$ac_ext <<_ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22641 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22647 $EGREP "Need own alloca" >/dev/null 2>&1; then
22648 gl_cv_rpl_alloca=yes
22650 gl_cv_rpl_alloca=no
22656 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
22657 $as_echo "$gl_cv_rpl_alloca" >&6; }
22658 if test $gl_cv_rpl_alloca = yes; then
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_ALLOCA 1
22682 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
22693 cat >>confdefs.h <<\_ACEOF
22694 #define __GETOPT_PREFIX rpl_
22699 GNULIB_UNISTD_H_GETOPT=1
22708 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22718 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22728 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
22729 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
22730 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
22731 $as_echo_n "(cached) " >&6
22733 cat >conftest.$ac_ext <<_ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22744 #ifndef program_invocation_name
22745 (void) program_invocation_name;
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22759 $as_echo "$ac_try_echo") >&5
22760 (eval "$ac_compile") 2>conftest.er1
22762 grep -v '^ *+' conftest.er1 >conftest.err
22764 cat conftest.err >&5
22765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && {
22767 test -z "$ac_c_werror_flag" ||
22768 test ! -s conftest.err
22769 } && test -s conftest.$ac_objext; then
22770 ac_cv_have_decl_program_invocation_name=yes
22772 $as_echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 ac_cv_have_decl_program_invocation_name=no
22778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
22781 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
22782 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
22784 cat >>confdefs.h <<\_ACEOF
22785 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
22790 cat >>confdefs.h <<\_ACEOF
22791 #define GNULIB_PROGRAM_INVOCATION_NAME 1
22796 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
22797 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
22798 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
22799 $as_echo_n "(cached) " >&6
22801 cat >conftest.$ac_ext <<_ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22812 #ifndef program_invocation_short_name
22813 (void) program_invocation_short_name;
22820 rm -f conftest.$ac_objext
22821 if { (ac_try="$ac_compile"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828 (eval "$ac_compile") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest.$ac_objext; then
22838 ac_cv_have_decl_program_invocation_short_name=yes
22840 $as_echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22843 ac_cv_have_decl_program_invocation_short_name=no
22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
22849 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
22850 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
22858 cat >>confdefs.h <<\_ACEOF
22859 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
22865 # Check if program_invocation_name and program_invocation_short_name
22866 # are defined elsewhere. It is improbable that only one of them will
22867 # be defined and other not, I prefer to stay on the safe side and to
22868 # test each one separately.
22869 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
22870 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22881 program_invocation_name = "test";
22886 rm -f conftest.$ac_objext conftest$ac_exeext
22887 if { (ac_try="$ac_link"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22893 $as_echo "$ac_try_echo") >&5
22894 (eval "$ac_link") 2>conftest.er1
22896 grep -v '^ *+' conftest.er1 >conftest.err
22898 cat conftest.err >&5
22899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); } && {
22901 test -z "$ac_c_werror_flag" ||
22902 test ! -s conftest.err
22903 } && test -s conftest$ac_exeext && {
22904 test "$cross_compiling" = yes ||
22905 $as_test_x conftest$ac_exeext
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_PROGRAM_INVOCATION_NAME 1
22912 { $as_echo "$as_me:$LINENO: result: yes" >&5
22913 $as_echo "yes" >&6; }
22915 $as_echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 { $as_echo "$as_me:$LINENO: result: no" >&5
22919 $as_echo "no" >&6; }
22922 rm -rf conftest.dSYM
22923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22924 conftest$ac_exeext conftest.$ac_ext
22926 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
22927 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
22928 cat >conftest.$ac_ext <<_ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22938 program_invocation_short_name = "test";
22943 rm -f conftest.$ac_objext conftest$ac_exeext
22944 if { (ac_try="$ac_link"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22950 $as_echo "$ac_try_echo") >&5
22951 (eval "$ac_link") 2>conftest.er1
22953 grep -v '^ *+' conftest.er1 >conftest.err
22955 cat conftest.err >&5
22956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } && {
22958 test -z "$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22960 } && test -s conftest$ac_exeext && {
22961 test "$cross_compiling" = yes ||
22962 $as_test_x conftest$ac_exeext
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
22969 { $as_echo "$as_me:$LINENO: result: yes" >&5
22970 $as_echo "yes" >&6; }
22972 $as_echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22975 { $as_echo "$as_me:$LINENO: result: no" >&5
22976 $as_echo "no" >&6; }
22979 rm -rf conftest.dSYM
22980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22981 conftest$ac_exeext conftest.$ac_ext
23054 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
23058 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
23069 gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
23094 if test $ac_cv_func_btowc = no; then
23100 { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
23101 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
23102 if test "${gl_cv_func_btowc_eof+set}" = set; then
23103 $as_echo_n "(cached) " >&6
23107 # Guess no on IRIX.
23108 irix*) gl_cv_func_btowc_eof="guessing no" ;;
23109 # Guess yes otherwise.
23110 *) gl_cv_func_btowc_eof="guessing yes" ;;
23112 if test $LOCALE_FR != none; then
23113 if test "$cross_compiling" = yes; then
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23123 #include <locale.h>
23125 #include <string.h>
23129 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
23131 if (btowc (EOF) != WEOF)
23137 rm -f conftest$ac_exeext
23138 if { (ac_try="$ac_link"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23144 $as_echo "$ac_try_echo") >&5
23145 (eval "$ac_link") 2>&5
23147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23149 { (case "(($ac_try" in
23150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151 *) ac_try_echo=$ac_try;;
23153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23154 $as_echo "$ac_try_echo") >&5
23155 (eval "$ac_try") 2>&5
23157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23159 gl_cv_func_btowc_eof=yes
23161 $as_echo "$as_me: program exited with status $ac_status" >&5
23162 $as_echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ( exit $ac_status )
23166 gl_cv_func_btowc_eof=no
23168 rm -rf conftest.dSYM
23169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23176 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
23177 $as_echo "$gl_cv_func_btowc_eof" >&6; }
23178 case "$gl_cv_func_btowc_eof" in
23180 *) REPLACE_BTOWC=1 ;;
23183 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
23195 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
23207 cat >>confdefs.h <<\_ACEOF
23208 #define GNULIB_BTOWC 1
23222 gl_LIBOBJS="$gl_LIBOBJS canonicalize.$ac_objext"
23234 if test $ac_cv_func_canonicalize_file_name = no; then
23235 HAVE_CANONICALIZE_FILE_NAME=0
23236 elif test "$gl_cv_func_realpath_works" != yes; then
23237 REPLACE_CANONICALIZE_FILE_NAME=1
23242 cat >>confdefs.h <<\_ACEOF
23243 #define GNULIB_CANONICALIZE 1
23249 GNULIB_CANONICALIZE_FILE_NAME=1
23252 cat >>confdefs.h <<\_ACEOF
23253 #define GNULIB_CANONICALIZE_FILE_NAME 1
23259 { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
23260 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
23261 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
23262 $as_echo_n "(cached) " >&6
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 #include <unistd.h>
23271 #include <limits.h>
23272 #if defined PATH_MAX || defined MAXPATHLEN
23273 have_arbitrary_file_name_length_limit
23276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23277 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
23278 gl_cv_have_arbitrary_file_name_length_limit=yes
23280 gl_cv_have_arbitrary_file_name_length_limit=no
23285 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
23286 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
23288 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
23297 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
23311 cat >>confdefs.h <<\_ACEOF
23312 #define GNULIB_CHOWN 1
23320 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
23321 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
23323 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
23324 # programs in the package would end up linked with that potentially-shared
23325 # library, inducing unnecessary run-time overhead.
23328 gl_saved_libs=$LIBS
23329 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23330 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23331 if test "${ac_cv_search_clock_gettime+set}" = set; then
23332 $as_echo_n "(cached) " >&6
23334 ac_func_search_save_LIBS=$LIBS
23335 cat >conftest.$ac_ext <<_ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23342 /* Override any GCC internal prototype to avoid an error.
23343 Use char because int might match the return type of a GCC
23344 builtin and then its argument prototype would still apply. */
23348 char clock_gettime ();
23352 return clock_gettime ();
23357 for ac_lib in '' rt posix4; do
23358 if test -z "$ac_lib"; then
23359 ac_res="none required"
23362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23364 rm -f conftest.$ac_objext conftest$ac_exeext
23365 if { (ac_try="$ac_link"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23371 $as_echo "$ac_try_echo") >&5
23372 (eval "$ac_link") 2>conftest.er1
23374 grep -v '^ *+' conftest.er1 >conftest.err
23376 cat conftest.err >&5
23377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && {
23379 test -z "$ac_c_werror_flag" ||
23380 test ! -s conftest.err
23381 } && test -s conftest$ac_exeext && {
23382 test "$cross_compiling" = yes ||
23383 $as_test_x conftest$ac_exeext
23385 ac_cv_search_clock_gettime=$ac_res
23387 $as_echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23393 rm -rf conftest.dSYM
23394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23396 if test "${ac_cv_search_clock_gettime+set}" = set; then
23400 if test "${ac_cv_search_clock_gettime+set}" = set; then
23403 ac_cv_search_clock_gettime=no
23405 rm conftest.$ac_ext
23406 LIBS=$ac_func_search_save_LIBS
23408 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23409 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23410 ac_res=$ac_cv_search_clock_gettime
23411 if test "$ac_res" != no; then
23412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23413 test "$ac_cv_search_clock_gettime" = "none required" ||
23414 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
23419 for ac_func in clock_gettime clock_settime
23421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23423 $as_echo_n "checking for $ac_func... " >&6; }
23424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23425 $as_echo_n "(cached) " >&6
23427 cat >conftest.$ac_ext <<_ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23435 #define $ac_func innocuous_$ac_func
23437 /* System header to define __stub macros and hopefully few prototypes,
23438 which can conflict with char $ac_func (); below.
23439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23440 <limits.h> exists even on freestanding compilers. */
23443 # include <limits.h>
23445 # include <assert.h>
23450 /* Override any GCC internal prototype to avoid an error.
23451 Use char because int might match the return type of a GCC
23452 builtin and then its argument prototype would still apply. */
23457 /* The GNU C library defines this for functions which it implements
23458 to always fail with ENOSYS. Some functions are actually named
23459 something starting with __ and the normal name is an alias. */
23460 #if defined __stub_$ac_func || defined __stub___$ac_func
23467 return $ac_func ();
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480 (eval "$ac_link") 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_c_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest$ac_exeext && {
23490 test "$cross_compiling" = yes ||
23491 $as_test_x conftest$ac_exeext
23493 eval "$as_ac_var=yes"
23495 $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 eval "$as_ac_var=no"
23501 rm -rf conftest.dSYM
23502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23503 conftest$ac_exeext conftest.$ac_ext
23505 ac_res=`eval 'as_val=${'$as_ac_var'}
23506 $as_echo "$as_val"'`
23507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23508 $as_echo "$ac_res" >&6; }
23509 as_val=`eval 'as_val=${'$as_ac_var'}
23510 $as_echo "$as_val"'`
23511 if test "x$as_val" = x""yes; then
23512 cat >>confdefs.h <<_ACEOF
23513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23519 LIBS=$gl_saved_libs
23529 cat >>confdefs.h <<\_ACEOF
23530 #define GNULIB_CLOSE 1
23544 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
23551 cat >>confdefs.h <<\_ACEOF
23552 #define GNULIB_CLOSE_STREAM 1
23565 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
23570 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
23571 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
23572 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
23573 $as_echo_n "(cached) " >&6
23575 if test "$cross_compiling" = yes; then
23576 gl_cv_struct_dirent_d_ino=no
23578 cat >conftest.$ac_ext <<_ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 #include <sys/types.h>
23585 #include <sys/stat.h>
23586 #include <dirent.h>
23591 DIR *dp = opendir (".");
23598 && stat (e->d_name, &st) == 0
23599 && e->d_ino == st.st_ino);
23604 rm -f conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23611 $as_echo "$ac_try_echo") >&5
23612 (eval "$ac_link") 2>&5
23614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23616 { (case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23621 $as_echo "$ac_try_echo") >&5
23622 (eval "$ac_try") 2>&5
23624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; }; then
23626 gl_cv_struct_dirent_d_ino=yes
23628 $as_echo "$as_me: program exited with status $ac_status" >&5
23629 $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632 ( exit $ac_status )
23633 gl_cv_struct_dirent_d_ino=no
23635 rm -rf conftest.dSYM
23636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23641 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
23642 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
23643 if test $gl_cv_struct_dirent_d_ino = yes; then
23645 cat >>confdefs.h <<\_ACEOF
23646 #define D_INO_IN_DIRENT 1
23666 if test $gl_cv_have_include_next = yes; then
23667 gl_cv_next_dirent_h='<'dirent.h'>'
23669 { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
23670 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
23671 if test "${gl_cv_next_dirent_h+set}" = set; then
23672 $as_echo_n "(cached) " >&6
23675 if test $ac_cv_header_dirent_h = yes; then
23676 cat >conftest.$ac_ext <<_ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 #include <dirent.h>
23686 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23687 *) gl_absname_cpp="$ac_cpp" ;;
23689 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23690 sed -n '\#/dirent.h#{
23691 s#.*"\(.*/dirent.h\)".*#\1#
23697 gl_cv_next_dirent_h='<'dirent.h'>'
23701 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
23702 $as_echo "$gl_cv_next_dirent_h" >&6; }
23704 NEXT_DIRENT_H=$gl_cv_next_dirent_h
23706 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23707 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23708 gl_next_as_first_directive='<'dirent.h'>'
23710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23711 gl_next_as_first_directive=$gl_cv_next_dirent_h
23713 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
23723 for gl_func in alphasort dirfd fdopendir scandir; do
23724 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23725 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23726 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23727 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23728 $as_echo_n "(cached) " >&6
23730 cat >conftest.$ac_ext <<_ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h. */
23736 #include <dirent.h>
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23754 $as_echo "$ac_try_echo") >&5
23755 (eval "$ac_compile") 2>conftest.er1
23757 grep -v '^ *+' conftest.er1 >conftest.err
23759 cat conftest.err >&5
23760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } && {
23762 test -z "$ac_c_werror_flag" ||
23763 test ! -s conftest.err
23764 } && test -s conftest.$ac_objext; then
23765 eval "$as_gl_Symbol=yes"
23767 $as_echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 eval "$as_gl_Symbol=no"
23773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23776 $as_echo "$as_val"'`
23777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23778 $as_echo "$ac_res" >&6; }
23779 as_val=`eval 'as_val=${'$as_gl_Symbol'}
23780 $as_echo "$as_val"'`
23781 if test "x$as_val" = x""yes; then
23782 cat >>confdefs.h <<_ACEOF
23783 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23786 eval ac_cv_have_decl_$gl_func=yes
23807 gl_LIBOBJS="$gl_LIBOBJS opendir-safer.$ac_objext"
23812 cat >>confdefs.h <<\_ACEOF
23813 #define GNULIB_DIRENT_SAFER 1
23829 for ac_func in dirfd
23831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23832 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23833 $as_echo_n "checking for $ac_func... " >&6; }
23834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23835 $as_echo_n "(cached) " >&6
23837 cat >conftest.$ac_ext <<_ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23845 #define $ac_func innocuous_$ac_func
23847 /* System header to define __stub macros and hopefully few prototypes,
23848 which can conflict with char $ac_func (); below.
23849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23850 <limits.h> exists even on freestanding compilers. */
23853 # include <limits.h>
23855 # include <assert.h>
23860 /* Override any GCC internal prototype to avoid an error.
23861 Use char because int might match the return type of a GCC
23862 builtin and then its argument prototype would still apply. */
23867 /* The GNU C library defines this for functions which it implements
23868 to always fail with ENOSYS. Some functions are actually named
23869 something starting with __ and the normal name is an alias. */
23870 #if defined __stub_$ac_func || defined __stub___$ac_func
23877 return $ac_func ();
23882 rm -f conftest.$ac_objext conftest$ac_exeext
23883 if { (ac_try="$ac_link"
23884 case "(($ac_try" in
23885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886 *) ac_try_echo=$ac_try;;
23888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23889 $as_echo "$ac_try_echo") >&5
23890 (eval "$ac_link") 2>conftest.er1
23892 grep -v '^ *+' conftest.er1 >conftest.err
23894 cat conftest.err >&5
23895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } && {
23897 test -z "$ac_c_werror_flag" ||
23898 test ! -s conftest.err
23899 } && test -s conftest$ac_exeext && {
23900 test "$cross_compiling" = yes ||
23901 $as_test_x conftest$ac_exeext
23903 eval "$as_ac_var=yes"
23905 $as_echo "$as_me: failed program was:" >&5
23906 sed 's/^/| /' conftest.$ac_ext >&5
23908 eval "$as_ac_var=no"
23911 rm -rf conftest.dSYM
23912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23913 conftest$ac_exeext conftest.$ac_ext
23915 ac_res=`eval 'as_val=${'$as_ac_var'}
23916 $as_echo "$as_val"'`
23917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23918 $as_echo "$ac_res" >&6; }
23919 as_val=`eval 'as_val=${'$as_ac_var'}
23920 $as_echo "$as_val"'`
23921 if test "x$as_val" = x""yes; then
23922 cat >>confdefs.h <<_ACEOF
23923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23929 { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
23930 $as_echo_n "checking whether dirfd is declared... " >&6; }
23931 if test "${ac_cv_have_decl_dirfd+set}" = set; then
23932 $as_echo_n "(cached) " >&6
23934 cat >conftest.$ac_ext <<_ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23940 #include <sys/types.h>
23941 #include <dirent.h>
23954 rm -f conftest.$ac_objext
23955 if { (ac_try="$ac_compile"
23956 case "(($ac_try" in
23957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23961 $as_echo "$ac_try_echo") >&5
23962 (eval "$ac_compile") 2>conftest.er1
23964 grep -v '^ *+' conftest.er1 >conftest.err
23966 cat conftest.err >&5
23967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } && {
23969 test -z "$ac_c_werror_flag" ||
23970 test ! -s conftest.err
23971 } && test -s conftest.$ac_objext; then
23972 ac_cv_have_decl_dirfd=yes
23974 $as_echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23977 ac_cv_have_decl_dirfd=no
23980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
23983 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
23984 if test "x$ac_cv_have_decl_dirfd" = x""yes; then
23986 cat >>confdefs.h <<_ACEOF
23987 #define HAVE_DECL_DIRFD 1
23992 cat >>confdefs.h <<_ACEOF
23993 #define HAVE_DECL_DIRFD 0
24000 if test $ac_cv_have_decl_dirfd = no; then
24004 { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
24005 $as_echo_n "checking whether dirfd is a macro... " >&6; }
24006 if test "${gl_cv_func_dirfd_macro+set}" = set; then
24007 $as_echo_n "(cached) " >&6
24009 cat >conftest.$ac_ext <<_ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h. */
24016 #include <sys/types.h>
24017 #include <dirent.h>
24019 dirent_header_defines_dirfd
24022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24023 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
24024 gl_cv_func_dirfd_macro=yes
24026 gl_cv_func_dirfd_macro=no
24031 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
24032 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
24034 # Use the replacement only if we have no function, macro,
24035 # or declaration with that name.
24036 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
24047 for ac_func in dirfd
24049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24050 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24051 $as_echo_n "checking for $ac_func... " >&6; }
24052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24053 $as_echo_n "(cached) " >&6
24055 cat >conftest.$ac_ext <<_ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24063 #define $ac_func innocuous_$ac_func
24065 /* System header to define __stub macros and hopefully few prototypes,
24066 which can conflict with char $ac_func (); below.
24067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068 <limits.h> exists even on freestanding compilers. */
24071 # include <limits.h>
24073 # include <assert.h>
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24085 /* The GNU C library defines this for functions which it implements
24086 to always fail with ENOSYS. Some functions are actually named
24087 something starting with __ and the normal name is an alias. */
24088 #if defined __stub_$ac_func || defined __stub___$ac_func
24095 return $ac_func ();
24100 rm -f conftest.$ac_objext conftest$ac_exeext
24101 if { (ac_try="$ac_link"
24102 case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24107 $as_echo "$ac_try_echo") >&5
24108 (eval "$ac_link") 2>conftest.er1
24110 grep -v '^ *+' conftest.er1 >conftest.err
24112 cat conftest.err >&5
24113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } && {
24115 test -z "$ac_c_werror_flag" ||
24116 test ! -s conftest.err
24117 } && test -s conftest$ac_exeext && {
24118 test "$cross_compiling" = yes ||
24119 $as_test_x conftest$ac_exeext
24121 eval "$as_ac_var=yes"
24123 $as_echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24126 eval "$as_ac_var=no"
24129 rm -rf conftest.dSYM
24130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24131 conftest$ac_exeext conftest.$ac_ext
24133 ac_res=`eval 'as_val=${'$as_ac_var'}
24134 $as_echo "$as_val"'`
24135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24136 $as_echo "$ac_res" >&6; }
24137 as_val=`eval 'as_val=${'$as_ac_var'}
24138 $as_echo "$as_val"'`
24139 if test "x$as_val" = x""yes; then
24140 cat >>confdefs.h <<_ACEOF
24141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24146 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24152 { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
24153 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
24154 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
24155 $as_echo_n "(cached) " >&6
24158 dirfd_save_CFLAGS=$CFLAGS
24159 for ac_expr in d_fd dd_fd; do
24161 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
24162 cat >conftest.$ac_ext <<_ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24169 #include <sys/types.h>
24170 #include <dirent.h>
24174 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24200 $as_echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207 CFLAGS=$dirfd_save_CFLAGS
24208 test "$dir_fd_found" = yes && break
24210 test "$dir_fd_found" = yes || ac_expr=no_such_member
24212 gl_cv_sys_dir_fd_member_name=$ac_expr
24216 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
24217 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
24218 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
24220 cat >>confdefs.h <<_ACEOF
24221 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
24234 cat >>confdefs.h <<\_ACEOF
24235 #define GNULIB_DIRFD 1
24250 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
24260 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
24265 cat >>confdefs.h <<\_ACEOF
24266 #define GNULIB_DIRNAME 1
24279 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
24289 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
24299 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
24308 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
24309 $as_echo_n "checking whether // is distinct from /... " >&6; }
24310 if test "${gl_cv_double_slash_root+set}" = set; then
24311 $as_echo_n "(cached) " >&6
24313 if test x"$cross_compiling" = xyes ; then
24314 # When cross-compiling, there is no way to tell whether // is special
24315 # short of a list of hosts. However, the only known hosts to date
24316 # that have a distinct // are Apollo DomainOS (too old to port to),
24317 # Cygwin, and z/OS. If anyone knows of another system for which // has
24318 # special semantics and is distinct from /, please report it to
24319 # <bug-gnulib@gnu.org>.
24321 *-cygwin | i370-ibm-openedition)
24322 gl_cv_double_slash_root=yes ;;
24324 # Be optimistic and assume that / and // are the same when we
24326 gl_cv_double_slash_root='unknown, assuming no' ;;
24329 set x `ls -di / // 2>/dev/null`
24330 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
24331 gl_cv_double_slash_root=no
24333 gl_cv_double_slash_root=yes
24337 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
24338 $as_echo "$gl_cv_double_slash_root" >&6; }
24339 if test "$gl_cv_double_slash_root" = yes; then
24341 cat >>confdefs.h <<\_ACEOF
24342 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
24356 if test $ac_cv_func_dup2 = no; then
24366 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
24369 { $as_echo "$as_me:$LINENO: checking whether dup2 works" >&5
24370 $as_echo_n "checking whether dup2 works... " >&6; }
24371 if test "${gl_cv_func_dup2_works+set}" = set; then
24372 $as_echo_n "(cached) " >&6
24374 if test "$cross_compiling" = yes; then
24376 mingw*) # on this platform, dup2 always returns 0 for success
24377 gl_cv_func_dup2_works=no;;
24378 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
24379 gl_cv_func_dup2_works=no;;
24380 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
24381 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
24382 gl_cv_func_dup2_works=no;;
24383 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
24384 gl_cv_func_dup2_works=no;;
24385 *) gl_cv_func_dup2_works=yes;;
24388 cat >conftest.$ac_ext <<_ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h. */
24395 #include <unistd.h>
24400 if (dup2 (1, 1) == 0)
24403 if (dup2 (0, 0) != -1)
24405 /* Many gnulib modules require POSIX conformance of EBADF. */
24406 if (dup2 (1, 1000000) == -1 && errno != EBADF)
24415 rm -f conftest$ac_exeext
24416 if { (ac_try="$ac_link"
24417 case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24422 $as_echo "$ac_try_echo") >&5
24423 (eval "$ac_link") 2>&5
24425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24427 { (case "(($ac_try" in
24428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429 *) ac_try_echo=$ac_try;;
24431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24432 $as_echo "$ac_try_echo") >&5
24433 (eval "$ac_try") 2>&5
24435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; }; then
24437 gl_cv_func_dup2_works=yes
24439 $as_echo "$as_me: program exited with status $ac_status" >&5
24440 $as_echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24443 ( exit $ac_status )
24444 gl_cv_func_dup2_works=no
24446 rm -rf conftest.dSYM
24447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24453 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dup2_works" >&5
24454 $as_echo "$gl_cv_func_dup2_works" >&6; }
24455 if test "$gl_cv_func_dup2_works" = no; then
24458 if test $ac_cv_func_dup2 = yes; then
24469 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
24480 cat >>confdefs.h <<\_ACEOF
24481 #define GNULIB_DUP2 1
24492 cat >>confdefs.h <<\_ACEOF
24493 #define GNULIB_ENVIRON 1
24512 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
24513 $as_echo_n "checking for error_at_line... " >&6; }
24514 if test "${ac_cv_lib_error_at_line+set}" = set; then
24515 $as_echo_n "(cached) " >&6
24517 cat >conftest.$ac_ext <<_ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24527 error_at_line (0, 0, "", 0, "an error occurred");
24532 rm -f conftest.$ac_objext conftest$ac_exeext
24533 if { (ac_try="$ac_link"
24534 case "(($ac_try" in
24535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536 *) ac_try_echo=$ac_try;;
24538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24539 $as_echo "$ac_try_echo") >&5
24540 (eval "$ac_link") 2>conftest.er1
24542 grep -v '^ *+' conftest.er1 >conftest.err
24544 cat conftest.err >&5
24545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } && {
24547 test -z "$ac_c_werror_flag" ||
24548 test ! -s conftest.err
24549 } && test -s conftest$ac_exeext && {
24550 test "$cross_compiling" = yes ||
24551 $as_test_x conftest$ac_exeext
24553 ac_cv_lib_error_at_line=yes
24555 $as_echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24558 ac_cv_lib_error_at_line=no
24561 rm -rf conftest.dSYM
24562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24563 conftest$ac_exeext conftest.$ac_ext
24565 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24566 $as_echo "$ac_cv_lib_error_at_line" >&6; }
24567 if test $ac_cv_lib_error_at_line = no; then
24576 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
24588 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
24592 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
24603 gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
24616 if test $ac_cv_func_fchdir = no; then
24626 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
24630 cat >>confdefs.h <<\_ACEOF
24631 #define REPLACE_FCHDIR 1
24648 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
24667 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
24680 gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
24686 if test $ac_cv_func_dup2 = yes; then
24697 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
24708 if test $ac_cv_func_fcntl = no; then
24721 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
24727 { $as_echo "$as_me:$LINENO: checking whether open can visit directories" >&5
24728 $as_echo_n "checking whether open can visit directories... " >&6; }
24729 if test "${gl_cv_func_open_directory_works+set}" = set; then
24730 $as_echo_n "(cached) " >&6
24732 if test "$cross_compiling" = yes; then
24733 gl_cv_func_open_directory_works="guessing no"
24735 cat >conftest.$ac_ext <<_ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h. */
24746 return open(".", O_RDONLY) < 0;
24751 rm -f conftest$ac_exeext
24752 if { (ac_try="$ac_link"
24753 case "(($ac_try" in
24754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24755 *) ac_try_echo=$ac_try;;
24757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24758 $as_echo "$ac_try_echo") >&5
24759 (eval "$ac_link") 2>&5
24761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24763 { (case "(($ac_try" in
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765 *) ac_try_echo=$ac_try;;
24767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24768 $as_echo "$ac_try_echo") >&5
24769 (eval "$ac_try") 2>&5
24771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 gl_cv_func_open_directory_works=yes
24775 $as_echo "$as_me: program exited with status $ac_status" >&5
24776 $as_echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24779 ( exit $ac_status )
24780 gl_cv_func_open_directory_works=no
24782 rm -rf conftest.dSYM
24783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24788 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_directory_works" >&5
24789 $as_echo "$gl_cv_func_open_directory_works" >&6; }
24790 if test "$gl_cv_func_open_directory_works" != yes; then
24792 cat >>confdefs.h <<\_ACEOF
24793 #define REPLACE_OPEN_DIRECTORY 1
24805 cat >>confdefs.h <<\_ACEOF
24806 #define GNULIB_FCHDIR 1
24818 cat >>confdefs.h <<\_ACEOF
24819 #define GNULIB_FCLOSE 1
24834 if test $ac_cv_func_fcntl = no; then
24843 if test $ac_cv_func_fcntl = no; then
24856 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
24860 { $as_echo "$as_me:$LINENO: checking whether fcntl handles F_DUPFD correctly" >&5
24861 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
24862 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then
24863 $as_echo_n "(cached) " >&6
24865 if test "$cross_compiling" = yes; then
24866 # Guess that it works on glibc systems
24867 case $host_os in #((
24868 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
24869 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
24872 cat >conftest.$ac_ext <<_ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h. */
24884 return fcntl (0, F_DUPFD, -1) != -1;
24890 rm -f conftest$ac_exeext
24891 if { (ac_try="$ac_link"
24892 case "(($ac_try" in
24893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894 *) ac_try_echo=$ac_try;;
24896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24897 $as_echo "$ac_try_echo") >&5
24898 (eval "$ac_link") 2>&5
24900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24902 { (case "(($ac_try" in
24903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904 *) ac_try_echo=$ac_try;;
24906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24907 $as_echo "$ac_try_echo") >&5
24908 (eval "$ac_try") 2>&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); }; }; then
24912 gl_cv_func_fcntl_f_dupfd_works=yes
24914 $as_echo "$as_me: program exited with status $ac_status" >&5
24915 $as_echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24918 ( exit $ac_status )
24919 gl_cv_func_fcntl_f_dupfd_works=no
24921 rm -rf conftest.dSYM
24922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24927 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
24928 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
24929 case $gl_cv_func_fcntl_f_dupfd_works in
24939 if test $ac_cv_func_fcntl = no; then
24952 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
24956 cat >>confdefs.h <<\_ACEOF
24957 #define FCNTL_DUPFD_BUGGY 1
24962 { $as_echo "$as_me:$LINENO: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
24963 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
24964 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then
24965 $as_echo_n "(cached) " >&6
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24975 #ifndef F_DUPFD_CLOEXEC
24987 rm -f conftest.$ac_objext
24988 if { (ac_try="$ac_compile"
24989 case "(($ac_try" in
24990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24991 *) ac_try_echo=$ac_try;;
24993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24994 $as_echo "$ac_try_echo") >&5
24995 (eval "$ac_compile") 2>conftest.er1
24997 grep -v '^ *+' conftest.er1 >conftest.err
24999 cat conftest.err >&5
25000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); } && {
25002 test -z "$ac_c_werror_flag" ||
25003 test ! -s conftest.err
25004 } && test -s conftest.$ac_objext; then
25005 cat >conftest.$ac_ext <<_ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h. */
25013 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
25014 it to support the semantics on older kernels that failed with EINVAL. */
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25033 $as_echo "$ac_try_echo") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25044 gl_cv_func_fcntl_f_dupfd_cloexec=yes
25046 $as_echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 $as_echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 gl_cv_func_fcntl_f_dupfd_cloexec=no
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
25063 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
25064 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
25073 if test $ac_cv_func_fcntl = no; then
25086 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
25097 cat >>confdefs.h <<\_ACEOF
25098 #define GNULIB_FCNTL 1
25117 if test $gl_cv_have_include_next = yes; then
25118 gl_cv_next_fcntl_h='<'fcntl.h'>'
25120 { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
25121 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
25122 if test "${gl_cv_next_fcntl_h+set}" = set; then
25123 $as_echo_n "(cached) " >&6
25126 if test $ac_cv_header_fcntl_h = yes; then
25127 cat >conftest.$ac_ext <<_ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25137 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25138 *) gl_absname_cpp="$ac_cpp" ;;
25140 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25141 sed -n '\#/fcntl.h#{
25142 s#.*"\(.*/fcntl.h\)".*#\1#
25148 gl_cv_next_fcntl_h='<'fcntl.h'>'
25152 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
25153 $as_echo "$gl_cv_next_fcntl_h" >&6; }
25155 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
25157 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25159 gl_next_as_first_directive='<'fcntl.h'>'
25161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25162 gl_next_as_first_directive=$gl_cv_next_fcntl_h
25164 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
25172 for gl_func in fcntl openat; do
25173 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25174 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25175 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25176 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25177 $as_echo_n "(cached) " >&6
25179 cat >conftest.$ac_ext <<_ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h. */
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25203 $as_echo "$ac_try_echo") >&5
25204 (eval "$ac_compile") 2>conftest.er1
25206 grep -v '^ *+' conftest.er1 >conftest.err
25208 cat conftest.err >&5
25209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } && {
25211 test -z "$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25213 } && test -s conftest.$ac_objext; then
25214 eval "$as_gl_Symbol=yes"
25216 $as_echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25219 eval "$as_gl_Symbol=no"
25222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25224 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25225 $as_echo "$as_val"'`
25226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25227 $as_echo "$ac_res" >&6; }
25228 as_val=`eval 'as_val=${'$as_gl_Symbol'}
25229 $as_echo "$as_val"'`
25230 if test "x$as_val" = x""yes; then
25231 cat >>confdefs.h <<_ACEOF
25232 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25235 eval ac_cv_have_decl_$gl_func=yes
25249 if test $ac_cv_func_fdopendir = no; then
25258 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25268 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
25275 { $as_echo "$as_me:$LINENO: checking whether fdopendir works" >&5
25276 $as_echo_n "checking whether fdopendir works... " >&6; }
25277 if test "${gl_cv_func_fdopendir_works+set}" = set; then
25278 $as_echo_n "(cached) " >&6
25280 if test "$cross_compiling" = yes; then
25281 gl_cv_func_fdopendir_works="guessing no"
25283 cat >conftest.$ac_ext <<_ACEOF
25286 cat confdefs.h >>conftest.$ac_ext
25287 cat >>conftest.$ac_ext <<_ACEOF
25288 /* end confdefs.h. */
25290 #include <dirent.h>
25296 int fd = open ("conftest.c", O_RDONLY);
25297 if (fd < 0) return 2;
25298 return !!fdopendir (fd);
25303 rm -f conftest$ac_exeext
25304 if { (ac_try="$ac_link"
25305 case "(($ac_try" in
25306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307 *) ac_try_echo=$ac_try;;
25309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25310 $as_echo "$ac_try_echo") >&5
25311 (eval "$ac_link") 2>&5
25313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25315 { (case "(($ac_try" in
25316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25320 $as_echo "$ac_try_echo") >&5
25321 (eval "$ac_try") 2>&5
25323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); }; }; then
25325 gl_cv_func_fdopendir_works=yes
25327 $as_echo "$as_me: program exited with status $ac_status" >&5
25328 $as_echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25331 ( exit $ac_status )
25332 gl_cv_func_fdopendir_works=no
25334 rm -rf conftest.dSYM
25335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25340 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fdopendir_works" >&5
25341 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
25342 if test "$gl_cv_func_fdopendir_works" != yes; then
25343 REPLACE_FDOPENDIR=1
25355 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
25365 cat >>confdefs.h <<\_ACEOF
25366 #define GNULIB_FDOPENDIR 1
25372 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25373 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
25374 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25375 $as_echo_n "(cached) " >&6
25377 cat >conftest.$ac_ext <<_ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h. */
25383 $ac_includes_default
25387 static struct stat ac_aggr;
25388 if (ac_aggr.st_blocks)
25394 rm -f conftest.$ac_objext
25395 if { (ac_try="$ac_compile"
25396 case "(($ac_try" in
25397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398 *) ac_try_echo=$ac_try;;
25400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25401 $as_echo "$ac_try_echo") >&5
25402 (eval "$ac_compile") 2>conftest.er1
25404 grep -v '^ *+' conftest.er1 >conftest.err
25406 cat conftest.err >&5
25407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } && {
25409 test -z "$ac_c_werror_flag" ||
25410 test ! -s conftest.err
25411 } && test -s conftest.$ac_objext; then
25412 ac_cv_member_struct_stat_st_blocks=yes
25414 $as_echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25417 cat >conftest.$ac_ext <<_ACEOF
25420 cat confdefs.h >>conftest.$ac_ext
25421 cat >>conftest.$ac_ext <<_ACEOF
25422 /* end confdefs.h. */
25423 $ac_includes_default
25427 static struct stat ac_aggr;
25428 if (sizeof ac_aggr.st_blocks)
25434 rm -f conftest.$ac_objext
25435 if { (ac_try="$ac_compile"
25436 case "(($ac_try" in
25437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438 *) ac_try_echo=$ac_try;;
25440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25441 $as_echo "$ac_try_echo") >&5
25442 (eval "$ac_compile") 2>conftest.er1
25444 grep -v '^ *+' conftest.er1 >conftest.err
25446 cat conftest.err >&5
25447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); } && {
25449 test -z "$ac_c_werror_flag" ||
25450 test ! -s conftest.err
25451 } && test -s conftest.$ac_objext; then
25452 ac_cv_member_struct_stat_st_blocks=yes
25454 $as_echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25457 ac_cv_member_struct_stat_st_blocks=no
25460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25465 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25466 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
25467 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
25469 cat >>confdefs.h <<_ACEOF
25470 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25474 cat >>confdefs.h <<\_ACEOF
25475 #define HAVE_ST_BLOCKS 1
25487 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
25492 if test $ac_cv_member_struct_stat_st_blocks = no; then
25522 if test $gl_cv_have_include_next = yes; then
25523 gl_cv_next_float_h='<'float.h'>'
25525 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
25526 $as_echo_n "checking absolute name of <float.h>... " >&6; }
25527 if test "${gl_cv_next_float_h+set}" = set; then
25528 $as_echo_n "(cached) " >&6
25531 if test $ac_cv_header_float_h = yes; then
25532 cat >conftest.$ac_ext <<_ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h. */
25542 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25543 *) gl_absname_cpp="$ac_cpp" ;;
25545 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25546 sed -n '\#/float.h#{
25547 s#.*"\(.*/float.h\)".*#\1#
25553 gl_cv_next_float_h='<'float.h'>'
25557 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
25558 $as_echo "$gl_cv_next_float_h" >&6; }
25560 NEXT_FLOAT_H=$gl_cv_next_float_h
25562 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25564 gl_next_as_first_directive='<'float.h'>'
25566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25567 gl_next_as_first_directive=$gl_cv_next_float_h
25569 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
25583 gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
25584 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
25585 { $as_echo "$as_me:$LINENO: checking for working $gl_fnmatch_required fnmatch" >&5
25586 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
25587 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then
25588 $as_echo_n "(cached) " >&6
25590 if test $gl_fnmatch_required = GNU; then
25591 gl_fnmatch_gnu_start=
25592 gl_fnmatch_gnu_end=
25594 gl_fnmatch_gnu_start='#if 0'
25595 gl_fnmatch_gnu_end='#endif'
25597 if test "$cross_compiling" = yes; then
25598 eval "$gl_fnmatch_cache_var=\"guessing no\""
25600 cat >conftest.$ac_ext <<_ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25606 #include <fnmatch.h>
25608 y (char const *pattern, char const *string, int flags)
25610 return fnmatch (pattern, string, flags) == 0;
25613 n (char const *pattern, char const *string, int flags)
25615 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
25621 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
25622 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
25623 static char const A_1[] = { 'A' - 1, 0 };
25624 static char const A01[] = { 'A' + 1, 0 };
25625 static char const a_1[] = { 'a' - 1, 0 };
25626 static char const a01[] = { 'a' + 1, 0 };
25627 static char const bs_1[] = { '\\\\' - 1, 0 };
25628 static char const bs01[] = { '\\\\' + 1, 0 };
25631 && y ("a*", "abc", 0)
25632 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
25633 && y ("a\\\\bc", "abc", 0)
25634 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
25635 && y ("*x", ".x", 0)
25636 && n ("*x", ".x", FNM_PERIOD)
25637 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
25638 && y (apat, "\\\\", 0) && y (apat, "a", 0)
25639 && n (Apat, A_1, 0) == ('A' < '\\\\')
25640 && n (apat, a_1, 0) == ('a' < '\\\\')
25641 && y (Apat, A01, 0) == ('A' < '\\\\')
25642 && y (apat, a01, 0) == ('a' < '\\\\')
25643 && y (Apat, bs_1, 0) == ('A' < '\\\\')
25644 && y (apat, bs_1, 0) == ('a' < '\\\\')
25645 && n (Apat, bs01, 0) == ('A' < '\\\\')
25646 && n (apat, bs01, 0) == ('a' < '\\\\')
25647 $gl_fnmatch_gnu_start
25648 && y ("xxXX", "xXxX", FNM_CASEFOLD)
25649 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
25650 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
25651 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
25652 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
25653 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
25654 $gl_fnmatch_gnu_end
25661 rm -f conftest$ac_exeext
25662 if { (ac_try="$ac_link"
25663 case "(($ac_try" in
25664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25668 $as_echo "$ac_try_echo") >&5
25669 (eval "$ac_link") 2>&5
25671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25673 { (case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_try") 2>&5
25681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 eval "$gl_fnmatch_cache_var=yes"
25685 $as_echo "$as_me: program exited with status $ac_status" >&5
25686 $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ( exit $ac_status )
25690 eval "$gl_fnmatch_cache_var=no"
25692 rm -rf conftest.dSYM
25693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25699 ac_res=`eval 'as_val=${'$gl_fnmatch_cache_var'}
25700 $as_echo "$as_val"'`
25701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25702 $as_echo "$ac_res" >&6; }
25703 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
25704 if test "$gl_fnmatch_result" = yes; then
25705 rm -f "$gl_source_base/fnmatch.h"
25707 FNMATCH_H=fnmatch.h
25716 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
25719 cat >>confdefs.h <<_ACEOF
25720 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
25724 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
25725 $as_echo_n "checking whether isblank is declared... " >&6; }
25726 if test "${ac_cv_have_decl_isblank+set}" = set; then
25727 $as_echo_n "(cached) " >&6
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25748 rm -f conftest.$ac_objext
25749 if { (ac_try="$ac_compile"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25755 $as_echo "$ac_try_echo") >&5
25756 (eval "$ac_compile") 2>conftest.er1
25758 grep -v '^ *+' conftest.er1 >conftest.err
25760 cat conftest.err >&5
25761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } && {
25763 test -z "$ac_c_werror_flag" ||
25764 test ! -s conftest.err
25765 } && test -s conftest.$ac_objext; then
25766 ac_cv_have_decl_isblank=yes
25768 $as_echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25771 ac_cv_have_decl_isblank=no
25774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25776 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
25777 $as_echo "$ac_cv_have_decl_isblank" >&6; }
25778 if test "x$ac_cv_have_decl_isblank" = x""yes; then
25780 cat >>confdefs.h <<_ACEOF
25781 #define HAVE_DECL_ISBLANK 1
25786 cat >>confdefs.h <<_ACEOF
25787 #define HAVE_DECL_ISBLANK 0
25842 # include <stdio.h>
25843 # if HAVE_STDIO_EXT_H
25844 # include <stdio_ext.h>
25847 { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
25848 $as_echo_n "checking whether __fpending is declared... " >&6; }
25849 if test "${ac_cv_have_decl___fpending+set}" = set; then
25850 $as_echo_n "(cached) " >&6
25852 cat >conftest.$ac_ext <<_ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h. */
25871 rm -f conftest.$ac_objext
25872 if { (ac_try="$ac_compile"
25873 case "(($ac_try" in
25874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875 *) ac_try_echo=$ac_try;;
25877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25878 $as_echo "$ac_try_echo") >&5
25879 (eval "$ac_compile") 2>conftest.er1
25881 grep -v '^ *+' conftest.er1 >conftest.err
25883 cat conftest.err >&5
25884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); } && {
25886 test -z "$ac_c_werror_flag" ||
25887 test ! -s conftest.err
25888 } && test -s conftest.$ac_objext; then
25889 ac_cv_have_decl___fpending=yes
25891 $as_echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 ac_cv_have_decl___fpending=no
25897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25899 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
25900 $as_echo "$ac_cv_have_decl___fpending" >&6; }
25901 if test "x$ac_cv_have_decl___fpending" = x""yes; then
25903 cat >>confdefs.h <<_ACEOF
25904 #define HAVE_DECL___FPENDING 1
25909 cat >>confdefs.h <<_ACEOF
25910 #define HAVE_DECL___FPENDING 0
25917 if test $ac_cv_func___fpending = no; then
25918 { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
25919 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
25920 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
25921 $as_echo_n "(cached) " >&6
25927 'fp->_IO_write_ptr - fp->_IO_write_base' \
25929 '# traditional Unix' \
25930 'fp->_ptr - fp->_base' \
25933 'fp->_p - fp->_bf._base' \
25935 '# SCO, Unixware' \
25936 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
25939 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
25942 'fp->__bufp - fp->__buffer' \
25944 '# old glibc iostream?' \
25945 'fp->_pptr - fp->_pbase' \
25948 'fp->_ptr - fp->_buffer' \
25951 '(*fp)->_ptr - (*fp)->_base' \
25953 '# e.g., DGUX R4.11; the info is not available' \
25957 # Skip each embedded comment.
25958 case "$ac_expr" in '#'*) continue;; esac
25960 cat >conftest.$ac_ext <<_ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25970 FILE *fp = stdin; (void) ($ac_expr);
25975 rm -f conftest.$ac_objext
25976 if { (ac_try="$ac_compile"
25977 case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982 $as_echo "$ac_try_echo") >&5
25983 (eval "$ac_compile") 2>conftest.er1
25985 grep -v '^ *+' conftest.er1 >conftest.err
25987 cat conftest.err >&5
25988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } && {
25990 test -z "$ac_c_werror_flag" ||
25991 test ! -s conftest.err
25992 } && test -s conftest.$ac_objext; then
25996 $as_echo "$as_me: failed program was:" >&5
25997 sed 's/^/| /' conftest.$ac_ext >&5
26002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26003 test "$fp_done" = yes && break
26006 ac_cv_sys_pending_output_n_bytes=$ac_expr
26010 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26011 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
26013 cat >>confdefs.h <<_ACEOF
26014 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26025 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
26036 { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
26037 $as_echo_n "checking for fseeko... " >&6; }
26038 if test "${gl_cv_func_fseeko+set}" = set; then
26039 $as_echo_n "(cached) " >&6
26042 cat >conftest.$ac_ext <<_ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h. */
26053 fseeko (stdin, 0, 0);
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062 *) ac_try_echo=$ac_try;;
26064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26065 $as_echo "$ac_try_echo") >&5
26066 (eval "$ac_link") 2>conftest.er1
26068 grep -v '^ *+' conftest.er1 >conftest.err
26070 cat conftest.err >&5
26071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } && {
26073 test -z "$ac_c_werror_flag" ||
26074 test ! -s conftest.err
26075 } && test -s conftest$ac_exeext && {
26076 test "$cross_compiling" = yes ||
26077 $as_test_x conftest$ac_exeext
26079 gl_cv_func_fseeko=yes
26081 $as_echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 gl_cv_func_fseeko=no
26087 rm -rf conftest.dSYM
26088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26089 conftest$ac_exeext conftest.$ac_ext
26092 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
26093 $as_echo "$gl_cv_func_fseeko" >&6; }
26094 if test $gl_cv_func_fseeko = no \
26095 || test $gl_cv_var_stdin_large_offset = no; then
26105 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
26118 cat >>confdefs.h <<\_ACEOF
26119 #define GNULIB_FSEEKO 1
26133 if test $ac_cv_func_ftruncate = no; then
26143 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
26147 for ac_func in chsize
26149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26150 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26151 $as_echo_n "checking for $ac_func... " >&6; }
26152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26153 $as_echo_n "(cached) " >&6
26155 cat >conftest.$ac_ext <<_ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h. */
26161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26163 #define $ac_func innocuous_$ac_func
26165 /* System header to define __stub macros and hopefully few prototypes,
26166 which can conflict with char $ac_func (); below.
26167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26168 <limits.h> exists even on freestanding compilers. */
26171 # include <limits.h>
26173 # include <assert.h>
26178 /* Override any GCC internal prototype to avoid an error.
26179 Use char because int might match the return type of a GCC
26180 builtin and then its argument prototype would still apply. */
26185 /* The GNU C library defines this for functions which it implements
26186 to always fail with ENOSYS. Some functions are actually named
26187 something starting with __ and the normal name is an alias. */
26188 #if defined __stub_$ac_func || defined __stub___$ac_func
26195 return $ac_func ();
26200 rm -f conftest.$ac_objext conftest$ac_exeext
26201 if { (ac_try="$ac_link"
26202 case "(($ac_try" in
26203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204 *) ac_try_echo=$ac_try;;
26206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26207 $as_echo "$ac_try_echo") >&5
26208 (eval "$ac_link") 2>conftest.er1
26210 grep -v '^ *+' conftest.er1 >conftest.err
26212 cat conftest.err >&5
26213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } && {
26215 test -z "$ac_c_werror_flag" ||
26216 test ! -s conftest.err
26217 } && test -s conftest$ac_exeext && {
26218 test "$cross_compiling" = yes ||
26219 $as_test_x conftest$ac_exeext
26221 eval "$as_ac_var=yes"
26223 $as_echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26226 eval "$as_ac_var=no"
26229 rm -rf conftest.dSYM
26230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26231 conftest$ac_exeext conftest.$ac_ext
26233 ac_res=`eval 'as_val=${'$as_ac_var'}
26234 $as_echo "$as_val"'`
26235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26236 $as_echo "$ac_res" >&6; }
26237 as_val=`eval 'as_val=${'$as_ac_var'}
26238 $as_echo "$as_val"'`
26239 if test "x$as_val" = x""yes; then
26240 cat >>confdefs.h <<_ACEOF
26241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26250 # Yes, we know mingw lacks ftruncate.
26253 # If someone lacks ftruncate, make configure fail, and request
26254 # a bug report to inform us about it.
26255 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
26256 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26258 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
26259 Please report this, along with the output of \"uname -a\", to the
26260 bug-coreutils@gnu.org mailing list. To continue past this point,
26261 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
26262 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
26263 See \`config.log' for more details." >&5
26264 $as_echo "$as_me: error: Your system lacks the ftruncate function.
26265 Please report this, along with the output of \"uname -a\", to the
26266 bug-coreutils@gnu.org mailing list. To continue past this point,
26267 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
26268 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
26269 See \`config.log' for more details." >&2;}
26270 { (exit 1); exit 1; }; }; }
26280 cat >>confdefs.h <<\_ACEOF
26281 #define GNULIB_FTRUNCATE 1
26291 case $gl_cv_func_getcwd_null,$host_os in
26293 gl_cv_func_getcwd_path_max=yes;;
26301 { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
26302 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
26303 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
26304 $as_echo_n "(cached) " >&6
26306 # Arrange for deletion of the temporary directory this test creates.
26307 ac_clean_files="$ac_clean_files confdir3"
26308 if test "$cross_compiling" = yes; then
26309 gl_cv_func_getcwd_path_max=no
26311 cat >conftest.$ac_ext <<_ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26319 #include <stdlib.h>
26320 #include <unistd.h>
26321 #include <string.h>
26322 #include <limits.h>
26323 #include <sys/stat.h>
26324 #include <sys/types.h>
26328 # define AT_FDCWD 0
26330 #ifdef ENAMETOOLONG
26331 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
26333 # define is_ENAMETOOLONG(x) 0
26336 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
26340 # define S_IRWXU 0700
26343 /* The length of this name must be 8. */
26344 #define DIR_NAME "confdir3"
26345 #define DIR_NAME_LEN 8
26346 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
26348 /* The length of "../". */
26349 #define DOTDOTSLASH_LEN 3
26351 /* Leftover bytes in the buffer, to work around library or OS bugs. */
26352 #define BUF_SLOP 20
26358 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
26359 at least not on a local file system. And if we were to start worrying
26360 about remote file systems, we'd have to enable the wrapper function
26361 all of the time, just to be safe. That's not worth the cost. */
26363 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
26364 - DIR_NAME_SIZE - BUF_SLOP) \
26366 /* FIXME: Assuming there's a system for which this is true,
26367 this should be done in a compile test. */
26370 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
26371 + DIR_NAME_SIZE + BUF_SLOP];
26372 char *cwd = getcwd (buf, PATH_MAX);
26373 size_t initial_cwd_len;
26376 size_t n_chdirs = 0;
26381 cwd_len = initial_cwd_len = strlen (cwd);
26385 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
26388 cwd_len += DIR_NAME_SIZE;
26389 /* If mkdir or chdir fails, it could be that this system cannot create
26390 any file with an absolute name longer than PATH_MAX, such as cygwin.
26391 If so, leave fail as 0, because the current working directory can't
26392 be too long for getcwd if it can't even be created. For other
26393 errors, be pessimistic and consider that as a failure, too. */
26394 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
26396 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
26401 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
26403 c = getcwd (buf, PATH_MAX);
26404 if (!c && errno == ENOENT)
26409 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
26416 if (dotdot_max <= cwd_len - initial_cwd_len)
26418 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
26420 c = getcwd (buf, cwd_len + 1);
26423 if (! (errno == ERANGE || errno == ENOENT
26424 || is_ENAMETOOLONG (errno)))
26429 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
26437 if (c && strlen (c) != cwd_len)
26445 /* Leaving behind such a deep directory is not polite.
26446 So clean up here, right away, even though the driving
26447 shell script would also clean up. */
26451 /* Try rmdir first, in case the chdir failed. */
26453 for (i = 0; i <= n_chdirs; i++)
26455 if (chdir ("..") < 0)
26457 if (rmdir (DIR_NAME) != 0)
26467 rm -f conftest$ac_exeext
26468 if { (ac_try="$ac_link"
26469 case "(($ac_try" in
26470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471 *) ac_try_echo=$ac_try;;
26473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26474 $as_echo "$ac_try_echo") >&5
26475 (eval "$ac_link") 2>&5
26477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26479 { (case "(($ac_try" in
26480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26481 *) ac_try_echo=$ac_try;;
26483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26484 $as_echo "$ac_try_echo") >&5
26485 (eval "$ac_try") 2>&5
26487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); }; }; then
26489 gl_cv_func_getcwd_path_max=yes
26491 $as_echo "$as_me: program exited with status $ac_status" >&5
26492 $as_echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26495 ( exit $ac_status )
26497 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
26498 *) gl_cv_func_getcwd_path_max=no;;
26501 rm -rf conftest.dSYM
26502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26508 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
26509 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
26510 case $gl_cv_func_getcwd_path_max in
26513 cat >>confdefs.h <<\_ACEOF
26514 #define HAVE_PARTLY_WORKING_GETCWD 1
26525 for ac_func in getpagesize
26527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26528 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26529 $as_echo_n "checking for $ac_func... " >&6; }
26530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26531 $as_echo_n "(cached) " >&6
26533 cat >conftest.$ac_ext <<_ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26541 #define $ac_func innocuous_$ac_func
26543 /* System header to define __stub macros and hopefully few prototypes,
26544 which can conflict with char $ac_func (); below.
26545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26546 <limits.h> exists even on freestanding compilers. */
26549 # include <limits.h>
26551 # include <assert.h>
26556 /* Override any GCC internal prototype to avoid an error.
26557 Use char because int might match the return type of a GCC
26558 builtin and then its argument prototype would still apply. */
26563 /* The GNU C library defines this for functions which it implements
26564 to always fail with ENOSYS. Some functions are actually named
26565 something starting with __ and the normal name is an alias. */
26566 #if defined __stub_$ac_func || defined __stub___$ac_func
26573 return $ac_func ();
26578 rm -f conftest.$ac_objext conftest$ac_exeext
26579 if { (ac_try="$ac_link"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26585 $as_echo "$ac_try_echo") >&5
26586 (eval "$ac_link") 2>conftest.er1
26588 grep -v '^ *+' conftest.er1 >conftest.err
26590 cat conftest.err >&5
26591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } && {
26593 test -z "$ac_c_werror_flag" ||
26594 test ! -s conftest.err
26595 } && test -s conftest$ac_exeext && {
26596 test "$cross_compiling" = yes ||
26597 $as_test_x conftest$ac_exeext
26599 eval "$as_ac_var=yes"
26601 $as_echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26604 eval "$as_ac_var=no"
26607 rm -rf conftest.dSYM
26608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26609 conftest$ac_exeext conftest.$ac_ext
26611 ac_res=`eval 'as_val=${'$as_ac_var'}
26612 $as_echo "$as_val"'`
26613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26614 $as_echo "$ac_res" >&6; }
26615 as_val=`eval 'as_val=${'$as_ac_var'}
26616 $as_echo "$as_val"'`
26617 if test "x$as_val" = x""yes; then
26618 cat >>confdefs.h <<_ACEOF
26619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26625 { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
26626 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
26627 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
26628 $as_echo_n "(cached) " >&6
26630 # Remove any remnants of a previous test.
26631 rm -rf confdir-14B---
26632 # Arrange for deletion of the temporary directory this test creates.
26633 ac_clean_files="$ac_clean_files confdir-14B---"
26634 if test "$cross_compiling" = yes; then
26635 gl_cv_func_getcwd_abort_bug=yes
26637 cat >conftest.$ac_ext <<_ACEOF
26640 cat confdefs.h >>conftest.$ac_ext
26641 cat >>conftest.$ac_ext <<_ACEOF
26642 /* end confdefs.h. */
26644 #include <stdlib.h>
26645 #include <unistd.h>
26646 #include <limits.h>
26647 #include <string.h>
26648 #include <sys/stat.h>
26650 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
26654 # define S_IRWXU 0700
26657 /* FIXME: skip the run-test altogether on systems without getpagesize. */
26658 #if ! HAVE_GETPAGESIZE
26659 # define getpagesize() 0
26662 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
26663 the 16kB pagesize on ia64 linux. Those conditions make the code below
26664 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
26665 #define TARGET_LEN (5 * 1024)
26670 char const *dir_name = "confdir-14B---";
26672 size_t initial_cwd_len;
26674 size_t desired_depth;
26677 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
26678 this relative expensive and invasive test if that's not true. */
26679 if (getpagesize () <= PATH_MAX)
26682 cwd = getcwd (NULL, 0);
26686 initial_cwd_len = strlen (cwd);
26688 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
26689 / (1 + strlen (dir_name)));
26690 for (d = 0; d < desired_depth; d++)
26692 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
26694 fail = 3; /* Unable to construct deep hierarchy. */
26699 /* If libc has the bug in question, this invocation of getcwd
26700 results in a failed assertion. */
26701 cwd = getcwd (NULL, 0);
26703 fail = 4; /* getcwd failed. This is ok, and expected. */
26706 /* Call rmdir first, in case the above chdir failed. */
26710 if (chdir ("..") < 0)
26719 rm -f conftest$ac_exeext
26720 if { (ac_try="$ac_link"
26721 case "(($ac_try" in
26722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723 *) ac_try_echo=$ac_try;;
26725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26726 $as_echo "$ac_try_echo") >&5
26727 (eval "$ac_link") 2>&5
26729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26731 { (case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26736 $as_echo "$ac_try_echo") >&5
26737 (eval "$ac_try") 2>&5
26739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; }; then
26741 gl_cv_func_getcwd_abort_bug=no
26743 $as_echo "$as_me: program exited with status $ac_status" >&5
26744 $as_echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26747 ( exit $ac_status )
26748 gl_cv_func_getcwd_abort_bug=yes
26750 rm -rf conftest.dSYM
26751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26757 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
26758 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
26759 if test $gl_cv_func_getcwd_abort_bug = yes; then
26766 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
26778 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
26792 cat >>confdefs.h <<\_ACEOF
26793 #define GNULIB_GETCWD 1
26804 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26805 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
26806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26807 $as_echo_n "(cached) " >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <sys/types.h>
26816 #include <$ac_cv_struct_tm>
26822 static struct tm ac_aggr;
26823 if (ac_aggr.tm_zone)
26829 rm -f conftest.$ac_objext
26830 if { (ac_try="$ac_compile"
26831 case "(($ac_try" in
26832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833 *) ac_try_echo=$ac_try;;
26835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26836 $as_echo "$ac_try_echo") >&5
26837 (eval "$ac_compile") 2>conftest.er1
26839 grep -v '^ *+' conftest.er1 >conftest.err
26841 cat conftest.err >&5
26842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } && {
26844 test -z "$ac_c_werror_flag" ||
26845 test ! -s conftest.err
26846 } && test -s conftest.$ac_objext; then
26847 ac_cv_member_struct_tm_tm_zone=yes
26849 $as_echo "$as_me: failed program was:" >&5
26850 sed 's/^/| /' conftest.$ac_ext >&5
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 #include <sys/types.h>
26859 #include <$ac_cv_struct_tm>
26865 static struct tm ac_aggr;
26866 if (sizeof ac_aggr.tm_zone)
26872 rm -f conftest.$ac_objext
26873 if { (ac_try="$ac_compile"
26874 case "(($ac_try" in
26875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876 *) ac_try_echo=$ac_try;;
26878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26879 $as_echo "$ac_try_echo") >&5
26880 (eval "$ac_compile") 2>conftest.er1
26882 grep -v '^ *+' conftest.er1 >conftest.err
26884 cat conftest.err >&5
26885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } && {
26887 test -z "$ac_c_werror_flag" ||
26888 test ! -s conftest.err
26889 } && test -s conftest.$ac_objext; then
26890 ac_cv_member_struct_tm_tm_zone=yes
26892 $as_echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26895 ac_cv_member_struct_tm_tm_zone=no
26898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26904 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
26905 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
26907 cat >>confdefs.h <<_ACEOF
26908 #define HAVE_STRUCT_TM_TM_ZONE 1
26914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26916 cat >>confdefs.h <<\_ACEOF
26917 #define HAVE_TM_ZONE 1
26921 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26922 $as_echo_n "checking whether tzname is declared... " >&6; }
26923 if test "${ac_cv_have_decl_tzname+set}" = set; then
26924 $as_echo_n "(cached) " >&6
26926 cat >conftest.$ac_ext <<_ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h. */
26945 rm -f conftest.$ac_objext
26946 if { (ac_try="$ac_compile"
26947 case "(($ac_try" in
26948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949 *) ac_try_echo=$ac_try;;
26951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26952 $as_echo "$ac_try_echo") >&5
26953 (eval "$ac_compile") 2>conftest.er1
26955 grep -v '^ *+' conftest.er1 >conftest.err
26957 cat conftest.err >&5
26958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } && {
26960 test -z "$ac_c_werror_flag" ||
26961 test ! -s conftest.err
26962 } && test -s conftest.$ac_objext; then
26963 ac_cv_have_decl_tzname=yes
26965 $as_echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26968 ac_cv_have_decl_tzname=no
26971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26973 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26974 $as_echo "$ac_cv_have_decl_tzname" >&6; }
26975 if test "x$ac_cv_have_decl_tzname" = x""yes; then
26977 cat >>confdefs.h <<_ACEOF
26978 #define HAVE_DECL_TZNAME 1
26983 cat >>confdefs.h <<_ACEOF
26984 #define HAVE_DECL_TZNAME 0
26991 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
26992 $as_echo_n "checking for tzname... " >&6; }
26993 if test "${ac_cv_var_tzname+set}" = set; then
26994 $as_echo_n "(cached) " >&6
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27003 #if !HAVE_DECL_TZNAME
27004 extern char *tzname[];
27010 return tzname[0][0];
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27022 $as_echo "$ac_try_echo") >&5
27023 (eval "$ac_link") 2>conftest.er1
27025 grep -v '^ *+' conftest.er1 >conftest.err
27027 cat conftest.err >&5
27028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } && {
27030 test -z "$ac_c_werror_flag" ||
27031 test ! -s conftest.err
27032 } && test -s conftest$ac_exeext && {
27033 test "$cross_compiling" = yes ||
27034 $as_test_x conftest$ac_exeext
27036 ac_cv_var_tzname=yes
27038 $as_echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27041 ac_cv_var_tzname=no
27044 rm -rf conftest.dSYM
27045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27046 conftest$ac_exeext conftest.$ac_ext
27048 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27049 $as_echo "$ac_cv_var_tzname" >&6; }
27050 if test $ac_cv_var_tzname = yes; then
27052 cat >>confdefs.h <<\_ACEOF
27053 #define HAVE_TZNAME 1
27061 cat >conftest.$ac_ext <<_ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h. */
27068 #include <time.h> /* for time_t */
27069 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
27070 #define TYPE_MINIMUM(t) \
27071 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
27072 #define TYPE_MAXIMUM(t) \
27073 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
27074 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
27075 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
27078 rm -f conftest.$ac_objext
27079 if { (ac_try="$ac_compile"
27080 case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27085 $as_echo "$ac_try_echo") >&5
27086 (eval "$ac_compile") 2>conftest.er1
27088 grep -v '^ *+' conftest.er1 >conftest.err
27090 cat conftest.err >&5
27091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } && {
27093 test -z "$ac_c_werror_flag" ||
27094 test ! -s conftest.err
27095 } && test -s conftest.$ac_objext; then
27097 cat >>confdefs.h <<\_ACEOF
27098 #define TIME_T_FITS_IN_LONG_INT 1
27103 $as_echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27127 if test $ac_cv_func_getdelim = yes; then
27128 { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
27129 $as_echo_n "checking for working getdelim function... " >&6; }
27130 if test "${gl_cv_func_working_getdelim+set}" = set; then
27131 $as_echo_n "(cached) " >&6
27133 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
27134 if test "$cross_compiling" = yes; then
27135 cat >conftest.$ac_ext <<_ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h. */
27142 #include <features.h>
27143 #ifdef __GNU_LIBRARY__
27144 #if (__GLIBC__ >= 2)
27150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27151 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
27152 gl_cv_func_working_getdelim=yes
27154 gl_cv_func_working_getdelim=no
27160 cat >conftest.$ac_ext <<_ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27167 # include <stdio.h>
27168 # include <stdlib.h>
27169 # include <string.h>
27172 FILE *in = fopen ("./conftest.data", "r");
27176 /* Test result for a NULL buffer and a zero size.
27177 Based on a test program from Karl Heuer. */
27180 int len = getdelim (&line, &siz, '\n', in);
27181 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
27185 /* Test result for a NULL buffer and a non-zero size.
27186 This crashes on FreeBSD 8.0. */
27188 size_t siz = (size_t)(~0) / 4;
27189 if (getdelim (&line, &siz, '\n', in) == -1)
27196 rm -f conftest$ac_exeext
27197 if { (ac_try="$ac_link"
27198 case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27203 $as_echo "$ac_try_echo") >&5
27204 (eval "$ac_link") 2>&5
27206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27213 $as_echo "$ac_try_echo") >&5
27214 (eval "$ac_try") 2>&5
27216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); }; }; then
27218 gl_cv_func_working_getdelim=yes
27220 $as_echo "$as_me: program exited with status $ac_status" >&5
27221 $as_echo "$as_me: failed program was:" >&5
27222 sed 's/^/| /' conftest.$ac_ext >&5
27224 ( exit $ac_status )
27225 gl_cv_func_working_getdelim=no
27227 rm -rf conftest.dSYM
27228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27233 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
27234 $as_echo "$gl_cv_func_working_getdelim" >&6; }
27236 gl_cv_func_working_getdelim=no
27239 if test $ac_cv_have_decl_getdelim = no; then
27240 HAVE_DECL_GETDELIM=0
27243 if test $gl_cv_func_working_getdelim = no; then
27244 if test $ac_cv_func_getdelim = yes; then
27255 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
27260 for ac_func in flockfile funlockfile
27262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27264 $as_echo_n "checking for $ac_func... " >&6; }
27265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27266 $as_echo_n "(cached) " >&6
27268 cat >conftest.$ac_ext <<_ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h. */
27274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27276 #define $ac_func innocuous_$ac_func
27278 /* System header to define __stub macros and hopefully few prototypes,
27279 which can conflict with char $ac_func (); below.
27280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27281 <limits.h> exists even on freestanding compilers. */
27284 # include <limits.h>
27286 # include <assert.h>
27291 /* Override any GCC internal prototype to avoid an error.
27292 Use char because int might match the return type of a GCC
27293 builtin and then its argument prototype would still apply. */
27298 /* The GNU C library defines this for functions which it implements
27299 to always fail with ENOSYS. Some functions are actually named
27300 something starting with __ and the normal name is an alias. */
27301 #if defined __stub_$ac_func || defined __stub___$ac_func
27308 return $ac_func ();
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (ac_try="$ac_link"
27315 case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27320 $as_echo "$ac_try_echo") >&5
27321 (eval "$ac_link") 2>conftest.er1
27323 grep -v '^ *+' conftest.er1 >conftest.err
27325 cat conftest.err >&5
27326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); } && {
27328 test -z "$ac_c_werror_flag" ||
27329 test ! -s conftest.err
27330 } && test -s conftest$ac_exeext && {
27331 test "$cross_compiling" = yes ||
27332 $as_test_x conftest$ac_exeext
27334 eval "$as_ac_var=yes"
27336 $as_echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27339 eval "$as_ac_var=no"
27342 rm -rf conftest.dSYM
27343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27344 conftest$ac_exeext conftest.$ac_ext
27346 ac_res=`eval 'as_val=${'$as_ac_var'}
27347 $as_echo "$as_val"'`
27348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27349 $as_echo "$ac_res" >&6; }
27350 as_val=`eval 'as_val=${'$as_ac_var'}
27351 $as_echo "$as_val"'`
27352 if test "x$as_val" = x""yes; then
27353 cat >>confdefs.h <<_ACEOF
27354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27360 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27361 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
27362 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27363 $as_echo_n "(cached) " >&6
27365 cat >conftest.$ac_ext <<_ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h. */
27371 $ac_includes_default
27375 #ifndef getc_unlocked
27376 (void) getc_unlocked;
27383 rm -f conftest.$ac_objext
27384 if { (ac_try="$ac_compile"
27385 case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27390 $as_echo "$ac_try_echo") >&5
27391 (eval "$ac_compile") 2>conftest.er1
27393 grep -v '^ *+' conftest.er1 >conftest.err
27395 cat conftest.err >&5
27396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } && {
27398 test -z "$ac_c_werror_flag" ||
27399 test ! -s conftest.err
27400 } && test -s conftest.$ac_objext; then
27401 ac_cv_have_decl_getc_unlocked=yes
27403 $as_echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27406 ac_cv_have_decl_getc_unlocked=no
27409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27411 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
27412 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
27413 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
27415 cat >>confdefs.h <<_ACEOF
27416 #define HAVE_DECL_GETC_UNLOCKED 1
27421 cat >>confdefs.h <<_ACEOF
27422 #define HAVE_DECL_GETC_UNLOCKED 0
27437 cat >>confdefs.h <<\_ACEOF
27438 #define GNULIB_GETDELIM 1
27451 if test $ac_cv_func_getdtablesize != yes; then
27452 HAVE_GETDTABLESIZE=0
27461 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
27467 GNULIB_GETDTABLESIZE=1
27470 cat >>confdefs.h <<\_ACEOF
27471 #define GNULIB_GETDTABLESIZE 1
27486 gl_getline_needs_run_time_check=no
27487 { $as_echo "$as_me:$LINENO: checking for getline" >&5
27488 $as_echo_n "checking for getline... " >&6; }
27489 if test "${ac_cv_func_getline+set}" = set; then
27490 $as_echo_n "(cached) " >&6
27492 cat >conftest.$ac_ext <<_ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h. */
27498 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
27499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27500 #define getline innocuous_getline
27502 /* System header to define __stub macros and hopefully few prototypes,
27503 which can conflict with char getline (); below.
27504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27505 <limits.h> exists even on freestanding compilers. */
27508 # include <limits.h>
27510 # include <assert.h>
27515 /* Override any GCC internal prototype to avoid an error.
27516 Use char because int might match the return type of a GCC
27517 builtin and then its argument prototype would still apply. */
27522 /* The GNU C library defines this for functions which it implements
27523 to always fail with ENOSYS. Some functions are actually named
27524 something starting with __ and the normal name is an alias. */
27525 #if defined __stub_getline || defined __stub___getline
27537 rm -f conftest.$ac_objext conftest$ac_exeext
27538 if { (ac_try="$ac_link"
27539 case "(($ac_try" in
27540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27541 *) ac_try_echo=$ac_try;;
27543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27544 $as_echo "$ac_try_echo") >&5
27545 (eval "$ac_link") 2>conftest.er1
27547 grep -v '^ *+' conftest.er1 >conftest.err
27549 cat conftest.err >&5
27550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } && {
27552 test -z "$ac_c_werror_flag" ||
27553 test ! -s conftest.err
27554 } && test -s conftest$ac_exeext && {
27555 test "$cross_compiling" = yes ||
27556 $as_test_x conftest$ac_exeext
27558 ac_cv_func_getline=yes
27560 $as_echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27563 ac_cv_func_getline=no
27566 rm -rf conftest.dSYM
27567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27568 conftest$ac_exeext conftest.$ac_ext
27570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
27571 $as_echo "$ac_cv_func_getline" >&6; }
27572 if test "x$ac_cv_func_getline" = x""yes; then
27573 gl_getline_needs_run_time_check=yes
27575 am_cv_func_working_getline=no
27578 if test $gl_getline_needs_run_time_check = yes; then
27579 { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
27580 $as_echo_n "checking for working getline function... " >&6; }
27581 if test "${am_cv_func_working_getline+set}" = set; then
27582 $as_echo_n "(cached) " >&6
27584 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
27585 if test "$cross_compiling" = yes; then
27586 cat >conftest.$ac_ext <<_ACEOF
27589 cat confdefs.h >>conftest.$ac_ext
27590 cat >>conftest.$ac_ext <<_ACEOF
27591 /* end confdefs.h. */
27593 #include <features.h>
27594 #ifdef __GNU_LIBRARY__
27595 #if (__GLIBC__ >= 2)
27601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27602 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
27603 am_cv_func_working_getline=yes
27605 am_cv_func_working_getline=no
27611 cat >conftest.$ac_ext <<_ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27618 # include <stdio.h>
27619 # include <stdlib.h>
27620 # include <string.h>
27623 FILE *in = fopen ("./conftest.data", "r");
27627 /* Test result for a NULL buffer and a zero size.
27628 Based on a test program from Karl Heuer. */
27631 int len = getline (&line, &siz, in);
27632 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
27636 /* Test result for a NULL buffer and a non-zero size.
27637 This crashes on FreeBSD 8.0. */
27639 size_t siz = (size_t)(~0) / 4;
27640 if (getline (&line, &siz, in) == -1)
27647 rm -f conftest$ac_exeext
27648 if { (ac_try="$ac_link"
27649 case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27654 $as_echo "$ac_try_echo") >&5
27655 (eval "$ac_link") 2>&5
27657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27659 { (case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27664 $as_echo "$ac_try_echo") >&5
27665 (eval "$ac_try") 2>&5
27667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); }; }; then
27669 am_cv_func_working_getline=yes
27671 $as_echo "$as_me: program exited with status $ac_status" >&5
27672 $as_echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 ( exit $ac_status )
27676 am_cv_func_working_getline=no
27678 rm -rf conftest.dSYM
27679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27684 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
27685 $as_echo "$am_cv_func_working_getline" >&6; }
27688 if test $ac_cv_have_decl_getline = no; then
27689 HAVE_DECL_GETLINE=0
27692 if test $am_cv_func_working_getline = no; then
27702 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
27722 if test $ac_cv_func_getdelim = yes; then
27723 { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
27724 $as_echo_n "checking for working getdelim function... " >&6; }
27725 if test "${gl_cv_func_working_getdelim+set}" = set; then
27726 $as_echo_n "(cached) " >&6
27728 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
27729 if test "$cross_compiling" = yes; then
27730 cat >conftest.$ac_ext <<_ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27737 #include <features.h>
27738 #ifdef __GNU_LIBRARY__
27739 #if (__GLIBC__ >= 2)
27745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27746 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
27747 gl_cv_func_working_getdelim=yes
27749 gl_cv_func_working_getdelim=no
27755 cat >conftest.$ac_ext <<_ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27762 # include <stdio.h>
27763 # include <stdlib.h>
27764 # include <string.h>
27767 FILE *in = fopen ("./conftest.data", "r");
27771 /* Test result for a NULL buffer and a zero size.
27772 Based on a test program from Karl Heuer. */
27775 int len = getdelim (&line, &siz, '\n', in);
27776 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
27780 /* Test result for a NULL buffer and a non-zero size.
27781 This crashes on FreeBSD 8.0. */
27783 size_t siz = (size_t)(~0) / 4;
27784 if (getdelim (&line, &siz, '\n', in) == -1)
27791 rm -f conftest$ac_exeext
27792 if { (ac_try="$ac_link"
27793 case "(($ac_try" in
27794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27795 *) ac_try_echo=$ac_try;;
27797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27798 $as_echo "$ac_try_echo") >&5
27799 (eval "$ac_link") 2>&5
27801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27803 { (case "(($ac_try" in
27804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805 *) ac_try_echo=$ac_try;;
27807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27808 $as_echo "$ac_try_echo") >&5
27809 (eval "$ac_try") 2>&5
27811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 gl_cv_func_working_getdelim=yes
27815 $as_echo "$as_me: program exited with status $ac_status" >&5
27816 $as_echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27819 ( exit $ac_status )
27820 gl_cv_func_working_getdelim=no
27822 rm -rf conftest.dSYM
27823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27828 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
27829 $as_echo "$gl_cv_func_working_getdelim" >&6; }
27831 gl_cv_func_working_getdelim=no
27834 if test $ac_cv_have_decl_getdelim = no; then
27835 HAVE_DECL_GETDELIM=0
27838 if test $gl_cv_func_working_getdelim = no; then
27839 if test $ac_cv_func_getdelim = yes; then
27850 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
27855 for ac_func in flockfile funlockfile
27857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27858 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27859 $as_echo_n "checking for $ac_func... " >&6; }
27860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27861 $as_echo_n "(cached) " >&6
27863 cat >conftest.$ac_ext <<_ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h. */
27869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27871 #define $ac_func innocuous_$ac_func
27873 /* System header to define __stub macros and hopefully few prototypes,
27874 which can conflict with char $ac_func (); below.
27875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27876 <limits.h> exists even on freestanding compilers. */
27879 # include <limits.h>
27881 # include <assert.h>
27886 /* Override any GCC internal prototype to avoid an error.
27887 Use char because int might match the return type of a GCC
27888 builtin and then its argument prototype would still apply. */
27893 /* The GNU C library defines this for functions which it implements
27894 to always fail with ENOSYS. Some functions are actually named
27895 something starting with __ and the normal name is an alias. */
27896 #if defined __stub_$ac_func || defined __stub___$ac_func
27903 return $ac_func ();
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (ac_try="$ac_link"
27910 case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27915 $as_echo "$ac_try_echo") >&5
27916 (eval "$ac_link") 2>conftest.er1
27918 grep -v '^ *+' conftest.er1 >conftest.err
27920 cat conftest.err >&5
27921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); } && {
27923 test -z "$ac_c_werror_flag" ||
27924 test ! -s conftest.err
27925 } && test -s conftest$ac_exeext && {
27926 test "$cross_compiling" = yes ||
27927 $as_test_x conftest$ac_exeext
27929 eval "$as_ac_var=yes"
27931 $as_echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27934 eval "$as_ac_var=no"
27937 rm -rf conftest.dSYM
27938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27939 conftest$ac_exeext conftest.$ac_ext
27941 ac_res=`eval 'as_val=${'$as_ac_var'}
27942 $as_echo "$as_val"'`
27943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27944 $as_echo "$ac_res" >&6; }
27945 as_val=`eval 'as_val=${'$as_ac_var'}
27946 $as_echo "$as_val"'`
27947 if test "x$as_val" = x""yes; then
27948 cat >>confdefs.h <<_ACEOF
27949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27955 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27956 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
27957 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27958 $as_echo_n "(cached) " >&6
27960 cat >conftest.$ac_ext <<_ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27966 $ac_includes_default
27970 #ifndef getc_unlocked
27971 (void) getc_unlocked;
27978 rm -f conftest.$ac_objext
27979 if { (ac_try="$ac_compile"
27980 case "(($ac_try" in
27981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982 *) ac_try_echo=$ac_try;;
27984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27985 $as_echo "$ac_try_echo") >&5
27986 (eval "$ac_compile") 2>conftest.er1
27988 grep -v '^ *+' conftest.er1 >conftest.err
27990 cat conftest.err >&5
27991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } && {
27993 test -z "$ac_c_werror_flag" ||
27994 test ! -s conftest.err
27995 } && test -s conftest.$ac_objext; then
27996 ac_cv_have_decl_getc_unlocked=yes
27998 $as_echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 ac_cv_have_decl_getc_unlocked=no
28004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28006 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28007 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
28008 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
28010 cat >>confdefs.h <<_ACEOF
28011 #define HAVE_DECL_GETC_UNLOCKED 1
28016 cat >>confdefs.h <<_ACEOF
28017 #define HAVE_DECL_GETC_UNLOCKED 0
28035 cat >>confdefs.h <<\_ACEOF
28036 #define GNULIB_GETLINE 1
28048 cat >>confdefs.h <<\_ACEOF
28049 #define GNULIB_GETOPT_GNU 1
28058 if test -n "$gl_replace_getopt"; then
28064 cat >>confdefs.h <<\_ACEOF
28065 #define __GETOPT_PREFIX rpl_
28070 GNULIB_UNISTD_H_GETOPT=1
28079 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
28089 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
28107 for ac_func in getpagesize
28109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28110 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28111 $as_echo_n "checking for $ac_func... " >&6; }
28112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28113 $as_echo_n "(cached) " >&6
28115 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28123 #define $ac_func innocuous_$ac_func
28125 /* System header to define __stub macros and hopefully few prototypes,
28126 which can conflict with char $ac_func (); below.
28127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28128 <limits.h> exists even on freestanding compilers. */
28131 # include <limits.h>
28133 # include <assert.h>
28138 /* Override any GCC internal prototype to avoid an error.
28139 Use char because int might match the return type of a GCC
28140 builtin and then its argument prototype would still apply. */
28145 /* The GNU C library defines this for functions which it implements
28146 to always fail with ENOSYS. Some functions are actually named
28147 something starting with __ and the normal name is an alias. */
28148 #if defined __stub_$ac_func || defined __stub___$ac_func
28155 return $ac_func ();
28160 rm -f conftest.$ac_objext conftest$ac_exeext
28161 if { (ac_try="$ac_link"
28162 case "(($ac_try" in
28163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164 *) ac_try_echo=$ac_try;;
28166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28167 $as_echo "$ac_try_echo") >&5
28168 (eval "$ac_link") 2>conftest.er1
28170 grep -v '^ *+' conftest.er1 >conftest.err
28172 cat conftest.err >&5
28173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } && {
28175 test -z "$ac_c_werror_flag" ||
28176 test ! -s conftest.err
28177 } && test -s conftest$ac_exeext && {
28178 test "$cross_compiling" = yes ||
28179 $as_test_x conftest$ac_exeext
28181 eval "$as_ac_var=yes"
28183 $as_echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28186 eval "$as_ac_var=no"
28189 rm -rf conftest.dSYM
28190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28191 conftest$ac_exeext conftest.$ac_ext
28193 ac_res=`eval 'as_val=${'$as_ac_var'}
28194 $as_echo "$as_val"'`
28195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28196 $as_echo "$ac_res" >&6; }
28197 as_val=`eval 'as_val=${'$as_ac_var'}
28198 $as_echo "$as_val"'`
28199 if test "x$as_val" = x""yes; then
28200 cat >>confdefs.h <<_ACEOF
28201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28207 if test $ac_cv_func_getpagesize = no; then
28210 for ac_header in OS.h
28212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28215 $as_echo_n "checking for $ac_header... " >&6; }
28216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28217 $as_echo_n "(cached) " >&6
28219 ac_res=`eval 'as_val=${'$as_ac_Header'}
28220 $as_echo "$as_val"'`
28221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28222 $as_echo "$ac_res" >&6; }
28224 # Is the header compilable?
28225 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28226 $as_echo_n "checking $ac_header usability... " >&6; }
28227 cat >conftest.$ac_ext <<_ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h. */
28233 $ac_includes_default
28234 #include <$ac_header>
28236 rm -f conftest.$ac_objext
28237 if { (ac_try="$ac_compile"
28238 case "(($ac_try" in
28239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240 *) ac_try_echo=$ac_try;;
28242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28243 $as_echo "$ac_try_echo") >&5
28244 (eval "$ac_compile") 2>conftest.er1
28246 grep -v '^ *+' conftest.er1 >conftest.err
28248 cat conftest.err >&5
28249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); } && {
28251 test -z "$ac_c_werror_flag" ||
28252 test ! -s conftest.err
28253 } && test -s conftest.$ac_objext; then
28254 ac_header_compiler=yes
28256 $as_echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28259 ac_header_compiler=no
28262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28263 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28264 $as_echo "$ac_header_compiler" >&6; }
28266 # Is the header present?
28267 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28268 $as_echo_n "checking $ac_header presence... " >&6; }
28269 cat >conftest.$ac_ext <<_ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28275 #include <$ac_header>
28277 if { (ac_try="$ac_cpp conftest.$ac_ext"
28278 case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28283 $as_echo "$ac_try_echo") >&5
28284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28286 grep -v '^ *+' conftest.er1 >conftest.err
28288 cat conftest.err >&5
28289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } >/dev/null && {
28291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28292 test ! -s conftest.err
28294 ac_header_preproc=yes
28296 $as_echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.$ac_ext >&5
28299 ac_header_preproc=no
28302 rm -f conftest.err conftest.$ac_ext
28303 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28304 $as_echo "$ac_header_preproc" >&6; }
28306 # So? What about this header?
28307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28310 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28313 ac_header_preproc=yes
28316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28317 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28319 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28321 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28323 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28325 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28327 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28329 ## ------------------------------ ##
28330 ## Report this to bug-tar@gnu.org ##
28331 ## ------------------------------ ##
28333 ) | sed "s/^/$as_me: WARNING: /" >&2
28336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28337 $as_echo_n "checking for $ac_header... " >&6; }
28338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28339 $as_echo_n "(cached) " >&6
28341 eval "$as_ac_Header=\$ac_header_preproc"
28343 ac_res=`eval 'as_val=${'$as_ac_Header'}
28344 $as_echo "$as_val"'`
28345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28346 $as_echo "$ac_res" >&6; }
28349 as_val=`eval 'as_val=${'$as_ac_Header'}
28350 $as_echo "$as_val"'`
28351 if test "x$as_val" = x""yes; then
28352 cat >>confdefs.h <<_ACEOF
28353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28360 if test $ac_cv_header_OS_h = yes; then
28364 for ac_header in sys/param.h
28366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28368 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28369 $as_echo_n "checking for $ac_header... " >&6; }
28370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28371 $as_echo_n "(cached) " >&6
28373 ac_res=`eval 'as_val=${'$as_ac_Header'}
28374 $as_echo "$as_val"'`
28375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28376 $as_echo "$ac_res" >&6; }
28378 # Is the header compilable?
28379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28380 $as_echo_n "checking $ac_header usability... " >&6; }
28381 cat >conftest.$ac_ext <<_ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h. */
28387 $ac_includes_default
28388 #include <$ac_header>
28390 rm -f conftest.$ac_objext
28391 if { (ac_try="$ac_compile"
28392 case "(($ac_try" in
28393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394 *) ac_try_echo=$ac_try;;
28396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28397 $as_echo "$ac_try_echo") >&5
28398 (eval "$ac_compile") 2>conftest.er1
28400 grep -v '^ *+' conftest.er1 >conftest.err
28402 cat conftest.err >&5
28403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); } && {
28405 test -z "$ac_c_werror_flag" ||
28406 test ! -s conftest.err
28407 } && test -s conftest.$ac_objext; then
28408 ac_header_compiler=yes
28410 $as_echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28413 ac_header_compiler=no
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28418 $as_echo "$ac_header_compiler" >&6; }
28420 # Is the header present?
28421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28422 $as_echo_n "checking $ac_header presence... " >&6; }
28423 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28429 #include <$ac_header>
28431 if { (ac_try="$ac_cpp conftest.$ac_ext"
28432 case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28437 $as_echo "$ac_try_echo") >&5
28438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28440 grep -v '^ *+' conftest.er1 >conftest.err
28442 cat conftest.err >&5
28443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } >/dev/null && {
28445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28446 test ! -s conftest.err
28448 ac_header_preproc=yes
28450 $as_echo "$as_me: failed program was:" >&5
28451 sed 's/^/| /' conftest.$ac_ext >&5
28453 ac_header_preproc=no
28456 rm -f conftest.err conftest.$ac_ext
28457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28458 $as_echo "$ac_header_preproc" >&6; }
28460 # So? What about this header?
28461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28467 ac_header_preproc=yes
28470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28473 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28477 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28483 ## ------------------------------ ##
28484 ## Report this to bug-tar@gnu.org ##
28485 ## ------------------------------ ##
28487 ) | sed "s/^/$as_me: WARNING: /" >&2
28490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28491 $as_echo_n "checking for $ac_header... " >&6; }
28492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28493 $as_echo_n "(cached) " >&6
28495 eval "$as_ac_Header=\$ac_header_preproc"
28497 ac_res=`eval 'as_val=${'$as_ac_Header'}
28498 $as_echo "$as_val"'`
28499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28500 $as_echo "$ac_res" >&6; }
28503 as_val=`eval 'as_val=${'$as_ac_Header'}
28504 $as_echo "$as_val"'`
28505 if test "x$as_val" = x""yes; then
28506 cat >>confdefs.h <<_ACEOF
28507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28514 if test $ac_cv_header_sys_param_h = yes; then
28520 REPLACE_GETPAGESIZE=1
28529 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
28536 GNULIB_GETPAGESIZE=1
28539 cat >>confdefs.h <<\_ACEOF
28540 #define GNULIB_GETPAGESIZE 1
28557 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
28582 gl_gettimeofday_timezone=void
28583 if test $ac_cv_func_gettimeofday != yes; then
28584 HAVE_GETTIMEOFDAY=0
28593 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
28597 for ac_header in sys/timeb.h
28599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28602 $as_echo_n "checking for $ac_header... " >&6; }
28603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28604 $as_echo_n "(cached) " >&6
28606 ac_res=`eval 'as_val=${'$as_ac_Header'}
28607 $as_echo "$as_val"'`
28608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28609 $as_echo "$ac_res" >&6; }
28611 # Is the header compilable?
28612 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28613 $as_echo_n "checking $ac_header usability... " >&6; }
28614 cat >conftest.$ac_ext <<_ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h. */
28620 $ac_includes_default
28621 #include <$ac_header>
28623 rm -f conftest.$ac_objext
28624 if { (ac_try="$ac_compile"
28625 case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28630 $as_echo "$ac_try_echo") >&5
28631 (eval "$ac_compile") 2>conftest.er1
28633 grep -v '^ *+' conftest.er1 >conftest.err
28635 cat conftest.err >&5
28636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } && {
28638 test -z "$ac_c_werror_flag" ||
28639 test ! -s conftest.err
28640 } && test -s conftest.$ac_objext; then
28641 ac_header_compiler=yes
28643 $as_echo "$as_me: failed program was:" >&5
28644 sed 's/^/| /' conftest.$ac_ext >&5
28646 ac_header_compiler=no
28649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28651 $as_echo "$ac_header_compiler" >&6; }
28653 # Is the header present?
28654 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28655 $as_echo_n "checking $ac_header presence... " >&6; }
28656 cat >conftest.$ac_ext <<_ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h. */
28662 #include <$ac_header>
28664 if { (ac_try="$ac_cpp conftest.$ac_ext"
28665 case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28670 $as_echo "$ac_try_echo") >&5
28671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28673 grep -v '^ *+' conftest.er1 >conftest.err
28675 cat conftest.err >&5
28676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); } >/dev/null && {
28678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28679 test ! -s conftest.err
28681 ac_header_preproc=yes
28683 $as_echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28686 ac_header_preproc=no
28689 rm -f conftest.err conftest.$ac_ext
28690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28691 $as_echo "$ac_header_preproc" >&6; }
28693 # So? What about this header?
28694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28697 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28700 ac_header_preproc=yes
28703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28704 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28706 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28708 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28710 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28714 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28716 ## ------------------------------ ##
28717 ## Report this to bug-tar@gnu.org ##
28718 ## ------------------------------ ##
28720 ) | sed "s/^/$as_me: WARNING: /" >&2
28723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28724 $as_echo_n "checking for $ac_header... " >&6; }
28725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28726 $as_echo_n "(cached) " >&6
28728 eval "$as_ac_Header=\$ac_header_preproc"
28730 ac_res=`eval 'as_val=${'$as_ac_Header'}
28731 $as_echo "$as_val"'`
28732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28733 $as_echo "$ac_res" >&6; }
28736 as_val=`eval 'as_val=${'$as_ac_Header'}
28737 $as_echo "$as_val"'`
28738 if test "x$as_val" = x""yes; then
28739 cat >>confdefs.h <<_ACEOF
28740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28748 for ac_func in _ftime
28750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28752 $as_echo_n "checking for $ac_func... " >&6; }
28753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28754 $as_echo_n "(cached) " >&6
28756 cat >conftest.$ac_ext <<_ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h. */
28762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28764 #define $ac_func innocuous_$ac_func
28766 /* System header to define __stub macros and hopefully few prototypes,
28767 which can conflict with char $ac_func (); below.
28768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28769 <limits.h> exists even on freestanding compilers. */
28772 # include <limits.h>
28774 # include <assert.h>
28779 /* Override any GCC internal prototype to avoid an error.
28780 Use char because int might match the return type of a GCC
28781 builtin and then its argument prototype would still apply. */
28786 /* The GNU C library defines this for functions which it implements
28787 to always fail with ENOSYS. Some functions are actually named
28788 something starting with __ and the normal name is an alias. */
28789 #if defined __stub_$ac_func || defined __stub___$ac_func
28796 return $ac_func ();
28801 rm -f conftest.$ac_objext conftest$ac_exeext
28802 if { (ac_try="$ac_link"
28803 case "(($ac_try" in
28804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805 *) ac_try_echo=$ac_try;;
28807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28808 $as_echo "$ac_try_echo") >&5
28809 (eval "$ac_link") 2>conftest.er1
28811 grep -v '^ *+' conftest.er1 >conftest.err
28813 cat conftest.err >&5
28814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } && {
28816 test -z "$ac_c_werror_flag" ||
28817 test ! -s conftest.err
28818 } && test -s conftest$ac_exeext && {
28819 test "$cross_compiling" = yes ||
28820 $as_test_x conftest$ac_exeext
28822 eval "$as_ac_var=yes"
28824 $as_echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.$ac_ext >&5
28827 eval "$as_ac_var=no"
28830 rm -rf conftest.dSYM
28831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28832 conftest$ac_exeext conftest.$ac_ext
28834 ac_res=`eval 'as_val=${'$as_ac_var'}
28835 $as_echo "$as_val"'`
28836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28837 $as_echo "$ac_res" >&6; }
28838 as_val=`eval 'as_val=${'$as_ac_var'}
28839 $as_echo "$as_val"'`
28840 if test "x$as_val" = x""yes; then
28841 cat >>confdefs.h <<_ACEOF
28842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28853 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
28854 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
28855 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
28856 $as_echo_n "(cached) " >&6
28858 if test "$cross_compiling" = yes; then
28859 gl_cv_func_gettimeofday_clobber=yes
28861 cat >conftest.$ac_ext <<_ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28867 #include <string.h>
28868 #include <sys/time.h>
28870 #include <stdlib.h>
28878 struct tm saved_lt;
28880 lt = localtime (&t);
28882 gettimeofday (&tv, NULL);
28883 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
28889 rm -f conftest$ac_exeext
28890 if { (ac_try="$ac_link"
28891 case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28896 $as_echo "$ac_try_echo") >&5
28897 (eval "$ac_link") 2>&5
28899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28901 { (case "(($ac_try" in
28902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903 *) ac_try_echo=$ac_try;;
28905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28906 $as_echo "$ac_try_echo") >&5
28907 (eval "$ac_try") 2>&5
28909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 gl_cv_func_gettimeofday_clobber=no
28913 $as_echo "$as_me: program exited with status $ac_status" >&5
28914 $as_echo "$as_me: failed program was:" >&5
28915 sed 's/^/| /' conftest.$ac_ext >&5
28917 ( exit $ac_status )
28918 gl_cv_func_gettimeofday_clobber=yes
28920 rm -rf conftest.dSYM
28921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28926 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
28927 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
28929 if test $gl_cv_func_gettimeofday_clobber = yes; then
28930 REPLACE_GETTIMEOFDAY=1
28940 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
28944 for ac_header in sys/timeb.h
28946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28949 $as_echo_n "checking for $ac_header... " >&6; }
28950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28951 $as_echo_n "(cached) " >&6
28953 ac_res=`eval 'as_val=${'$as_ac_Header'}
28954 $as_echo "$as_val"'`
28955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28956 $as_echo "$ac_res" >&6; }
28958 # Is the header compilable?
28959 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28960 $as_echo_n "checking $ac_header usability... " >&6; }
28961 cat >conftest.$ac_ext <<_ACEOF
28964 cat confdefs.h >>conftest.$ac_ext
28965 cat >>conftest.$ac_ext <<_ACEOF
28966 /* end confdefs.h. */
28967 $ac_includes_default
28968 #include <$ac_header>
28970 rm -f conftest.$ac_objext
28971 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28980 grep -v '^ *+' conftest.er1 >conftest.err
28982 cat conftest.err >&5
28983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); } && {
28985 test -z "$ac_c_werror_flag" ||
28986 test ! -s conftest.err
28987 } && test -s conftest.$ac_objext; then
28988 ac_header_compiler=yes
28990 $as_echo "$as_me: failed program was:" >&5
28991 sed 's/^/| /' conftest.$ac_ext >&5
28993 ac_header_compiler=no
28996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28997 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28998 $as_echo "$ac_header_compiler" >&6; }
29000 # Is the header present?
29001 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29002 $as_echo_n "checking $ac_header presence... " >&6; }
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29009 #include <$ac_header>
29011 if { (ac_try="$ac_cpp conftest.$ac_ext"
29012 case "(($ac_try" in
29013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014 *) ac_try_echo=$ac_try;;
29016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29017 $as_echo "$ac_try_echo") >&5
29018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29020 grep -v '^ *+' conftest.er1 >conftest.err
29022 cat conftest.err >&5
29023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); } >/dev/null && {
29025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29026 test ! -s conftest.err
29028 ac_header_preproc=yes
29030 $as_echo "$as_me: failed program was:" >&5
29031 sed 's/^/| /' conftest.$ac_ext >&5
29033 ac_header_preproc=no
29036 rm -f conftest.err conftest.$ac_ext
29037 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29038 $as_echo "$ac_header_preproc" >&6; }
29040 # So? What about this header?
29041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29044 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29046 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29047 ac_header_preproc=yes
29050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29051 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29053 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29055 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29057 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29061 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29063 ## ------------------------------ ##
29064 ## Report this to bug-tar@gnu.org ##
29065 ## ------------------------------ ##
29067 ) | sed "s/^/$as_me: WARNING: /" >&2
29070 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29071 $as_echo_n "checking for $ac_header... " >&6; }
29072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29073 $as_echo_n "(cached) " >&6
29075 eval "$as_ac_Header=\$ac_header_preproc"
29077 ac_res=`eval 'as_val=${'$as_ac_Header'}
29078 $as_echo "$as_val"'`
29079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29080 $as_echo "$ac_res" >&6; }
29083 as_val=`eval 'as_val=${'$as_ac_Header'}
29084 $as_echo "$as_val"'`
29085 if test "x$as_val" = x""yes; then
29086 cat >>confdefs.h <<_ACEOF
29087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29095 for ac_func in _ftime
29097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29098 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29099 $as_echo_n "checking for $ac_func... " >&6; }
29100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29101 $as_echo_n "(cached) " >&6
29103 cat >conftest.$ac_ext <<_ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h. */
29109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29111 #define $ac_func innocuous_$ac_func
29113 /* System header to define __stub macros and hopefully few prototypes,
29114 which can conflict with char $ac_func (); below.
29115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29116 <limits.h> exists even on freestanding compilers. */
29119 # include <limits.h>
29121 # include <assert.h>
29126 /* Override any GCC internal prototype to avoid an error.
29127 Use char because int might match the return type of a GCC
29128 builtin and then its argument prototype would still apply. */
29133 /* The GNU C library defines this for functions which it implements
29134 to always fail with ENOSYS. Some functions are actually named
29135 something starting with __ and the normal name is an alias. */
29136 #if defined __stub_$ac_func || defined __stub___$ac_func
29143 return $ac_func ();
29148 rm -f conftest.$ac_objext conftest$ac_exeext
29149 if { (ac_try="$ac_link"
29150 case "(($ac_try" in
29151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152 *) ac_try_echo=$ac_try;;
29154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29155 $as_echo "$ac_try_echo") >&5
29156 (eval "$ac_link") 2>conftest.er1
29158 grep -v '^ *+' conftest.er1 >conftest.err
29160 cat conftest.err >&5
29161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); } && {
29163 test -z "$ac_c_werror_flag" ||
29164 test ! -s conftest.err
29165 } && test -s conftest$ac_exeext && {
29166 test "$cross_compiling" = yes ||
29167 $as_test_x conftest$ac_exeext
29169 eval "$as_ac_var=yes"
29171 $as_echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29174 eval "$as_ac_var=no"
29177 rm -rf conftest.dSYM
29178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29179 conftest$ac_exeext conftest.$ac_ext
29181 ac_res=`eval 'as_val=${'$as_ac_var'}
29182 $as_echo "$as_val"'`
29183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29184 $as_echo "$ac_res" >&6; }
29185 as_val=`eval 'as_val=${'$as_ac_var'}
29186 $as_echo "$as_val"'`
29187 if test "x$as_val" = x""yes; then
29188 cat >>confdefs.h <<_ACEOF
29189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29197 cat >>confdefs.h <<\_ACEOF
29198 #define gmtime rpl_gmtime
29202 cat >>confdefs.h <<\_ACEOF
29203 #define localtime rpl_localtime
29208 cat >>confdefs.h <<\_ACEOF
29209 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
29214 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
29215 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
29216 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
29217 $as_echo_n "(cached) " >&6
29219 cat >conftest.$ac_ext <<_ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29225 #include <sys/time.h>
29227 int gettimeofday (struct timeval *restrict, void *restrict);
29232 /* glibc uses struct timezone * rather than the POSIX void *
29233 if _GNU_SOURCE is defined. However, since the only portable
29234 use of gettimeofday uses NULL as the second parameter, and
29235 since the glibc definition is actually more typesafe, it is
29236 not worth wrapping this to get a compliant signature. */
29237 int (*f) (struct timeval *restrict, void *restrict)
29240 return !(x | c.tv_sec | c.tv_usec);
29246 rm -f conftest.$ac_objext
29247 if { (ac_try="$ac_compile"
29248 case "(($ac_try" in
29249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250 *) ac_try_echo=$ac_try;;
29252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29253 $as_echo "$ac_try_echo") >&5
29254 (eval "$ac_compile") 2>conftest.er1
29256 grep -v '^ *+' conftest.er1 >conftest.err
29258 cat conftest.err >&5
29259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); } && {
29261 test -z "$ac_c_werror_flag" ||
29262 test ! -s conftest.err
29263 } && test -s conftest.$ac_objext; then
29264 gl_cv_func_gettimeofday_posix_signature=yes
29266 $as_echo "$as_me: failed program was:" >&5
29267 sed 's/^/| /' conftest.$ac_ext >&5
29269 cat >conftest.$ac_ext <<_ACEOF
29272 cat confdefs.h >>conftest.$ac_ext
29273 cat >>conftest.$ac_ext <<_ACEOF
29274 /* end confdefs.h. */
29275 #include <sys/time.h>
29276 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
29286 rm -f conftest.$ac_objext
29287 if { (ac_try="$ac_compile"
29288 case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29293 $as_echo "$ac_try_echo") >&5
29294 (eval "$ac_compile") 2>conftest.er1
29296 grep -v '^ *+' conftest.er1 >conftest.err
29298 cat conftest.err >&5
29299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } && {
29301 test -z "$ac_c_werror_flag" ||
29302 test ! -s conftest.err
29303 } && test -s conftest.$ac_objext; then
29304 gl_cv_func_gettimeofday_posix_signature=almost
29306 $as_echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29309 gl_cv_func_gettimeofday_posix_signature=no
29312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
29318 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
29319 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
29320 gl_gettimeofday_timezone='struct timezone'
29321 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
29322 REPLACE_GETTIMEOFDAY=1
29331 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
29335 for ac_header in sys/timeb.h
29337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29340 $as_echo_n "checking for $ac_header... " >&6; }
29341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29342 $as_echo_n "(cached) " >&6
29344 ac_res=`eval 'as_val=${'$as_ac_Header'}
29345 $as_echo "$as_val"'`
29346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29347 $as_echo "$ac_res" >&6; }
29349 # Is the header compilable?
29350 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29351 $as_echo_n "checking $ac_header usability... " >&6; }
29352 cat >conftest.$ac_ext <<_ACEOF
29355 cat confdefs.h >>conftest.$ac_ext
29356 cat >>conftest.$ac_ext <<_ACEOF
29357 /* end confdefs.h. */
29358 $ac_includes_default
29359 #include <$ac_header>
29361 rm -f conftest.$ac_objext
29362 if { (ac_try="$ac_compile"
29363 case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29368 $as_echo "$ac_try_echo") >&5
29369 (eval "$ac_compile") 2>conftest.er1
29371 grep -v '^ *+' conftest.er1 >conftest.err
29373 cat conftest.err >&5
29374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); } && {
29376 test -z "$ac_c_werror_flag" ||
29377 test ! -s conftest.err
29378 } && test -s conftest.$ac_objext; then
29379 ac_header_compiler=yes
29381 $as_echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29384 ac_header_compiler=no
29387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29389 $as_echo "$ac_header_compiler" >&6; }
29391 # Is the header present?
29392 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29393 $as_echo_n "checking $ac_header presence... " >&6; }
29394 cat >conftest.$ac_ext <<_ACEOF
29397 cat confdefs.h >>conftest.$ac_ext
29398 cat >>conftest.$ac_ext <<_ACEOF
29399 /* end confdefs.h. */
29400 #include <$ac_header>
29402 if { (ac_try="$ac_cpp conftest.$ac_ext"
29403 case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29408 $as_echo "$ac_try_echo") >&5
29409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29411 grep -v '^ *+' conftest.er1 >conftest.err
29413 cat conftest.err >&5
29414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); } >/dev/null && {
29416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29417 test ! -s conftest.err
29419 ac_header_preproc=yes
29421 $as_echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29424 ac_header_preproc=no
29427 rm -f conftest.err conftest.$ac_ext
29428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29429 $as_echo "$ac_header_preproc" >&6; }
29431 # So? What about this header?
29432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29435 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29438 ac_header_preproc=yes
29441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29442 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29444 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29446 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29448 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29452 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29454 ## ------------------------------ ##
29455 ## Report this to bug-tar@gnu.org ##
29456 ## ------------------------------ ##
29458 ) | sed "s/^/$as_me: WARNING: /" >&2
29461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29462 $as_echo_n "checking for $ac_header... " >&6; }
29463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29464 $as_echo_n "(cached) " >&6
29466 eval "$as_ac_Header=\$ac_header_preproc"
29468 ac_res=`eval 'as_val=${'$as_ac_Header'}
29469 $as_echo "$as_val"'`
29470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29471 $as_echo "$ac_res" >&6; }
29474 as_val=`eval 'as_val=${'$as_ac_Header'}
29475 $as_echo "$as_val"'`
29476 if test "x$as_val" = x""yes; then
29477 cat >>confdefs.h <<_ACEOF
29478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29486 for ac_func in _ftime
29488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29489 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29490 $as_echo_n "checking for $ac_func... " >&6; }
29491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29492 $as_echo_n "(cached) " >&6
29494 cat >conftest.$ac_ext <<_ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h. */
29500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29502 #define $ac_func innocuous_$ac_func
29504 /* System header to define __stub macros and hopefully few prototypes,
29505 which can conflict with char $ac_func (); below.
29506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29507 <limits.h> exists even on freestanding compilers. */
29510 # include <limits.h>
29512 # include <assert.h>
29517 /* Override any GCC internal prototype to avoid an error.
29518 Use char because int might match the return type of a GCC
29519 builtin and then its argument prototype would still apply. */
29524 /* The GNU C library defines this for functions which it implements
29525 to always fail with ENOSYS. Some functions are actually named
29526 something starting with __ and the normal name is an alias. */
29527 #if defined __stub_$ac_func || defined __stub___$ac_func
29534 return $ac_func ();
29539 rm -f conftest.$ac_objext conftest$ac_exeext
29540 if { (ac_try="$ac_link"
29541 case "(($ac_try" in
29542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543 *) ac_try_echo=$ac_try;;
29545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29546 $as_echo "$ac_try_echo") >&5
29547 (eval "$ac_link") 2>conftest.er1
29549 grep -v '^ *+' conftest.er1 >conftest.err
29551 cat conftest.err >&5
29552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } && {
29554 test -z "$ac_c_werror_flag" ||
29555 test ! -s conftest.err
29556 } && test -s conftest$ac_exeext && {
29557 test "$cross_compiling" = yes ||
29558 $as_test_x conftest$ac_exeext
29560 eval "$as_ac_var=yes"
29562 $as_echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29565 eval "$as_ac_var=no"
29568 rm -rf conftest.dSYM
29569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29570 conftest$ac_exeext conftest.$ac_ext
29572 ac_res=`eval 'as_val=${'$as_ac_var'}
29573 $as_echo "$as_val"'`
29574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29575 $as_echo "$ac_res" >&6; }
29576 as_val=`eval 'as_val=${'$as_ac_var'}
29577 $as_echo "$as_val"'`
29578 if test "x$as_val" = x""yes; then
29579 cat >>confdefs.h <<_ACEOF
29580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29590 cat >>confdefs.h <<_ACEOF
29591 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
29597 GNULIB_GETTIMEOFDAY=1
29600 cat >>confdefs.h <<\_ACEOF
29601 #define GNULIB_GETTIMEOFDAY 1
29615 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
29629 gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
29636 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
29637 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
29638 if test "${gl_cv_c_inline_effective+set}" = set; then
29639 $as_echo_n "(cached) " >&6
29641 if test $ac_cv_c_inline = no; then
29642 gl_cv_c_inline_effective=no
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29654 #ifdef __NO_INLINE__
29655 #error "inline is not effective"
29661 rm -f conftest.$ac_objext
29662 if { (ac_try="$ac_compile"
29663 case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29668 $as_echo "$ac_try_echo") >&5
29669 (eval "$ac_compile") 2>conftest.er1
29671 grep -v '^ *+' conftest.er1 >conftest.err
29673 cat conftest.err >&5
29674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); } && {
29676 test -z "$ac_c_werror_flag" ||
29677 test ! -s conftest.err
29678 } && test -s conftest.$ac_objext; then
29679 gl_cv_c_inline_effective=yes
29681 $as_echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29684 gl_cv_c_inline_effective=no
29687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29691 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
29692 $as_echo "$gl_cv_c_inline_effective" >&6; }
29693 if test $gl_cv_c_inline_effective = yes; then
29695 cat >>confdefs.h <<\_ACEOF
29696 #define HAVE_INLINE 1
29710 gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
29720 gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
29730 gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
29740 gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
29778 { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
29779 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
29780 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
29781 $as_echo_n "(cached) " >&6
29783 gl_cv_header_working_inttypes_h=no
29784 if test "$gl_cv_header_working_stdint_h" = yes \
29785 && test $ac_cv_header_inttypes_h = yes \
29786 && test "$ac_cv_have_decl_imaxabs" = yes \
29787 && test "$ac_cv_have_decl_imaxdiv" = yes \
29788 && test "$ac_cv_have_decl_strtoimax" = yes \
29789 && test "$ac_cv_have_decl_strtoumax" = yes; then
29790 cat >conftest.$ac_ext <<_ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h. */
29798 #include <stddef.h>
29799 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29800 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29801 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
29802 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
29803 #include <inttypes.h>
29805 /* No need to duplicate the tests of stdint.m4; they are subsumed by
29806 $gl_cv_header_working_stdint_h = yes. */
29808 /* Tests for macros supposed to be defined in inttypes.h. */
29810 const char *k = /* implicit string concatenation */
29815 PRIo8 PRIu8 PRIx8 PRIX8
29821 PRIo16 PRIu16 PRIx16 PRIX16
29827 PRIo32 PRIu32 PRIx32 PRIX32
29833 PRIo64 PRIu64 PRIx64 PRIX64
29835 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
29836 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
29837 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
29838 PRIdLEAST64 PRIiLEAST64
29839 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
29840 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
29841 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
29842 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
29843 PRIdFAST64 PRIiFAST64
29844 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
29845 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
29850 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
29853 const char *l = /* implicit string concatenation */
29864 SCNo16 SCNu16 SCNx16
29870 SCNo32 SCNu32 SCNx32
29876 SCNo64 SCNu64 SCNx64
29878 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
29879 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
29880 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
29881 SCNdLEAST64 SCNiLEAST64
29882 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
29883 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
29884 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
29885 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
29886 SCNdFAST64 SCNiFAST64
29887 SCNoFAST64 SCNuFAST64 SCNxFAST64
29888 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
29893 SCNoPTR SCNuPTR SCNxPTR
29905 rm -f conftest.$ac_objext
29906 if { (ac_try="$ac_compile"
29907 case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29912 $as_echo "$ac_try_echo") >&5
29913 (eval "$ac_compile") 2>conftest.er1
29915 grep -v '^ *+' conftest.er1 >conftest.err
29917 cat conftest.err >&5
29918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } && {
29920 test -z "$ac_c_werror_flag" ||
29921 test ! -s conftest.err
29922 } && test -s conftest.$ac_objext; then
29923 gl_cv_header_working_inttypes_h=yes
29925 $as_echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29934 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
29935 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
29949 if test $gl_cv_have_include_next = yes; then
29950 gl_cv_next_inttypes_h='<'inttypes.h'>'
29952 { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
29953 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
29954 if test "${gl_cv_next_inttypes_h+set}" = set; then
29955 $as_echo_n "(cached) " >&6
29958 if test $ac_cv_header_inttypes_h = yes; then
29959 cat >conftest.$ac_ext <<_ACEOF
29962 cat confdefs.h >>conftest.$ac_ext
29963 cat >>conftest.$ac_ext <<_ACEOF
29964 /* end confdefs.h. */
29965 #include <inttypes.h>
29969 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29970 *) gl_absname_cpp="$ac_cpp" ;;
29972 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29973 sed -n '\#/inttypes.h#{
29974 s#.*"\(.*/inttypes.h\)".*#\1#
29980 gl_cv_next_inttypes_h='<'inttypes.h'>'
29984 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
29985 $as_echo "$gl_cv_next_inttypes_h" >&6; }
29987 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
29989 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29991 gl_next_as_first_directive='<'inttypes.h'>'
29993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29994 gl_next_as_first_directive=$gl_cv_next_inttypes_h
29996 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
30004 cat >>confdefs.h <<\_ACEOF
30005 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
30012 if test -n "$STDINT_H"; then
30013 PRIPTR_PREFIX='"l"'
30015 for glpfx in '' l ll I64; do
30017 '') gltype1='int';;
30018 l) gltype1='long int';;
30019 ll) gltype1='long long int';;
30020 I64) gltype1='__int64';;
30022 cat >conftest.$ac_ext <<_ACEOF
30025 cat confdefs.h >>conftest.$ac_ext
30026 cat >>conftest.$ac_ext <<_ACEOF
30027 /* end confdefs.h. */
30028 #include <stdint.h>
30029 extern intptr_t foo;
30030 extern $gltype1 foo;
30039 rm -f conftest.$ac_objext
30040 if { (ac_try="$ac_compile"
30041 case "(($ac_try" in
30042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043 *) ac_try_echo=$ac_try;;
30045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30046 $as_echo "$ac_try_echo") >&5
30047 (eval "$ac_compile") 2>conftest.er1
30049 grep -v '^ *+' conftest.er1 >conftest.err
30051 cat conftest.err >&5
30052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); } && {
30054 test -z "$ac_c_werror_flag" ||
30055 test ! -s conftest.err
30056 } && test -s conftest.$ac_objext; then
30057 PRIPTR_PREFIX='"'$glpfx'"'
30059 $as_echo "$as_me: failed program was:" >&5
30060 sed 's/^/| /' conftest.$ac_ext >&5
30065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30066 test -n "$PRIPTR_PREFIX" && break
30071 if test "$ac_cv_have_decl_imaxabs" = yes; then
30072 HAVE_DECL_IMAXABS=1
30074 HAVE_DECL_IMAXABS=0
30077 if test "$ac_cv_have_decl_imaxdiv" = yes; then
30078 HAVE_DECL_IMAXDIV=1
30080 HAVE_DECL_IMAXDIV=0
30083 if test "$ac_cv_have_decl_strtoimax" = yes; then
30084 HAVE_DECL_STRTOIMAX=1
30086 HAVE_DECL_STRTOIMAX=0
30089 if test "$ac_cv_have_decl_strtoumax" = yes; then
30090 HAVE_DECL_STRTOUMAX=1
30092 HAVE_DECL_STRTOUMAX=0
30096 { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
30097 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
30098 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
30099 $as_echo_n "(cached) " >&6
30101 cat >conftest.$ac_ext <<_ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h. */
30107 /* Work also in C++ mode. */
30108 #define __STDC_LIMIT_MACROS 1
30110 /* Work if build is not clean. */
30111 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30113 #include <limits.h>
30115 #include <stdint.h>
30118 #if defined INT32_MAX && defined INTMAX_MAX
30119 #define CONDITION (INT32_MAX < INTMAX_MAX)
30120 #elif HAVE_LONG_LONG_INT
30121 #define CONDITION (sizeof (int) < sizeof (long long int))
30123 #define CONDITION 0
30125 int test[CONDITION ? 1 : -1];
30134 rm -f conftest.$ac_objext
30135 if { (ac_try="$ac_compile"
30136 case "(($ac_try" in
30137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138 *) ac_try_echo=$ac_try;;
30140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30141 $as_echo "$ac_try_echo") >&5
30142 (eval "$ac_compile") 2>conftest.er1
30144 grep -v '^ *+' conftest.er1 >conftest.err
30146 cat conftest.err >&5
30147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); } && {
30149 test -z "$ac_c_werror_flag" ||
30150 test ! -s conftest.err
30151 } && test -s conftest.$ac_objext; then
30152 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
30154 $as_echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30157 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
30160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30162 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
30163 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
30164 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
30165 INT32_MAX_LT_INTMAX_MAX=1;
30167 INT32_MAX_LT_INTMAX_MAX=0;
30171 if test $APPLE_UNIVERSAL_BUILD = 0; then
30173 { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
30174 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
30175 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
30176 $as_echo_n "(cached) " >&6
30178 cat >conftest.$ac_ext <<_ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h. */
30184 /* Work also in C++ mode. */
30185 #define __STDC_LIMIT_MACROS 1
30187 /* Work if build is not clean. */
30188 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30190 #include <limits.h>
30192 #include <stdint.h>
30195 #if defined INT64_MAX
30196 #define CONDITION (INT64_MAX == LONG_MAX)
30197 #elif HAVE_LONG_LONG_INT
30198 #define CONDITION (sizeof (long long int) == sizeof (long int))
30200 #define CONDITION 0
30202 int test[CONDITION ? 1 : -1];
30211 rm -f conftest.$ac_objext
30212 if { (ac_try="$ac_compile"
30213 case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30218 $as_echo "$ac_try_echo") >&5
30219 (eval "$ac_compile") 2>conftest.er1
30221 grep -v '^ *+' conftest.er1 >conftest.err
30223 cat conftest.err >&5
30224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } && {
30226 test -z "$ac_c_werror_flag" ||
30227 test ! -s conftest.err
30228 } && test -s conftest.$ac_objext; then
30229 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
30231 $as_echo "$as_me: failed program was:" >&5
30232 sed 's/^/| /' conftest.$ac_ext >&5
30234 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
30237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30239 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
30240 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
30241 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
30242 INT64_MAX_EQ_LONG_MAX=1;
30244 INT64_MAX_EQ_LONG_MAX=0;
30249 INT64_MAX_EQ_LONG_MAX=-1
30252 { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
30253 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
30254 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
30255 $as_echo_n "(cached) " >&6
30257 cat >conftest.$ac_ext <<_ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h. */
30263 /* Work also in C++ mode. */
30264 #define __STDC_LIMIT_MACROS 1
30266 /* Work if build is not clean. */
30267 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30269 #include <limits.h>
30271 #include <stdint.h>
30274 #if defined UINT32_MAX && defined UINTMAX_MAX
30275 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
30276 #elif HAVE_LONG_LONG_INT
30277 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
30279 #define CONDITION 0
30281 int test[CONDITION ? 1 : -1];
30290 rm -f conftest.$ac_objext
30291 if { (ac_try="$ac_compile"
30292 case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30297 $as_echo "$ac_try_echo") >&5
30298 (eval "$ac_compile") 2>conftest.er1
30300 grep -v '^ *+' conftest.er1 >conftest.err
30302 cat conftest.err >&5
30303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } && {
30305 test -z "$ac_c_werror_flag" ||
30306 test ! -s conftest.err
30307 } && test -s conftest.$ac_objext; then
30308 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
30310 $as_echo "$as_me: failed program was:" >&5
30311 sed 's/^/| /' conftest.$ac_ext >&5
30313 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
30316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30318 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
30319 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
30320 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
30321 UINT32_MAX_LT_UINTMAX_MAX=1;
30323 UINT32_MAX_LT_UINTMAX_MAX=0;
30327 if test $APPLE_UNIVERSAL_BUILD = 0; then
30329 { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
30330 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
30331 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
30332 $as_echo_n "(cached) " >&6
30334 cat >conftest.$ac_ext <<_ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h. */
30340 /* Work also in C++ mode. */
30341 #define __STDC_LIMIT_MACROS 1
30343 /* Work if build is not clean. */
30344 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30346 #include <limits.h>
30348 #include <stdint.h>
30351 #if defined UINT64_MAX
30352 #define CONDITION (UINT64_MAX == ULONG_MAX)
30353 #elif HAVE_LONG_LONG_INT
30354 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
30356 #define CONDITION 0
30358 int test[CONDITION ? 1 : -1];
30367 rm -f conftest.$ac_objext
30368 if { (ac_try="$ac_compile"
30369 case "(($ac_try" in
30370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371 *) ac_try_echo=$ac_try;;
30373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30374 $as_echo "$ac_try_echo") >&5
30375 (eval "$ac_compile") 2>conftest.er1
30377 grep -v '^ *+' conftest.er1 >conftest.err
30379 cat conftest.err >&5
30380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } && {
30382 test -z "$ac_c_werror_flag" ||
30383 test ! -s conftest.err
30384 } && test -s conftest.$ac_objext; then
30385 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
30387 $as_echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30390 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
30393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
30396 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
30397 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
30398 UINT64_MAX_EQ_ULONG_MAX=1;
30400 UINT64_MAX_EQ_ULONG_MAX=0;
30405 UINT64_MAX_EQ_ULONG_MAX=-1
30413 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
30414 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30415 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30416 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30417 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30418 $as_echo_n "(cached) " >&6
30420 cat >conftest.$ac_ext <<_ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h. */
30426 #include <inttypes.h>
30437 rm -f conftest.$ac_objext
30438 if { (ac_try="$ac_compile"
30439 case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30444 $as_echo "$ac_try_echo") >&5
30445 (eval "$ac_compile") 2>conftest.er1
30447 grep -v '^ *+' conftest.er1 >conftest.err
30449 cat conftest.err >&5
30450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } && {
30452 test -z "$ac_c_werror_flag" ||
30453 test ! -s conftest.err
30454 } && test -s conftest.$ac_objext; then
30455 eval "$as_gl_Symbol=yes"
30457 $as_echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30460 eval "$as_gl_Symbol=no"
30463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30465 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30466 $as_echo "$as_val"'`
30467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30468 $as_echo "$ac_res" >&6; }
30469 as_val=`eval 'as_val=${'$as_gl_Symbol'}
30470 $as_echo "$as_val"'`
30471 if test "x$as_val" = x""yes; then
30472 cat >>confdefs.h <<_ACEOF
30473 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30476 eval ac_cv_have_decl_$gl_func=yes
30498 if test $gl_cv_have_include_next = yes; then
30499 gl_cv_next_langinfo_h='<'langinfo.h'>'
30501 { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
30502 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
30503 if test "${gl_cv_next_langinfo_h+set}" = set; then
30504 $as_echo_n "(cached) " >&6
30507 if test $ac_cv_header_langinfo_h = yes; then
30508 cat >conftest.$ac_ext <<_ACEOF
30511 cat confdefs.h >>conftest.$ac_ext
30512 cat >>conftest.$ac_ext <<_ACEOF
30513 /* end confdefs.h. */
30514 #include <langinfo.h>
30518 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30519 *) gl_absname_cpp="$ac_cpp" ;;
30521 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30522 sed -n '\#/langinfo.h#{
30523 s#.*"\(.*/langinfo.h\)".*#\1#
30529 gl_cv_next_langinfo_h='<'langinfo.h'>'
30533 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
30534 $as_echo "$gl_cv_next_langinfo_h" >&6; }
30536 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
30538 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30540 gl_next_as_first_directive='<'langinfo.h'>'
30542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30543 gl_next_as_first_directive=$gl_cv_next_langinfo_h
30545 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
30550 HAVE_LANGINFO_CODESET=0
30551 HAVE_LANGINFO_ERA=0
30558 if test $ac_cv_header_langinfo_h = yes; then
30560 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
30561 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
30562 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
30563 $as_echo_n "(cached) " >&6
30565 cat >conftest.$ac_ext <<_ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h. */
30571 #include <langinfo.h>
30582 rm -f conftest.$ac_objext
30583 if { (ac_try="$ac_compile"
30584 case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30589 $as_echo "$ac_try_echo") >&5
30590 (eval "$ac_compile") 2>conftest.er1
30592 grep -v '^ *+' conftest.er1 >conftest.err
30594 cat conftest.err >&5
30595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); } && {
30597 test -z "$ac_c_werror_flag" ||
30598 test ! -s conftest.err
30599 } && test -s conftest.$ac_objext; then
30600 gl_cv_header_langinfo_codeset=yes
30602 $as_echo "$as_me: failed program was:" >&5
30603 sed 's/^/| /' conftest.$ac_ext >&5
30605 gl_cv_header_langinfo_codeset=no
30608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30611 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
30612 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
30613 if test $gl_cv_header_langinfo_codeset = yes; then
30614 HAVE_LANGINFO_CODESET=1
30616 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
30617 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
30618 if test "${gl_cv_header_langinfo_era+set}" = set; then
30619 $as_echo_n "(cached) " >&6
30621 cat >conftest.$ac_ext <<_ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h. */
30627 #include <langinfo.h>
30638 rm -f conftest.$ac_objext
30639 if { (ac_try="$ac_compile"
30640 case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30645 $as_echo "$ac_try_echo") >&5
30646 (eval "$ac_compile") 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } && {
30653 test -z "$ac_c_werror_flag" ||
30654 test ! -s conftest.err
30655 } && test -s conftest.$ac_objext; then
30656 gl_cv_header_langinfo_era=yes
30658 $as_echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 gl_cv_header_langinfo_era=no
30664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30667 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
30668 $as_echo "$gl_cv_header_langinfo_era" >&6; }
30669 if test $gl_cv_header_langinfo_era = yes; then
30670 HAVE_LANGINFO_ERA=1
30681 for gl_func in nl_langinfo; do
30682 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30683 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30684 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30685 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30686 $as_echo_n "(cached) " >&6
30688 cat >conftest.$ac_ext <<_ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h. */
30694 #include <langinfo.h>
30705 rm -f conftest.$ac_objext
30706 if { (ac_try="$ac_compile"
30707 case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30712 $as_echo "$ac_try_echo") >&5
30713 (eval "$ac_compile") 2>conftest.er1
30715 grep -v '^ *+' conftest.er1 >conftest.err
30717 cat conftest.err >&5
30718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); } && {
30720 test -z "$ac_c_werror_flag" ||
30721 test ! -s conftest.err
30722 } && test -s conftest.$ac_objext; then
30723 eval "$as_gl_Symbol=yes"
30725 $as_echo "$as_me: failed program was:" >&5
30726 sed 's/^/| /' conftest.$ac_ext >&5
30728 eval "$as_gl_Symbol=no"
30731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30733 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30734 $as_echo "$as_val"'`
30735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30736 $as_echo "$ac_res" >&6; }
30737 as_val=`eval 'as_val=${'$as_gl_Symbol'}
30738 $as_echo "$as_val"'`
30739 if test "x$as_val" = x""yes; then
30740 cat >>confdefs.h <<_ACEOF
30741 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30744 eval ac_cv_have_decl_$gl_func=yes
30768 for ac_func in lchown
30770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30772 $as_echo_n "checking for $ac_func... " >&6; }
30773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30774 $as_echo_n "(cached) " >&6
30776 cat >conftest.$ac_ext <<_ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h. */
30782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30784 #define $ac_func innocuous_$ac_func
30786 /* System header to define __stub macros and hopefully few prototypes,
30787 which can conflict with char $ac_func (); below.
30788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30789 <limits.h> exists even on freestanding compilers. */
30792 # include <limits.h>
30794 # include <assert.h>
30799 /* Override any GCC internal prototype to avoid an error.
30800 Use char because int might match the return type of a GCC
30801 builtin and then its argument prototype would still apply. */
30806 /* The GNU C library defines this for functions which it implements
30807 to always fail with ENOSYS. Some functions are actually named
30808 something starting with __ and the normal name is an alias. */
30809 #if defined __stub_$ac_func || defined __stub___$ac_func
30816 return $ac_func ();
30821 rm -f conftest.$ac_objext conftest$ac_exeext
30822 if { (ac_try="$ac_link"
30823 case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30828 $as_echo "$ac_try_echo") >&5
30829 (eval "$ac_link") 2>conftest.er1
30831 grep -v '^ *+' conftest.er1 >conftest.err
30833 cat conftest.err >&5
30834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } && {
30836 test -z "$ac_c_werror_flag" ||
30837 test ! -s conftest.err
30838 } && test -s conftest$ac_exeext && {
30839 test "$cross_compiling" = yes ||
30840 $as_test_x conftest$ac_exeext
30842 eval "$as_ac_var=yes"
30844 $as_echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30847 eval "$as_ac_var=no"
30850 rm -rf conftest.dSYM
30851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30852 conftest$ac_exeext conftest.$ac_ext
30854 ac_res=`eval 'as_val=${'$as_ac_var'}
30855 $as_echo "$as_val"'`
30856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30857 $as_echo "$ac_res" >&6; }
30858 as_val=`eval 'as_val=${'$as_ac_var'}
30859 $as_echo "$as_val"'`
30860 if test "x$as_val" = x""yes; then
30861 cat >>confdefs.h <<_ACEOF
30862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30867 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30873 if test $ac_cv_func_lchown = no; then
30875 elif test "$gl_cv_func_chown_slash_works" != yes \
30876 || test "$gl_cv_func_chown_ctime_works" != yes; then
30885 gl_LIBOBJS="$gl_LIBOBJS lchown.$ac_objext"
30895 cat >>confdefs.h <<\_ACEOF
30896 #define GNULIB_LCHOWN 1
30912 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
30917 { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
30918 $as_echo_n "checking whether lseek detects pipes... " >&6; }
30919 if test "${gl_cv_func_lseek_pipe+set}" = set; then
30920 $as_echo_n "(cached) " >&6
30922 if test $cross_compiling = no; then
30923 cat >conftest.$ac_ext <<_ACEOF
30925 #include <sys/types.h> /* for off_t */
30926 #include <stdio.h> /* for SEEK_CUR */
30927 #include <unistd.h>
30930 /* Exit with success only if stdin is seekable. */
30931 return lseek (0, (off_t)0, SEEK_CUR) < 0;
30934 rm -f conftest.$ac_objext conftest$ac_exeext
30935 if { (ac_try="$ac_link"
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_link") 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_exeext && {
30952 test "$cross_compiling" = yes ||
30953 $as_test_x conftest$ac_exeext
30955 if test -s conftest$ac_exeext \
30956 && ./conftest$ac_exeext < conftest.$ac_ext \
30957 && test 1 = "`echo hi \
30958 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
30959 gl_cv_func_lseek_pipe=yes
30961 gl_cv_func_lseek_pipe=no
30964 $as_echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.$ac_ext >&5
30967 gl_cv_func_lseek_pipe=no
30970 rm -rf conftest.dSYM
30971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30972 conftest$ac_exeext conftest.$ac_ext
30974 cat >conftest.$ac_ext <<_ACEOF
30976 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
30977 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
30981 rm -f conftest.$ac_objext
30982 if { (ac_try="$ac_compile"
30983 case "(($ac_try" in
30984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985 *) ac_try_echo=$ac_try;;
30987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30988 $as_echo "$ac_try_echo") >&5
30989 (eval "$ac_compile") 2>conftest.er1
30991 grep -v '^ *+' conftest.er1 >conftest.err
30993 cat conftest.err >&5
30994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } && {
30996 test -z "$ac_c_werror_flag" ||
30997 test ! -s conftest.err
30998 } && test -s conftest.$ac_objext; then
30999 gl_cv_func_lseek_pipe=yes
31001 $as_echo "$as_me: failed program was:" >&5
31002 sed 's/^/| /' conftest.$ac_ext >&5
31004 gl_cv_func_lseek_pipe=no
31007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31010 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
31011 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
31012 if test $gl_cv_func_lseek_pipe = no; then
31022 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
31027 cat >>confdefs.h <<\_ACEOF
31028 #define LSEEK_PIPE_BROKEN 1
31039 cat >>confdefs.h <<\_ACEOF
31040 #define GNULIB_LSEEK 1
31053 if test $ac_cv_func_lstat = yes; then
31055 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
31058 # Prerequisites of lib/lstat.c.
31069 cat >>confdefs.h <<\_ACEOF
31070 #define GNULIB_LSTAT 1
31076 for ac_header in stdlib.h
31078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31081 $as_echo_n "checking for $ac_header... " >&6; }
31082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31083 $as_echo_n "(cached) " >&6
31085 ac_res=`eval 'as_val=${'$as_ac_Header'}
31086 $as_echo "$as_val"'`
31087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31088 $as_echo "$ac_res" >&6; }
31090 # Is the header compilable?
31091 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31092 $as_echo_n "checking $ac_header usability... " >&6; }
31093 cat >conftest.$ac_ext <<_ACEOF
31096 cat confdefs.h >>conftest.$ac_ext
31097 cat >>conftest.$ac_ext <<_ACEOF
31098 /* end confdefs.h. */
31099 $ac_includes_default
31100 #include <$ac_header>
31102 rm -f conftest.$ac_objext
31103 if { (ac_try="$ac_compile"
31104 case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31109 $as_echo "$ac_try_echo") >&5
31110 (eval "$ac_compile") 2>conftest.er1
31112 grep -v '^ *+' conftest.er1 >conftest.err
31114 cat conftest.err >&5
31115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } && {
31117 test -z "$ac_c_werror_flag" ||
31118 test ! -s conftest.err
31119 } && test -s conftest.$ac_objext; then
31120 ac_header_compiler=yes
31122 $as_echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31125 ac_header_compiler=no
31128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31129 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31130 $as_echo "$ac_header_compiler" >&6; }
31132 # Is the header present?
31133 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31134 $as_echo_n "checking $ac_header presence... " >&6; }
31135 cat >conftest.$ac_ext <<_ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h. */
31141 #include <$ac_header>
31143 if { (ac_try="$ac_cpp conftest.$ac_ext"
31144 case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31149 $as_echo "$ac_try_echo") >&5
31150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31152 grep -v '^ *+' conftest.er1 >conftest.err
31154 cat conftest.err >&5
31155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); } >/dev/null && {
31157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31158 test ! -s conftest.err
31160 ac_header_preproc=yes
31162 $as_echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31165 ac_header_preproc=no
31168 rm -f conftest.err conftest.$ac_ext
31169 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31170 $as_echo "$ac_header_preproc" >&6; }
31172 # So? What about this header?
31173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31176 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31179 ac_header_preproc=yes
31182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31183 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31185 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31187 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31189 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31193 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31195 ## ------------------------------ ##
31196 ## Report this to bug-tar@gnu.org ##
31197 ## ------------------------------ ##
31199 ) | sed "s/^/$as_me: WARNING: /" >&2
31202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31203 $as_echo_n "checking for $ac_header... " >&6; }
31204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31205 $as_echo_n "(cached) " >&6
31207 eval "$as_ac_Header=\$ac_header_preproc"
31209 ac_res=`eval 'as_val=${'$as_ac_Header'}
31210 $as_echo "$as_val"'`
31211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31212 $as_echo "$ac_res" >&6; }
31215 as_val=`eval 'as_val=${'$as_ac_Header'}
31216 $as_echo "$as_val"'`
31217 if test "x$as_val" = x""yes; then
31218 cat >>confdefs.h <<_ACEOF
31219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31226 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
31227 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
31228 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
31229 $as_echo_n "(cached) " >&6
31231 if test "$cross_compiling" = yes; then
31232 ac_cv_func_malloc_0_nonnull=no
31234 cat >conftest.$ac_ext <<_ACEOF
31237 cat confdefs.h >>conftest.$ac_ext
31238 cat >>conftest.$ac_ext <<_ACEOF
31239 /* end confdefs.h. */
31240 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
31241 # include <stdlib.h>
31249 return ! malloc (0);
31254 rm -f conftest$ac_exeext
31255 if { (ac_try="$ac_link"
31256 case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31261 $as_echo "$ac_try_echo") >&5
31262 (eval "$ac_link") 2>&5
31264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31266 { (case "(($ac_try" in
31267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268 *) ac_try_echo=$ac_try;;
31270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31271 $as_echo "$ac_try_echo") >&5
31272 (eval "$ac_try") 2>&5
31274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); }; }; then
31276 ac_cv_func_malloc_0_nonnull=yes
31278 $as_echo "$as_me: program exited with status $ac_status" >&5
31279 $as_echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31282 ( exit $ac_status )
31283 ac_cv_func_malloc_0_nonnull=no
31285 rm -rf conftest.dSYM
31286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
31292 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
31293 if test $ac_cv_func_malloc_0_nonnull = yes; then
31295 cat >>confdefs.h <<\_ACEOF
31296 #define HAVE_MALLOC 1
31300 cat >>confdefs.h <<\_ACEOF
31301 #define HAVE_MALLOC 0
31312 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
31315 cat >>confdefs.h <<\_ACEOF
31316 #define malloc rpl_malloc
31324 cat >>confdefs.h <<\_ACEOF
31325 #define GNULIB_MALLOC_GNU 1
31330 if test $gl_cv_func_malloc_posix = yes; then
31331 HAVE_MALLOC_POSIX=1
31333 cat >>confdefs.h <<\_ACEOF
31334 #define HAVE_MALLOC_POSIX 1
31346 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
31348 HAVE_MALLOC_POSIX=0
31354 GNULIB_MALLOC_POSIX=1
31357 cat >>confdefs.h <<\_ACEOF
31358 #define GNULIB_MALLOC_POSIX 1
31391 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
31395 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
31396 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
31397 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
31398 $as_echo_n "(cached) " >&6
31402 # Guess no on AIX and OSF/1.
31403 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
31404 # Guess yes otherwise.
31405 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
31407 if test $LOCALE_JA != none; then
31408 if test "$cross_compiling" = yes; then
31411 cat >conftest.$ac_ext <<_ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h. */
31418 #include <locale.h>
31419 #include <string.h>
31423 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
31425 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
31429 memset (&state, '\0', sizeof (mbstate_t));
31430 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
31431 if (mbsinit (&state))
31437 rm -f conftest$ac_exeext
31438 if { (ac_try="$ac_link"
31439 case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31444 $as_echo "$ac_try_echo") >&5
31445 (eval "$ac_link") 2>&5
31447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31449 { (case "(($ac_try" in
31450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31454 $as_echo "$ac_try_echo") >&5
31455 (eval "$ac_try") 2>&5
31457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); }; }; then
31459 gl_cv_func_mbrtowc_incomplete_state=yes
31461 $as_echo "$as_me: program exited with status $ac_status" >&5
31462 $as_echo "$as_me: failed program was:" >&5
31463 sed 's/^/| /' conftest.$ac_ext >&5
31465 ( exit $ac_status )
31466 gl_cv_func_mbrtowc_incomplete_state=no
31468 rm -rf conftest.dSYM
31469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31476 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
31477 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
31482 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
31483 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
31484 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
31485 $as_echo_n "(cached) " >&6
31489 # Guess no on Solaris 8.
31490 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
31491 # Guess yes otherwise.
31492 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
31494 if test $LOCALE_ZH_CN != none; then
31495 if test "$cross_compiling" = yes; then
31498 cat >conftest.$ac_ext <<_ACEOF
31501 cat confdefs.h >>conftest.$ac_ext
31502 cat >>conftest.$ac_ext <<_ACEOF
31503 /* end confdefs.h. */
31505 #include <locale.h>
31506 #include <stdlib.h>
31507 #include <string.h>
31511 /* This fails on Solaris 8:
31512 mbrtowc returns 2, and sets wc to 0x00F0.
31513 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
31514 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
31516 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
31520 memset (&state, '\0', sizeof (mbstate_t));
31521 if (mbrtowc (&wc, input + 3, 6, &state) != 4
31522 && mbtowc (&wc, input + 3, 6) == 4)
31528 rm -f conftest$ac_exeext
31529 if { (ac_try="$ac_link"
31530 case "(($ac_try" in
31531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532 *) ac_try_echo=$ac_try;;
31534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31535 $as_echo "$ac_try_echo") >&5
31536 (eval "$ac_link") 2>&5
31538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31540 { (case "(($ac_try" in
31541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31542 *) ac_try_echo=$ac_try;;
31544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31545 $as_echo "$ac_try_echo") >&5
31546 (eval "$ac_try") 2>&5
31548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
31550 gl_cv_func_mbrtowc_sanitycheck=yes
31552 $as_echo "$as_me: program exited with status $ac_status" >&5
31553 $as_echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31556 ( exit $ac_status )
31557 gl_cv_func_mbrtowc_sanitycheck=no
31559 rm -rf conftest.dSYM
31560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31567 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
31568 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
31570 REPLACE_MBSTATE_T=0
31571 case "$gl_cv_func_mbrtowc_incomplete_state" in
31573 *) REPLACE_MBSTATE_T=1 ;;
31575 case "$gl_cv_func_mbrtowc_sanitycheck" in
31577 *) REPLACE_MBSTATE_T=1 ;;
31580 REPLACE_MBSTATE_T=1
31582 if test $REPLACE_MBSTATE_T = 1; then
31588 if test $REPLACE_MBSTATE_T = 1; then
31597 if test $ac_cv_func_mbrtowc = no; then
31600 if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
31604 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
31605 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
31606 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
31607 $as_echo_n "(cached) " >&6
31611 # Guess no on OSF/1.
31612 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
31613 # Guess yes otherwise.
31614 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
31616 if test $LOCALE_FR_UTF8 != none; then
31617 if test "$cross_compiling" = yes; then
31620 cat >conftest.$ac_ext <<_ACEOF
31623 cat confdefs.h >>conftest.$ac_ext
31624 cat >>conftest.$ac_ext <<_ACEOF
31625 /* end confdefs.h. */
31627 #include <locale.h>
31628 #include <string.h>
31632 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
31638 memset (&state, '\0', sizeof (mbstate_t));
31639 wc = (wchar_t) 0xBADFACE;
31640 mbrtowc (&wc, NULL, 5, &state);
31641 /* Check that wc was not modified. */
31642 if (wc != (wchar_t) 0xBADFACE)
31648 rm -f conftest$ac_exeext
31649 if { (ac_try="$ac_link"
31650 case "(($ac_try" in
31651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652 *) ac_try_echo=$ac_try;;
31654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31655 $as_echo "$ac_try_echo") >&5
31656 (eval "$ac_link") 2>&5
31658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31660 { (case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31665 $as_echo "$ac_try_echo") >&5
31666 (eval "$ac_try") 2>&5
31668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; }; then
31670 gl_cv_func_mbrtowc_null_arg=yes
31672 $as_echo "$as_me: program exited with status $ac_status" >&5
31673 $as_echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31676 ( exit $ac_status )
31677 gl_cv_func_mbrtowc_null_arg=no
31679 rm -rf conftest.dSYM
31680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31687 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
31688 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
31694 { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
31695 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
31696 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
31697 $as_echo_n "(cached) " >&6
31701 # Guess no on HP-UX and Solaris.
31702 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
31703 # Guess yes otherwise.
31704 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
31706 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
31707 if test "$cross_compiling" = yes; then
31710 cat >conftest.$ac_ext <<_ACEOF
31713 cat confdefs.h >>conftest.$ac_ext
31714 cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h. */
31717 #include <locale.h>
31718 #include <string.h>
31722 /* This fails on Solaris. */
31723 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
31725 char input[] = "B\303\274\303\237er"; /* "Büßer" */
31729 memset (&state, '\0', sizeof (mbstate_t));
31730 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
31733 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
31737 /* This fails on HP-UX 11.11. */
31738 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
31740 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
31744 memset (&state, '\0', sizeof (mbstate_t));
31745 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
31748 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
31755 rm -f conftest$ac_exeext
31756 if { (ac_try="$ac_link"
31757 case "(($ac_try" in
31758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759 *) ac_try_echo=$ac_try;;
31761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31762 $as_echo "$ac_try_echo") >&5
31763 (eval "$ac_link") 2>&5
31765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31767 { (case "(($ac_try" in
31768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769 *) ac_try_echo=$ac_try;;
31771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31772 $as_echo "$ac_try_echo") >&5
31773 (eval "$ac_try") 2>&5
31775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); }; }; then
31777 gl_cv_func_mbrtowc_retval=yes
31779 $as_echo "$as_me: program exited with status $ac_status" >&5
31780 $as_echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31783 ( exit $ac_status )
31784 gl_cv_func_mbrtowc_retval=no
31786 rm -rf conftest.dSYM
31787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31794 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
31795 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
31800 { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
31801 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
31802 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
31803 $as_echo_n "(cached) " >&6
31807 # Guess no on Solaris 8 and 9.
31808 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
31809 # Guess yes otherwise.
31810 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
31812 if test $LOCALE_ZH_CN != none; then
31813 if test "$cross_compiling" = yes; then
31816 cat >conftest.$ac_ext <<_ACEOF
31819 cat confdefs.h >>conftest.$ac_ext
31820 cat >>conftest.$ac_ext <<_ACEOF
31821 /* end confdefs.h. */
31823 #include <locale.h>
31824 #include <string.h>
31828 /* This fails on Solaris 8 and 9. */
31829 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
31834 memset (&state, '\0', sizeof (mbstate_t));
31835 if (mbrtowc (&wc, "", 1, &state) != 0)
31841 rm -f conftest$ac_exeext
31842 if { (ac_try="$ac_link"
31843 case "(($ac_try" in
31844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845 *) ac_try_echo=$ac_try;;
31847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31848 $as_echo "$ac_try_echo") >&5
31849 (eval "$ac_link") 2>&5
31851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31853 { (case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31858 $as_echo "$ac_try_echo") >&5
31859 (eval "$ac_try") 2>&5
31861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); }; }; then
31863 gl_cv_func_mbrtowc_nul_retval=yes
31865 $as_echo "$as_me: program exited with status $ac_status" >&5
31866 $as_echo "$as_me: failed program was:" >&5
31867 sed 's/^/| /' conftest.$ac_ext >&5
31869 ( exit $ac_status )
31870 gl_cv_func_mbrtowc_nul_retval=no
31872 rm -rf conftest.dSYM
31873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31880 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
31881 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
31883 case "$gl_cv_func_mbrtowc_null_arg" in
31886 cat >>confdefs.h <<\_ACEOF
31887 #define MBRTOWC_NULL_ARG_BUG 1
31893 case "$gl_cv_func_mbrtowc_retval" in
31896 cat >>confdefs.h <<\_ACEOF
31897 #define MBRTOWC_RETVAL_BUG 1
31903 case "$gl_cv_func_mbrtowc_nul_retval" in
31906 cat >>confdefs.h <<\_ACEOF
31907 #define MBRTOWC_NUL_RETVAL_BUG 1
31914 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
31926 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
31938 cat >>confdefs.h <<\_ACEOF
31939 #define GNULIB_MBRTOWC 1
31946 GNULIB_MBSCASECMP=1
31949 cat >>confdefs.h <<\_ACEOF
31950 #define GNULIB_MBSCASECMP 1
31975 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
31979 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
31980 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
31981 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
31982 $as_echo_n "(cached) " >&6
31986 # Guess no on AIX and OSF/1.
31987 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
31988 # Guess yes otherwise.
31989 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
31991 if test $LOCALE_JA != none; then
31992 if test "$cross_compiling" = yes; then
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32002 #include <locale.h>
32003 #include <string.h>
32007 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32009 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32013 memset (&state, '\0', sizeof (mbstate_t));
32014 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32015 if (mbsinit (&state))
32021 rm -f conftest$ac_exeext
32022 if { (ac_try="$ac_link"
32023 case "(($ac_try" in
32024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025 *) ac_try_echo=$ac_try;;
32027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32028 $as_echo "$ac_try_echo") >&5
32029 (eval "$ac_link") 2>&5
32031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32033 { (case "(($ac_try" in
32034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32035 *) ac_try_echo=$ac_try;;
32037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32038 $as_echo "$ac_try_echo") >&5
32039 (eval "$ac_try") 2>&5
32041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
32043 gl_cv_func_mbrtowc_incomplete_state=yes
32045 $as_echo "$as_me: program exited with status $ac_status" >&5
32046 $as_echo "$as_me: failed program was:" >&5
32047 sed 's/^/| /' conftest.$ac_ext >&5
32049 ( exit $ac_status )
32050 gl_cv_func_mbrtowc_incomplete_state=no
32052 rm -rf conftest.dSYM
32053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32060 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32061 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32066 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32067 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32068 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32069 $as_echo_n "(cached) " >&6
32073 # Guess no on Solaris 8.
32074 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32075 # Guess yes otherwise.
32076 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32078 if test $LOCALE_ZH_CN != none; then
32079 if test "$cross_compiling" = yes; then
32082 cat >conftest.$ac_ext <<_ACEOF
32085 cat confdefs.h >>conftest.$ac_ext
32086 cat >>conftest.$ac_ext <<_ACEOF
32087 /* end confdefs.h. */
32089 #include <locale.h>
32090 #include <stdlib.h>
32091 #include <string.h>
32095 /* This fails on Solaris 8:
32096 mbrtowc returns 2, and sets wc to 0x00F0.
32097 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
32098 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32100 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32104 memset (&state, '\0', sizeof (mbstate_t));
32105 if (mbrtowc (&wc, input + 3, 6, &state) != 4
32106 && mbtowc (&wc, input + 3, 6) == 4)
32112 rm -f conftest$ac_exeext
32113 if { (ac_try="$ac_link"
32114 case "(($ac_try" in
32115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 *) ac_try_echo=$ac_try;;
32118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32119 $as_echo "$ac_try_echo") >&5
32120 (eval "$ac_link") 2>&5
32122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
32132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); }; }; then
32134 gl_cv_func_mbrtowc_sanitycheck=yes
32136 $as_echo "$as_me: program exited with status $ac_status" >&5
32137 $as_echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32140 ( exit $ac_status )
32141 gl_cv_func_mbrtowc_sanitycheck=no
32143 rm -rf conftest.dSYM
32144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32151 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32152 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32154 REPLACE_MBSTATE_T=0
32155 case "$gl_cv_func_mbrtowc_incomplete_state" in
32157 *) REPLACE_MBSTATE_T=1 ;;
32159 case "$gl_cv_func_mbrtowc_sanitycheck" in
32161 *) REPLACE_MBSTATE_T=1 ;;
32164 REPLACE_MBSTATE_T=1
32166 if test $REPLACE_MBSTATE_T = 1; then
32172 if test $REPLACE_MBSTATE_T = 1; then
32181 if test $ac_cv_func_mbsinit = no; then
32184 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
32196 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
32208 cat >>confdefs.h <<\_ACEOF
32209 #define GNULIB_MBSINIT 1
32234 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
32238 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
32239 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
32240 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
32241 $as_echo_n "(cached) " >&6
32245 # Guess no on AIX and OSF/1.
32246 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
32247 # Guess yes otherwise.
32248 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
32250 if test $LOCALE_JA != none; then
32251 if test "$cross_compiling" = yes; then
32254 cat >conftest.$ac_ext <<_ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h. */
32261 #include <locale.h>
32262 #include <string.h>
32266 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32268 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32272 memset (&state, '\0', sizeof (mbstate_t));
32273 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32274 if (mbsinit (&state))
32280 rm -f conftest$ac_exeext
32281 if { (ac_try="$ac_link"
32282 case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32287 $as_echo "$ac_try_echo") >&5
32288 (eval "$ac_link") 2>&5
32290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32292 { (case "(($ac_try" in
32293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294 *) ac_try_echo=$ac_try;;
32296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32297 $as_echo "$ac_try_echo") >&5
32298 (eval "$ac_try") 2>&5
32300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
32302 gl_cv_func_mbrtowc_incomplete_state=yes
32304 $as_echo "$as_me: program exited with status $ac_status" >&5
32305 $as_echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32308 ( exit $ac_status )
32309 gl_cv_func_mbrtowc_incomplete_state=no
32311 rm -rf conftest.dSYM
32312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32319 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32320 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32325 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32326 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32327 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32328 $as_echo_n "(cached) " >&6
32332 # Guess no on Solaris 8.
32333 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32334 # Guess yes otherwise.
32335 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32337 if test $LOCALE_ZH_CN != none; then
32338 if test "$cross_compiling" = yes; then
32341 cat >conftest.$ac_ext <<_ACEOF
32344 cat confdefs.h >>conftest.$ac_ext
32345 cat >>conftest.$ac_ext <<_ACEOF
32346 /* end confdefs.h. */
32348 #include <locale.h>
32349 #include <stdlib.h>
32350 #include <string.h>
32354 /* This fails on Solaris 8:
32355 mbrtowc returns 2, and sets wc to 0x00F0.
32356 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
32357 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32359 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32363 memset (&state, '\0', sizeof (mbstate_t));
32364 if (mbrtowc (&wc, input + 3, 6, &state) != 4
32365 && mbtowc (&wc, input + 3, 6) == 4)
32371 rm -f conftest$ac_exeext
32372 if { (ac_try="$ac_link"
32373 case "(($ac_try" in
32374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32378 $as_echo "$ac_try_echo") >&5
32379 (eval "$ac_link") 2>&5
32381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32383 { (case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32388 $as_echo "$ac_try_echo") >&5
32389 (eval "$ac_try") 2>&5
32391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); }; }; then
32393 gl_cv_func_mbrtowc_sanitycheck=yes
32395 $as_echo "$as_me: program exited with status $ac_status" >&5
32396 $as_echo "$as_me: failed program was:" >&5
32397 sed 's/^/| /' conftest.$ac_ext >&5
32399 ( exit $ac_status )
32400 gl_cv_func_mbrtowc_sanitycheck=no
32402 rm -rf conftest.dSYM
32403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32410 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32411 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32413 REPLACE_MBSTATE_T=0
32414 case "$gl_cv_func_mbrtowc_incomplete_state" in
32416 *) REPLACE_MBSTATE_T=1 ;;
32418 case "$gl_cv_func_mbrtowc_sanitycheck" in
32420 *) REPLACE_MBSTATE_T=1 ;;
32423 REPLACE_MBSTATE_T=1
32425 if test $REPLACE_MBSTATE_T = 1; then
32431 if test $REPLACE_MBSTATE_T = 1; then
32432 REPLACE_MBSRTOWCS=1
32440 if test $ac_cv_func_mbsrtowcs = no; then
32443 if test $HAVE_MBSRTOWCS != 0 && test $REPLACE_MBSRTOWCS != 1; then
32449 { $as_echo "$as_me:$LINENO: checking whether mbsrtowcs works" >&5
32450 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
32451 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then
32452 $as_echo_n "(cached) " >&6
32456 # Guess no on HP-UX and Solaris.
32457 hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
32458 # Guess yes otherwise.
32459 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
32461 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
32462 if test "$cross_compiling" = yes; then
32465 cat >conftest.$ac_ext <<_ACEOF
32468 cat confdefs.h >>conftest.$ac_ext
32469 cat >>conftest.$ac_ext <<_ACEOF
32470 /* end confdefs.h. */
32472 #include <locale.h>
32473 #include <string.h>
32477 /* Test whether the function works when started with a conversion state
32478 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
32479 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
32481 const char input[] = "B\303\274\303\237er";
32484 memset (&state, '\0', sizeof (mbstate_t));
32485 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
32486 if (!mbsinit (&state))
32488 const char *src = input + 2;
32489 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
32493 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32495 const char input[] = "<\306\374\313\334\270\354>";
32498 memset (&state, '\0', sizeof (mbstate_t));
32499 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
32500 if (!mbsinit (&state))
32502 const char *src = input + 4;
32503 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
32507 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32509 const char input[] = "B\250\271\201\060\211\070er";
32512 memset (&state, '\0', sizeof (mbstate_t));
32513 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
32514 if (!mbsinit (&state))
32516 const char *src = input + 2;
32517 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
32524 rm -f conftest$ac_exeext
32525 if { (ac_try="$ac_link"
32526 case "(($ac_try" in
32527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528 *) ac_try_echo=$ac_try;;
32530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32531 $as_echo "$ac_try_echo") >&5
32532 (eval "$ac_link") 2>&5
32534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32536 { (case "(($ac_try" in
32537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538 *) ac_try_echo=$ac_try;;
32540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32541 $as_echo "$ac_try_echo") >&5
32542 (eval "$ac_try") 2>&5
32544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; }; then
32546 gl_cv_func_mbsrtowcs_works=yes
32548 $as_echo "$as_me: program exited with status $ac_status" >&5
32549 $as_echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32552 ( exit $ac_status )
32553 gl_cv_func_mbsrtowcs_works=no
32555 rm -rf conftest.dSYM
32556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32563 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbsrtowcs_works" >&5
32564 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
32566 case "$gl_cv_func_mbsrtowcs_works" in
32568 *) REPLACE_MBSRTOWCS=1 ;;
32571 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
32583 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
32593 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
32605 cat >>confdefs.h <<\_ACEOF
32606 #define GNULIB_MBSRTOWCS 1
32623 cat >>confdefs.h <<\_ACEOF
32624 #define GNULIB_MEMCHR 1
32644 for ac_func in mempcpy
32646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32648 $as_echo_n "checking for $ac_func... " >&6; }
32649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32650 $as_echo_n "(cached) " >&6
32652 cat >conftest.$ac_ext <<_ACEOF
32655 cat confdefs.h >>conftest.$ac_ext
32656 cat >>conftest.$ac_ext <<_ACEOF
32657 /* end confdefs.h. */
32658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32660 #define $ac_func innocuous_$ac_func
32662 /* System header to define __stub macros and hopefully few prototypes,
32663 which can conflict with char $ac_func (); below.
32664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32665 <limits.h> exists even on freestanding compilers. */
32668 # include <limits.h>
32670 # include <assert.h>
32675 /* Override any GCC internal prototype to avoid an error.
32676 Use char because int might match the return type of a GCC
32677 builtin and then its argument prototype would still apply. */
32682 /* The GNU C library defines this for functions which it implements
32683 to always fail with ENOSYS. Some functions are actually named
32684 something starting with __ and the normal name is an alias. */
32685 #if defined __stub_$ac_func || defined __stub___$ac_func
32692 return $ac_func ();
32697 rm -f conftest.$ac_objext conftest$ac_exeext
32698 if { (ac_try="$ac_link"
32699 case "(($ac_try" in
32700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32701 *) ac_try_echo=$ac_try;;
32703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32704 $as_echo "$ac_try_echo") >&5
32705 (eval "$ac_link") 2>conftest.er1
32707 grep -v '^ *+' conftest.er1 >conftest.err
32709 cat conftest.err >&5
32710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); } && {
32712 test -z "$ac_c_werror_flag" ||
32713 test ! -s conftest.err
32714 } && test -s conftest$ac_exeext && {
32715 test "$cross_compiling" = yes ||
32716 $as_test_x conftest$ac_exeext
32718 eval "$as_ac_var=yes"
32720 $as_echo "$as_me: failed program was:" >&5
32721 sed 's/^/| /' conftest.$ac_ext >&5
32723 eval "$as_ac_var=no"
32726 rm -rf conftest.dSYM
32727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32728 conftest$ac_exeext conftest.$ac_ext
32730 ac_res=`eval 'as_val=${'$as_ac_var'}
32731 $as_echo "$as_val"'`
32732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32733 $as_echo "$ac_res" >&6; }
32734 as_val=`eval 'as_val=${'$as_ac_var'}
32735 $as_echo "$as_val"'`
32736 if test "x$as_val" = x""yes; then
32737 cat >>confdefs.h <<_ACEOF
32738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32743 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32749 if test $ac_cv_func_mempcpy = no; then
32761 cat >>confdefs.h <<\_ACEOF
32762 #define GNULIB_MEMPCPY 1
32775 if test $ac_cv_have_decl_memrchr = no; then
32776 HAVE_DECL_MEMRCHR=0
32788 for ac_func in memrchr
32790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32791 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32792 $as_echo_n "checking for $ac_func... " >&6; }
32793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32794 $as_echo_n "(cached) " >&6
32796 cat >conftest.$ac_ext <<_ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32804 #define $ac_func innocuous_$ac_func
32806 /* System header to define __stub macros and hopefully few prototypes,
32807 which can conflict with char $ac_func (); below.
32808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32809 <limits.h> exists even on freestanding compilers. */
32812 # include <limits.h>
32814 # include <assert.h>
32819 /* Override any GCC internal prototype to avoid an error.
32820 Use char because int might match the return type of a GCC
32821 builtin and then its argument prototype would still apply. */
32826 /* The GNU C library defines this for functions which it implements
32827 to always fail with ENOSYS. Some functions are actually named
32828 something starting with __ and the normal name is an alias. */
32829 #if defined __stub_$ac_func || defined __stub___$ac_func
32836 return $ac_func ();
32841 rm -f conftest.$ac_objext conftest$ac_exeext
32842 if { (ac_try="$ac_link"
32843 case "(($ac_try" in
32844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845 *) ac_try_echo=$ac_try;;
32847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32848 $as_echo "$ac_try_echo") >&5
32849 (eval "$ac_link") 2>conftest.er1
32851 grep -v '^ *+' conftest.er1 >conftest.err
32853 cat conftest.err >&5
32854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); } && {
32856 test -z "$ac_c_werror_flag" ||
32857 test ! -s conftest.err
32858 } && test -s conftest$ac_exeext && {
32859 test "$cross_compiling" = yes ||
32860 $as_test_x conftest$ac_exeext
32862 eval "$as_ac_var=yes"
32864 $as_echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32867 eval "$as_ac_var=no"
32870 rm -rf conftest.dSYM
32871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32872 conftest$ac_exeext conftest.$ac_ext
32874 ac_res=`eval 'as_val=${'$as_ac_var'}
32875 $as_echo "$as_val"'`
32876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32877 $as_echo "$ac_res" >&6; }
32878 as_val=`eval 'as_val=${'$as_ac_var'}
32879 $as_echo "$as_val"'`
32880 if test "x$as_val" = x""yes; then
32881 cat >>confdefs.h <<_ACEOF
32882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32887 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32893 if test $ac_cv_func_memrchr = no; then
32902 cat >>confdefs.h <<\_ACEOF
32903 #define GNULIB_MEMRCHR 1
32915 { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing slash" >&5
32916 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
32917 if test "${gl_cv_func_mkdir_trailing_slash_works+set}" = set; then
32918 $as_echo_n "(cached) " >&6
32920 rm -rf conftest.dir
32921 if test "$cross_compiling" = yes; then
32922 gl_cv_func_mkdir_trailing_slash_works="guessing no"
32924 cat >conftest.$ac_ext <<_ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h. */
32931 # include <sys/types.h>
32932 # include <sys/stat.h>
32937 return mkdir ("conftest.dir/", 0700);
32942 rm -f conftest$ac_exeext
32943 if { (ac_try="$ac_link"
32944 case "(($ac_try" in
32945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946 *) ac_try_echo=$ac_try;;
32948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32949 $as_echo "$ac_try_echo") >&5
32950 (eval "$ac_link") 2>&5
32952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32954 { (case "(($ac_try" in
32955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956 *) ac_try_echo=$ac_try;;
32958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32959 $as_echo "$ac_try_echo") >&5
32960 (eval "$ac_try") 2>&5
32962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 gl_cv_func_mkdir_trailing_slash_works=yes
32966 $as_echo "$as_me: program exited with status $ac_status" >&5
32967 $as_echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32970 ( exit $ac_status )
32971 gl_cv_func_mkdir_trailing_slash_works=no
32973 rm -rf conftest.dSYM
32974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32978 rm -rf conftest.dir
32982 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
32983 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
32984 if test "$gl_cv_func_mkdir_trailing_slash_works" != yes; then
32994 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
32998 { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing dot" >&5
32999 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
33000 if test "${gl_cv_func_mkdir_trailing_dot_works+set}" = set; then
33001 $as_echo_n "(cached) " >&6
33003 rm -rf conftest.dir
33004 if test "$cross_compiling" = yes; then
33005 gl_cv_func_mkdir_trailing_dot_works="guessing no"
33007 cat >conftest.$ac_ext <<_ACEOF
33010 cat confdefs.h >>conftest.$ac_ext
33011 cat >>conftest.$ac_ext <<_ACEOF
33012 /* end confdefs.h. */
33014 # include <sys/types.h>
33015 # include <sys/stat.h>
33020 return !mkdir ("conftest.dir/./", 0700);
33025 rm -f conftest$ac_exeext
33026 if { (ac_try="$ac_link"
33027 case "(($ac_try" in
33028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029 *) ac_try_echo=$ac_try;;
33031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33032 $as_echo "$ac_try_echo") >&5
33033 (eval "$ac_link") 2>&5
33035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33037 { (case "(($ac_try" in
33038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33039 *) ac_try_echo=$ac_try;;
33041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33042 $as_echo "$ac_try_echo") >&5
33043 (eval "$ac_try") 2>&5
33045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; }; then
33047 gl_cv_func_mkdir_trailing_dot_works=yes
33049 $as_echo "$as_me: program exited with status $ac_status" >&5
33050 $as_echo "$as_me: failed program was:" >&5
33051 sed 's/^/| /' conftest.$ac_ext >&5
33053 ( exit $ac_status )
33054 gl_cv_func_mkdir_trailing_dot_works=no
33056 rm -rf conftest.dSYM
33057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33061 rm -rf conftest.dir
33065 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
33066 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
33067 if test "$gl_cv_func_mkdir_trailing_dot_works" != yes; then
33077 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
33080 cat >>confdefs.h <<\_ACEOF
33081 #define FUNC_MKDIR_DOT_BUG 1
33097 for ac_func in mkdtemp
33099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33100 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33101 $as_echo_n "checking for $ac_func... " >&6; }
33102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33103 $as_echo_n "(cached) " >&6
33105 cat >conftest.$ac_ext <<_ACEOF
33108 cat confdefs.h >>conftest.$ac_ext
33109 cat >>conftest.$ac_ext <<_ACEOF
33110 /* end confdefs.h. */
33111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33113 #define $ac_func innocuous_$ac_func
33115 /* System header to define __stub macros and hopefully few prototypes,
33116 which can conflict with char $ac_func (); below.
33117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33118 <limits.h> exists even on freestanding compilers. */
33121 # include <limits.h>
33123 # include <assert.h>
33128 /* Override any GCC internal prototype to avoid an error.
33129 Use char because int might match the return type of a GCC
33130 builtin and then its argument prototype would still apply. */
33135 /* The GNU C library defines this for functions which it implements
33136 to always fail with ENOSYS. Some functions are actually named
33137 something starting with __ and the normal name is an alias. */
33138 #if defined __stub_$ac_func || defined __stub___$ac_func
33145 return $ac_func ();
33150 rm -f conftest.$ac_objext conftest$ac_exeext
33151 if { (ac_try="$ac_link"
33152 case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33157 $as_echo "$ac_try_echo") >&5
33158 (eval "$ac_link") 2>conftest.er1
33160 grep -v '^ *+' conftest.er1 >conftest.err
33162 cat conftest.err >&5
33163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164 (exit $ac_status); } && {
33165 test -z "$ac_c_werror_flag" ||
33166 test ! -s conftest.err
33167 } && test -s conftest$ac_exeext && {
33168 test "$cross_compiling" = yes ||
33169 $as_test_x conftest$ac_exeext
33171 eval "$as_ac_var=yes"
33173 $as_echo "$as_me: failed program was:" >&5
33174 sed 's/^/| /' conftest.$ac_ext >&5
33176 eval "$as_ac_var=no"
33179 rm -rf conftest.dSYM
33180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33181 conftest$ac_exeext conftest.$ac_ext
33183 ac_res=`eval 'as_val=${'$as_ac_var'}
33184 $as_echo "$as_val"'`
33185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33186 $as_echo "$ac_res" >&6; }
33187 as_val=`eval 'as_val=${'$as_ac_var'}
33188 $as_echo "$as_val"'`
33189 if test "x$as_val" = x""yes; then
33190 cat >>confdefs.h <<_ACEOF
33191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33196 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33202 if test $ac_cv_func_mkdtemp = no; then
33213 cat >>confdefs.h <<\_ACEOF
33214 #define GNULIB_MKDTEMP 1
33234 if test $APPLE_UNIVERSAL_BUILD = 1; then
33235 # A universal build on Apple MacOS X platforms.
33236 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
33237 # But we need a configuration result that is valid in both modes.
33238 ac_cv_func_working_mktime=no
33240 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
33241 $as_echo_n "checking for working mktime... " >&6; }
33242 if test "${ac_cv_func_working_mktime+set}" = set; then
33243 $as_echo_n "(cached) " >&6
33245 if test "$cross_compiling" = yes; then
33246 ac_cv_func_working_mktime=no
33248 cat >conftest.$ac_ext <<_ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h. */
33254 /* Test program from Paul Eggert and Tony Leneis. */
33255 #include <limits.h>
33256 #include <stdlib.h>
33259 #ifdef HAVE_UNISTD_H
33260 # include <unistd.h>
33264 # define alarm(X) /* empty */
33267 /* Work around redefinition to rpl_putenv by other config tests. */
33270 static time_t time_t_max;
33271 static time_t time_t_min;
33273 /* Values we'll use to set the TZ environment variable. */
33274 static char *tz_strings[] = {
33275 (char *) 0, "TZ=GMT0", "TZ=JST-9",
33276 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
33278 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
33280 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
33281 Based on a problem report from Andreas Jaeger. */
33283 spring_forward_gap ()
33285 /* glibc (up to about 1998-10-07) failed this test. */
33288 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
33289 instead of "TZ=America/Vancouver" in order to detect the bug even
33290 on systems that don't support the Olson extension, or don't have the
33291 full zoneinfo tables installed. */
33292 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
33301 return mktime (&tm) != (time_t) -1;
33305 mktime_test1 (time_t now)
33308 return ! (lt = localtime (&now)) || mktime (lt) == now;
33312 mktime_test (time_t now)
33314 return (mktime_test1 (now)
33315 && mktime_test1 ((time_t) (time_t_max - now))
33316 && mktime_test1 ((time_t) (time_t_min + now)));
33322 /* Based on code from Ariel Faigon. */
33332 return tm.tm_mon == 2 && tm.tm_mday == 31;
33336 bigtime_test (int j)
33340 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
33341 now = mktime (&tm);
33342 if (now != (time_t) -1)
33344 struct tm *lt = localtime (&now);
33346 && lt->tm_year == tm.tm_year
33347 && lt->tm_mon == tm.tm_mon
33348 && lt->tm_mday == tm.tm_mday
33349 && lt->tm_hour == tm.tm_hour
33350 && lt->tm_min == tm.tm_min
33351 && lt->tm_sec == tm.tm_sec
33352 && lt->tm_yday == tm.tm_yday
33353 && lt->tm_wday == tm.tm_wday
33354 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
33355 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
33364 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
33365 ignoring leap seconds. */
33366 unsigned long int answer = 2527315200UL;
33370 tm.tm_year = 2050 - 1900;
33373 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
33376 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
33377 instead of "TZ=America/Vancouver" in order to detect the bug even
33378 on systems that don't support the Olson extension, or don't have the
33379 full zoneinfo tables installed. */
33380 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
33384 /* Check that the result is either a failure, or close enough
33385 to the correct answer that we can assume the discrepancy is
33386 due to leap seconds. */
33387 return (t == (time_t) -1
33388 || (0 < t && answer - 120 <= t && t <= answer + 120));
33397 /* This test makes some buggy mktime implementations loop.
33398 Give up after 60 seconds; a mktime slower than that
33399 isn't worth using anyway. */
33404 t = (time_t_max << 1) + 1;
33405 if (t <= time_t_max)
33409 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
33411 delta = time_t_max / 997; /* a suitable prime number */
33412 for (i = 0; i < N_STRINGS; i++)
33415 putenv (tz_strings[i]);
33417 for (t = 0; t <= time_t_max - delta; t += delta)
33418 if (! mktime_test (t))
33420 if (! (mktime_test ((time_t) 1)
33421 && mktime_test ((time_t) (60 * 60))
33422 && mktime_test ((time_t) (60 * 60 * 24))))
33425 for (j = 1; ; j <<= 1)
33426 if (! bigtime_test (j))
33428 else if (INT_MAX / 2 < j)
33430 if (! bigtime_test (INT_MAX))
33433 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
33436 rm -f conftest$ac_exeext
33437 if { (ac_try="$ac_link"
33438 case "(($ac_try" in
33439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440 *) ac_try_echo=$ac_try;;
33442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33443 $as_echo "$ac_try_echo") >&5
33444 (eval "$ac_link") 2>&5
33446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33448 { (case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33453 $as_echo "$ac_try_echo") >&5
33454 (eval "$ac_try") 2>&5
33456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); }; }; then
33458 ac_cv_func_working_mktime=yes
33460 $as_echo "$as_me: program exited with status $ac_status" >&5
33461 $as_echo "$as_me: failed program was:" >&5
33462 sed 's/^/| /' conftest.$ac_ext >&5
33464 ( exit $ac_status )
33465 ac_cv_func_working_mktime=no
33467 rm -rf conftest.dSYM
33468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33473 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
33474 $as_echo "$ac_cv_func_working_mktime" >&6; }
33475 if test $ac_cv_func_working_mktime = no; then
33484 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
33488 if test $ac_cv_func_working_mktime = no; then
33502 cat >>confdefs.h <<\_ACEOF
33503 #define GNULIB_MKTIME 1
33517 gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
33530 if test $ac_cv_func_nl_langinfo = yes; then
33531 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
33534 REPLACE_NL_LANGINFO=1
33536 cat >>confdefs.h <<\_ACEOF
33537 #define REPLACE_NL_LANGINFO 1
33548 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
33561 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
33567 GNULIB_NL_LANGINFO=1
33570 cat >>confdefs.h <<\_ACEOF
33571 #define GNULIB_NL_LANGINFO 1
33588 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
33589 $as_echo_n "checking for obstacks... " >&6; }
33590 if test "${ac_cv_func_obstack+set}" = set; then
33591 $as_echo_n "(cached) " >&6
33593 cat >conftest.$ac_ext <<_ACEOF
33596 cat confdefs.h >>conftest.$ac_ext
33597 cat >>conftest.$ac_ext <<_ACEOF
33598 /* end confdefs.h. */
33599 $ac_includes_default
33600 #include "obstack.h"
33604 struct obstack mem;
33605 #define obstack_chunk_alloc malloc
33606 #define obstack_chunk_free free
33607 obstack_init (&mem);
33608 obstack_free (&mem, 0);
33613 rm -f conftest.$ac_objext conftest$ac_exeext
33614 if { (ac_try="$ac_link"
33615 case "(($ac_try" in
33616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617 *) ac_try_echo=$ac_try;;
33619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33620 $as_echo "$ac_try_echo") >&5
33621 (eval "$ac_link") 2>conftest.er1
33623 grep -v '^ *+' conftest.er1 >conftest.err
33625 cat conftest.err >&5
33626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); } && {
33628 test -z "$ac_c_werror_flag" ||
33629 test ! -s conftest.err
33630 } && test -s conftest$ac_exeext && {
33631 test "$cross_compiling" = yes ||
33632 $as_test_x conftest$ac_exeext
33634 ac_cv_func_obstack=yes
33636 $as_echo "$as_me: failed program was:" >&5
33637 sed 's/^/| /' conftest.$ac_ext >&5
33639 ac_cv_func_obstack=no
33642 rm -rf conftest.dSYM
33643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33644 conftest$ac_exeext conftest.$ac_ext
33646 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
33647 $as_echo "$ac_cv_func_obstack" >&6; }
33648 if test $ac_cv_func_obstack = yes; then
33650 cat >>confdefs.h <<\_ACEOF
33651 #define HAVE_OBSTACK 1
33663 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
33682 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
33698 { $as_echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
33699 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
33700 if test "${gl_cv_func_open_slash+set}" = set; then
33701 $as_echo_n "(cached) " >&6
33703 # Assume that if we have lstat, we can also check symlinks.
33704 if test $ac_cv_func_lstat = yes; then
33706 ln -s conftest.tmp conftest.lnk
33708 if test "$cross_compiling" = yes; then
33711 freebsd*) gl_cv_func_open_slash="guessing no" ;;
33712 solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
33713 hpux*) gl_cv_func_open_slash="guessing no" ;;
33714 *) gl_cv_func_open_slash="guessing yes" ;;
33718 cat >conftest.$ac_ext <<_ACEOF
33721 cat confdefs.h >>conftest.$ac_ext
33722 cat >>conftest.$ac_ext <<_ACEOF
33723 /* end confdefs.h. */
33727 # include <unistd.h>
33732 if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
33734 return open ("conftest.sl/", O_CREAT, 0600) >= 0;
33737 rm -f conftest$ac_exeext
33738 if { (ac_try="$ac_link"
33739 case "(($ac_try" in
33740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33741 *) ac_try_echo=$ac_try;;
33743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33744 $as_echo "$ac_try_echo") >&5
33745 (eval "$ac_link") 2>&5
33747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33749 { (case "(($ac_try" in
33750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33754 $as_echo "$ac_try_echo") >&5
33755 (eval "$ac_try") 2>&5
33757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33759 gl_cv_func_open_slash=yes
33761 $as_echo "$as_me: program exited with status $ac_status" >&5
33762 $as_echo "$as_me: failed program was:" >&5
33763 sed 's/^/| /' conftest.$ac_ext >&5
33765 ( exit $ac_status )
33766 gl_cv_func_open_slash=no
33768 rm -rf conftest.dSYM
33769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33773 rm -f conftest.sl conftest.tmp conftest.lnk
33776 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
33777 $as_echo "$gl_cv_func_open_slash" >&6; }
33778 case "$gl_cv_func_open_slash" in
33781 cat >>confdefs.h <<\_ACEOF
33782 #define OPEN_TRAILING_SLASH_BUG 1
33796 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
33811 cat >>confdefs.h <<\_ACEOF
33812 #define GNULIB_OPEN 1
33821 cat >>confdefs.h <<\_ACEOF
33822 #define GNULIB_OPEN 1
33848 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
33898 for ac_func in fchmodat fstatat mkdirat openat unlinkat
33900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33902 $as_echo_n "checking for $ac_func... " >&6; }
33903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33904 $as_echo_n "(cached) " >&6
33906 cat >conftest.$ac_ext <<_ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h. */
33912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33914 #define $ac_func innocuous_$ac_func
33916 /* System header to define __stub macros and hopefully few prototypes,
33917 which can conflict with char $ac_func (); below.
33918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33919 <limits.h> exists even on freestanding compilers. */
33922 # include <limits.h>
33924 # include <assert.h>
33929 /* Override any GCC internal prototype to avoid an error.
33930 Use char because int might match the return type of a GCC
33931 builtin and then its argument prototype would still apply. */
33936 /* The GNU C library defines this for functions which it implements
33937 to always fail with ENOSYS. Some functions are actually named
33938 something starting with __ and the normal name is an alias. */
33939 #if defined __stub_$ac_func || defined __stub___$ac_func
33946 return $ac_func ();
33951 rm -f conftest.$ac_objext conftest$ac_exeext
33952 if { (ac_try="$ac_link"
33953 case "(($ac_try" in
33954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33955 *) ac_try_echo=$ac_try;;
33957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33958 $as_echo "$ac_try_echo") >&5
33959 (eval "$ac_link") 2>conftest.er1
33961 grep -v '^ *+' conftest.er1 >conftest.err
33963 cat conftest.err >&5
33964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); } && {
33966 test -z "$ac_c_werror_flag" ||
33967 test ! -s conftest.err
33968 } && test -s conftest$ac_exeext && {
33969 test "$cross_compiling" = yes ||
33970 $as_test_x conftest$ac_exeext
33972 eval "$as_ac_var=yes"
33974 $as_echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33977 eval "$as_ac_var=no"
33980 rm -rf conftest.dSYM
33981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33982 conftest$ac_exeext conftest.$ac_ext
33984 ac_res=`eval 'as_val=${'$as_ac_var'}
33985 $as_echo "$as_val"'`
33986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33987 $as_echo "$ac_res" >&6; }
33988 as_val=`eval 'as_val=${'$as_ac_var'}
33989 $as_echo "$as_val"'`
33990 if test "x$as_val" = x""yes; then
33991 cat >>confdefs.h <<_ACEOF
33992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33997 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34005 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
34007 # GNU/Hurd has unlinkat, but it has the same bug as unlink.
34008 if test $REPLACE_UNLINK = 1; then
34017 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
34022 # Solaris 9 has *at functions, but uniformly mishandles trailing
34023 # slash in all of them.
34032 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
34043 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
34054 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
34060 HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
34061 HAVE_FSTATAT=0 # No known system with fstatat but not openat
34068 if test $ac_cv_func_fchmodat != yes; then
34071 if test $ac_cv_func_mkdirat != yes; then
34076 { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
34077 $as_echo_n "checking for fchownat... " >&6; }
34078 if test "${ac_cv_func_fchownat+set}" = set; then
34079 $as_echo_n "(cached) " >&6
34081 cat >conftest.$ac_ext <<_ACEOF
34084 cat confdefs.h >>conftest.$ac_ext
34085 cat >>conftest.$ac_ext <<_ACEOF
34086 /* end confdefs.h. */
34087 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
34088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34089 #define fchownat innocuous_fchownat
34091 /* System header to define __stub macros and hopefully few prototypes,
34092 which can conflict with char fchownat (); below.
34093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34094 <limits.h> exists even on freestanding compilers. */
34097 # include <limits.h>
34099 # include <assert.h>
34104 /* Override any GCC internal prototype to avoid an error.
34105 Use char because int might match the return type of a GCC
34106 builtin and then its argument prototype would still apply. */
34111 /* The GNU C library defines this for functions which it implements
34112 to always fail with ENOSYS. Some functions are actually named
34113 something starting with __ and the normal name is an alias. */
34114 #if defined __stub_fchownat || defined __stub___fchownat
34121 return fchownat ();
34126 rm -f conftest.$ac_objext conftest$ac_exeext
34127 if { (ac_try="$ac_link"
34128 case "(($ac_try" in
34129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34130 *) ac_try_echo=$ac_try;;
34132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34133 $as_echo "$ac_try_echo") >&5
34134 (eval "$ac_link") 2>conftest.er1
34136 grep -v '^ *+' conftest.er1 >conftest.err
34138 cat conftest.err >&5
34139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); } && {
34141 test -z "$ac_c_werror_flag" ||
34142 test ! -s conftest.err
34143 } && test -s conftest$ac_exeext && {
34144 test "$cross_compiling" = yes ||
34145 $as_test_x conftest$ac_exeext
34147 ac_cv_func_fchownat=yes
34149 $as_echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34152 ac_cv_func_fchownat=no
34155 rm -rf conftest.dSYM
34156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34157 conftest$ac_exeext conftest.$ac_ext
34159 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
34160 $as_echo "$ac_cv_func_fchownat" >&6; }
34161 if test "x$ac_cv_func_fchownat" = x""yes; then
34163 { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
34164 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
34165 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
34166 $as_echo_n "(cached) " >&6
34169 gl_dangle=conftest.dangle
34170 # Remove any remnants of a previous test.
34172 # Arrange for deletion of the temporary file this test creates.
34173 ac_clean_files="$ac_clean_files $gl_dangle"
34174 ln -s conftest.no-such $gl_dangle
34175 if test "$cross_compiling" = yes; then
34176 gl_cv_func_fchownat_nofollow_works=no
34178 cat >conftest.$ac_ext <<_ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h. */
34186 #include <unistd.h>
34187 #include <stdlib.h>
34189 #include <sys/types.h>
34193 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
34194 AT_SYMLINK_NOFOLLOW) != 0
34195 && errno == ENOENT);
34199 rm -f conftest$ac_exeext
34200 if { (ac_try="$ac_link"
34201 case "(($ac_try" in
34202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34203 *) ac_try_echo=$ac_try;;
34205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34206 $as_echo "$ac_try_echo") >&5
34207 (eval "$ac_link") 2>&5
34209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34211 { (case "(($ac_try" in
34212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34213 *) ac_try_echo=$ac_try;;
34215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34216 $as_echo "$ac_try_echo") >&5
34217 (eval "$ac_try") 2>&5
34219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); }; }; then
34221 gl_cv_func_fchownat_nofollow_works=yes
34223 $as_echo "$as_me: program exited with status $ac_status" >&5
34224 $as_echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34227 ( exit $ac_status )
34228 gl_cv_func_fchownat_nofollow_works=no
34230 rm -rf conftest.dSYM
34231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34237 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
34238 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
34239 if test $gl_cv_func_fchownat_nofollow_works = no; then
34242 cat >>confdefs.h <<\_ACEOF
34243 #define FCHOWNAT_NOFOLLOW_BUG 1
34253 if test $REPLACE_CHOWN = 1; then
34256 if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
34265 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
34287 for ac_func in getppriv
34289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34290 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34291 $as_echo_n "checking for $ac_func... " >&6; }
34292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34293 $as_echo_n "(cached) " >&6
34295 cat >conftest.$ac_ext <<_ACEOF
34298 cat confdefs.h >>conftest.$ac_ext
34299 cat >>conftest.$ac_ext <<_ACEOF
34300 /* end confdefs.h. */
34301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34303 #define $ac_func innocuous_$ac_func
34305 /* System header to define __stub macros and hopefully few prototypes,
34306 which can conflict with char $ac_func (); below.
34307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34308 <limits.h> exists even on freestanding compilers. */
34311 # include <limits.h>
34313 # include <assert.h>
34318 /* Override any GCC internal prototype to avoid an error.
34319 Use char because int might match the return type of a GCC
34320 builtin and then its argument prototype would still apply. */
34325 /* The GNU C library defines this for functions which it implements
34326 to always fail with ENOSYS. Some functions are actually named
34327 something starting with __ and the normal name is an alias. */
34328 #if defined __stub_$ac_func || defined __stub___$ac_func
34335 return $ac_func ();
34340 rm -f conftest.$ac_objext conftest$ac_exeext
34341 if { (ac_try="$ac_link"
34342 case "(($ac_try" in
34343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34344 *) ac_try_echo=$ac_try;;
34346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34347 $as_echo "$ac_try_echo") >&5
34348 (eval "$ac_link") 2>conftest.er1
34350 grep -v '^ *+' conftest.er1 >conftest.err
34352 cat conftest.err >&5
34353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); } && {
34355 test -z "$ac_c_werror_flag" ||
34356 test ! -s conftest.err
34357 } && test -s conftest$ac_exeext && {
34358 test "$cross_compiling" = yes ||
34359 $as_test_x conftest$ac_exeext
34361 eval "$as_ac_var=yes"
34363 $as_echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34366 eval "$as_ac_var=no"
34369 rm -rf conftest.dSYM
34370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34371 conftest$ac_exeext conftest.$ac_ext
34373 ac_res=`eval 'as_val=${'$as_ac_var'}
34374 $as_echo "$as_val"'`
34375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34376 $as_echo "$ac_res" >&6; }
34377 as_val=`eval 'as_val=${'$as_ac_var'}
34378 $as_echo "$as_val"'`
34379 if test "x$as_val" = x""yes; then
34380 cat >>confdefs.h <<_ACEOF
34381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34388 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
34389 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
34390 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
34391 $as_echo_n "(cached) " >&6
34393 cat >conftest.$ac_ext <<_ACEOF
34396 cat confdefs.h >>conftest.$ac_ext
34397 cat >>conftest.$ac_ext <<_ACEOF
34398 /* end confdefs.h. */
34404 #ifndef program_invocation_name
34405 (void) program_invocation_name;
34412 rm -f conftest.$ac_objext
34413 if { (ac_try="$ac_compile"
34414 case "(($ac_try" in
34415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34416 *) ac_try_echo=$ac_try;;
34418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34419 $as_echo "$ac_try_echo") >&5
34420 (eval "$ac_compile") 2>conftest.er1
34422 grep -v '^ *+' conftest.er1 >conftest.err
34424 cat conftest.err >&5
34425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426 (exit $ac_status); } && {
34427 test -z "$ac_c_werror_flag" ||
34428 test ! -s conftest.err
34429 } && test -s conftest.$ac_objext; then
34430 ac_cv_have_decl_program_invocation_name=yes
34432 $as_echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34435 ac_cv_have_decl_program_invocation_name=no
34438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34440 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
34441 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
34442 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
34444 cat >>confdefs.h <<_ACEOF
34445 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
34450 cat >>confdefs.h <<_ACEOF
34451 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
34458 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
34459 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
34460 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
34461 $as_echo_n "(cached) " >&6
34463 cat >conftest.$ac_ext <<_ACEOF
34466 cat confdefs.h >>conftest.$ac_ext
34467 cat >>conftest.$ac_ext <<_ACEOF
34468 /* end confdefs.h. */
34474 #ifndef program_invocation_short_name
34475 (void) program_invocation_short_name;
34482 rm -f conftest.$ac_objext
34483 if { (ac_try="$ac_compile"
34484 case "(($ac_try" in
34485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486 *) ac_try_echo=$ac_try;;
34488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34489 $as_echo "$ac_try_echo") >&5
34490 (eval "$ac_compile") 2>conftest.er1
34492 grep -v '^ *+' conftest.er1 >conftest.err
34494 cat conftest.err >&5
34495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496 (exit $ac_status); } && {
34497 test -z "$ac_c_werror_flag" ||
34498 test ! -s conftest.err
34499 } && test -s conftest.$ac_objext; then
34500 ac_cv_have_decl_program_invocation_short_name=yes
34502 $as_echo "$as_me: failed program was:" >&5
34503 sed 's/^/| /' conftest.$ac_ext >&5
34505 ac_cv_have_decl_program_invocation_short_name=no
34508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34510 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
34511 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
34512 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
34514 cat >>confdefs.h <<_ACEOF
34515 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
34520 cat >>confdefs.h <<_ACEOF
34521 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
34537 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
34550 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
34566 for ac_func in rawmemchr
34568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34569 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34570 $as_echo_n "checking for $ac_func... " >&6; }
34571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34572 $as_echo_n "(cached) " >&6
34574 cat >conftest.$ac_ext <<_ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h. */
34580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34582 #define $ac_func innocuous_$ac_func
34584 /* System header to define __stub macros and hopefully few prototypes,
34585 which can conflict with char $ac_func (); below.
34586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34587 <limits.h> exists even on freestanding compilers. */
34590 # include <limits.h>
34592 # include <assert.h>
34597 /* Override any GCC internal prototype to avoid an error.
34598 Use char because int might match the return type of a GCC
34599 builtin and then its argument prototype would still apply. */
34604 /* The GNU C library defines this for functions which it implements
34605 to always fail with ENOSYS. Some functions are actually named
34606 something starting with __ and the normal name is an alias. */
34607 #if defined __stub_$ac_func || defined __stub___$ac_func
34614 return $ac_func ();
34619 rm -f conftest.$ac_objext conftest$ac_exeext
34620 if { (ac_try="$ac_link"
34621 case "(($ac_try" in
34622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34623 *) ac_try_echo=$ac_try;;
34625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34626 $as_echo "$ac_try_echo") >&5
34627 (eval "$ac_link") 2>conftest.er1
34629 grep -v '^ *+' conftest.er1 >conftest.err
34631 cat conftest.err >&5
34632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); } && {
34634 test -z "$ac_c_werror_flag" ||
34635 test ! -s conftest.err
34636 } && test -s conftest$ac_exeext && {
34637 test "$cross_compiling" = yes ||
34638 $as_test_x conftest$ac_exeext
34640 eval "$as_ac_var=yes"
34642 $as_echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34645 eval "$as_ac_var=no"
34648 rm -rf conftest.dSYM
34649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34650 conftest$ac_exeext conftest.$ac_ext
34652 ac_res=`eval 'as_val=${'$as_ac_var'}
34653 $as_echo "$as_val"'`
34654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34655 $as_echo "$ac_res" >&6; }
34656 as_val=`eval 'as_val=${'$as_ac_var'}
34657 $as_echo "$as_val"'`
34658 if test "x$as_val" = x""yes; then
34659 cat >>confdefs.h <<_ACEOF
34660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34665 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34671 if test $ac_cv_func_rawmemchr = no; then
34681 cat >>confdefs.h <<\_ACEOF
34682 #define GNULIB_RAWMEMCHR 1
34695 if test $ac_cv_func_readlink = no; then
34705 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34711 { $as_echo "$as_me:$LINENO: checking whether readlink signature is correct" >&5
34712 $as_echo_n "checking whether readlink signature is correct... " >&6; }
34713 if test "${gl_cv_decl_readlink_works+set}" = set; then
34714 $as_echo_n "(cached) " >&6
34716 cat >conftest.$ac_ext <<_ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h. */
34722 #include <unistd.h>
34723 /* Cause compilation failure if original declaration has wrong type. */
34724 ssize_t readlink (const char *, char *, size_t);
34733 rm -f conftest.$ac_objext
34734 if { (ac_try="$ac_compile"
34735 case "(($ac_try" in
34736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34737 *) ac_try_echo=$ac_try;;
34739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34740 $as_echo "$ac_try_echo") >&5
34741 (eval "$ac_compile") 2>conftest.er1
34743 grep -v '^ *+' conftest.er1 >conftest.err
34745 cat conftest.err >&5
34746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); } && {
34748 test -z "$ac_c_werror_flag" ||
34749 test ! -s conftest.err
34750 } && test -s conftest.$ac_objext; then
34751 gl_cv_decl_readlink_works=yes
34753 $as_echo "$as_me: failed program was:" >&5
34754 sed 's/^/| /' conftest.$ac_ext >&5
34756 gl_cv_decl_readlink_works=no
34759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34761 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_readlink_works" >&5
34762 $as_echo "$gl_cv_decl_readlink_works" >&6; }
34763 { $as_echo "$as_me:$LINENO: checking whether readlink handles trailing slash correctly" >&5
34764 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
34765 if test "${gl_cv_func_readlink_works+set}" = set; then
34766 $as_echo_n "(cached) " >&6
34768 # We have readlink, so assume ln -s works.
34769 ln -s conftest.no-such conftest.link
34770 ln -s conftest.link conftest.lnk2
34771 if test "$cross_compiling" = yes; then
34772 gl_cv_func_readlink_works="guessing no"
34774 cat >conftest.$ac_ext <<_ACEOF
34777 cat confdefs.h >>conftest.$ac_ext
34778 cat >>conftest.$ac_ext <<_ACEOF
34779 /* end confdefs.h. */
34780 #include <unistd.h>
34786 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
34791 rm -f conftest$ac_exeext
34792 if { (ac_try="$ac_link"
34793 case "(($ac_try" in
34794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795 *) ac_try_echo=$ac_try;;
34797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34798 $as_echo "$ac_try_echo") >&5
34799 (eval "$ac_link") 2>&5
34801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34803 { (case "(($ac_try" in
34804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34805 *) ac_try_echo=$ac_try;;
34807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34808 $as_echo "$ac_try_echo") >&5
34809 (eval "$ac_try") 2>&5
34811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); }; }; then
34813 gl_cv_func_readlink_works=yes
34815 $as_echo "$as_me: program exited with status $ac_status" >&5
34816 $as_echo "$as_me: failed program was:" >&5
34817 sed 's/^/| /' conftest.$ac_ext >&5
34819 ( exit $ac_status )
34820 gl_cv_func_readlink_works=no
34822 rm -rf conftest.dSYM
34823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34827 rm -f conftest.link conftest.lnk2
34829 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_readlink_works" >&5
34830 $as_echo "$gl_cv_func_readlink_works" >&6; }
34831 if test "$gl_cv_func_readlink_works" != yes; then
34833 cat >>confdefs.h <<\_ACEOF
34834 #define READLINK_TRAILING_SLASH_BUG 1
34846 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34848 elif test "$gl_cv_decl_readlink_works" != yes; then
34858 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34868 cat >>confdefs.h <<\_ACEOF
34869 #define GNULIB_READLINK 1
34876 if test $gl_cv_func_malloc_posix = yes; then
34877 HAVE_REALLOC_POSIX=1
34879 cat >>confdefs.h <<\_ACEOF
34880 #define HAVE_REALLOC_POSIX 1
34892 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
34894 HAVE_REALLOC_POSIX=0
34900 GNULIB_REALLOC_POSIX=1
34903 cat >>confdefs.h <<\_ACEOF
34904 #define GNULIB_REALLOC_POSIX 1
34918 # Check whether --with-included-regex was given.
34919 if test "${with_included_regex+set}" = set; then
34920 withval=$with_included_regex;
34924 case $with_included_regex in #(
34925 yes|no) ac_use_included_regex=$with_included_regex
34928 # If the system regex support is good enough that it passes the
34929 # following run test, then default to *not* using the included regex.c.
34930 # If cross compiling, assume the test would fail and use the included
34932 { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
34933 $as_echo_n "checking for working re_compile_pattern... " >&6; }
34934 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
34935 $as_echo_n "(cached) " >&6
34937 if test "$cross_compiling" = yes; then
34938 gl_cv_func_re_compile_pattern_working=no
34940 cat >conftest.$ac_ext <<_ACEOF
34943 cat confdefs.h >>conftest.$ac_ext
34944 cat >>conftest.$ac_ext <<_ACEOF
34945 /* end confdefs.h. */
34946 $ac_includes_default
34948 #include <locale.h>
34950 #include <limits.h>
34956 static struct re_pattern_buffer regex;
34957 unsigned char folded_chars[UCHAR_MAX + 1];
34960 struct re_registers regs;
34963 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
34964 This test needs valgrind to catch the bug on Debian
34965 GNU/Linux 3.1 x86, but it might catch the bug better
34966 on other platforms and it shouldn't hurt to try the
34968 if (setlocale (LC_ALL, "en_US.UTF-8"))
34970 static char const pat[] = "insert into";
34971 static char const data[] =
34972 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
34973 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
34975 memset (®ex, 0, sizeof regex);
34976 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
34979 if (re_search (®ex, data, sizeof data - 1,
34980 0, sizeof data - 1, ®s)
34983 if (! setlocale (LC_ALL, "C"))
34988 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
34989 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
34990 memset (®ex, 0, sizeof regex);
34991 s = re_compile_pattern ("a[^x]b", 6, ®ex);
34995 /* This should fail, but succeeds for glibc-2.5. */
34996 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
34999 /* This regular expression is from Spencer ere test number 75
35001 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
35002 memset (®ex, 0, sizeof regex);
35003 for (i = 0; i <= UCHAR_MAX; i++)
35004 folded_chars[i] = i;
35005 regex.translate = folded_chars;
35006 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
35007 /* This should fail with _Invalid character class name_ error. */
35011 /* Ensure that [b-a] is diagnosed as invalid. */
35012 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
35013 memset (®ex, 0, sizeof regex);
35014 s = re_compile_pattern ("a[b-a]", 6, ®ex);
35018 /* This should succeed, but does not for glibc-2.1.3. */
35019 memset (®ex, 0, sizeof regex);
35020 s = re_compile_pattern ("{1", 2, ®ex);
35025 /* The following example is derived from a problem report
35026 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
35027 memset (®ex, 0, sizeof regex);
35028 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
35032 /* This should match, but does not for glibc-2.2.1. */
35033 if (re_match (®ex, "an", 2, 0, ®s) != 2)
35036 memset (®ex, 0, sizeof regex);
35037 s = re_compile_pattern ("x", 1, ®ex);
35041 /* glibc-2.2.93 does not work with a negative RANGE argument. */
35042 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
35045 /* The version of regex.c in older versions of gnulib
35046 ignored RE_ICASE. Detect that problem too. */
35047 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
35048 memset (®ex, 0, sizeof regex);
35049 s = re_compile_pattern ("x", 1, ®ex);
35053 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
35056 /* Catch a bug reported by Vin Shelton in
35057 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
35059 re_set_syntax (RE_SYNTAX_POSIX_BASIC
35060 & ~RE_CONTEXT_INVALID_DUP
35061 & ~RE_NO_EMPTY_RANGES);
35062 memset (®ex, 0, sizeof regex);
35063 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
35067 /* REG_STARTEND was added to glibc on 2004-01-15.
35068 Reject older versions. */
35069 if (! REG_STARTEND)
35072 /* Reject hosts whose regoff_t values are too narrow.
35073 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
35075 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
35076 || sizeof (regoff_t) < sizeof (ssize_t))
35084 rm -f conftest$ac_exeext
35085 if { (ac_try="$ac_link"
35086 case "(($ac_try" in
35087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35088 *) ac_try_echo=$ac_try;;
35090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35091 $as_echo "$ac_try_echo") >&5
35092 (eval "$ac_link") 2>&5
35094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35096 { (case "(($ac_try" in
35097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098 *) ac_try_echo=$ac_try;;
35100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35101 $as_echo "$ac_try_echo") >&5
35102 (eval "$ac_try") 2>&5
35104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; }; then
35106 gl_cv_func_re_compile_pattern_working=yes
35108 $as_echo "$as_me: program exited with status $ac_status" >&5
35109 $as_echo "$as_me: failed program was:" >&5
35110 sed 's/^/| /' conftest.$ac_ext >&5
35112 ( exit $ac_status )
35113 gl_cv_func_re_compile_pattern_working=no
35115 rm -rf conftest.dSYM
35116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35121 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
35122 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
35123 case $gl_cv_func_re_compile_pattern_working in #(
35124 yes) ac_use_included_regex=no;; #(
35125 no) ac_use_included_regex=yes;;
35128 *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
35129 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
35130 { (exit 1); exit 1; }; }
35134 if test $ac_use_included_regex = yes; then
35136 cat >>confdefs.h <<\_ACEOF
35137 #define _REGEX_LARGE_OFFSETS 1
35141 cat >>confdefs.h <<\_ACEOF
35142 #define re_syntax_options rpl_re_syntax_options
35146 cat >>confdefs.h <<\_ACEOF
35147 #define re_set_syntax rpl_re_set_syntax
35151 cat >>confdefs.h <<\_ACEOF
35152 #define re_compile_pattern rpl_re_compile_pattern
35156 cat >>confdefs.h <<\_ACEOF
35157 #define re_compile_fastmap rpl_re_compile_fastmap
35161 cat >>confdefs.h <<\_ACEOF
35162 #define re_search rpl_re_search
35166 cat >>confdefs.h <<\_ACEOF
35167 #define re_search_2 rpl_re_search_2
35171 cat >>confdefs.h <<\_ACEOF
35172 #define re_match rpl_re_match
35176 cat >>confdefs.h <<\_ACEOF
35177 #define re_match_2 rpl_re_match_2
35181 cat >>confdefs.h <<\_ACEOF
35182 #define re_set_registers rpl_re_set_registers
35186 cat >>confdefs.h <<\_ACEOF
35187 #define re_comp rpl_re_comp
35191 cat >>confdefs.h <<\_ACEOF
35192 #define re_exec rpl_re_exec
35196 cat >>confdefs.h <<\_ACEOF
35197 #define regcomp rpl_regcomp
35201 cat >>confdefs.h <<\_ACEOF
35202 #define regexec rpl_regexec
35206 cat >>confdefs.h <<\_ACEOF
35207 #define regerror rpl_regerror
35211 cat >>confdefs.h <<\_ACEOF
35212 #define regfree rpl_regfree
35223 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
35231 for ac_header in libintl.h
35233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35236 $as_echo_n "checking for $ac_header... " >&6; }
35237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35238 $as_echo_n "(cached) " >&6
35240 ac_res=`eval 'as_val=${'$as_ac_Header'}
35241 $as_echo "$as_val"'`
35242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35243 $as_echo "$ac_res" >&6; }
35245 # Is the header compilable?
35246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35247 $as_echo_n "checking $ac_header usability... " >&6; }
35248 cat >conftest.$ac_ext <<_ACEOF
35251 cat confdefs.h >>conftest.$ac_ext
35252 cat >>conftest.$ac_ext <<_ACEOF
35253 /* end confdefs.h. */
35254 $ac_includes_default
35255 #include <$ac_header>
35257 rm -f conftest.$ac_objext
35258 if { (ac_try="$ac_compile"
35259 case "(($ac_try" in
35260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35261 *) ac_try_echo=$ac_try;;
35263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35264 $as_echo "$ac_try_echo") >&5
35265 (eval "$ac_compile") 2>conftest.er1
35267 grep -v '^ *+' conftest.er1 >conftest.err
35269 cat conftest.err >&5
35270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); } && {
35272 test -z "$ac_c_werror_flag" ||
35273 test ! -s conftest.err
35274 } && test -s conftest.$ac_objext; then
35275 ac_header_compiler=yes
35277 $as_echo "$as_me: failed program was:" >&5
35278 sed 's/^/| /' conftest.$ac_ext >&5
35280 ac_header_compiler=no
35283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35285 $as_echo "$ac_header_compiler" >&6; }
35287 # Is the header present?
35288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35289 $as_echo_n "checking $ac_header presence... " >&6; }
35290 cat >conftest.$ac_ext <<_ACEOF
35293 cat confdefs.h >>conftest.$ac_ext
35294 cat >>conftest.$ac_ext <<_ACEOF
35295 /* end confdefs.h. */
35296 #include <$ac_header>
35298 if { (ac_try="$ac_cpp conftest.$ac_ext"
35299 case "(($ac_try" in
35300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35301 *) ac_try_echo=$ac_try;;
35303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35304 $as_echo "$ac_try_echo") >&5
35305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35307 grep -v '^ *+' conftest.er1 >conftest.err
35309 cat conftest.err >&5
35310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } >/dev/null && {
35312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35313 test ! -s conftest.err
35315 ac_header_preproc=yes
35317 $as_echo "$as_me: failed program was:" >&5
35318 sed 's/^/| /' conftest.$ac_ext >&5
35320 ac_header_preproc=no
35323 rm -f conftest.err conftest.$ac_ext
35324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35325 $as_echo "$ac_header_preproc" >&6; }
35327 # So? What about this header?
35328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35334 ac_header_preproc=yes
35337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35340 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35344 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35350 ## ------------------------------ ##
35351 ## Report this to bug-tar@gnu.org ##
35352 ## ------------------------------ ##
35354 ) | sed "s/^/$as_me: WARNING: /" >&2
35357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35358 $as_echo_n "checking for $ac_header... " >&6; }
35359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35360 $as_echo_n "(cached) " >&6
35362 eval "$as_ac_Header=\$ac_header_preproc"
35364 ac_res=`eval 'as_val=${'$as_ac_Header'}
35365 $as_echo "$as_val"'`
35366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35367 $as_echo "$ac_res" >&6; }
35370 as_val=`eval 'as_val=${'$as_ac_Header'}
35371 $as_echo "$as_val"'`
35372 if test "x$as_val" = x""yes; then
35373 cat >>confdefs.h <<_ACEOF
35374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35391 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
35392 $as_echo_n "checking whether isblank is declared... " >&6; }
35393 if test "${ac_cv_have_decl_isblank+set}" = set; then
35394 $as_echo_n "(cached) " >&6
35396 cat >conftest.$ac_ext <<_ACEOF
35399 cat confdefs.h >>conftest.$ac_ext
35400 cat >>conftest.$ac_ext <<_ACEOF
35401 /* end confdefs.h. */
35415 rm -f conftest.$ac_objext
35416 if { (ac_try="$ac_compile"
35417 case "(($ac_try" in
35418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35419 *) ac_try_echo=$ac_try;;
35421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35422 $as_echo "$ac_try_echo") >&5
35423 (eval "$ac_compile") 2>conftest.er1
35425 grep -v '^ *+' conftest.er1 >conftest.err
35427 cat conftest.err >&5
35428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); } && {
35430 test -z "$ac_c_werror_flag" ||
35431 test ! -s conftest.err
35432 } && test -s conftest.$ac_objext; then
35433 ac_cv_have_decl_isblank=yes
35435 $as_echo "$as_me: failed program was:" >&5
35436 sed 's/^/| /' conftest.$ac_ext >&5
35438 ac_cv_have_decl_isblank=no
35441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35443 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
35444 $as_echo "$ac_cv_have_decl_isblank" >&6; }
35445 if test "x$ac_cv_have_decl_isblank" = x""yes; then
35447 cat >>confdefs.h <<_ACEOF
35448 #define HAVE_DECL_ISBLANK 1
35453 cat >>confdefs.h <<_ACEOF
35454 #define HAVE_DECL_ISBLANK 0
35476 for ac_func in rmdir
35478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35479 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35480 $as_echo_n "checking for $ac_func... " >&6; }
35481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35482 $as_echo_n "(cached) " >&6
35484 cat >conftest.$ac_ext <<_ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h. */
35490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35492 #define $ac_func innocuous_$ac_func
35494 /* System header to define __stub macros and hopefully few prototypes,
35495 which can conflict with char $ac_func (); below.
35496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35497 <limits.h> exists even on freestanding compilers. */
35500 # include <limits.h>
35502 # include <assert.h>
35507 /* Override any GCC internal prototype to avoid an error.
35508 Use char because int might match the return type of a GCC
35509 builtin and then its argument prototype would still apply. */
35514 /* The GNU C library defines this for functions which it implements
35515 to always fail with ENOSYS. Some functions are actually named
35516 something starting with __ and the normal name is an alias. */
35517 #if defined __stub_$ac_func || defined __stub___$ac_func
35524 return $ac_func ();
35529 rm -f conftest.$ac_objext conftest$ac_exeext
35530 if { (ac_try="$ac_link"
35531 case "(($ac_try" in
35532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35533 *) ac_try_echo=$ac_try;;
35535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35536 $as_echo "$ac_try_echo") >&5
35537 (eval "$ac_link") 2>conftest.er1
35539 grep -v '^ *+' conftest.er1 >conftest.err
35541 cat conftest.err >&5
35542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); } && {
35544 test -z "$ac_c_werror_flag" ||
35545 test ! -s conftest.err
35546 } && test -s conftest$ac_exeext && {
35547 test "$cross_compiling" = yes ||
35548 $as_test_x conftest$ac_exeext
35550 eval "$as_ac_var=yes"
35552 $as_echo "$as_me: failed program was:" >&5
35553 sed 's/^/| /' conftest.$ac_ext >&5
35555 eval "$as_ac_var=no"
35558 rm -rf conftest.dSYM
35559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35560 conftest$ac_exeext conftest.$ac_ext
35562 ac_res=`eval 'as_val=${'$as_ac_var'}
35563 $as_echo "$as_val"'`
35564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35565 $as_echo "$ac_res" >&6; }
35566 as_val=`eval 'as_val=${'$as_ac_var'}
35567 $as_echo "$as_val"'`
35568 if test "x$as_val" = x""yes; then
35569 cat >>confdefs.h <<_ACEOF
35570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35575 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35581 if test $ac_cv_func_rmdir = no; then
35583 # If someone lacks rmdir, make configure fail, and request
35584 # a bug report to inform us about it.
35585 if test x"$SKIP_RMDIR_CHECK" != xyes; then
35586 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35588 { { $as_echo "$as_me:$LINENO: error: Your system lacks the rmdir function.
35589 Please report this, along with the output of \"uname -a\", to the
35590 bug-coreutils@gnu.org mailing list. To continue past this point,
35591 rerun configure with SKIP_RMDIR_CHECK=yes.
35592 E.g., ./configure SKIP_RMDIR_CHECK=yes
35593 See \`config.log' for more details." >&5
35594 $as_echo "$as_me: error: Your system lacks the rmdir function.
35595 Please report this, along with the output of \"uname -a\", to the
35596 bug-coreutils@gnu.org mailing list. To continue past this point,
35597 rerun configure with SKIP_RMDIR_CHECK=yes.
35598 E.g., ./configure SKIP_RMDIR_CHECK=yes
35599 See \`config.log' for more details." >&2;}
35600 { (exit 1); exit 1; }; }; }
35603 { $as_echo "$as_me:$LINENO: checking whether rmdir works" >&5
35604 $as_echo_n "checking whether rmdir works... " >&6; }
35605 if test "${gl_cv_func_rmdir_works+set}" = set; then
35606 $as_echo_n "(cached) " >&6
35609 touch conftest.file
35610 if test "$cross_compiling" = yes; then
35611 gl_cv_func_rmdir_works="guessing no"
35613 cat >conftest.$ac_ext <<_ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h. */
35621 #include <unistd.h>
35626 return !rmdir ("conftest.file/") || errno != ENOTDIR
35627 || !rmdir ("conftest.dir/./");
35632 rm -f conftest$ac_exeext
35633 if { (ac_try="$ac_link"
35634 case "(($ac_try" in
35635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636 *) ac_try_echo=$ac_try;;
35638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35639 $as_echo "$ac_try_echo") >&5
35640 (eval "$ac_link") 2>&5
35642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35644 { (case "(($ac_try" in
35645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35646 *) ac_try_echo=$ac_try;;
35648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35649 $as_echo "$ac_try_echo") >&5
35650 (eval "$ac_try") 2>&5
35652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); }; }; then
35654 gl_cv_func_rmdir_works=yes
35656 $as_echo "$as_me: program exited with status $ac_status" >&5
35657 $as_echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35660 ( exit $ac_status )
35661 gl_cv_func_rmdir_works=no
35663 rm -rf conftest.dSYM
35664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35668 rm -rf conftest.dir conftest.file
35670 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_works" >&5
35671 $as_echo "$gl_cv_func_rmdir_works" >&6; }
35672 if test x"$gl_cv_func_rmdir_works" != xyes; then
35682 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
35692 cat >>confdefs.h <<\_ACEOF
35693 #define GNULIB_RMDIR 1
35711 for ac_func in rpmatch
35713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35715 $as_echo_n "checking for $ac_func... " >&6; }
35716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35717 $as_echo_n "(cached) " >&6
35719 cat >conftest.$ac_ext <<_ACEOF
35722 cat confdefs.h >>conftest.$ac_ext
35723 cat >>conftest.$ac_ext <<_ACEOF
35724 /* end confdefs.h. */
35725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35727 #define $ac_func innocuous_$ac_func
35729 /* System header to define __stub macros and hopefully few prototypes,
35730 which can conflict with char $ac_func (); below.
35731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35732 <limits.h> exists even on freestanding compilers. */
35735 # include <limits.h>
35737 # include <assert.h>
35742 /* Override any GCC internal prototype to avoid an error.
35743 Use char because int might match the return type of a GCC
35744 builtin and then its argument prototype would still apply. */
35749 /* The GNU C library defines this for functions which it implements
35750 to always fail with ENOSYS. Some functions are actually named
35751 something starting with __ and the normal name is an alias. */
35752 #if defined __stub_$ac_func || defined __stub___$ac_func
35759 return $ac_func ();
35764 rm -f conftest.$ac_objext conftest$ac_exeext
35765 if { (ac_try="$ac_link"
35766 case "(($ac_try" in
35767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35768 *) ac_try_echo=$ac_try;;
35770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35771 $as_echo "$ac_try_echo") >&5
35772 (eval "$ac_link") 2>conftest.er1
35774 grep -v '^ *+' conftest.er1 >conftest.err
35776 cat conftest.err >&5
35777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); } && {
35779 test -z "$ac_c_werror_flag" ||
35780 test ! -s conftest.err
35781 } && test -s conftest$ac_exeext && {
35782 test "$cross_compiling" = yes ||
35783 $as_test_x conftest$ac_exeext
35785 eval "$as_ac_var=yes"
35787 $as_echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35790 eval "$as_ac_var=no"
35793 rm -rf conftest.dSYM
35794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35795 conftest$ac_exeext conftest.$ac_ext
35797 ac_res=`eval 'as_val=${'$as_ac_var'}
35798 $as_echo "$as_val"'`
35799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35800 $as_echo "$ac_res" >&6; }
35801 as_val=`eval 'as_val=${'$as_ac_var'}
35802 $as_echo "$as_val"'`
35803 if test "x$as_val" = x""yes; then
35804 cat >>confdefs.h <<_ACEOF
35805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35810 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35816 if test $ac_cv_func_rpmatch = no; then
35819 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
35820 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; }
35821 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
35822 $as_echo_n "(cached) " >&6
35824 cat >conftest.$ac_ext <<_ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h. */
35830 #include <langinfo.h>
35834 char* cs = nl_langinfo(YESEXPR); return !cs;
35839 rm -f conftest.$ac_objext conftest$ac_exeext
35840 if { (ac_try="$ac_link"
35841 case "(($ac_try" in
35842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35843 *) ac_try_echo=$ac_try;;
35845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35846 $as_echo "$ac_try_echo") >&5
35847 (eval "$ac_link") 2>conftest.er1
35849 grep -v '^ *+' conftest.er1 >conftest.err
35851 cat conftest.err >&5
35852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); } && {
35854 test -z "$ac_c_werror_flag" ||
35855 test ! -s conftest.err
35856 } && test -s conftest$ac_exeext && {
35857 test "$cross_compiling" = yes ||
35858 $as_test_x conftest$ac_exeext
35860 gl_cv_langinfo_yesexpr=yes
35862 $as_echo "$as_me: failed program was:" >&5
35863 sed 's/^/| /' conftest.$ac_ext >&5
35865 gl_cv_langinfo_yesexpr=no
35868 rm -rf conftest.dSYM
35869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35870 conftest$ac_exeext conftest.$ac_ext
35873 { $as_echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
35874 $as_echo "$gl_cv_langinfo_yesexpr" >&6; }
35875 if test $gl_cv_langinfo_yesexpr = yes; then
35877 cat >>confdefs.h <<\_ACEOF
35878 #define HAVE_LANGINFO_YESEXPR 1
35890 cat >>confdefs.h <<\_ACEOF
35891 #define GNULIB_RPMATCH 1
35905 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
35921 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
35939 gl_LIBOBJS="$gl_LIBOBJS same.$ac_objext"
35959 gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
35977 gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
35982 if test $HAVE_SETENV$REPLACE_SETENV != 10; then
35991 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
36000 cat >>confdefs.h <<\_ACEOF
36001 #define GNULIB_SETENV 1
36008 for ac_header in stdint.h
36010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36013 $as_echo_n "checking for $ac_header... " >&6; }
36014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36015 $as_echo_n "(cached) " >&6
36017 ac_res=`eval 'as_val=${'$as_ac_Header'}
36018 $as_echo "$as_val"'`
36019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36020 $as_echo "$ac_res" >&6; }
36022 # Is the header compilable?
36023 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36024 $as_echo_n "checking $ac_header usability... " >&6; }
36025 cat >conftest.$ac_ext <<_ACEOF
36028 cat confdefs.h >>conftest.$ac_ext
36029 cat >>conftest.$ac_ext <<_ACEOF
36030 /* end confdefs.h. */
36031 $ac_includes_default
36032 #include <$ac_header>
36034 rm -f conftest.$ac_objext
36035 if { (ac_try="$ac_compile"
36036 case "(($ac_try" in
36037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36038 *) ac_try_echo=$ac_try;;
36040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36041 $as_echo "$ac_try_echo") >&5
36042 (eval "$ac_compile") 2>conftest.er1
36044 grep -v '^ *+' conftest.er1 >conftest.err
36046 cat conftest.err >&5
36047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); } && {
36049 test -z "$ac_c_werror_flag" ||
36050 test ! -s conftest.err
36051 } && test -s conftest.$ac_objext; then
36052 ac_header_compiler=yes
36054 $as_echo "$as_me: failed program was:" >&5
36055 sed 's/^/| /' conftest.$ac_ext >&5
36057 ac_header_compiler=no
36060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36062 $as_echo "$ac_header_compiler" >&6; }
36064 # Is the header present?
36065 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36066 $as_echo_n "checking $ac_header presence... " >&6; }
36067 cat >conftest.$ac_ext <<_ACEOF
36070 cat confdefs.h >>conftest.$ac_ext
36071 cat >>conftest.$ac_ext <<_ACEOF
36072 /* end confdefs.h. */
36073 #include <$ac_header>
36075 if { (ac_try="$ac_cpp conftest.$ac_ext"
36076 case "(($ac_try" in
36077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36078 *) ac_try_echo=$ac_try;;
36080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36081 $as_echo "$ac_try_echo") >&5
36082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36084 grep -v '^ *+' conftest.er1 >conftest.err
36086 cat conftest.err >&5
36087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); } >/dev/null && {
36089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36090 test ! -s conftest.err
36092 ac_header_preproc=yes
36094 $as_echo "$as_me: failed program was:" >&5
36095 sed 's/^/| /' conftest.$ac_ext >&5
36097 ac_header_preproc=no
36100 rm -f conftest.err conftest.$ac_ext
36101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36102 $as_echo "$ac_header_preproc" >&6; }
36104 # So? What about this header?
36105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36108 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36111 ac_header_preproc=yes
36114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36115 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36117 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36119 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36121 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36125 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36127 ## ------------------------------ ##
36128 ## Report this to bug-tar@gnu.org ##
36129 ## ------------------------------ ##
36131 ) | sed "s/^/$as_me: WARNING: /" >&2
36134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36135 $as_echo_n "checking for $ac_header... " >&6; }
36136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36137 $as_echo_n "(cached) " >&6
36139 eval "$as_ac_Header=\$ac_header_preproc"
36141 ac_res=`eval 'as_val=${'$as_ac_Header'}
36142 $as_echo "$as_val"'`
36143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36144 $as_echo "$ac_res" >&6; }
36147 as_val=`eval 'as_val=${'$as_ac_Header'}
36148 $as_echo "$as_val"'`
36149 if test "x$as_val" = x""yes; then
36150 cat >>confdefs.h <<_ACEOF
36151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36158 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
36159 $as_echo_n "checking for SIZE_MAX... " >&6; }
36160 if test "${gl_cv_size_max+set}" = set; then
36161 $as_echo_n "(cached) " >&6
36165 cat >conftest.$ac_ext <<_ACEOF
36168 cat confdefs.h >>conftest.$ac_ext
36169 cat >>conftest.$ac_ext <<_ACEOF
36170 /* end confdefs.h. */
36172 #include <limits.h>
36174 #include <stdint.h>
36181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36182 $EGREP "Found it" >/dev/null 2>&1; then
36187 if test -z "$gl_cv_size_max"; then
36188 if test "$cross_compiling" = yes; then
36189 # Depending upon the size, compute the lo and hi bounds.
36190 cat >conftest.$ac_ext <<_ACEOF
36193 cat confdefs.h >>conftest.$ac_ext
36194 cat >>conftest.$ac_ext <<_ACEOF
36195 /* end confdefs.h. */
36196 #include <stddef.h>
36197 #include <limits.h>
36201 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
36208 rm -f conftest.$ac_objext
36209 if { (ac_try="$ac_compile"
36210 case "(($ac_try" in
36211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36212 *) ac_try_echo=$ac_try;;
36214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36215 $as_echo "$ac_try_echo") >&5
36216 (eval "$ac_compile") 2>conftest.er1
36218 grep -v '^ *+' conftest.er1 >conftest.err
36220 cat conftest.err >&5
36221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222 (exit $ac_status); } && {
36223 test -z "$ac_c_werror_flag" ||
36224 test ! -s conftest.err
36225 } && test -s conftest.$ac_objext; then
36228 cat >conftest.$ac_ext <<_ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h. */
36234 #include <stddef.h>
36235 #include <limits.h>
36239 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
36246 rm -f conftest.$ac_objext
36247 if { (ac_try="$ac_compile"
36248 case "(($ac_try" in
36249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36250 *) ac_try_echo=$ac_try;;
36252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36253 $as_echo "$ac_try_echo") >&5
36254 (eval "$ac_compile") 2>conftest.er1
36256 grep -v '^ *+' conftest.er1 >conftest.err
36258 cat conftest.err >&5
36259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); } && {
36261 test -z "$ac_c_werror_flag" ||
36262 test ! -s conftest.err
36263 } && test -s conftest.$ac_objext; then
36264 ac_hi=$ac_mid; break
36266 $as_echo "$as_me: failed program was:" >&5
36267 sed 's/^/| /' conftest.$ac_ext >&5
36269 ac_lo=`expr $ac_mid + 1`
36270 if test $ac_lo -le $ac_mid; then
36274 ac_mid=`expr 2 '*' $ac_mid + 1`
36277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36280 $as_echo "$as_me: failed program was:" >&5
36281 sed 's/^/| /' conftest.$ac_ext >&5
36283 cat >conftest.$ac_ext <<_ACEOF
36286 cat confdefs.h >>conftest.$ac_ext
36287 cat >>conftest.$ac_ext <<_ACEOF
36288 /* end confdefs.h. */
36289 #include <stddef.h>
36290 #include <limits.h>
36294 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
36301 rm -f conftest.$ac_objext
36302 if { (ac_try="$ac_compile"
36303 case "(($ac_try" in
36304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36305 *) ac_try_echo=$ac_try;;
36307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36308 $as_echo "$ac_try_echo") >&5
36309 (eval "$ac_compile") 2>conftest.er1
36311 grep -v '^ *+' conftest.er1 >conftest.err
36313 cat conftest.err >&5
36314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); } && {
36316 test -z "$ac_c_werror_flag" ||
36317 test ! -s conftest.err
36318 } && test -s conftest.$ac_objext; then
36321 cat >conftest.$ac_ext <<_ACEOF
36324 cat confdefs.h >>conftest.$ac_ext
36325 cat >>conftest.$ac_ext <<_ACEOF
36326 /* end confdefs.h. */
36327 #include <stddef.h>
36328 #include <limits.h>
36332 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
36339 rm -f conftest.$ac_objext
36340 if { (ac_try="$ac_compile"
36341 case "(($ac_try" in
36342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36343 *) ac_try_echo=$ac_try;;
36345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36346 $as_echo "$ac_try_echo") >&5
36347 (eval "$ac_compile") 2>conftest.er1
36349 grep -v '^ *+' conftest.er1 >conftest.err
36351 cat conftest.err >&5
36352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); } && {
36354 test -z "$ac_c_werror_flag" ||
36355 test ! -s conftest.err
36356 } && test -s conftest.$ac_objext; then
36357 ac_lo=$ac_mid; break
36359 $as_echo "$as_me: failed program was:" >&5
36360 sed 's/^/| /' conftest.$ac_ext >&5
36362 ac_hi=`expr '(' $ac_mid ')' - 1`
36363 if test $ac_mid -le $ac_hi; then
36367 ac_mid=`expr 2 '*' $ac_mid`
36370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36373 $as_echo "$as_me: failed program was:" >&5
36374 sed 's/^/| /' conftest.$ac_ext >&5
36379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36383 # Binary search between lo and hi bounds.
36384 while test "x$ac_lo" != "x$ac_hi"; do
36385 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36386 cat >conftest.$ac_ext <<_ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h. */
36392 #include <stddef.h>
36393 #include <limits.h>
36397 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
36404 rm -f conftest.$ac_objext
36405 if { (ac_try="$ac_compile"
36406 case "(($ac_try" in
36407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408 *) ac_try_echo=$ac_try;;
36410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36411 $as_echo "$ac_try_echo") >&5
36412 (eval "$ac_compile") 2>conftest.er1
36414 grep -v '^ *+' conftest.er1 >conftest.err
36416 cat conftest.err >&5
36417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418 (exit $ac_status); } && {
36419 test -z "$ac_c_werror_flag" ||
36420 test ! -s conftest.err
36421 } && test -s conftest.$ac_objext; then
36424 $as_echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36427 ac_lo=`expr '(' $ac_mid ')' + 1`
36430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36433 ?*) size_t_bits_minus_1=$ac_lo;;
36434 '') size_t_bits_minus_1= ;;
36437 cat >conftest.$ac_ext <<_ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h. */
36443 #include <stddef.h>
36444 #include <limits.h>
36445 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
36446 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
36448 #include <stdlib.h>
36453 FILE *f = fopen ("conftest.val", "w");
36456 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
36458 long int i = longval ();
36459 if (i != (sizeof (size_t) * CHAR_BIT - 1))
36461 fprintf (f, "%ld", i);
36465 unsigned long int i = ulongval ();
36466 if (i != (sizeof (size_t) * CHAR_BIT - 1))
36468 fprintf (f, "%lu", i);
36470 /* Do not output a trailing newline, as this causes \r\n confusion
36471 on some platforms. */
36472 return ferror (f) || fclose (f) != 0;
36478 rm -f conftest$ac_exeext
36479 if { (ac_try="$ac_link"
36480 case "(($ac_try" in
36481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36482 *) ac_try_echo=$ac_try;;
36484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36485 $as_echo "$ac_try_echo") >&5
36486 (eval "$ac_link") 2>&5
36488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36490 { (case "(($ac_try" in
36491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36492 *) ac_try_echo=$ac_try;;
36494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36495 $as_echo "$ac_try_echo") >&5
36496 (eval "$ac_try") 2>&5
36498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 (exit $ac_status); }; }; then
36500 size_t_bits_minus_1=`cat conftest.val`
36502 $as_echo "$as_me: program exited with status $ac_status" >&5
36503 $as_echo "$as_me: failed program was:" >&5
36504 sed 's/^/| /' conftest.$ac_ext >&5
36506 ( exit $ac_status )
36507 size_t_bits_minus_1=
36509 rm -rf conftest.dSYM
36510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36513 if test "$cross_compiling" = yes; then
36514 # Depending upon the size, compute the lo and hi bounds.
36515 cat >conftest.$ac_ext <<_ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h. */
36521 #include <stddef.h>
36525 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
36532 rm -f conftest.$ac_objext
36533 if { (ac_try="$ac_compile"
36534 case "(($ac_try" in
36535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536 *) ac_try_echo=$ac_try;;
36538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36539 $as_echo "$ac_try_echo") >&5
36540 (eval "$ac_compile") 2>conftest.er1
36542 grep -v '^ *+' conftest.er1 >conftest.err
36544 cat conftest.err >&5
36545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); } && {
36547 test -z "$ac_c_werror_flag" ||
36548 test ! -s conftest.err
36549 } && test -s conftest.$ac_objext; then
36552 cat >conftest.$ac_ext <<_ACEOF
36555 cat confdefs.h >>conftest.$ac_ext
36556 cat >>conftest.$ac_ext <<_ACEOF
36557 /* end confdefs.h. */
36558 #include <stddef.h>
36562 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
36569 rm -f conftest.$ac_objext
36570 if { (ac_try="$ac_compile"
36571 case "(($ac_try" in
36572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36573 *) ac_try_echo=$ac_try;;
36575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36576 $as_echo "$ac_try_echo") >&5
36577 (eval "$ac_compile") 2>conftest.er1
36579 grep -v '^ *+' conftest.er1 >conftest.err
36581 cat conftest.err >&5
36582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } && {
36584 test -z "$ac_c_werror_flag" ||
36585 test ! -s conftest.err
36586 } && test -s conftest.$ac_objext; then
36587 ac_hi=$ac_mid; break
36589 $as_echo "$as_me: failed program was:" >&5
36590 sed 's/^/| /' conftest.$ac_ext >&5
36592 ac_lo=`expr $ac_mid + 1`
36593 if test $ac_lo -le $ac_mid; then
36597 ac_mid=`expr 2 '*' $ac_mid + 1`
36600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36603 $as_echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36606 cat >conftest.$ac_ext <<_ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h. */
36612 #include <stddef.h>
36616 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
36623 rm -f conftest.$ac_objext
36624 if { (ac_try="$ac_compile"
36625 case "(($ac_try" in
36626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36627 *) ac_try_echo=$ac_try;;
36629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36630 $as_echo "$ac_try_echo") >&5
36631 (eval "$ac_compile") 2>conftest.er1
36633 grep -v '^ *+' conftest.er1 >conftest.err
36635 cat conftest.err >&5
36636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); } && {
36638 test -z "$ac_c_werror_flag" ||
36639 test ! -s conftest.err
36640 } && test -s conftest.$ac_objext; then
36643 cat >conftest.$ac_ext <<_ACEOF
36646 cat confdefs.h >>conftest.$ac_ext
36647 cat >>conftest.$ac_ext <<_ACEOF
36648 /* end confdefs.h. */
36649 #include <stddef.h>
36653 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
36660 rm -f conftest.$ac_objext
36661 if { (ac_try="$ac_compile"
36662 case "(($ac_try" in
36663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36664 *) ac_try_echo=$ac_try;;
36666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36667 $as_echo "$ac_try_echo") >&5
36668 (eval "$ac_compile") 2>conftest.er1
36670 grep -v '^ *+' conftest.er1 >conftest.err
36672 cat conftest.err >&5
36673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674 (exit $ac_status); } && {
36675 test -z "$ac_c_werror_flag" ||
36676 test ! -s conftest.err
36677 } && test -s conftest.$ac_objext; then
36678 ac_lo=$ac_mid; break
36680 $as_echo "$as_me: failed program was:" >&5
36681 sed 's/^/| /' conftest.$ac_ext >&5
36683 ac_hi=`expr '(' $ac_mid ')' - 1`
36684 if test $ac_mid -le $ac_hi; then
36688 ac_mid=`expr 2 '*' $ac_mid`
36691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36694 $as_echo "$as_me: failed program was:" >&5
36695 sed 's/^/| /' conftest.$ac_ext >&5
36700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36704 # Binary search between lo and hi bounds.
36705 while test "x$ac_lo" != "x$ac_hi"; do
36706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36707 cat >conftest.$ac_ext <<_ACEOF
36710 cat confdefs.h >>conftest.$ac_ext
36711 cat >>conftest.$ac_ext <<_ACEOF
36712 /* end confdefs.h. */
36713 #include <stddef.h>
36717 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
36724 rm -f conftest.$ac_objext
36725 if { (ac_try="$ac_compile"
36726 case "(($ac_try" in
36727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728 *) ac_try_echo=$ac_try;;
36730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36731 $as_echo "$ac_try_echo") >&5
36732 (eval "$ac_compile") 2>conftest.er1
36734 grep -v '^ *+' conftest.er1 >conftest.err
36736 cat conftest.err >&5
36737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738 (exit $ac_status); } && {
36739 test -z "$ac_c_werror_flag" ||
36740 test ! -s conftest.err
36741 } && test -s conftest.$ac_objext; then
36744 $as_echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36747 ac_lo=`expr '(' $ac_mid ')' + 1`
36750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36753 ?*) fits_in_uint=$ac_lo;;
36754 '') fits_in_uint= ;;
36757 cat >conftest.$ac_ext <<_ACEOF
36760 cat confdefs.h >>conftest.$ac_ext
36761 cat >>conftest.$ac_ext <<_ACEOF
36762 /* end confdefs.h. */
36763 #include <stddef.h>
36764 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
36765 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
36767 #include <stdlib.h>
36772 FILE *f = fopen ("conftest.val", "w");
36775 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
36777 long int i = longval ();
36778 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
36780 fprintf (f, "%ld", i);
36784 unsigned long int i = ulongval ();
36785 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
36787 fprintf (f, "%lu", i);
36789 /* Do not output a trailing newline, as this causes \r\n confusion
36790 on some platforms. */
36791 return ferror (f) || fclose (f) != 0;
36797 rm -f conftest$ac_exeext
36798 if { (ac_try="$ac_link"
36799 case "(($ac_try" in
36800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801 *) ac_try_echo=$ac_try;;
36803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36804 $as_echo "$ac_try_echo") >&5
36805 (eval "$ac_link") 2>&5
36807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36809 { (case "(($ac_try" in
36810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36811 *) ac_try_echo=$ac_try;;
36813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36814 $as_echo "$ac_try_echo") >&5
36815 (eval "$ac_try") 2>&5
36817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); }; }; then
36819 fits_in_uint=`cat conftest.val`
36821 $as_echo "$as_me: program exited with status $ac_status" >&5
36822 $as_echo "$as_me: failed program was:" >&5
36823 sed 's/^/| /' conftest.$ac_ext >&5
36825 ( exit $ac_status )
36828 rm -rf conftest.dSYM
36829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36832 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
36833 if test $fits_in_uint = 1; then
36834 cat >conftest.$ac_ext <<_ACEOF
36837 cat confdefs.h >>conftest.$ac_ext
36838 cat >>conftest.$ac_ext <<_ACEOF
36839 /* end confdefs.h. */
36840 #include <stddef.h>
36842 extern unsigned long foo;
36852 rm -f conftest.$ac_objext
36853 if { (ac_try="$ac_compile"
36854 case "(($ac_try" in
36855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36856 *) ac_try_echo=$ac_try;;
36858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36859 $as_echo "$ac_try_echo") >&5
36860 (eval "$ac_compile") 2>conftest.er1
36862 grep -v '^ *+' conftest.er1 >conftest.err
36864 cat conftest.err >&5
36865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866 (exit $ac_status); } && {
36867 test -z "$ac_c_werror_flag" ||
36868 test ! -s conftest.err
36869 } && test -s conftest.$ac_objext; then
36872 $as_echo "$as_me: failed program was:" >&5
36873 sed 's/^/| /' conftest.$ac_ext >&5
36878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36880 if test $fits_in_uint = 1; then
36881 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
36883 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
36886 gl_cv_size_max='((size_t)~(size_t)0)'
36891 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
36892 $as_echo "$gl_cv_size_max" >&6; }
36893 if test "$gl_cv_size_max" != yes; then
36895 cat >>confdefs.h <<_ACEOF
36896 #define SIZE_MAX $gl_cv_size_max
36905 { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
36906 $as_echo_n "checking whether sleep is declared... " >&6; }
36907 if test "${ac_cv_have_decl_sleep+set}" = set; then
36908 $as_echo_n "(cached) " >&6
36910 cat >conftest.$ac_ext <<_ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h. */
36916 #include <unistd.h>
36929 rm -f conftest.$ac_objext
36930 if { (ac_try="$ac_compile"
36931 case "(($ac_try" in
36932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36933 *) ac_try_echo=$ac_try;;
36935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36936 $as_echo "$ac_try_echo") >&5
36937 (eval "$ac_compile") 2>conftest.er1
36939 grep -v '^ *+' conftest.er1 >conftest.err
36941 cat conftest.err >&5
36942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); } && {
36944 test -z "$ac_c_werror_flag" ||
36945 test ! -s conftest.err
36946 } && test -s conftest.$ac_objext; then
36947 ac_cv_have_decl_sleep=yes
36949 $as_echo "$as_me: failed program was:" >&5
36950 sed 's/^/| /' conftest.$ac_ext >&5
36952 ac_cv_have_decl_sleep=no
36955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36957 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
36958 $as_echo "$ac_cv_have_decl_sleep" >&6; }
36959 if test "x$ac_cv_have_decl_sleep" = x""yes; then
36961 cat >>confdefs.h <<_ACEOF
36962 #define HAVE_DECL_SLEEP 1
36967 cat >>confdefs.h <<_ACEOF
36968 #define HAVE_DECL_SLEEP 0
36981 if test $ac_cv_have_decl_sleep != yes; then
36991 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
36994 { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
36995 $as_echo_n "checking for working sleep... " >&6; }
36996 if test "${gl_cv_func_sleep_works+set}" = set; then
36997 $as_echo_n "(cached) " >&6
36999 if test "$cross_compiling" = yes; then
37000 gl_cv_func_sleep_works="guessing no"
37002 cat >conftest.$ac_ext <<_ACEOF
37005 cat confdefs.h >>conftest.$ac_ext
37006 cat >>conftest.$ac_ext <<_ACEOF
37007 /* end confdefs.h. */
37010 #include <unistd.h>
37011 #include <signal.h>
37013 handle_alarm (int sig)
37015 if (sig != SIGALRM)
37023 /* Failure to compile this test due to missing alarm is okay,
37024 since all such platforms (mingw) also lack sleep. */
37025 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
37026 unsigned int remaining;
37027 signal (SIGALRM, handle_alarm);
37029 remaining = sleep (pentecost);
37030 return !(pentecost - 10 < remaining && remaining <= pentecost);
37035 rm -f conftest$ac_exeext
37036 if { (ac_try="$ac_link"
37037 case "(($ac_try" in
37038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039 *) ac_try_echo=$ac_try;;
37041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37042 $as_echo "$ac_try_echo") >&5
37043 (eval "$ac_link") 2>&5
37045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37047 { (case "(($ac_try" in
37048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37049 *) ac_try_echo=$ac_try;;
37051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37052 $as_echo "$ac_try_echo") >&5
37053 (eval "$ac_try") 2>&5
37055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056 (exit $ac_status); }; }; then
37057 gl_cv_func_sleep_works=yes
37059 $as_echo "$as_me: program exited with status $ac_status" >&5
37060 $as_echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37063 ( exit $ac_status )
37064 gl_cv_func_sleep_works=no
37066 rm -rf conftest.dSYM
37067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37072 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
37073 $as_echo "$gl_cv_func_sleep_works" >&6; }
37074 if test "$gl_cv_func_sleep_works" != yes; then
37084 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
37094 cat >>confdefs.h <<\_ACEOF
37095 #define GNULIB_SLEEP 1
37102 gl_cv_func_snprintf_usable=no
37104 for ac_func in snprintf
37106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37108 $as_echo_n "checking for $ac_func... " >&6; }
37109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37110 $as_echo_n "(cached) " >&6
37112 cat >conftest.$ac_ext <<_ACEOF
37115 cat confdefs.h >>conftest.$ac_ext
37116 cat >>conftest.$ac_ext <<_ACEOF
37117 /* end confdefs.h. */
37118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37120 #define $ac_func innocuous_$ac_func
37122 /* System header to define __stub macros and hopefully few prototypes,
37123 which can conflict with char $ac_func (); below.
37124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37125 <limits.h> exists even on freestanding compilers. */
37128 # include <limits.h>
37130 # include <assert.h>
37135 /* Override any GCC internal prototype to avoid an error.
37136 Use char because int might match the return type of a GCC
37137 builtin and then its argument prototype would still apply. */
37142 /* The GNU C library defines this for functions which it implements
37143 to always fail with ENOSYS. Some functions are actually named
37144 something starting with __ and the normal name is an alias. */
37145 #if defined __stub_$ac_func || defined __stub___$ac_func
37152 return $ac_func ();
37157 rm -f conftest.$ac_objext conftest$ac_exeext
37158 if { (ac_try="$ac_link"
37159 case "(($ac_try" in
37160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37161 *) ac_try_echo=$ac_try;;
37163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37164 $as_echo "$ac_try_echo") >&5
37165 (eval "$ac_link") 2>conftest.er1
37167 grep -v '^ *+' conftest.er1 >conftest.err
37169 cat conftest.err >&5
37170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); } && {
37172 test -z "$ac_c_werror_flag" ||
37173 test ! -s conftest.err
37174 } && test -s conftest$ac_exeext && {
37175 test "$cross_compiling" = yes ||
37176 $as_test_x conftest$ac_exeext
37178 eval "$as_ac_var=yes"
37180 $as_echo "$as_me: failed program was:" >&5
37181 sed 's/^/| /' conftest.$ac_ext >&5
37183 eval "$as_ac_var=no"
37186 rm -rf conftest.dSYM
37187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37188 conftest$ac_exeext conftest.$ac_ext
37190 ac_res=`eval 'as_val=${'$as_ac_var'}
37191 $as_echo "$as_val"'`
37192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37193 $as_echo "$ac_res" >&6; }
37194 as_val=`eval 'as_val=${'$as_ac_var'}
37195 $as_echo "$as_val"'`
37196 if test "x$as_val" = x""yes; then
37197 cat >>confdefs.h <<_ACEOF
37198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37204 if test $ac_cv_func_snprintf = yes; then
37207 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
37208 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
37209 if test "${gl_cv_func_snprintf_size1+set}" = set; then
37210 $as_echo_n "(cached) " >&6
37213 if test "$cross_compiling" = yes; then
37214 gl_cv_func_snprintf_size1="guessing yes"
37216 cat >conftest.$ac_ext <<_ACEOF
37219 cat confdefs.h >>conftest.$ac_ext
37220 cat >>conftest.$ac_ext <<_ACEOF
37221 /* end confdefs.h. */
37226 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
37227 snprintf (buf, 1, "%d", 12345);
37228 return buf[1] != 'E';
37231 rm -f conftest$ac_exeext
37232 if { (ac_try="$ac_link"
37233 case "(($ac_try" in
37234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37235 *) ac_try_echo=$ac_try;;
37237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37238 $as_echo "$ac_try_echo") >&5
37239 (eval "$ac_link") 2>&5
37241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37243 { (case "(($ac_try" in
37244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37245 *) ac_try_echo=$ac_try;;
37247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37248 $as_echo "$ac_try_echo") >&5
37249 (eval "$ac_try") 2>&5
37251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37252 (exit $ac_status); }; }; then
37253 gl_cv_func_snprintf_size1=yes
37255 $as_echo "$as_me: program exited with status $ac_status" >&5
37256 $as_echo "$as_me: failed program was:" >&5
37257 sed 's/^/| /' conftest.$ac_ext >&5
37259 ( exit $ac_status )
37260 gl_cv_func_snprintf_size1=no
37262 rm -rf conftest.dSYM
37263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37269 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
37270 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
37272 case "$gl_cv_func_snprintf_size1" in
37274 gl_cv_func_snprintf_usable=yes
37278 if test $gl_cv_func_snprintf_usable = no; then
37289 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
37291 if test $ac_cv_func_snprintf = yes; then
37301 if test $ac_cv_have_decl_snprintf = no; then
37302 HAVE_DECL_SNPRINTF=0
37310 cat >>confdefs.h <<\_ACEOF
37311 #define GNULIB_SNPRINTF 1
37317 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
37318 $as_echo_n "checking for ssize_t... " >&6; }
37319 if test "${gt_cv_ssize_t+set}" = set; then
37320 $as_echo_n "(cached) " >&6
37322 cat >conftest.$ac_ext <<_ACEOF
37325 cat confdefs.h >>conftest.$ac_ext
37326 cat >>conftest.$ac_ext <<_ACEOF
37327 /* end confdefs.h. */
37328 #include <sys/types.h>
37332 int x = sizeof (ssize_t *) + sizeof (ssize_t);
37338 rm -f conftest.$ac_objext
37339 if { (ac_try="$ac_compile"
37340 case "(($ac_try" in
37341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37342 *) ac_try_echo=$ac_try;;
37344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37345 $as_echo "$ac_try_echo") >&5
37346 (eval "$ac_compile") 2>conftest.er1
37348 grep -v '^ *+' conftest.er1 >conftest.err
37350 cat conftest.err >&5
37351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352 (exit $ac_status); } && {
37353 test -z "$ac_c_werror_flag" ||
37354 test ! -s conftest.err
37355 } && test -s conftest.$ac_objext; then
37358 $as_echo "$as_me: failed program was:" >&5
37359 sed 's/^/| /' conftest.$ac_ext >&5
37364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37366 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
37367 $as_echo "$gt_cv_ssize_t" >&6; }
37368 if test $gt_cv_ssize_t = no; then
37370 cat >>confdefs.h <<\_ACEOF
37371 #define ssize_t int
37385 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
37386 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
37387 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
37388 $as_echo_n "(cached) " >&6
37390 if test "$cross_compiling" = yes; then
37392 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
37393 *) gl_cv_func_stat_dir_slash="guessing yes";;
37396 cat >conftest.$ac_ext <<_ACEOF
37399 cat confdefs.h >>conftest.$ac_ext
37400 cat >>conftest.$ac_ext <<_ACEOF
37401 /* end confdefs.h. */
37402 #include <sys/stat.h>
37407 struct stat st; return stat (".", &st) != stat ("./", &st);
37412 rm -f conftest$ac_exeext
37413 if { (ac_try="$ac_link"
37414 case "(($ac_try" in
37415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37416 *) ac_try_echo=$ac_try;;
37418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37419 $as_echo "$ac_try_echo") >&5
37420 (eval "$ac_link") 2>&5
37422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37424 { (case "(($ac_try" in
37425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37426 *) ac_try_echo=$ac_try;;
37428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37429 $as_echo "$ac_try_echo") >&5
37430 (eval "$ac_try") 2>&5
37432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); }; }; then
37434 gl_cv_func_stat_dir_slash=yes
37436 $as_echo "$as_me: program exited with status $ac_status" >&5
37437 $as_echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37440 ( exit $ac_status )
37441 gl_cv_func_stat_dir_slash=no
37443 rm -rf conftest.dSYM
37444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37449 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
37450 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
37451 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
37452 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
37453 if test "${gl_cv_func_stat_file_slash+set}" = set; then
37454 $as_echo_n "(cached) " >&6
37457 # Assume that if we have lstat, we can also check symlinks.
37458 if test $ac_cv_func_lstat = yes; then
37459 ln -s conftest.tmp conftest.lnk
37461 if test "$cross_compiling" = yes; then
37462 gl_cv_func_stat_file_slash="guessing no"
37464 cat >conftest.$ac_ext <<_ACEOF
37467 cat confdefs.h >>conftest.$ac_ext
37468 cat >>conftest.$ac_ext <<_ACEOF
37469 /* end confdefs.h. */
37470 #include <sys/stat.h>
37476 if (!stat ("conftest.tmp/", &st)) return 1;
37478 if (!stat ("conftest.lnk/", &st)) return 2;
37485 rm -f conftest$ac_exeext
37486 if { (ac_try="$ac_link"
37487 case "(($ac_try" in
37488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37489 *) ac_try_echo=$ac_try;;
37491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37492 $as_echo "$ac_try_echo") >&5
37493 (eval "$ac_link") 2>&5
37495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37497 { (case "(($ac_try" in
37498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499 *) ac_try_echo=$ac_try;;
37501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37502 $as_echo "$ac_try_echo") >&5
37503 (eval "$ac_try") 2>&5
37505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); }; }; then
37507 gl_cv_func_stat_file_slash=yes
37509 $as_echo "$as_me: program exited with status $ac_status" >&5
37510 $as_echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.$ac_ext >&5
37513 ( exit $ac_status )
37514 gl_cv_func_stat_file_slash=no
37516 rm -rf conftest.dSYM
37517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37521 rm -f conftest.tmp conftest.lnk
37523 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
37524 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
37525 case $gl_cv_func_stat_dir_slash in
37526 *no) REPLACE_STAT=1
37528 cat >>confdefs.h <<\_ACEOF
37529 #define REPLACE_FUNC_STAT_DIR 1
37533 case $gl_cv_func_stat_file_slash in
37534 *no) REPLACE_STAT=1
37536 cat >>confdefs.h <<\_ACEOF
37537 #define REPLACE_FUNC_STAT_FILE 1
37541 if test $REPLACE_STAT = 1; then
37550 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
37560 cat >>confdefs.h <<\_ACEOF
37561 #define GNULIB_STAT 1
37576 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
37577 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
37578 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
37579 $as_echo_n "(cached) " >&6
37581 cat >conftest.$ac_ext <<_ACEOF
37584 cat confdefs.h >>conftest.$ac_ext
37585 cat >>conftest.$ac_ext <<_ACEOF
37586 /* end confdefs.h. */
37587 #include <sys/types.h>
37588 #include <sys/stat.h>
37593 static struct stat ac_aggr;
37594 if (ac_aggr.st_atim.tv_nsec)
37600 rm -f conftest.$ac_objext
37601 if { (ac_try="$ac_compile"
37602 case "(($ac_try" in
37603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37604 *) ac_try_echo=$ac_try;;
37606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37607 $as_echo "$ac_try_echo") >&5
37608 (eval "$ac_compile") 2>conftest.er1
37610 grep -v '^ *+' conftest.er1 >conftest.err
37612 cat conftest.err >&5
37613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614 (exit $ac_status); } && {
37615 test -z "$ac_c_werror_flag" ||
37616 test ! -s conftest.err
37617 } && test -s conftest.$ac_objext; then
37618 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
37620 $as_echo "$as_me: failed program was:" >&5
37621 sed 's/^/| /' conftest.$ac_ext >&5
37623 cat >conftest.$ac_ext <<_ACEOF
37626 cat confdefs.h >>conftest.$ac_ext
37627 cat >>conftest.$ac_ext <<_ACEOF
37628 /* end confdefs.h. */
37629 #include <sys/types.h>
37630 #include <sys/stat.h>
37635 static struct stat ac_aggr;
37636 if (sizeof ac_aggr.st_atim.tv_nsec)
37642 rm -f conftest.$ac_objext
37643 if { (ac_try="$ac_compile"
37644 case "(($ac_try" in
37645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37646 *) ac_try_echo=$ac_try;;
37648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37649 $as_echo "$ac_try_echo") >&5
37650 (eval "$ac_compile") 2>conftest.er1
37652 grep -v '^ *+' conftest.er1 >conftest.err
37654 cat conftest.err >&5
37655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); } && {
37657 test -z "$ac_c_werror_flag" ||
37658 test ! -s conftest.err
37659 } && test -s conftest.$ac_objext; then
37660 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
37662 $as_echo "$as_me: failed program was:" >&5
37663 sed 's/^/| /' conftest.$ac_ext >&5
37665 ac_cv_member_struct_stat_st_atim_tv_nsec=no
37668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37673 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
37674 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
37675 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
37677 cat >>confdefs.h <<_ACEOF
37678 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
37681 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
37682 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
37683 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
37684 $as_echo_n "(cached) " >&6
37686 cat >conftest.$ac_ext <<_ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h. */
37693 #include <sys/types.h>
37694 #include <sys/stat.h>
37695 #if HAVE_SYS_TIME_H
37696 # include <sys/time.h>
37699 struct timespec ts;
37712 rm -f conftest.$ac_objext
37713 if { (ac_try="$ac_compile"
37714 case "(($ac_try" in
37715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716 *) ac_try_echo=$ac_try;;
37718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37719 $as_echo "$ac_try_echo") >&5
37720 (eval "$ac_compile") 2>conftest.er1
37722 grep -v '^ *+' conftest.er1 >conftest.err
37724 cat conftest.err >&5
37725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726 (exit $ac_status); } && {
37727 test -z "$ac_c_werror_flag" ||
37728 test ! -s conftest.err
37729 } && test -s conftest.$ac_objext; then
37730 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
37732 $as_echo "$as_me: failed program was:" >&5
37733 sed 's/^/| /' conftest.$ac_ext >&5
37735 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
37738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37740 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
37741 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
37742 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
37744 cat >>confdefs.h <<\_ACEOF
37745 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
37750 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
37751 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
37752 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
37753 $as_echo_n "(cached) " >&6
37755 cat >conftest.$ac_ext <<_ACEOF
37758 cat confdefs.h >>conftest.$ac_ext
37759 cat >>conftest.$ac_ext <<_ACEOF
37760 /* end confdefs.h. */
37761 #include <sys/types.h>
37762 #include <sys/stat.h>
37767 static struct stat ac_aggr;
37768 if (ac_aggr.st_atimespec.tv_nsec)
37774 rm -f conftest.$ac_objext
37775 if { (ac_try="$ac_compile"
37776 case "(($ac_try" in
37777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37778 *) ac_try_echo=$ac_try;;
37780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37781 $as_echo "$ac_try_echo") >&5
37782 (eval "$ac_compile") 2>conftest.er1
37784 grep -v '^ *+' conftest.er1 >conftest.err
37786 cat conftest.err >&5
37787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); } && {
37789 test -z "$ac_c_werror_flag" ||
37790 test ! -s conftest.err
37791 } && test -s conftest.$ac_objext; then
37792 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
37794 $as_echo "$as_me: failed program was:" >&5
37795 sed 's/^/| /' conftest.$ac_ext >&5
37797 cat >conftest.$ac_ext <<_ACEOF
37800 cat confdefs.h >>conftest.$ac_ext
37801 cat >>conftest.$ac_ext <<_ACEOF
37802 /* end confdefs.h. */
37803 #include <sys/types.h>
37804 #include <sys/stat.h>
37809 static struct stat ac_aggr;
37810 if (sizeof ac_aggr.st_atimespec.tv_nsec)
37816 rm -f conftest.$ac_objext
37817 if { (ac_try="$ac_compile"
37818 case "(($ac_try" in
37819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820 *) ac_try_echo=$ac_try;;
37822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37823 $as_echo "$ac_try_echo") >&5
37824 (eval "$ac_compile") 2>conftest.er1
37826 grep -v '^ *+' conftest.er1 >conftest.err
37828 cat conftest.err >&5
37829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830 (exit $ac_status); } && {
37831 test -z "$ac_c_werror_flag" ||
37832 test ! -s conftest.err
37833 } && test -s conftest.$ac_objext; then
37834 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
37836 $as_echo "$as_me: failed program was:" >&5
37837 sed 's/^/| /' conftest.$ac_ext >&5
37839 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
37842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37847 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
37848 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
37849 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then
37851 cat >>confdefs.h <<_ACEOF
37852 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
37857 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
37858 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
37859 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
37860 $as_echo_n "(cached) " >&6
37862 cat >conftest.$ac_ext <<_ACEOF
37865 cat confdefs.h >>conftest.$ac_ext
37866 cat >>conftest.$ac_ext <<_ACEOF
37867 /* end confdefs.h. */
37868 #include <sys/types.h>
37869 #include <sys/stat.h>
37874 static struct stat ac_aggr;
37875 if (ac_aggr.st_atimensec)
37881 rm -f conftest.$ac_objext
37882 if { (ac_try="$ac_compile"
37883 case "(($ac_try" in
37884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37885 *) ac_try_echo=$ac_try;;
37887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37888 $as_echo "$ac_try_echo") >&5
37889 (eval "$ac_compile") 2>conftest.er1
37891 grep -v '^ *+' conftest.er1 >conftest.err
37893 cat conftest.err >&5
37894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); } && {
37896 test -z "$ac_c_werror_flag" ||
37897 test ! -s conftest.err
37898 } && test -s conftest.$ac_objext; then
37899 ac_cv_member_struct_stat_st_atimensec=yes
37901 $as_echo "$as_me: failed program was:" >&5
37902 sed 's/^/| /' conftest.$ac_ext >&5
37904 cat >conftest.$ac_ext <<_ACEOF
37907 cat confdefs.h >>conftest.$ac_ext
37908 cat >>conftest.$ac_ext <<_ACEOF
37909 /* end confdefs.h. */
37910 #include <sys/types.h>
37911 #include <sys/stat.h>
37916 static struct stat ac_aggr;
37917 if (sizeof ac_aggr.st_atimensec)
37923 rm -f conftest.$ac_objext
37924 if { (ac_try="$ac_compile"
37925 case "(($ac_try" in
37926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37927 *) ac_try_echo=$ac_try;;
37929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37930 $as_echo "$ac_try_echo") >&5
37931 (eval "$ac_compile") 2>conftest.er1
37933 grep -v '^ *+' conftest.er1 >conftest.err
37935 cat conftest.err >&5
37936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); } && {
37938 test -z "$ac_c_werror_flag" ||
37939 test ! -s conftest.err
37940 } && test -s conftest.$ac_objext; then
37941 ac_cv_member_struct_stat_st_atimensec=yes
37943 $as_echo "$as_me: failed program was:" >&5
37944 sed 's/^/| /' conftest.$ac_ext >&5
37946 ac_cv_member_struct_stat_st_atimensec=no
37949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37954 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
37955 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
37956 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
37958 cat >>confdefs.h <<_ACEOF
37959 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
37964 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
37965 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
37966 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
37967 $as_echo_n "(cached) " >&6
37969 cat >conftest.$ac_ext <<_ACEOF
37972 cat confdefs.h >>conftest.$ac_ext
37973 cat >>conftest.$ac_ext <<_ACEOF
37974 /* end confdefs.h. */
37975 #include <sys/types.h>
37976 #include <sys/stat.h>
37981 static struct stat ac_aggr;
37982 if (ac_aggr.st_atim.st__tim.tv_nsec)
37988 rm -f conftest.$ac_objext
37989 if { (ac_try="$ac_compile"
37990 case "(($ac_try" in
37991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37992 *) ac_try_echo=$ac_try;;
37994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37995 $as_echo "$ac_try_echo") >&5
37996 (eval "$ac_compile") 2>conftest.er1
37998 grep -v '^ *+' conftest.er1 >conftest.err
38000 cat conftest.err >&5
38001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002 (exit $ac_status); } && {
38003 test -z "$ac_c_werror_flag" ||
38004 test ! -s conftest.err
38005 } && test -s conftest.$ac_objext; then
38006 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
38008 $as_echo "$as_me: failed program was:" >&5
38009 sed 's/^/| /' conftest.$ac_ext >&5
38011 cat >conftest.$ac_ext <<_ACEOF
38014 cat confdefs.h >>conftest.$ac_ext
38015 cat >>conftest.$ac_ext <<_ACEOF
38016 /* end confdefs.h. */
38017 #include <sys/types.h>
38018 #include <sys/stat.h>
38023 static struct stat ac_aggr;
38024 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
38030 rm -f conftest.$ac_objext
38031 if { (ac_try="$ac_compile"
38032 case "(($ac_try" in
38033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38034 *) ac_try_echo=$ac_try;;
38036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38037 $as_echo "$ac_try_echo") >&5
38038 (eval "$ac_compile") 2>conftest.er1
38040 grep -v '^ *+' conftest.er1 >conftest.err
38042 cat conftest.err >&5
38043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044 (exit $ac_status); } && {
38045 test -z "$ac_c_werror_flag" ||
38046 test ! -s conftest.err
38047 } && test -s conftest.$ac_objext; then
38048 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
38050 $as_echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38053 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
38056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38061 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
38062 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
38063 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then
38065 cat >>confdefs.h <<_ACEOF
38066 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
38088 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
38089 $as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; }
38090 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
38091 $as_echo_n "(cached) " >&6
38093 cat >conftest.$ac_ext <<_ACEOF
38096 cat confdefs.h >>conftest.$ac_ext
38097 cat >>conftest.$ac_ext <<_ACEOF
38098 /* end confdefs.h. */
38099 #include <sys/types.h>
38100 #include <sys/stat.h>
38105 static struct stat ac_aggr;
38106 if (ac_aggr.st_birthtimespec.tv_nsec)
38112 rm -f conftest.$ac_objext
38113 if { (ac_try="$ac_compile"
38114 case "(($ac_try" in
38115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38116 *) ac_try_echo=$ac_try;;
38118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38119 $as_echo "$ac_try_echo") >&5
38120 (eval "$ac_compile") 2>conftest.er1
38122 grep -v '^ *+' conftest.er1 >conftest.err
38124 cat conftest.err >&5
38125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38126 (exit $ac_status); } && {
38127 test -z "$ac_c_werror_flag" ||
38128 test ! -s conftest.err
38129 } && test -s conftest.$ac_objext; then
38130 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
38132 $as_echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38135 cat >conftest.$ac_ext <<_ACEOF
38138 cat confdefs.h >>conftest.$ac_ext
38139 cat >>conftest.$ac_ext <<_ACEOF
38140 /* end confdefs.h. */
38141 #include <sys/types.h>
38142 #include <sys/stat.h>
38147 static struct stat ac_aggr;
38148 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
38154 rm -f conftest.$ac_objext
38155 if { (ac_try="$ac_compile"
38156 case "(($ac_try" in
38157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38158 *) ac_try_echo=$ac_try;;
38160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38161 $as_echo "$ac_try_echo") >&5
38162 (eval "$ac_compile") 2>conftest.er1
38164 grep -v '^ *+' conftest.er1 >conftest.err
38166 cat conftest.err >&5
38167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); } && {
38169 test -z "$ac_c_werror_flag" ||
38170 test ! -s conftest.err
38171 } && test -s conftest.$ac_objext; then
38172 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
38174 $as_echo "$as_me: failed program was:" >&5
38175 sed 's/^/| /' conftest.$ac_ext >&5
38177 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
38180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38185 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
38186 $as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
38187 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then
38189 cat >>confdefs.h <<_ACEOF
38190 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
38195 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
38196 $as_echo_n "checking for struct stat.st_birthtimensec... " >&6; }
38197 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
38198 $as_echo_n "(cached) " >&6
38200 cat >conftest.$ac_ext <<_ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h. */
38206 #include <sys/types.h>
38207 #include <sys/stat.h>
38212 static struct stat ac_aggr;
38213 if (ac_aggr.st_birthtimensec)
38219 rm -f conftest.$ac_objext
38220 if { (ac_try="$ac_compile"
38221 case "(($ac_try" in
38222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38223 *) ac_try_echo=$ac_try;;
38225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38226 $as_echo "$ac_try_echo") >&5
38227 (eval "$ac_compile") 2>conftest.er1
38229 grep -v '^ *+' conftest.er1 >conftest.err
38231 cat conftest.err >&5
38232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233 (exit $ac_status); } && {
38234 test -z "$ac_c_werror_flag" ||
38235 test ! -s conftest.err
38236 } && test -s conftest.$ac_objext; then
38237 ac_cv_member_struct_stat_st_birthtimensec=yes
38239 $as_echo "$as_me: failed program was:" >&5
38240 sed 's/^/| /' conftest.$ac_ext >&5
38242 cat >conftest.$ac_ext <<_ACEOF
38245 cat confdefs.h >>conftest.$ac_ext
38246 cat >>conftest.$ac_ext <<_ACEOF
38247 /* end confdefs.h. */
38248 #include <sys/types.h>
38249 #include <sys/stat.h>
38254 static struct stat ac_aggr;
38255 if (sizeof ac_aggr.st_birthtimensec)
38261 rm -f conftest.$ac_objext
38262 if { (ac_try="$ac_compile"
38263 case "(($ac_try" in
38264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38265 *) ac_try_echo=$ac_try;;
38267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38268 $as_echo "$ac_try_echo") >&5
38269 (eval "$ac_compile") 2>conftest.er1
38271 grep -v '^ *+' conftest.er1 >conftest.err
38273 cat conftest.err >&5
38274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275 (exit $ac_status); } && {
38276 test -z "$ac_c_werror_flag" ||
38277 test ! -s conftest.err
38278 } && test -s conftest.$ac_objext; then
38279 ac_cv_member_struct_stat_st_birthtimensec=yes
38281 $as_echo "$as_me: failed program was:" >&5
38282 sed 's/^/| /' conftest.$ac_ext >&5
38284 ac_cv_member_struct_stat_st_birthtimensec=no
38287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38292 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
38293 $as_echo "$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
38294 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then
38296 cat >>confdefs.h <<_ACEOF
38297 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
38302 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
38303 $as_echo_n "checking for struct stat.st_birthtim.tv_nsec... " >&6; }
38304 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
38305 $as_echo_n "(cached) " >&6
38307 cat >conftest.$ac_ext <<_ACEOF
38310 cat confdefs.h >>conftest.$ac_ext
38311 cat >>conftest.$ac_ext <<_ACEOF
38312 /* end confdefs.h. */
38313 #include <sys/types.h>
38314 #include <sys/stat.h>
38319 static struct stat ac_aggr;
38320 if (ac_aggr.st_birthtim.tv_nsec)
38326 rm -f conftest.$ac_objext
38327 if { (ac_try="$ac_compile"
38328 case "(($ac_try" in
38329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38330 *) ac_try_echo=$ac_try;;
38332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38333 $as_echo "$ac_try_echo") >&5
38334 (eval "$ac_compile") 2>conftest.er1
38336 grep -v '^ *+' conftest.er1 >conftest.err
38338 cat conftest.err >&5
38339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38340 (exit $ac_status); } && {
38341 test -z "$ac_c_werror_flag" ||
38342 test ! -s conftest.err
38343 } && test -s conftest.$ac_objext; then
38344 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
38346 $as_echo "$as_me: failed program was:" >&5
38347 sed 's/^/| /' conftest.$ac_ext >&5
38349 cat >conftest.$ac_ext <<_ACEOF
38352 cat confdefs.h >>conftest.$ac_ext
38353 cat >>conftest.$ac_ext <<_ACEOF
38354 /* end confdefs.h. */
38355 #include <sys/types.h>
38356 #include <sys/stat.h>
38361 static struct stat ac_aggr;
38362 if (sizeof ac_aggr.st_birthtim.tv_nsec)
38368 rm -f conftest.$ac_objext
38369 if { (ac_try="$ac_compile"
38370 case "(($ac_try" in
38371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38372 *) ac_try_echo=$ac_try;;
38374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38375 $as_echo "$ac_try_echo") >&5
38376 (eval "$ac_compile") 2>conftest.er1
38378 grep -v '^ *+' conftest.er1 >conftest.err
38380 cat conftest.err >&5
38381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); } && {
38383 test -z "$ac_c_werror_flag" ||
38384 test ! -s conftest.err
38385 } && test -s conftest.$ac_objext; then
38386 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
38388 $as_echo "$as_me: failed program was:" >&5
38389 sed 's/^/| /' conftest.$ac_ext >&5
38391 ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
38394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38399 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
38400 $as_echo "$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
38401 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then
38403 cat >>confdefs.h <<_ACEOF
38404 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
38417 NEXT_STDARG_H='<stdarg.h>';
38418 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
38419 $as_echo_n "checking for va_copy... " >&6; }
38420 if test "${gl_cv_func_va_copy+set}" = set; then
38421 $as_echo_n "(cached) " >&6
38424 cat >conftest.$ac_ext <<_ACEOF
38427 cat confdefs.h >>conftest.$ac_ext
38428 cat >>conftest.$ac_ext <<_ACEOF
38429 /* end confdefs.h. */
38430 #include <stdarg.h>
38436 void (*func) (va_list, va_list) = va_copy;
38443 rm -f conftest.$ac_objext
38444 if { (ac_try="$ac_compile"
38445 case "(($ac_try" in
38446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447 *) ac_try_echo=$ac_try;;
38449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38450 $as_echo "$ac_try_echo") >&5
38451 (eval "$ac_compile") 2>conftest.er1
38453 grep -v '^ *+' conftest.er1 >conftest.err
38455 cat conftest.err >&5
38456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457 (exit $ac_status); } && {
38458 test -z "$ac_c_werror_flag" ||
38459 test ! -s conftest.err
38460 } && test -s conftest.$ac_objext; then
38461 gl_cv_func_va_copy=yes
38463 $as_echo "$as_me: failed program was:" >&5
38464 sed 's/^/| /' conftest.$ac_ext >&5
38466 gl_cv_func_va_copy=no
38469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38472 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
38473 $as_echo "$gl_cv_func_va_copy" >&6; }
38474 if test $gl_cv_func_va_copy = no; then
38475 cat >conftest.$ac_ext <<_ACEOF
38478 cat confdefs.h >>conftest.$ac_ext
38479 cat >>conftest.$ac_ext <<_ACEOF
38480 /* end confdefs.h. */
38481 #if defined _AIX && !defined __GNUC__
38486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38487 $EGREP "vaccine" >/dev/null 2>&1; then
38494 if test $gl_aixcc = yes; then
38507 if test $gl_cv_have_include_next = yes; then
38508 gl_cv_next_stdarg_h='<'stdarg.h'>'
38510 { $as_echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
38511 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
38512 if test "${gl_cv_next_stdarg_h+set}" = set; then
38513 $as_echo_n "(cached) " >&6
38516 if test $ac_cv_header_stdarg_h = yes; then
38517 cat >conftest.$ac_ext <<_ACEOF
38520 cat confdefs.h >>conftest.$ac_ext
38521 cat >>conftest.$ac_ext <<_ACEOF
38522 /* end confdefs.h. */
38523 #include <stdarg.h>
38527 aix*) gl_absname_cpp="$ac_cpp -C" ;;
38528 *) gl_absname_cpp="$ac_cpp" ;;
38530 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38531 sed -n '\#/stdarg.h#{
38532 s#.*"\(.*/stdarg.h\)".*#\1#
38538 gl_cv_next_stdarg_h='<'stdarg.h'>'
38542 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
38543 $as_echo "$gl_cv_next_stdarg_h" >&6; }
38545 NEXT_STDARG_H=$gl_cv_next_stdarg_h
38547 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38549 gl_next_as_first_directive='<'stdarg.h'>'
38551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38552 gl_next_as_first_directive=$gl_cv_next_stdarg_h
38554 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
38558 if test "$gl_cv_next_stdarg_h" = '""'; then
38559 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
38560 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
38564 saved_as_echo_n="$as_echo_n"
38566 if test "${gl_cv_func___va_copy+set}" = set; then
38567 $as_echo_n "(cached) " >&6
38570 cat >conftest.$ac_ext <<_ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h. */
38576 #include <stdarg.h>
38589 rm -f conftest.$ac_objext
38590 if { (ac_try="$ac_compile"
38591 case "(($ac_try" in
38592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38593 *) ac_try_echo=$ac_try;;
38595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38596 $as_echo "$ac_try_echo") >&5
38597 (eval "$ac_compile") 2>conftest.er1
38599 grep -v '^ *+' conftest.er1 >conftest.err
38601 cat conftest.err >&5
38602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); } && {
38604 test -z "$ac_c_werror_flag" ||
38605 test ! -s conftest.err
38606 } && test -s conftest.$ac_objext; then
38607 gl_cv_func___va_copy=yes
38609 $as_echo "$as_me: failed program was:" >&5
38610 sed 's/^/| /' conftest.$ac_ext >&5
38612 gl_cv_func___va_copy=no
38615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38618 as_echo_n="$saved_as_echo_n"
38620 if test $gl_cv_func___va_copy = yes; then
38622 cat >>confdefs.h <<\_ACEOF
38623 #define va_copy __va_copy
38630 cat >>confdefs.h <<\_ACEOF
38631 #define va_copy gl_va_copy
38641 # Define two additional variables used in the Makefile substitution.
38643 if test "$ac_cv_header_stdbool_h" = yes; then
38646 STDBOOL_H='stdbool.h'
38650 if test "$ac_cv_type__Bool" = yes; then
38660 if test $gt_cv_c_wchar_t = no; then
38664 { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
38665 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
38666 if test "${gl_cv_decl_null_works+set}" = set; then
38667 $as_echo_n "(cached) " >&6
38669 cat >conftest.$ac_ext <<_ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h. */
38675 #include <stddef.h>
38676 int test[2 * (sizeof NULL == sizeof (void *)) -1];
38686 rm -f conftest.$ac_objext
38687 if { (ac_try="$ac_compile"
38688 case "(($ac_try" in
38689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38690 *) ac_try_echo=$ac_try;;
38692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38693 $as_echo "$ac_try_echo") >&5
38694 (eval "$ac_compile") 2>conftest.er1
38696 grep -v '^ *+' conftest.er1 >conftest.err
38698 cat conftest.err >&5
38699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); } && {
38701 test -z "$ac_c_werror_flag" ||
38702 test ! -s conftest.err
38703 } && test -s conftest.$ac_objext; then
38704 gl_cv_decl_null_works=yes
38706 $as_echo "$as_me: failed program was:" >&5
38707 sed 's/^/| /' conftest.$ac_ext >&5
38709 gl_cv_decl_null_works=no
38712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38714 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
38715 $as_echo "$gl_cv_decl_null_works" >&6; }
38716 if test $gl_cv_decl_null_works = no; then
38720 if test -n "$STDDEF_H"; then
38732 if test $gl_cv_have_include_next = yes; then
38733 gl_cv_next_stddef_h='<'stddef.h'>'
38735 { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
38736 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
38737 if test "${gl_cv_next_stddef_h+set}" = set; then
38738 $as_echo_n "(cached) " >&6
38741 if test $ac_cv_header_stddef_h = yes; then
38742 cat >conftest.$ac_ext <<_ACEOF
38745 cat confdefs.h >>conftest.$ac_ext
38746 cat >>conftest.$ac_ext <<_ACEOF
38747 /* end confdefs.h. */
38748 #include <stddef.h>
38752 aix*) gl_absname_cpp="$ac_cpp -C" ;;
38753 *) gl_absname_cpp="$ac_cpp" ;;
38755 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38756 sed -n '\#/stddef.h#{
38757 s#.*"\(.*/stddef.h\)".*#\1#
38763 gl_cv_next_stddef_h='<'stddef.h'>'
38767 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
38768 $as_echo "$gl_cv_next_stddef_h" >&6; }
38770 NEXT_STDDEF_H=$gl_cv_next_stddef_h
38772 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38774 gl_next_as_first_directive='<'stddef.h'>'
38776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38777 gl_next_as_first_directive=$gl_cv_next_stddef_h
38779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
38788 if test $ac_cv_type_long_long_int = yes; then
38789 HAVE_LONG_LONG_INT=1
38791 HAVE_LONG_LONG_INT=0
38795 if test $ac_cv_type_unsigned_long_long_int = yes; then
38796 HAVE_UNSIGNED_LONG_LONG_INT=1
38798 HAVE_UNSIGNED_LONG_LONG_INT=0
38802 if test $ac_cv_header_inttypes_h = yes; then
38809 if test $ac_cv_header_sys_types_h = yes; then
38827 if test $gl_cv_have_include_next = yes; then
38828 gl_cv_next_stdint_h='<'stdint.h'>'
38830 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
38831 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
38832 if test "${gl_cv_next_stdint_h+set}" = set; then
38833 $as_echo_n "(cached) " >&6
38836 if test $ac_cv_header_stdint_h = yes; then
38837 cat >conftest.$ac_ext <<_ACEOF
38840 cat confdefs.h >>conftest.$ac_ext
38841 cat >>conftest.$ac_ext <<_ACEOF
38842 /* end confdefs.h. */
38843 #include <stdint.h>
38847 aix*) gl_absname_cpp="$ac_cpp -C" ;;
38848 *) gl_absname_cpp="$ac_cpp" ;;
38850 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38851 sed -n '\#/stdint.h#{
38852 s#.*"\(.*/stdint.h\)".*#\1#
38858 gl_cv_next_stdint_h='<'stdint.h'>'
38862 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
38863 $as_echo "$gl_cv_next_stdint_h" >&6; }
38865 NEXT_STDINT_H=$gl_cv_next_stdint_h
38867 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38869 gl_next_as_first_directive='<'stdint.h'>'
38871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38872 gl_next_as_first_directive=$gl_cv_next_stdint_h
38874 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
38878 if test $ac_cv_header_stdint_h = yes; then
38885 if test $ac_cv_header_stdint_h = yes; then
38886 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
38887 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
38888 if test "${gl_cv_header_working_stdint_h+set}" = set; then
38889 $as_echo_n "(cached) " >&6
38891 gl_cv_header_working_stdint_h=no
38892 cat >conftest.$ac_ext <<_ACEOF
38896 cat confdefs.h >>conftest.$ac_ext
38897 cat >>conftest.$ac_ext <<_ACEOF
38898 /* end confdefs.h. */
38900 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
38901 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
38902 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
38903 #include <stdint.h>
38904 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
38905 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
38906 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
38910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
38911 included before <wchar.h>. */
38912 #include <stddef.h>
38913 #include <signal.h>
38915 # include <stdio.h>
38917 # include <wchar.h>
38922 int8_t a1 = INT8_MAX;
38923 int8_t a1min = INT8_MIN;
38926 int16_t a2 = INT16_MAX;
38927 int16_t a2min = INT16_MIN;
38930 int32_t a3 = INT32_MAX;
38931 int32_t a3min = INT32_MIN;
38934 int64_t a4 = INT64_MAX;
38935 int64_t a4min = INT64_MIN;
38938 uint8_t b1 = UINT8_MAX;
38940 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
38943 uint16_t b2 = UINT16_MAX;
38946 uint32_t b3 = UINT32_MAX;
38949 uint64_t b4 = UINT64_MAX;
38951 int_least8_t c1 = INT8_C (0x7f);
38952 int_least8_t c1max = INT_LEAST8_MAX;
38953 int_least8_t c1min = INT_LEAST8_MIN;
38954 int_least16_t c2 = INT16_C (0x7fff);
38955 int_least16_t c2max = INT_LEAST16_MAX;
38956 int_least16_t c2min = INT_LEAST16_MIN;
38957 int_least32_t c3 = INT32_C (0x7fffffff);
38958 int_least32_t c3max = INT_LEAST32_MAX;
38959 int_least32_t c3min = INT_LEAST32_MIN;
38960 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
38961 int_least64_t c4max = INT_LEAST64_MAX;
38962 int_least64_t c4min = INT_LEAST64_MIN;
38963 uint_least8_t d1 = UINT8_C (0xff);
38964 uint_least8_t d1max = UINT_LEAST8_MAX;
38965 uint_least16_t d2 = UINT16_C (0xffff);
38966 uint_least16_t d2max = UINT_LEAST16_MAX;
38967 uint_least32_t d3 = UINT32_C (0xffffffff);
38968 uint_least32_t d3max = UINT_LEAST32_MAX;
38969 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
38970 uint_least64_t d4max = UINT_LEAST64_MAX;
38971 int_fast8_t e1 = INT_FAST8_MAX;
38972 int_fast8_t e1min = INT_FAST8_MIN;
38973 int_fast16_t e2 = INT_FAST16_MAX;
38974 int_fast16_t e2min = INT_FAST16_MIN;
38975 int_fast32_t e3 = INT_FAST32_MAX;
38976 int_fast32_t e3min = INT_FAST32_MIN;
38977 int_fast64_t e4 = INT_FAST64_MAX;
38978 int_fast64_t e4min = INT_FAST64_MIN;
38979 uint_fast8_t f1 = UINT_FAST8_MAX;
38980 uint_fast16_t f2 = UINT_FAST16_MAX;
38981 uint_fast32_t f3 = UINT_FAST32_MAX;
38982 uint_fast64_t f4 = UINT_FAST64_MAX;
38984 intptr_t g = INTPTR_MAX;
38985 intptr_t gmin = INTPTR_MIN;
38988 uintptr_t h = UINTPTR_MAX;
38990 intmax_t i = INTMAX_MAX;
38991 uintmax_t j = UINTMAX_MAX;
38993 #include <limits.h> /* for CHAR_BIT */
38994 #define TYPE_MINIMUM(t) \
38995 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
38996 #define TYPE_MAXIMUM(t) \
38997 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
39000 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
39001 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
39003 /* Detect bug in FreeBSD 6.0 / ia64. */
39004 int check_SIG_ATOMIC:
39005 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
39006 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
39008 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
39010 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
39011 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
39013 /* Detect bug in mingw. */
39015 WINT_MIN == TYPE_MINIMUM (wint_t)
39016 && WINT_MAX == TYPE_MAXIMUM (wint_t)
39019 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
39021 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
39022 int check_UINT16_C:
39023 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
39025 /* Detect bugs in OpenBSD 3.9 stdint.h. */
39027 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
39030 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
39033 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
39036 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
39038 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
39039 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
39040 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
39041 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
39042 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
39043 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
39044 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
39045 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
39046 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
39047 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
39048 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
39059 rm -f conftest.$ac_objext
39060 if { (ac_try="$ac_compile"
39061 case "(($ac_try" in
39062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39063 *) ac_try_echo=$ac_try;;
39065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39066 $as_echo "$ac_try_echo") >&5
39067 (eval "$ac_compile") 2>conftest.er1
39069 grep -v '^ *+' conftest.er1 >conftest.err
39071 cat conftest.err >&5
39072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); } && {
39074 test -z "$ac_c_werror_flag" ||
39075 test ! -s conftest.err
39076 } && test -s conftest.$ac_objext; then
39077 if test "$cross_compiling" = yes; then
39078 gl_cv_header_working_stdint_h=yes
39081 cat >conftest.$ac_ext <<_ACEOF
39085 cat confdefs.h >>conftest.$ac_ext
39086 cat >>conftest.$ac_ext <<_ACEOF
39087 /* end confdefs.h. */
39089 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39090 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39091 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
39092 #include <stdint.h>
39095 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39096 included before <wchar.h>. */
39097 #include <stddef.h>
39098 #include <signal.h>
39100 # include <stdio.h>
39102 # include <wchar.h>
39107 #include <string.h>
39108 #define MVAL(macro) MVAL1(macro)
39109 #define MVAL1(expression) #expression
39110 static const char *macro_values[] =
39144 for (mv = macro_values; *mv != NULL; mv++)
39146 const char *value = *mv;
39147 /* Test whether it looks like a cast expression. */
39148 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
39149 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
39150 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
39151 || strncmp (value, "((int)"/*)*/, 6) == 0
39152 || strncmp (value, "((signed short)"/*)*/, 15) == 0
39153 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
39162 rm -f conftest$ac_exeext
39163 if { (ac_try="$ac_link"
39164 case "(($ac_try" in
39165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39166 *) ac_try_echo=$ac_try;;
39168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39169 $as_echo "$ac_try_echo") >&5
39170 (eval "$ac_link") 2>&5
39172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39174 { (case "(($ac_try" in
39175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39176 *) ac_try_echo=$ac_try;;
39178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39179 $as_echo "$ac_try_echo") >&5
39180 (eval "$ac_try") 2>&5
39182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39183 (exit $ac_status); }; }; then
39184 gl_cv_header_working_stdint_h=yes
39186 $as_echo "$as_me: program exited with status $ac_status" >&5
39187 $as_echo "$as_me: failed program was:" >&5
39188 sed 's/^/| /' conftest.$ac_ext >&5
39191 rm -rf conftest.dSYM
39192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39198 $as_echo "$as_me: failed program was:" >&5
39199 sed 's/^/| /' conftest.$ac_ext >&5
39204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39207 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
39208 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
39210 if test "$gl_cv_header_working_stdint_h" = yes; then
39215 for ac_header in sys/inttypes.h sys/bitypes.h
39217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39219 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39220 $as_echo_n "checking for $ac_header... " >&6; }
39221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39222 $as_echo_n "(cached) " >&6
39224 ac_res=`eval 'as_val=${'$as_ac_Header'}
39225 $as_echo "$as_val"'`
39226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39227 $as_echo "$ac_res" >&6; }
39229 # Is the header compilable?
39230 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39231 $as_echo_n "checking $ac_header usability... " >&6; }
39232 cat >conftest.$ac_ext <<_ACEOF
39235 cat confdefs.h >>conftest.$ac_ext
39236 cat >>conftest.$ac_ext <<_ACEOF
39237 /* end confdefs.h. */
39238 $ac_includes_default
39239 #include <$ac_header>
39241 rm -f conftest.$ac_objext
39242 if { (ac_try="$ac_compile"
39243 case "(($ac_try" in
39244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39245 *) ac_try_echo=$ac_try;;
39247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39248 $as_echo "$ac_try_echo") >&5
39249 (eval "$ac_compile") 2>conftest.er1
39251 grep -v '^ *+' conftest.er1 >conftest.err
39253 cat conftest.err >&5
39254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255 (exit $ac_status); } && {
39256 test -z "$ac_c_werror_flag" ||
39257 test ! -s conftest.err
39258 } && test -s conftest.$ac_objext; then
39259 ac_header_compiler=yes
39261 $as_echo "$as_me: failed program was:" >&5
39262 sed 's/^/| /' conftest.$ac_ext >&5
39264 ac_header_compiler=no
39267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39269 $as_echo "$ac_header_compiler" >&6; }
39271 # Is the header present?
39272 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39273 $as_echo_n "checking $ac_header presence... " >&6; }
39274 cat >conftest.$ac_ext <<_ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h. */
39280 #include <$ac_header>
39282 if { (ac_try="$ac_cpp conftest.$ac_ext"
39283 case "(($ac_try" in
39284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39285 *) ac_try_echo=$ac_try;;
39287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39288 $as_echo "$ac_try_echo") >&5
39289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39291 grep -v '^ *+' conftest.er1 >conftest.err
39293 cat conftest.err >&5
39294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39295 (exit $ac_status); } >/dev/null && {
39296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39297 test ! -s conftest.err
39299 ac_header_preproc=yes
39301 $as_echo "$as_me: failed program was:" >&5
39302 sed 's/^/| /' conftest.$ac_ext >&5
39304 ac_header_preproc=no
39307 rm -f conftest.err conftest.$ac_ext
39308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39309 $as_echo "$ac_header_preproc" >&6; }
39311 # So? What about this header?
39312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39315 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39318 ac_header_preproc=yes
39321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39322 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39324 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39326 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39328 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39332 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39334 ## ------------------------------ ##
39335 ## Report this to bug-tar@gnu.org ##
39336 ## ------------------------------ ##
39338 ) | sed "s/^/$as_me: WARNING: /" >&2
39341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39342 $as_echo_n "checking for $ac_header... " >&6; }
39343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39344 $as_echo_n "(cached) " >&6
39346 eval "$as_ac_Header=\$ac_header_preproc"
39348 ac_res=`eval 'as_val=${'$as_ac_Header'}
39349 $as_echo "$as_val"'`
39350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39351 $as_echo "$ac_res" >&6; }
39354 as_val=`eval 'as_val=${'$as_ac_Header'}
39355 $as_echo "$as_val"'`
39356 if test "x$as_val" = x""yes; then
39357 cat >>confdefs.h <<_ACEOF
39358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39365 if test $ac_cv_header_sys_inttypes_h = yes; then
39366 HAVE_SYS_INTTYPES_H=1
39368 HAVE_SYS_INTTYPES_H=0
39371 if test $ac_cv_header_sys_bitypes_h = yes; then
39372 HAVE_SYS_BITYPES_H=1
39374 HAVE_SYS_BITYPES_H=0
39387 if test $APPLE_UNIVERSAL_BUILD = 0; then
39392 for gltype in ptrdiff_t size_t ; do
39393 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
39394 $as_echo_n "checking for bit size of $gltype... " >&6; }
39395 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
39396 $as_echo_n "(cached) " >&6
39398 if test "$cross_compiling" = yes; then
39399 # Depending upon the size, compute the lo and hi bounds.
39400 cat >conftest.$ac_ext <<_ACEOF
39403 cat confdefs.h >>conftest.$ac_ext
39404 cat >>conftest.$ac_ext <<_ACEOF
39405 /* end confdefs.h. */
39407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39408 included before <wchar.h>. */
39409 #include <stddef.h>
39410 #include <signal.h>
39412 # include <stdio.h>
39414 # include <wchar.h>
39417 #include <limits.h>
39421 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
39428 rm -f conftest.$ac_objext
39429 if { (ac_try="$ac_compile"
39430 case "(($ac_try" in
39431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39432 *) ac_try_echo=$ac_try;;
39434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39435 $as_echo "$ac_try_echo") >&5
39436 (eval "$ac_compile") 2>conftest.er1
39438 grep -v '^ *+' conftest.er1 >conftest.err
39440 cat conftest.err >&5
39441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); } && {
39443 test -z "$ac_c_werror_flag" ||
39444 test ! -s conftest.err
39445 } && test -s conftest.$ac_objext; then
39448 cat >conftest.$ac_ext <<_ACEOF
39451 cat confdefs.h >>conftest.$ac_ext
39452 cat >>conftest.$ac_ext <<_ACEOF
39453 /* end confdefs.h. */
39455 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39456 included before <wchar.h>. */
39457 #include <stddef.h>
39458 #include <signal.h>
39460 # include <stdio.h>
39462 # include <wchar.h>
39465 #include <limits.h>
39469 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
39476 rm -f conftest.$ac_objext
39477 if { (ac_try="$ac_compile"
39478 case "(($ac_try" in
39479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480 *) ac_try_echo=$ac_try;;
39482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39483 $as_echo "$ac_try_echo") >&5
39484 (eval "$ac_compile") 2>conftest.er1
39486 grep -v '^ *+' conftest.er1 >conftest.err
39488 cat conftest.err >&5
39489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); } && {
39491 test -z "$ac_c_werror_flag" ||
39492 test ! -s conftest.err
39493 } && test -s conftest.$ac_objext; then
39494 ac_hi=$ac_mid; break
39496 $as_echo "$as_me: failed program was:" >&5
39497 sed 's/^/| /' conftest.$ac_ext >&5
39499 ac_lo=`expr $ac_mid + 1`
39500 if test $ac_lo -le $ac_mid; then
39504 ac_mid=`expr 2 '*' $ac_mid + 1`
39507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39510 $as_echo "$as_me: failed program was:" >&5
39511 sed 's/^/| /' conftest.$ac_ext >&5
39513 cat >conftest.$ac_ext <<_ACEOF
39516 cat confdefs.h >>conftest.$ac_ext
39517 cat >>conftest.$ac_ext <<_ACEOF
39518 /* end confdefs.h. */
39520 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39521 included before <wchar.h>. */
39522 #include <stddef.h>
39523 #include <signal.h>
39525 # include <stdio.h>
39527 # include <wchar.h>
39530 #include <limits.h>
39534 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
39541 rm -f conftest.$ac_objext
39542 if { (ac_try="$ac_compile"
39543 case "(($ac_try" in
39544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39545 *) ac_try_echo=$ac_try;;
39547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39548 $as_echo "$ac_try_echo") >&5
39549 (eval "$ac_compile") 2>conftest.er1
39551 grep -v '^ *+' conftest.er1 >conftest.err
39553 cat conftest.err >&5
39554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555 (exit $ac_status); } && {
39556 test -z "$ac_c_werror_flag" ||
39557 test ! -s conftest.err
39558 } && test -s conftest.$ac_objext; then
39561 cat >conftest.$ac_ext <<_ACEOF
39564 cat confdefs.h >>conftest.$ac_ext
39565 cat >>conftest.$ac_ext <<_ACEOF
39566 /* end confdefs.h. */
39568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39569 included before <wchar.h>. */
39570 #include <stddef.h>
39571 #include <signal.h>
39573 # include <stdio.h>
39575 # include <wchar.h>
39578 #include <limits.h>
39582 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
39589 rm -f conftest.$ac_objext
39590 if { (ac_try="$ac_compile"
39591 case "(($ac_try" in
39592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39593 *) ac_try_echo=$ac_try;;
39595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39596 $as_echo "$ac_try_echo") >&5
39597 (eval "$ac_compile") 2>conftest.er1
39599 grep -v '^ *+' conftest.er1 >conftest.err
39601 cat conftest.err >&5
39602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603 (exit $ac_status); } && {
39604 test -z "$ac_c_werror_flag" ||
39605 test ! -s conftest.err
39606 } && test -s conftest.$ac_objext; then
39607 ac_lo=$ac_mid; break
39609 $as_echo "$as_me: failed program was:" >&5
39610 sed 's/^/| /' conftest.$ac_ext >&5
39612 ac_hi=`expr '(' $ac_mid ')' - 1`
39613 if test $ac_mid -le $ac_hi; then
39617 ac_mid=`expr 2 '*' $ac_mid`
39620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39623 $as_echo "$as_me: failed program was:" >&5
39624 sed 's/^/| /' conftest.$ac_ext >&5
39629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39633 # Binary search between lo and hi bounds.
39634 while test "x$ac_lo" != "x$ac_hi"; do
39635 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39636 cat >conftest.$ac_ext <<_ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h. */
39643 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39644 included before <wchar.h>. */
39645 #include <stddef.h>
39646 #include <signal.h>
39648 # include <stdio.h>
39650 # include <wchar.h>
39653 #include <limits.h>
39657 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
39664 rm -f conftest.$ac_objext
39665 if { (ac_try="$ac_compile"
39666 case "(($ac_try" in
39667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39668 *) ac_try_echo=$ac_try;;
39670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39671 $as_echo "$ac_try_echo") >&5
39672 (eval "$ac_compile") 2>conftest.er1
39674 grep -v '^ *+' conftest.er1 >conftest.err
39676 cat conftest.err >&5
39677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); } && {
39679 test -z "$ac_c_werror_flag" ||
39680 test ! -s conftest.err
39681 } && test -s conftest.$ac_objext; then
39684 $as_echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39687 ac_lo=`expr '(' $ac_mid ')' + 1`
39690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39693 ?*) result=$ac_lo;;
39694 '') result=unknown ;;
39697 cat >conftest.$ac_ext <<_ACEOF
39700 cat confdefs.h >>conftest.$ac_ext
39701 cat >>conftest.$ac_ext <<_ACEOF
39702 /* end confdefs.h. */
39704 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39705 included before <wchar.h>. */
39706 #include <stddef.h>
39707 #include <signal.h>
39709 # include <stdio.h>
39711 # include <wchar.h>
39714 #include <limits.h>
39715 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
39716 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
39718 #include <stdlib.h>
39723 FILE *f = fopen ("conftest.val", "w");
39726 if ((sizeof ($gltype) * CHAR_BIT) < 0)
39728 long int i = longval ();
39729 if (i != (sizeof ($gltype) * CHAR_BIT))
39731 fprintf (f, "%ld", i);
39735 unsigned long int i = ulongval ();
39736 if (i != (sizeof ($gltype) * CHAR_BIT))
39738 fprintf (f, "%lu", i);
39740 /* Do not output a trailing newline, as this causes \r\n confusion
39741 on some platforms. */
39742 return ferror (f) || fclose (f) != 0;
39748 rm -f conftest$ac_exeext
39749 if { (ac_try="$ac_link"
39750 case "(($ac_try" in
39751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39752 *) ac_try_echo=$ac_try;;
39754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39755 $as_echo "$ac_try_echo") >&5
39756 (eval "$ac_link") 2>&5
39758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39760 { (case "(($ac_try" in
39761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39762 *) ac_try_echo=$ac_try;;
39764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39765 $as_echo "$ac_try_echo") >&5
39766 (eval "$ac_try") 2>&5
39768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); }; }; then
39770 result=`cat conftest.val`
39772 $as_echo "$as_me: program exited with status $ac_status" >&5
39773 $as_echo "$as_me: failed program was:" >&5
39774 sed 's/^/| /' conftest.$ac_ext >&5
39776 ( exit $ac_status )
39779 rm -rf conftest.dSYM
39780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39783 eval gl_cv_bitsizeof_${gltype}=\$result
39786 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
39787 $as_echo "$as_val"'`
39788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39789 $as_echo "$ac_res" >&6; }
39790 eval result=\$gl_cv_bitsizeof_${gltype}
39791 if test $result = unknown; then
39794 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
39795 cat >>confdefs.h <<_ACEOF
39796 #define BITSIZEOF_${GLTYPE} $result
39799 eval BITSIZEOF_${GLTYPE}=\$result
39809 for gltype in sig_atomic_t wchar_t wint_t ; do
39810 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
39811 $as_echo_n "checking for bit size of $gltype... " >&6; }
39812 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
39813 $as_echo_n "(cached) " >&6
39815 if test "$cross_compiling" = yes; then
39816 # Depending upon the size, compute the lo and hi bounds.
39817 cat >conftest.$ac_ext <<_ACEOF
39820 cat confdefs.h >>conftest.$ac_ext
39821 cat >>conftest.$ac_ext <<_ACEOF
39822 /* end confdefs.h. */
39824 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39825 included before <wchar.h>. */
39826 #include <stddef.h>
39827 #include <signal.h>
39829 # include <stdio.h>
39831 # include <wchar.h>
39834 #include <limits.h>
39838 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
39845 rm -f conftest.$ac_objext
39846 if { (ac_try="$ac_compile"
39847 case "(($ac_try" in
39848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39849 *) ac_try_echo=$ac_try;;
39851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39852 $as_echo "$ac_try_echo") >&5
39853 (eval "$ac_compile") 2>conftest.er1
39855 grep -v '^ *+' conftest.er1 >conftest.err
39857 cat conftest.err >&5
39858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39859 (exit $ac_status); } && {
39860 test -z "$ac_c_werror_flag" ||
39861 test ! -s conftest.err
39862 } && test -s conftest.$ac_objext; then
39865 cat >conftest.$ac_ext <<_ACEOF
39868 cat confdefs.h >>conftest.$ac_ext
39869 cat >>conftest.$ac_ext <<_ACEOF
39870 /* end confdefs.h. */
39872 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39873 included before <wchar.h>. */
39874 #include <stddef.h>
39875 #include <signal.h>
39877 # include <stdio.h>
39879 # include <wchar.h>
39882 #include <limits.h>
39886 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
39893 rm -f conftest.$ac_objext
39894 if { (ac_try="$ac_compile"
39895 case "(($ac_try" in
39896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897 *) ac_try_echo=$ac_try;;
39899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39900 $as_echo "$ac_try_echo") >&5
39901 (eval "$ac_compile") 2>conftest.er1
39903 grep -v '^ *+' conftest.er1 >conftest.err
39905 cat conftest.err >&5
39906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); } && {
39908 test -z "$ac_c_werror_flag" ||
39909 test ! -s conftest.err
39910 } && test -s conftest.$ac_objext; then
39911 ac_hi=$ac_mid; break
39913 $as_echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39916 ac_lo=`expr $ac_mid + 1`
39917 if test $ac_lo -le $ac_mid; then
39921 ac_mid=`expr 2 '*' $ac_mid + 1`
39924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39927 $as_echo "$as_me: failed program was:" >&5
39928 sed 's/^/| /' conftest.$ac_ext >&5
39930 cat >conftest.$ac_ext <<_ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h. */
39937 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39938 included before <wchar.h>. */
39939 #include <stddef.h>
39940 #include <signal.h>
39942 # include <stdio.h>
39944 # include <wchar.h>
39947 #include <limits.h>
39951 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
39958 rm -f conftest.$ac_objext
39959 if { (ac_try="$ac_compile"
39960 case "(($ac_try" in
39961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39962 *) ac_try_echo=$ac_try;;
39964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39965 $as_echo "$ac_try_echo") >&5
39966 (eval "$ac_compile") 2>conftest.er1
39968 grep -v '^ *+' conftest.er1 >conftest.err
39970 cat conftest.err >&5
39971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); } && {
39973 test -z "$ac_c_werror_flag" ||
39974 test ! -s conftest.err
39975 } && test -s conftest.$ac_objext; then
39978 cat >conftest.$ac_ext <<_ACEOF
39981 cat confdefs.h >>conftest.$ac_ext
39982 cat >>conftest.$ac_ext <<_ACEOF
39983 /* end confdefs.h. */
39985 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39986 included before <wchar.h>. */
39987 #include <stddef.h>
39988 #include <signal.h>
39990 # include <stdio.h>
39992 # include <wchar.h>
39995 #include <limits.h>
39999 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
40006 rm -f conftest.$ac_objext
40007 if { (ac_try="$ac_compile"
40008 case "(($ac_try" in
40009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40010 *) ac_try_echo=$ac_try;;
40012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40013 $as_echo "$ac_try_echo") >&5
40014 (eval "$ac_compile") 2>conftest.er1
40016 grep -v '^ *+' conftest.er1 >conftest.err
40018 cat conftest.err >&5
40019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020 (exit $ac_status); } && {
40021 test -z "$ac_c_werror_flag" ||
40022 test ! -s conftest.err
40023 } && test -s conftest.$ac_objext; then
40024 ac_lo=$ac_mid; break
40026 $as_echo "$as_me: failed program was:" >&5
40027 sed 's/^/| /' conftest.$ac_ext >&5
40029 ac_hi=`expr '(' $ac_mid ')' - 1`
40030 if test $ac_mid -le $ac_hi; then
40034 ac_mid=`expr 2 '*' $ac_mid`
40037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40040 $as_echo "$as_me: failed program was:" >&5
40041 sed 's/^/| /' conftest.$ac_ext >&5
40046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40050 # Binary search between lo and hi bounds.
40051 while test "x$ac_lo" != "x$ac_hi"; do
40052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40053 cat >conftest.$ac_ext <<_ACEOF
40056 cat confdefs.h >>conftest.$ac_ext
40057 cat >>conftest.$ac_ext <<_ACEOF
40058 /* end confdefs.h. */
40060 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40061 included before <wchar.h>. */
40062 #include <stddef.h>
40063 #include <signal.h>
40065 # include <stdio.h>
40067 # include <wchar.h>
40070 #include <limits.h>
40074 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40081 rm -f conftest.$ac_objext
40082 if { (ac_try="$ac_compile"
40083 case "(($ac_try" in
40084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40085 *) ac_try_echo=$ac_try;;
40087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40088 $as_echo "$ac_try_echo") >&5
40089 (eval "$ac_compile") 2>conftest.er1
40091 grep -v '^ *+' conftest.er1 >conftest.err
40093 cat conftest.err >&5
40094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40095 (exit $ac_status); } && {
40096 test -z "$ac_c_werror_flag" ||
40097 test ! -s conftest.err
40098 } && test -s conftest.$ac_objext; then
40101 $as_echo "$as_me: failed program was:" >&5
40102 sed 's/^/| /' conftest.$ac_ext >&5
40104 ac_lo=`expr '(' $ac_mid ')' + 1`
40107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40110 ?*) result=$ac_lo;;
40111 '') result=unknown ;;
40114 cat >conftest.$ac_ext <<_ACEOF
40117 cat confdefs.h >>conftest.$ac_ext
40118 cat >>conftest.$ac_ext <<_ACEOF
40119 /* end confdefs.h. */
40121 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40122 included before <wchar.h>. */
40123 #include <stddef.h>
40124 #include <signal.h>
40126 # include <stdio.h>
40128 # include <wchar.h>
40131 #include <limits.h>
40132 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
40133 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
40135 #include <stdlib.h>
40140 FILE *f = fopen ("conftest.val", "w");
40143 if ((sizeof ($gltype) * CHAR_BIT) < 0)
40145 long int i = longval ();
40146 if (i != (sizeof ($gltype) * CHAR_BIT))
40148 fprintf (f, "%ld", i);
40152 unsigned long int i = ulongval ();
40153 if (i != (sizeof ($gltype) * CHAR_BIT))
40155 fprintf (f, "%lu", i);
40157 /* Do not output a trailing newline, as this causes \r\n confusion
40158 on some platforms. */
40159 return ferror (f) || fclose (f) != 0;
40165 rm -f conftest$ac_exeext
40166 if { (ac_try="$ac_link"
40167 case "(($ac_try" in
40168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40169 *) ac_try_echo=$ac_try;;
40171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40172 $as_echo "$ac_try_echo") >&5
40173 (eval "$ac_link") 2>&5
40175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40177 { (case "(($ac_try" in
40178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40179 *) ac_try_echo=$ac_try;;
40181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40182 $as_echo "$ac_try_echo") >&5
40183 (eval "$ac_try") 2>&5
40185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); }; }; then
40187 result=`cat conftest.val`
40189 $as_echo "$as_me: program exited with status $ac_status" >&5
40190 $as_echo "$as_me: failed program was:" >&5
40191 sed 's/^/| /' conftest.$ac_ext >&5
40193 ( exit $ac_status )
40196 rm -rf conftest.dSYM
40197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40200 eval gl_cv_bitsizeof_${gltype}=\$result
40203 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
40204 $as_echo "$as_val"'`
40205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40206 $as_echo "$ac_res" >&6; }
40207 eval result=\$gl_cv_bitsizeof_${gltype}
40208 if test $result = unknown; then
40211 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40212 cat >>confdefs.h <<_ACEOF
40213 #define BITSIZEOF_${GLTYPE} $result
40216 eval BITSIZEOF_${GLTYPE}=\$result
40225 for gltype in sig_atomic_t wchar_t wint_t ; do
40226 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
40227 $as_echo_n "checking whether $gltype is signed... " >&6; }
40228 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
40229 $as_echo_n "(cached) " >&6
40231 cat >conftest.$ac_ext <<_ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h. */
40238 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40239 included before <wchar.h>. */
40240 #include <stddef.h>
40241 #include <signal.h>
40243 # include <stdio.h>
40245 # include <wchar.h>
40248 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40257 rm -f conftest.$ac_objext
40258 if { (ac_try="$ac_compile"
40259 case "(($ac_try" in
40260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40261 *) ac_try_echo=$ac_try;;
40263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40264 $as_echo "$ac_try_echo") >&5
40265 (eval "$ac_compile") 2>conftest.er1
40267 grep -v '^ *+' conftest.er1 >conftest.err
40269 cat conftest.err >&5
40270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40271 (exit $ac_status); } && {
40272 test -z "$ac_c_werror_flag" ||
40273 test ! -s conftest.err
40274 } && test -s conftest.$ac_objext; then
40277 $as_echo "$as_me: failed program was:" >&5
40278 sed 's/^/| /' conftest.$ac_ext >&5
40283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40284 eval gl_cv_type_${gltype}_signed=\$result
40287 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
40288 $as_echo "$as_val"'`
40289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40290 $as_echo "$ac_res" >&6; }
40291 eval result=\$gl_cv_type_${gltype}_signed
40292 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40293 if test "$result" = yes; then
40294 cat >>confdefs.h <<_ACEOF
40295 #define HAVE_SIGNED_${GLTYPE} 1
40298 eval HAVE_SIGNED_${GLTYPE}=1
40300 eval HAVE_SIGNED_${GLTYPE}=0
40305 gl_cv_type_ptrdiff_t_signed=yes
40306 gl_cv_type_size_t_signed=no
40307 if test $APPLE_UNIVERSAL_BUILD = 0; then
40312 for gltype in ptrdiff_t size_t ; do
40313 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
40314 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40315 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
40316 $as_echo_n "(cached) " >&6
40318 eval gl_cv_type_${gltype}_suffix=no
40319 eval result=\$gl_cv_type_${gltype}_signed
40320 if test "$result" = yes; then
40325 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40327 '') gltype1='int';;
40328 l) gltype1='long int';;
40329 ll) gltype1='long long int';;
40330 i64) gltype1='__int64';;
40331 u) gltype1='unsigned int';;
40332 ul) gltype1='unsigned long int';;
40333 ull) gltype1='unsigned long long int';;
40334 ui64)gltype1='unsigned __int64';;
40336 cat >conftest.$ac_ext <<_ACEOF
40339 cat confdefs.h >>conftest.$ac_ext
40340 cat >>conftest.$ac_ext <<_ACEOF
40341 /* end confdefs.h. */
40343 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40344 included before <wchar.h>. */
40345 #include <stddef.h>
40346 #include <signal.h>
40348 # include <stdio.h>
40350 # include <wchar.h>
40353 extern $gltype foo;
40354 extern $gltype1 foo;
40363 rm -f conftest.$ac_objext
40364 if { (ac_try="$ac_compile"
40365 case "(($ac_try" in
40366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40367 *) ac_try_echo=$ac_try;;
40369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40370 $as_echo "$ac_try_echo") >&5
40371 (eval "$ac_compile") 2>conftest.er1
40373 grep -v '^ *+' conftest.er1 >conftest.err
40375 cat conftest.err >&5
40376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377 (exit $ac_status); } && {
40378 test -z "$ac_c_werror_flag" ||
40379 test ! -s conftest.err
40380 } && test -s conftest.$ac_objext; then
40381 eval gl_cv_type_${gltype}_suffix=\$glsuf
40383 $as_echo "$as_me: failed program was:" >&5
40384 sed 's/^/| /' conftest.$ac_ext >&5
40389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40390 eval result=\$gl_cv_type_${gltype}_suffix
40391 test "$result" != no && break
40394 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
40395 $as_echo "$as_val"'`
40396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40397 $as_echo "$ac_res" >&6; }
40398 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40399 eval result=\$gl_cv_type_${gltype}_suffix
40400 test "$result" = no && result=
40401 eval ${GLTYPE}_SUFFIX=\$result
40402 cat >>confdefs.h <<_ACEOF
40403 #define ${GLTYPE}_SUFFIX $result
40415 for gltype in sig_atomic_t wchar_t wint_t ; do
40416 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
40417 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40418 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
40419 $as_echo_n "(cached) " >&6
40421 eval gl_cv_type_${gltype}_suffix=no
40422 eval result=\$gl_cv_type_${gltype}_signed
40423 if test "$result" = yes; then
40428 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40430 '') gltype1='int';;
40431 l) gltype1='long int';;
40432 ll) gltype1='long long int';;
40433 i64) gltype1='__int64';;
40434 u) gltype1='unsigned int';;
40435 ul) gltype1='unsigned long int';;
40436 ull) gltype1='unsigned long long int';;
40437 ui64)gltype1='unsigned __int64';;
40439 cat >conftest.$ac_ext <<_ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h. */
40446 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40447 included before <wchar.h>. */
40448 #include <stddef.h>
40449 #include <signal.h>
40451 # include <stdio.h>
40453 # include <wchar.h>
40456 extern $gltype foo;
40457 extern $gltype1 foo;
40466 rm -f conftest.$ac_objext
40467 if { (ac_try="$ac_compile"
40468 case "(($ac_try" in
40469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40470 *) ac_try_echo=$ac_try;;
40472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40473 $as_echo "$ac_try_echo") >&5
40474 (eval "$ac_compile") 2>conftest.er1
40476 grep -v '^ *+' conftest.er1 >conftest.err
40478 cat conftest.err >&5
40479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40480 (exit $ac_status); } && {
40481 test -z "$ac_c_werror_flag" ||
40482 test ! -s conftest.err
40483 } && test -s conftest.$ac_objext; then
40484 eval gl_cv_type_${gltype}_suffix=\$glsuf
40486 $as_echo "$as_me: failed program was:" >&5
40487 sed 's/^/| /' conftest.$ac_ext >&5
40492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40493 eval result=\$gl_cv_type_${gltype}_suffix
40494 test "$result" != no && break
40497 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
40498 $as_echo "$as_val"'`
40499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40500 $as_echo "$ac_res" >&6; }
40501 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40502 eval result=\$gl_cv_type_${gltype}_suffix
40503 test "$result" = no && result=
40504 eval ${GLTYPE}_SUFFIX=\$result
40505 cat >>confdefs.h <<_ACEOF
40506 #define ${GLTYPE}_SUFFIX $result
40531 if test $gl_cv_have_include_next = yes; then
40532 gl_cv_next_stdio_h='<'stdio.h'>'
40534 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
40535 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
40536 if test "${gl_cv_next_stdio_h+set}" = set; then
40537 $as_echo_n "(cached) " >&6
40540 if test $ac_cv_header_stdio_h = yes; then
40541 cat >conftest.$ac_ext <<_ACEOF
40544 cat confdefs.h >>conftest.$ac_ext
40545 cat >>conftest.$ac_ext <<_ACEOF
40546 /* end confdefs.h. */
40551 aix*) gl_absname_cpp="$ac_cpp -C" ;;
40552 *) gl_absname_cpp="$ac_cpp" ;;
40554 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40555 sed -n '\#/stdio.h#{
40556 s#.*"\(.*/stdio.h\)".*#\1#
40562 gl_cv_next_stdio_h='<'stdio.h'>'
40566 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
40567 $as_echo "$gl_cv_next_stdio_h" >&6; }
40569 NEXT_STDIO_H=$gl_cv_next_stdio_h
40571 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40573 gl_next_as_first_directive='<'stdio.h'>'
40575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40576 gl_next_as_first_directive=$gl_cv_next_stdio_h
40578 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
40606 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf vdprintf vsnprintf; do
40607 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40608 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
40609 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40610 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
40611 $as_echo_n "(cached) " >&6
40613 cat >conftest.$ac_ext <<_ACEOF
40616 cat confdefs.h >>conftest.$ac_ext
40617 cat >>conftest.$ac_ext <<_ACEOF
40618 /* end confdefs.h. */
40630 rm -f conftest.$ac_objext
40631 if { (ac_try="$ac_compile"
40632 case "(($ac_try" in
40633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40634 *) ac_try_echo=$ac_try;;
40636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40637 $as_echo "$ac_try_echo") >&5
40638 (eval "$ac_compile") 2>conftest.er1
40640 grep -v '^ *+' conftest.er1 >conftest.err
40642 cat conftest.err >&5
40643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); } && {
40645 test -z "$ac_c_werror_flag" ||
40646 test ! -s conftest.err
40647 } && test -s conftest.$ac_objext; then
40648 eval "$as_gl_Symbol=yes"
40650 $as_echo "$as_me: failed program was:" >&5
40651 sed 's/^/| /' conftest.$ac_ext >&5
40653 eval "$as_gl_Symbol=no"
40656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40658 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
40659 $as_echo "$as_val"'`
40660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40661 $as_echo "$ac_res" >&6; }
40662 as_val=`eval 'as_val=${'$as_gl_Symbol'}
40663 $as_echo "$as_val"'`
40664 if test "x$as_val" = x""yes; then
40665 cat >>confdefs.h <<_ACEOF
40666 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40669 eval ac_cv_have_decl_$gl_func=yes
40688 if test $gl_cv_have_include_next = yes; then
40689 gl_cv_next_stdlib_h='<'stdlib.h'>'
40691 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
40692 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40693 if test "${gl_cv_next_stdlib_h+set}" = set; then
40694 $as_echo_n "(cached) " >&6
40697 if test $ac_cv_header_stdlib_h = yes; then
40698 cat >conftest.$ac_ext <<_ACEOF
40701 cat confdefs.h >>conftest.$ac_ext
40702 cat >>conftest.$ac_ext <<_ACEOF
40703 /* end confdefs.h. */
40704 #include <stdlib.h>
40708 aix*) gl_absname_cpp="$ac_cpp -C" ;;
40709 *) gl_absname_cpp="$ac_cpp" ;;
40711 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40712 sed -n '\#/stdlib.h#{
40713 s#.*"\(.*/stdlib.h\)".*#\1#
40719 gl_cv_next_stdlib_h='<'stdlib.h'>'
40723 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
40724 $as_echo "$gl_cv_next_stdlib_h" >&6; }
40726 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
40728 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40729 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40730 gl_next_as_first_directive='<'stdlib.h'>'
40732 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40733 gl_next_as_first_directive=$gl_cv_next_stdlib_h
40735 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
40740 for ac_header in random.h
40742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40744 $as_echo_n "checking for $ac_header... " >&6; }
40745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40746 $as_echo_n "(cached) " >&6
40748 cat >conftest.$ac_ext <<_ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h. */
40754 $ac_includes_default
40756 #include <$ac_header>
40758 rm -f conftest.$ac_objext
40759 if { (ac_try="$ac_compile"
40760 case "(($ac_try" in
40761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40762 *) ac_try_echo=$ac_try;;
40764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40765 $as_echo "$ac_try_echo") >&5
40766 (eval "$ac_compile") 2>conftest.er1
40768 grep -v '^ *+' conftest.er1 >conftest.err
40770 cat conftest.err >&5
40771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40772 (exit $ac_status); } && {
40773 test -z "$ac_c_werror_flag" ||
40774 test ! -s conftest.err
40775 } && test -s conftest.$ac_objext; then
40776 eval "$as_ac_Header=yes"
40778 $as_echo "$as_me: failed program was:" >&5
40779 sed 's/^/| /' conftest.$ac_ext >&5
40781 eval "$as_ac_Header=no"
40784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40786 ac_res=`eval 'as_val=${'$as_ac_Header'}
40787 $as_echo "$as_val"'`
40788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40789 $as_echo "$ac_res" >&6; }
40790 as_val=`eval 'as_val=${'$as_ac_Header'}
40791 $as_echo "$as_val"'`
40792 if test "x$as_val" = x""yes; then
40793 cat >>confdefs.h <<_ACEOF
40794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40801 if test $ac_cv_header_random_h = yes; then
40807 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
40808 $as_echo_n "checking for struct random_data... " >&6; }
40809 if test "${ac_cv_type_struct_random_data+set}" = set; then
40810 $as_echo_n "(cached) " >&6
40812 ac_cv_type_struct_random_data=no
40813 cat >conftest.$ac_ext <<_ACEOF
40816 cat confdefs.h >>conftest.$ac_ext
40817 cat >>conftest.$ac_ext <<_ACEOF
40818 /* end confdefs.h. */
40819 #include <stdlib.h>
40821 # include <random.h>
40828 if (sizeof (struct random_data))
40834 rm -f conftest.$ac_objext
40835 if { (ac_try="$ac_compile"
40836 case "(($ac_try" in
40837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40838 *) ac_try_echo=$ac_try;;
40840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40841 $as_echo "$ac_try_echo") >&5
40842 (eval "$ac_compile") 2>conftest.er1
40844 grep -v '^ *+' conftest.er1 >conftest.err
40846 cat conftest.err >&5
40847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); } && {
40849 test -z "$ac_c_werror_flag" ||
40850 test ! -s conftest.err
40851 } && test -s conftest.$ac_objext; then
40852 cat >conftest.$ac_ext <<_ACEOF
40855 cat confdefs.h >>conftest.$ac_ext
40856 cat >>conftest.$ac_ext <<_ACEOF
40857 /* end confdefs.h. */
40858 #include <stdlib.h>
40860 # include <random.h>
40867 if (sizeof ((struct random_data)))
40873 rm -f conftest.$ac_objext
40874 if { (ac_try="$ac_compile"
40875 case "(($ac_try" in
40876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40877 *) ac_try_echo=$ac_try;;
40879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40880 $as_echo "$ac_try_echo") >&5
40881 (eval "$ac_compile") 2>conftest.er1
40883 grep -v '^ *+' conftest.er1 >conftest.err
40885 cat conftest.err >&5
40886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887 (exit $ac_status); } && {
40888 test -z "$ac_c_werror_flag" ||
40889 test ! -s conftest.err
40890 } && test -s conftest.$ac_objext; then
40893 $as_echo "$as_me: failed program was:" >&5
40894 sed 's/^/| /' conftest.$ac_ext >&5
40896 ac_cv_type_struct_random_data=yes
40899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40901 $as_echo "$as_me: failed program was:" >&5
40902 sed 's/^/| /' conftest.$ac_ext >&5
40907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
40910 $as_echo "$ac_cv_type_struct_random_data" >&6; }
40911 if test "x$ac_cv_type_struct_random_data" = x""yes; then
40913 cat >>confdefs.h <<_ACEOF
40914 #define HAVE_STRUCT_RANDOM_DATA 1
40919 HAVE_STRUCT_RANDOM_DATA=0
40944 for gl_func in atoll canonicalize_file_name getloadavg getsubopt mkdtemp mkostemp mkostemps mkstemp mkstemps random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unsetenv; do
40945 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40946 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
40947 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40948 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
40949 $as_echo_n "(cached) " >&6
40951 cat >conftest.$ac_ext <<_ACEOF
40954 cat confdefs.h >>conftest.$ac_ext
40955 cat >>conftest.$ac_ext <<_ACEOF
40956 /* end confdefs.h. */
40957 #include <stdlib.h>
40958 #if HAVE_SYS_LOADAVG_H
40959 # include <sys/loadavg.h>
40962 # include <random.h>
40974 rm -f conftest.$ac_objext
40975 if { (ac_try="$ac_compile"
40976 case "(($ac_try" in
40977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40978 *) ac_try_echo=$ac_try;;
40980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40981 $as_echo "$ac_try_echo") >&5
40982 (eval "$ac_compile") 2>conftest.er1
40984 grep -v '^ *+' conftest.er1 >conftest.err
40986 cat conftest.err >&5
40987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988 (exit $ac_status); } && {
40989 test -z "$ac_c_werror_flag" ||
40990 test ! -s conftest.err
40991 } && test -s conftest.$ac_objext; then
40992 eval "$as_gl_Symbol=yes"
40994 $as_echo "$as_me: failed program was:" >&5
40995 sed 's/^/| /' conftest.$ac_ext >&5
40997 eval "$as_gl_Symbol=no"
41000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41002 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
41003 $as_echo "$as_val"'`
41004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41005 $as_echo "$ac_res" >&6; }
41006 as_val=`eval 'as_val=${'$as_gl_Symbol'}
41007 $as_echo "$as_val"'`
41008 if test "x$as_val" = x""yes; then
41009 cat >>confdefs.h <<_ACEOF
41010 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41013 eval ac_cv_have_decl_$gl_func=yes
41034 for ac_func in stpcpy
41036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41037 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41038 $as_echo_n "checking for $ac_func... " >&6; }
41039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41040 $as_echo_n "(cached) " >&6
41042 cat >conftest.$ac_ext <<_ACEOF
41045 cat confdefs.h >>conftest.$ac_ext
41046 cat >>conftest.$ac_ext <<_ACEOF
41047 /* end confdefs.h. */
41048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41050 #define $ac_func innocuous_$ac_func
41052 /* System header to define __stub macros and hopefully few prototypes,
41053 which can conflict with char $ac_func (); below.
41054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41055 <limits.h> exists even on freestanding compilers. */
41058 # include <limits.h>
41060 # include <assert.h>
41065 /* Override any GCC internal prototype to avoid an error.
41066 Use char because int might match the return type of a GCC
41067 builtin and then its argument prototype would still apply. */
41072 /* The GNU C library defines this for functions which it implements
41073 to always fail with ENOSYS. Some functions are actually named
41074 something starting with __ and the normal name is an alias. */
41075 #if defined __stub_$ac_func || defined __stub___$ac_func
41082 return $ac_func ();
41087 rm -f conftest.$ac_objext conftest$ac_exeext
41088 if { (ac_try="$ac_link"
41089 case "(($ac_try" in
41090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41091 *) ac_try_echo=$ac_try;;
41093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41094 $as_echo "$ac_try_echo") >&5
41095 (eval "$ac_link") 2>conftest.er1
41097 grep -v '^ *+' conftest.er1 >conftest.err
41099 cat conftest.err >&5
41100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41101 (exit $ac_status); } && {
41102 test -z "$ac_c_werror_flag" ||
41103 test ! -s conftest.err
41104 } && test -s conftest$ac_exeext && {
41105 test "$cross_compiling" = yes ||
41106 $as_test_x conftest$ac_exeext
41108 eval "$as_ac_var=yes"
41110 $as_echo "$as_me: failed program was:" >&5
41111 sed 's/^/| /' conftest.$ac_ext >&5
41113 eval "$as_ac_var=no"
41116 rm -rf conftest.dSYM
41117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41118 conftest$ac_exeext conftest.$ac_ext
41120 ac_res=`eval 'as_val=${'$as_ac_var'}
41121 $as_echo "$as_val"'`
41122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41123 $as_echo "$ac_res" >&6; }
41124 as_val=`eval 'as_val=${'$as_ac_var'}
41125 $as_echo "$as_val"'`
41126 if test "x$as_val" = x""yes; then
41127 cat >>confdefs.h <<_ACEOF
41128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41133 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41139 if test $ac_cv_func_stpcpy = no; then
41151 cat >>confdefs.h <<\_ACEOF
41152 #define GNULIB_STPCPY 1
41169 for ac_func in strcasecmp
41171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41173 $as_echo_n "checking for $ac_func... " >&6; }
41174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41175 $as_echo_n "(cached) " >&6
41177 cat >conftest.$ac_ext <<_ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h. */
41183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41185 #define $ac_func innocuous_$ac_func
41187 /* System header to define __stub macros and hopefully few prototypes,
41188 which can conflict with char $ac_func (); below.
41189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41190 <limits.h> exists even on freestanding compilers. */
41193 # include <limits.h>
41195 # include <assert.h>
41200 /* Override any GCC internal prototype to avoid an error.
41201 Use char because int might match the return type of a GCC
41202 builtin and then its argument prototype would still apply. */
41207 /* The GNU C library defines this for functions which it implements
41208 to always fail with ENOSYS. Some functions are actually named
41209 something starting with __ and the normal name is an alias. */
41210 #if defined __stub_$ac_func || defined __stub___$ac_func
41217 return $ac_func ();
41222 rm -f conftest.$ac_objext conftest$ac_exeext
41223 if { (ac_try="$ac_link"
41224 case "(($ac_try" in
41225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41226 *) ac_try_echo=$ac_try;;
41228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41229 $as_echo "$ac_try_echo") >&5
41230 (eval "$ac_link") 2>conftest.er1
41232 grep -v '^ *+' conftest.er1 >conftest.err
41234 cat conftest.err >&5
41235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236 (exit $ac_status); } && {
41237 test -z "$ac_c_werror_flag" ||
41238 test ! -s conftest.err
41239 } && test -s conftest$ac_exeext && {
41240 test "$cross_compiling" = yes ||
41241 $as_test_x conftest$ac_exeext
41243 eval "$as_ac_var=yes"
41245 $as_echo "$as_me: failed program was:" >&5
41246 sed 's/^/| /' conftest.$ac_ext >&5
41248 eval "$as_ac_var=no"
41251 rm -rf conftest.dSYM
41252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41253 conftest$ac_exeext conftest.$ac_ext
41255 ac_res=`eval 'as_val=${'$as_ac_var'}
41256 $as_echo "$as_val"'`
41257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41258 $as_echo "$ac_res" >&6; }
41259 as_val=`eval 'as_val=${'$as_ac_var'}
41260 $as_echo "$as_val"'`
41261 if test "x$as_val" = x""yes; then
41262 cat >>confdefs.h <<_ACEOF
41263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41268 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41274 if test $ac_cv_func_strcasecmp = no; then
41292 for ac_func in strncasecmp
41294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41295 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41296 $as_echo_n "checking for $ac_func... " >&6; }
41297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41298 $as_echo_n "(cached) " >&6
41300 cat >conftest.$ac_ext <<_ACEOF
41303 cat confdefs.h >>conftest.$ac_ext
41304 cat >>conftest.$ac_ext <<_ACEOF
41305 /* end confdefs.h. */
41306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41308 #define $ac_func innocuous_$ac_func
41310 /* System header to define __stub macros and hopefully few prototypes,
41311 which can conflict with char $ac_func (); below.
41312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41313 <limits.h> exists even on freestanding compilers. */
41316 # include <limits.h>
41318 # include <assert.h>
41323 /* Override any GCC internal prototype to avoid an error.
41324 Use char because int might match the return type of a GCC
41325 builtin and then its argument prototype would still apply. */
41330 /* The GNU C library defines this for functions which it implements
41331 to always fail with ENOSYS. Some functions are actually named
41332 something starting with __ and the normal name is an alias. */
41333 #if defined __stub_$ac_func || defined __stub___$ac_func
41340 return $ac_func ();
41345 rm -f conftest.$ac_objext conftest$ac_exeext
41346 if { (ac_try="$ac_link"
41347 case "(($ac_try" in
41348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41349 *) ac_try_echo=$ac_try;;
41351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41352 $as_echo "$ac_try_echo") >&5
41353 (eval "$ac_link") 2>conftest.er1
41355 grep -v '^ *+' conftest.er1 >conftest.err
41357 cat conftest.err >&5
41358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359 (exit $ac_status); } && {
41360 test -z "$ac_c_werror_flag" ||
41361 test ! -s conftest.err
41362 } && test -s conftest$ac_exeext && {
41363 test "$cross_compiling" = yes ||
41364 $as_test_x conftest$ac_exeext
41366 eval "$as_ac_var=yes"
41368 $as_echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41371 eval "$as_ac_var=no"
41374 rm -rf conftest.dSYM
41375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41376 conftest$ac_exeext conftest.$ac_ext
41378 ac_res=`eval 'as_val=${'$as_ac_var'}
41379 $as_echo "$as_val"'`
41380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41381 $as_echo "$ac_res" >&6; }
41382 as_val=`eval 'as_val=${'$as_ac_var'}
41383 $as_echo "$as_val"'`
41384 if test "x$as_val" = x""yes; then
41385 cat >>confdefs.h <<_ACEOF
41386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41391 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41397 if test $ac_cv_func_strncasecmp = no; then
41402 { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
41403 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
41404 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
41405 $as_echo_n "(cached) " >&6
41407 cat >conftest.$ac_ext <<_ACEOF
41410 cat confdefs.h >>conftest.$ac_ext
41411 cat >>conftest.$ac_ext <<_ACEOF
41412 /* end confdefs.h. */
41413 $ac_includes_default
41417 #ifndef strncasecmp
41418 (void) strncasecmp;
41425 rm -f conftest.$ac_objext
41426 if { (ac_try="$ac_compile"
41427 case "(($ac_try" in
41428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41429 *) ac_try_echo=$ac_try;;
41431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41432 $as_echo "$ac_try_echo") >&5
41433 (eval "$ac_compile") 2>conftest.er1
41435 grep -v '^ *+' conftest.er1 >conftest.err
41437 cat conftest.err >&5
41438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439 (exit $ac_status); } && {
41440 test -z "$ac_c_werror_flag" ||
41441 test ! -s conftest.err
41442 } && test -s conftest.$ac_objext; then
41443 ac_cv_have_decl_strncasecmp=yes
41445 $as_echo "$as_me: failed program was:" >&5
41446 sed 's/^/| /' conftest.$ac_ext >&5
41448 ac_cv_have_decl_strncasecmp=no
41451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41453 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
41454 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
41455 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
41457 cat >>confdefs.h <<_ACEOF
41458 #define HAVE_DECL_STRNCASECMP 1
41463 cat >>confdefs.h <<_ACEOF
41464 #define HAVE_DECL_STRNCASECMP 0
41471 if test $ac_cv_have_decl_strncasecmp = no; then
41472 HAVE_DECL_STRNCASECMP=0
41489 for ac_func in strchrnul
41491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41493 $as_echo_n "checking for $ac_func... " >&6; }
41494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41495 $as_echo_n "(cached) " >&6
41497 cat >conftest.$ac_ext <<_ACEOF
41500 cat confdefs.h >>conftest.$ac_ext
41501 cat >>conftest.$ac_ext <<_ACEOF
41502 /* end confdefs.h. */
41503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41505 #define $ac_func innocuous_$ac_func
41507 /* System header to define __stub macros and hopefully few prototypes,
41508 which can conflict with char $ac_func (); below.
41509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41510 <limits.h> exists even on freestanding compilers. */
41513 # include <limits.h>
41515 # include <assert.h>
41520 /* Override any GCC internal prototype to avoid an error.
41521 Use char because int might match the return type of a GCC
41522 builtin and then its argument prototype would still apply. */
41527 /* The GNU C library defines this for functions which it implements
41528 to always fail with ENOSYS. Some functions are actually named
41529 something starting with __ and the normal name is an alias. */
41530 #if defined __stub_$ac_func || defined __stub___$ac_func
41537 return $ac_func ();
41542 rm -f conftest.$ac_objext conftest$ac_exeext
41543 if { (ac_try="$ac_link"
41544 case "(($ac_try" in
41545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41546 *) ac_try_echo=$ac_try;;
41548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41549 $as_echo "$ac_try_echo") >&5
41550 (eval "$ac_link") 2>conftest.er1
41552 grep -v '^ *+' conftest.er1 >conftest.err
41554 cat conftest.err >&5
41555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41556 (exit $ac_status); } && {
41557 test -z "$ac_c_werror_flag" ||
41558 test ! -s conftest.err
41559 } && test -s conftest$ac_exeext && {
41560 test "$cross_compiling" = yes ||
41561 $as_test_x conftest$ac_exeext
41563 eval "$as_ac_var=yes"
41565 $as_echo "$as_me: failed program was:" >&5
41566 sed 's/^/| /' conftest.$ac_ext >&5
41568 eval "$as_ac_var=no"
41571 rm -rf conftest.dSYM
41572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41573 conftest$ac_exeext conftest.$ac_ext
41575 ac_res=`eval 'as_val=${'$as_ac_var'}
41576 $as_echo "$as_val"'`
41577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41578 $as_echo "$ac_res" >&6; }
41579 as_val=`eval 'as_val=${'$as_ac_var'}
41580 $as_echo "$as_val"'`
41581 if test "x$as_val" = x""yes; then
41582 cat >>confdefs.h <<_ACEOF
41583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41588 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41594 if test $ac_cv_func_strchrnul = no; then
41604 cat >>confdefs.h <<\_ACEOF
41605 #define GNULIB_STRCHRNUL 1
41613 if test $gl_cv_func_malloc_posix != yes; then
41623 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
41635 for ac_func in strdup
41637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41638 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41639 $as_echo_n "checking for $ac_func... " >&6; }
41640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41641 $as_echo_n "(cached) " >&6
41643 cat >conftest.$ac_ext <<_ACEOF
41646 cat confdefs.h >>conftest.$ac_ext
41647 cat >>conftest.$ac_ext <<_ACEOF
41648 /* end confdefs.h. */
41649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41651 #define $ac_func innocuous_$ac_func
41653 /* System header to define __stub macros and hopefully few prototypes,
41654 which can conflict with char $ac_func (); below.
41655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41656 <limits.h> exists even on freestanding compilers. */
41659 # include <limits.h>
41661 # include <assert.h>
41666 /* Override any GCC internal prototype to avoid an error.
41667 Use char because int might match the return type of a GCC
41668 builtin and then its argument prototype would still apply. */
41673 /* The GNU C library defines this for functions which it implements
41674 to always fail with ENOSYS. Some functions are actually named
41675 something starting with __ and the normal name is an alias. */
41676 #if defined __stub_$ac_func || defined __stub___$ac_func
41683 return $ac_func ();
41688 rm -f conftest.$ac_objext conftest$ac_exeext
41689 if { (ac_try="$ac_link"
41690 case "(($ac_try" in
41691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41692 *) ac_try_echo=$ac_try;;
41694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41695 $as_echo "$ac_try_echo") >&5
41696 (eval "$ac_link") 2>conftest.er1
41698 grep -v '^ *+' conftest.er1 >conftest.err
41700 cat conftest.err >&5
41701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); } && {
41703 test -z "$ac_c_werror_flag" ||
41704 test ! -s conftest.err
41705 } && test -s conftest$ac_exeext && {
41706 test "$cross_compiling" = yes ||
41707 $as_test_x conftest$ac_exeext
41709 eval "$as_ac_var=yes"
41711 $as_echo "$as_me: failed program was:" >&5
41712 sed 's/^/| /' conftest.$ac_ext >&5
41714 eval "$as_ac_var=no"
41717 rm -rf conftest.dSYM
41718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41719 conftest$ac_exeext conftest.$ac_ext
41721 ac_res=`eval 'as_val=${'$as_ac_var'}
41722 $as_echo "$as_val"'`
41723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41724 $as_echo "$ac_res" >&6; }
41725 as_val=`eval 'as_val=${'$as_ac_var'}
41726 $as_echo "$as_val"'`
41727 if test "x$as_val" = x""yes; then
41728 cat >>confdefs.h <<_ACEOF
41729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41734 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41745 if test $ac_cv_have_decl_strdup = no; then
41755 cat >>confdefs.h <<\_ACEOF
41756 #define GNULIB_STRDUP 1
41763 if test $REPLACE_STRERROR = 1; then
41772 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
41775 cat >>confdefs.h <<_ACEOF
41776 #define REPLACE_STRERROR $REPLACE_STRERROR
41786 cat >>confdefs.h <<\_ACEOF
41787 #define GNULIB_STRERROR 1
41812 if test $ac_cv_have_decl_strndup = no; then
41813 HAVE_DECL_STRNDUP=0
41816 if test $ac_cv_func_strndup = yes; then
41817 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
41818 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
41819 $as_echo_n "checking for working strndup... " >&6; }
41820 if test "${gl_cv_func_strndup_works+set}" = set; then
41821 $as_echo_n "(cached) " >&6
41823 if test "$cross_compiling" = yes; then
41825 aix*) gl_cv_func_strndup_works="guessing no";;
41826 *) gl_cv_func_strndup_works="guessing yes";;
41829 cat >conftest.$ac_ext <<_ACEOF
41833 cat confdefs.h >>conftest.$ac_ext
41834 cat >>conftest.$ac_ext <<_ACEOF
41835 /* end confdefs.h. */
41836 #include <string.h>
41837 #include <stdlib.h>
41842 #ifndef HAVE_DECL_STRNDUP
41843 extern char *strndup (const char *, size_t);
41846 s = strndup ("some longer string", 15);
41848 s = strndup ("shorter string", 13);
41849 return s[13] != '\0';
41854 rm -f conftest$ac_exeext
41855 if { (ac_try="$ac_link"
41856 case "(($ac_try" in
41857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41858 *) ac_try_echo=$ac_try;;
41860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41861 $as_echo "$ac_try_echo") >&5
41862 (eval "$ac_link") 2>&5
41864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41866 { (case "(($ac_try" in
41867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41868 *) ac_try_echo=$ac_try;;
41870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41871 $as_echo "$ac_try_echo") >&5
41872 (eval "$ac_try") 2>&5
41874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41875 (exit $ac_status); }; }; then
41876 gl_cv_func_strndup_works=yes
41878 $as_echo "$as_me: program exited with status $ac_status" >&5
41879 $as_echo "$as_me: failed program was:" >&5
41880 sed 's/^/| /' conftest.$ac_ext >&5
41882 ( exit $ac_status )
41883 gl_cv_func_strndup_works=no
41885 rm -rf conftest.dSYM
41886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41891 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
41892 $as_echo "$gl_cv_func_strndup_works" >&6; }
41893 case $gl_cv_func_strndup_works in
41904 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
41917 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
41926 cat >>confdefs.h <<\_ACEOF
41927 #define GNULIB_STRNDUP 1
41940 if test $ac_cv_have_decl_strnlen = no; then
41941 HAVE_DECL_STRNLEN=0
41944 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
41945 $as_echo_n "checking for working strnlen... " >&6; }
41946 if test "${ac_cv_func_strnlen_working+set}" = set; then
41947 $as_echo_n "(cached) " >&6
41949 if test "$cross_compiling" = yes; then
41950 ac_cv_func_strnlen_working=no
41952 cat >conftest.$ac_ext <<_ACEOF
41955 cat confdefs.h >>conftest.$ac_ext
41956 cat >>conftest.$ac_ext <<_ACEOF
41957 /* end confdefs.h. */
41958 $ac_includes_default
41964 #define S_LEN (sizeof S - 1)
41966 /* At least one implementation is buggy: that of AIX 4.3 would
41967 give strnlen (S, 1) == 3. */
41970 for (i = 0; i < S_LEN + 1; ++i)
41972 int expected = i <= S_LEN ? i : S_LEN;
41973 if (strnlen (S, i) != expected)
41982 rm -f conftest$ac_exeext
41983 if { (ac_try="$ac_link"
41984 case "(($ac_try" in
41985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41986 *) ac_try_echo=$ac_try;;
41988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41989 $as_echo "$ac_try_echo") >&5
41990 (eval "$ac_link") 2>&5
41992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41994 { (case "(($ac_try" in
41995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41996 *) ac_try_echo=$ac_try;;
41998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41999 $as_echo "$ac_try_echo") >&5
42000 (eval "$ac_try") 2>&5
42002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003 (exit $ac_status); }; }; then
42004 ac_cv_func_strnlen_working=yes
42006 $as_echo "$as_me: program exited with status $ac_status" >&5
42007 $as_echo "$as_me: failed program was:" >&5
42008 sed 's/^/| /' conftest.$ac_ext >&5
42010 ( exit $ac_status )
42011 ac_cv_func_strnlen_working=no
42013 rm -rf conftest.dSYM
42014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42019 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
42020 $as_echo "$ac_cv_func_strnlen_working" >&6; }
42021 test $ac_cv_func_strnlen_working = no &&
42029 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
42032 if test $ac_cv_func_strnlen_working = no; then
42033 # This is necessary because automake-1.6.1 doesn't understand
42034 # that the above use of AC_FUNC_STRNLEN means we may have to use
42036 #AC_LIBOBJ([strnlen])
42038 cat >>confdefs.h <<\_ACEOF
42039 #define strnlen rpl_strnlen
42050 cat >>confdefs.h <<\_ACEOF
42051 #define GNULIB_STRNLEN 1
42060 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
42061 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
42062 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
42063 $as_echo_n "(cached) " >&6
42065 cat >conftest.$ac_ext <<_ACEOF
42068 cat confdefs.h >>conftest.$ac_ext
42069 cat >>conftest.$ac_ext <<_ACEOF
42070 /* end confdefs.h. */
42071 #include <inttypes.h>
42073 inttypes_h_defines_strtoimax
42076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42077 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
42078 gl_cv_func_strtoimax_macro=yes
42080 gl_cv_func_strtoimax_macro=no
42085 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
42086 $as_echo "$gl_cv_func_strtoimax_macro" >&6; }
42088 if test "$gl_cv_func_strtoimax_macro" != yes; then
42098 for ac_func in strtoimax
42100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42102 $as_echo_n "checking for $ac_func... " >&6; }
42103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42104 $as_echo_n "(cached) " >&6
42106 cat >conftest.$ac_ext <<_ACEOF
42109 cat confdefs.h >>conftest.$ac_ext
42110 cat >>conftest.$ac_ext <<_ACEOF
42111 /* end confdefs.h. */
42112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42114 #define $ac_func innocuous_$ac_func
42116 /* System header to define __stub macros and hopefully few prototypes,
42117 which can conflict with char $ac_func (); below.
42118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42119 <limits.h> exists even on freestanding compilers. */
42122 # include <limits.h>
42124 # include <assert.h>
42129 /* Override any GCC internal prototype to avoid an error.
42130 Use char because int might match the return type of a GCC
42131 builtin and then its argument prototype would still apply. */
42136 /* The GNU C library defines this for functions which it implements
42137 to always fail with ENOSYS. Some functions are actually named
42138 something starting with __ and the normal name is an alias. */
42139 #if defined __stub_$ac_func || defined __stub___$ac_func
42146 return $ac_func ();
42151 rm -f conftest.$ac_objext conftest$ac_exeext
42152 if { (ac_try="$ac_link"
42153 case "(($ac_try" in
42154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42155 *) ac_try_echo=$ac_try;;
42157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42158 $as_echo "$ac_try_echo") >&5
42159 (eval "$ac_link") 2>conftest.er1
42161 grep -v '^ *+' conftest.er1 >conftest.err
42163 cat conftest.err >&5
42164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165 (exit $ac_status); } && {
42166 test -z "$ac_c_werror_flag" ||
42167 test ! -s conftest.err
42168 } && test -s conftest$ac_exeext && {
42169 test "$cross_compiling" = yes ||
42170 $as_test_x conftest$ac_exeext
42172 eval "$as_ac_var=yes"
42174 $as_echo "$as_me: failed program was:" >&5
42175 sed 's/^/| /' conftest.$ac_ext >&5
42177 eval "$as_ac_var=no"
42180 rm -rf conftest.dSYM
42181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42182 conftest$ac_exeext conftest.$ac_ext
42184 ac_res=`eval 'as_val=${'$as_ac_var'}
42185 $as_echo "$as_val"'`
42186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42187 $as_echo "$ac_res" >&6; }
42188 as_val=`eval 'as_val=${'$as_ac_var'}
42189 $as_echo "$as_val"'`
42190 if test "x$as_val" = x""yes; then
42191 cat >>confdefs.h <<_ACEOF
42192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42197 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42203 if test $ac_cv_func_strtoimax = no; then
42205 { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
42206 $as_echo_n "checking whether strtoll is declared... " >&6; }
42207 if test "${ac_cv_have_decl_strtoll+set}" = set; then
42208 $as_echo_n "(cached) " >&6
42210 cat >conftest.$ac_ext <<_ACEOF
42213 cat confdefs.h >>conftest.$ac_ext
42214 cat >>conftest.$ac_ext <<_ACEOF
42215 /* end confdefs.h. */
42216 $ac_includes_default
42228 rm -f conftest.$ac_objext
42229 if { (ac_try="$ac_compile"
42230 case "(($ac_try" in
42231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42232 *) ac_try_echo=$ac_try;;
42234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42235 $as_echo "$ac_try_echo") >&5
42236 (eval "$ac_compile") 2>conftest.er1
42238 grep -v '^ *+' conftest.er1 >conftest.err
42240 cat conftest.err >&5
42241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42242 (exit $ac_status); } && {
42243 test -z "$ac_c_werror_flag" ||
42244 test ! -s conftest.err
42245 } && test -s conftest.$ac_objext; then
42246 ac_cv_have_decl_strtoll=yes
42248 $as_echo "$as_me: failed program was:" >&5
42249 sed 's/^/| /' conftest.$ac_ext >&5
42251 ac_cv_have_decl_strtoll=no
42254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42256 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
42257 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
42258 if test "x$ac_cv_have_decl_strtoll" = x""yes; then
42260 cat >>confdefs.h <<_ACEOF
42261 #define HAVE_DECL_STRTOLL 1
42266 cat >>confdefs.h <<_ACEOF
42267 #define HAVE_DECL_STRTOLL 0
42293 for ac_func in strtol
42295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42296 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42297 $as_echo_n "checking for $ac_func... " >&6; }
42298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42299 $as_echo_n "(cached) " >&6
42301 cat >conftest.$ac_ext <<_ACEOF
42304 cat confdefs.h >>conftest.$ac_ext
42305 cat >>conftest.$ac_ext <<_ACEOF
42306 /* end confdefs.h. */
42307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42309 #define $ac_func innocuous_$ac_func
42311 /* System header to define __stub macros and hopefully few prototypes,
42312 which can conflict with char $ac_func (); below.
42313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42314 <limits.h> exists even on freestanding compilers. */
42317 # include <limits.h>
42319 # include <assert.h>
42324 /* Override any GCC internal prototype to avoid an error.
42325 Use char because int might match the return type of a GCC
42326 builtin and then its argument prototype would still apply. */
42331 /* The GNU C library defines this for functions which it implements
42332 to always fail with ENOSYS. Some functions are actually named
42333 something starting with __ and the normal name is an alias. */
42334 #if defined __stub_$ac_func || defined __stub___$ac_func
42341 return $ac_func ();
42346 rm -f conftest.$ac_objext conftest$ac_exeext
42347 if { (ac_try="$ac_link"
42348 case "(($ac_try" in
42349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42350 *) ac_try_echo=$ac_try;;
42352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42353 $as_echo "$ac_try_echo") >&5
42354 (eval "$ac_link") 2>conftest.er1
42356 grep -v '^ *+' conftest.er1 >conftest.err
42358 cat conftest.err >&5
42359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42360 (exit $ac_status); } && {
42361 test -z "$ac_c_werror_flag" ||
42362 test ! -s conftest.err
42363 } && test -s conftest$ac_exeext && {
42364 test "$cross_compiling" = yes ||
42365 $as_test_x conftest$ac_exeext
42367 eval "$as_ac_var=yes"
42369 $as_echo "$as_me: failed program was:" >&5
42370 sed 's/^/| /' conftest.$ac_ext >&5
42372 eval "$as_ac_var=no"
42375 rm -rf conftest.dSYM
42376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42377 conftest$ac_exeext conftest.$ac_ext
42379 ac_res=`eval 'as_val=${'$as_ac_var'}
42380 $as_echo "$as_val"'`
42381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42382 $as_echo "$ac_res" >&6; }
42383 as_val=`eval 'as_val=${'$as_ac_var'}
42384 $as_echo "$as_val"'`
42385 if test "x$as_val" = x""yes; then
42386 cat >>confdefs.h <<_ACEOF
42387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42392 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42402 if test "$ac_cv_type_long_long_int" = yes; then
42412 for ac_func in strtoll
42414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42416 $as_echo_n "checking for $ac_func... " >&6; }
42417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42418 $as_echo_n "(cached) " >&6
42420 cat >conftest.$ac_ext <<_ACEOF
42423 cat confdefs.h >>conftest.$ac_ext
42424 cat >>conftest.$ac_ext <<_ACEOF
42425 /* end confdefs.h. */
42426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42428 #define $ac_func innocuous_$ac_func
42430 /* System header to define __stub macros and hopefully few prototypes,
42431 which can conflict with char $ac_func (); below.
42432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42433 <limits.h> exists even on freestanding compilers. */
42436 # include <limits.h>
42438 # include <assert.h>
42443 /* Override any GCC internal prototype to avoid an error.
42444 Use char because int might match the return type of a GCC
42445 builtin and then its argument prototype would still apply. */
42450 /* The GNU C library defines this for functions which it implements
42451 to always fail with ENOSYS. Some functions are actually named
42452 something starting with __ and the normal name is an alias. */
42453 #if defined __stub_$ac_func || defined __stub___$ac_func
42460 return $ac_func ();
42465 rm -f conftest.$ac_objext conftest$ac_exeext
42466 if { (ac_try="$ac_link"
42467 case "(($ac_try" in
42468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42469 *) ac_try_echo=$ac_try;;
42471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42472 $as_echo "$ac_try_echo") >&5
42473 (eval "$ac_link") 2>conftest.er1
42475 grep -v '^ *+' conftest.er1 >conftest.err
42477 cat conftest.err >&5
42478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479 (exit $ac_status); } && {
42480 test -z "$ac_c_werror_flag" ||
42481 test ! -s conftest.err
42482 } && test -s conftest$ac_exeext && {
42483 test "$cross_compiling" = yes ||
42484 $as_test_x conftest$ac_exeext
42486 eval "$as_ac_var=yes"
42488 $as_echo "$as_me: failed program was:" >&5
42489 sed 's/^/| /' conftest.$ac_ext >&5
42491 eval "$as_ac_var=no"
42494 rm -rf conftest.dSYM
42495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42496 conftest$ac_exeext conftest.$ac_ext
42498 ac_res=`eval 'as_val=${'$as_ac_var'}
42499 $as_echo "$as_val"'`
42500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42501 $as_echo "$ac_res" >&6; }
42502 as_val=`eval 'as_val=${'$as_ac_var'}
42503 $as_echo "$as_val"'`
42504 if test "x$as_val" = x""yes; then
42505 cat >>confdefs.h <<_ACEOF
42506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42511 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42517 if test $ac_cv_func_strtoll = no; then
42530 cat >>confdefs.h <<\_ACEOF
42531 #define GNULIB_STRTOLL 1
42546 for ac_func in strtoul
42548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42549 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42550 $as_echo_n "checking for $ac_func... " >&6; }
42551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42552 $as_echo_n "(cached) " >&6
42554 cat >conftest.$ac_ext <<_ACEOF
42557 cat confdefs.h >>conftest.$ac_ext
42558 cat >>conftest.$ac_ext <<_ACEOF
42559 /* end confdefs.h. */
42560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42562 #define $ac_func innocuous_$ac_func
42564 /* System header to define __stub macros and hopefully few prototypes,
42565 which can conflict with char $ac_func (); below.
42566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42567 <limits.h> exists even on freestanding compilers. */
42570 # include <limits.h>
42572 # include <assert.h>
42577 /* Override any GCC internal prototype to avoid an error.
42578 Use char because int might match the return type of a GCC
42579 builtin and then its argument prototype would still apply. */
42584 /* The GNU C library defines this for functions which it implements
42585 to always fail with ENOSYS. Some functions are actually named
42586 something starting with __ and the normal name is an alias. */
42587 #if defined __stub_$ac_func || defined __stub___$ac_func
42594 return $ac_func ();
42599 rm -f conftest.$ac_objext conftest$ac_exeext
42600 if { (ac_try="$ac_link"
42601 case "(($ac_try" in
42602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42603 *) ac_try_echo=$ac_try;;
42605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42606 $as_echo "$ac_try_echo") >&5
42607 (eval "$ac_link") 2>conftest.er1
42609 grep -v '^ *+' conftest.er1 >conftest.err
42611 cat conftest.err >&5
42612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42613 (exit $ac_status); } && {
42614 test -z "$ac_c_werror_flag" ||
42615 test ! -s conftest.err
42616 } && test -s conftest$ac_exeext && {
42617 test "$cross_compiling" = yes ||
42618 $as_test_x conftest$ac_exeext
42620 eval "$as_ac_var=yes"
42622 $as_echo "$as_me: failed program was:" >&5
42623 sed 's/^/| /' conftest.$ac_ext >&5
42625 eval "$as_ac_var=no"
42628 rm -rf conftest.dSYM
42629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42630 conftest$ac_exeext conftest.$ac_ext
42632 ac_res=`eval 'as_val=${'$as_ac_var'}
42633 $as_echo "$as_val"'`
42634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42635 $as_echo "$ac_res" >&6; }
42636 as_val=`eval 'as_val=${'$as_ac_var'}
42637 $as_echo "$as_val"'`
42638 if test "x$as_val" = x""yes; then
42639 cat >>confdefs.h <<_ACEOF
42640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42645 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42655 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
42665 for ac_func in strtoull
42667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42669 $as_echo_n "checking for $ac_func... " >&6; }
42670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42671 $as_echo_n "(cached) " >&6
42673 cat >conftest.$ac_ext <<_ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h. */
42679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42681 #define $ac_func innocuous_$ac_func
42683 /* System header to define __stub macros and hopefully few prototypes,
42684 which can conflict with char $ac_func (); below.
42685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42686 <limits.h> exists even on freestanding compilers. */
42689 # include <limits.h>
42691 # include <assert.h>
42696 /* Override any GCC internal prototype to avoid an error.
42697 Use char because int might match the return type of a GCC
42698 builtin and then its argument prototype would still apply. */
42703 /* The GNU C library defines this for functions which it implements
42704 to always fail with ENOSYS. Some functions are actually named
42705 something starting with __ and the normal name is an alias. */
42706 #if defined __stub_$ac_func || defined __stub___$ac_func
42713 return $ac_func ();
42718 rm -f conftest.$ac_objext conftest$ac_exeext
42719 if { (ac_try="$ac_link"
42720 case "(($ac_try" in
42721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42722 *) ac_try_echo=$ac_try;;
42724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42725 $as_echo "$ac_try_echo") >&5
42726 (eval "$ac_link") 2>conftest.er1
42728 grep -v '^ *+' conftest.er1 >conftest.err
42730 cat conftest.err >&5
42731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42732 (exit $ac_status); } && {
42733 test -z "$ac_c_werror_flag" ||
42734 test ! -s conftest.err
42735 } && test -s conftest$ac_exeext && {
42736 test "$cross_compiling" = yes ||
42737 $as_test_x conftest$ac_exeext
42739 eval "$as_ac_var=yes"
42741 $as_echo "$as_me: failed program was:" >&5
42742 sed 's/^/| /' conftest.$ac_ext >&5
42744 eval "$as_ac_var=no"
42747 rm -rf conftest.dSYM
42748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42749 conftest$ac_exeext conftest.$ac_ext
42751 ac_res=`eval 'as_val=${'$as_ac_var'}
42752 $as_echo "$as_val"'`
42753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42754 $as_echo "$ac_res" >&6; }
42755 as_val=`eval 'as_val=${'$as_ac_var'}
42756 $as_echo "$as_val"'`
42757 if test "x$as_val" = x""yes; then
42758 cat >>confdefs.h <<_ACEOF
42759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42764 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42770 if test $ac_cv_func_strtoull = no; then
42783 cat >>confdefs.h <<\_ACEOF
42784 #define GNULIB_STRTOULL 1
42793 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
42794 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
42795 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
42796 $as_echo_n "(cached) " >&6
42798 cat >conftest.$ac_ext <<_ACEOF
42801 cat confdefs.h >>conftest.$ac_ext
42802 cat >>conftest.$ac_ext <<_ACEOF
42803 /* end confdefs.h. */
42804 #include <inttypes.h>
42806 inttypes_h_defines_strtoumax
42809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42810 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
42811 gl_cv_func_strtoumax_macro=yes
42813 gl_cv_func_strtoumax_macro=no
42818 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
42819 $as_echo "$gl_cv_func_strtoumax_macro" >&6; }
42821 if test "$gl_cv_func_strtoumax_macro" != yes; then
42831 for ac_func in strtoumax
42833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42834 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42835 $as_echo_n "checking for $ac_func... " >&6; }
42836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42837 $as_echo_n "(cached) " >&6
42839 cat >conftest.$ac_ext <<_ACEOF
42842 cat confdefs.h >>conftest.$ac_ext
42843 cat >>conftest.$ac_ext <<_ACEOF
42844 /* end confdefs.h. */
42845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42847 #define $ac_func innocuous_$ac_func
42849 /* System header to define __stub macros and hopefully few prototypes,
42850 which can conflict with char $ac_func (); below.
42851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42852 <limits.h> exists even on freestanding compilers. */
42855 # include <limits.h>
42857 # include <assert.h>
42862 /* Override any GCC internal prototype to avoid an error.
42863 Use char because int might match the return type of a GCC
42864 builtin and then its argument prototype would still apply. */
42869 /* The GNU C library defines this for functions which it implements
42870 to always fail with ENOSYS. Some functions are actually named
42871 something starting with __ and the normal name is an alias. */
42872 #if defined __stub_$ac_func || defined __stub___$ac_func
42879 return $ac_func ();
42884 rm -f conftest.$ac_objext conftest$ac_exeext
42885 if { (ac_try="$ac_link"
42886 case "(($ac_try" in
42887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42888 *) ac_try_echo=$ac_try;;
42890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42891 $as_echo "$ac_try_echo") >&5
42892 (eval "$ac_link") 2>conftest.er1
42894 grep -v '^ *+' conftest.er1 >conftest.err
42896 cat conftest.err >&5
42897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42898 (exit $ac_status); } && {
42899 test -z "$ac_c_werror_flag" ||
42900 test ! -s conftest.err
42901 } && test -s conftest$ac_exeext && {
42902 test "$cross_compiling" = yes ||
42903 $as_test_x conftest$ac_exeext
42905 eval "$as_ac_var=yes"
42907 $as_echo "$as_me: failed program was:" >&5
42908 sed 's/^/| /' conftest.$ac_ext >&5
42910 eval "$as_ac_var=no"
42913 rm -rf conftest.dSYM
42914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42915 conftest$ac_exeext conftest.$ac_ext
42917 ac_res=`eval 'as_val=${'$as_ac_var'}
42918 $as_echo "$as_val"'`
42919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42920 $as_echo "$ac_res" >&6; }
42921 as_val=`eval 'as_val=${'$as_ac_var'}
42922 $as_echo "$as_val"'`
42923 if test "x$as_val" = x""yes; then
42924 cat >>confdefs.h <<_ACEOF
42925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42930 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42936 if test $ac_cv_func_strtoumax = no; then
42938 { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
42939 $as_echo_n "checking whether strtoull is declared... " >&6; }
42940 if test "${ac_cv_have_decl_strtoull+set}" = set; then
42941 $as_echo_n "(cached) " >&6
42943 cat >conftest.$ac_ext <<_ACEOF
42946 cat confdefs.h >>conftest.$ac_ext
42947 cat >>conftest.$ac_ext <<_ACEOF
42948 /* end confdefs.h. */
42949 $ac_includes_default
42961 rm -f conftest.$ac_objext
42962 if { (ac_try="$ac_compile"
42963 case "(($ac_try" in
42964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42965 *) ac_try_echo=$ac_try;;
42967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42968 $as_echo "$ac_try_echo") >&5
42969 (eval "$ac_compile") 2>conftest.er1
42971 grep -v '^ *+' conftest.er1 >conftest.err
42973 cat conftest.err >&5
42974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 (exit $ac_status); } && {
42976 test -z "$ac_c_werror_flag" ||
42977 test ! -s conftest.err
42978 } && test -s conftest.$ac_objext; then
42979 ac_cv_have_decl_strtoull=yes
42981 $as_echo "$as_me: failed program was:" >&5
42982 sed 's/^/| /' conftest.$ac_ext >&5
42984 ac_cv_have_decl_strtoull=no
42987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42989 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
42990 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
42991 if test "x$ac_cv_have_decl_strtoull" = x""yes; then
42993 cat >>confdefs.h <<_ACEOF
42994 #define HAVE_DECL_STRTOULL 1
42999 cat >>confdefs.h <<_ACEOF
43000 #define HAVE_DECL_STRTOULL 0
43034 if test $gl_cv_have_include_next = yes; then
43035 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
43037 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
43038 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
43039 if test "${gl_cv_next_sys_stat_h+set}" = set; then
43040 $as_echo_n "(cached) " >&6
43043 if test $ac_cv_header_sys_stat_h = yes; then
43044 cat >conftest.$ac_ext <<_ACEOF
43047 cat confdefs.h >>conftest.$ac_ext
43048 cat >>conftest.$ac_ext <<_ACEOF
43049 /* end confdefs.h. */
43050 #include <sys/stat.h>
43054 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43055 *) gl_absname_cpp="$ac_cpp" ;;
43057 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43058 sed -n '\#/sys/stat.h#{
43059 s#.*"\(.*/sys/stat.h\)".*#\1#
43065 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
43069 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
43070 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
43072 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
43074 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43076 gl_next_as_first_directive='<'sys/stat.h'>'
43078 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43079 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
43081 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
43086 { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
43087 $as_echo_n "checking for nlink_t... " >&6; }
43088 if test "${ac_cv_type_nlink_t+set}" = set; then
43089 $as_echo_n "(cached) " >&6
43091 ac_cv_type_nlink_t=no
43092 cat >conftest.$ac_ext <<_ACEOF
43095 cat confdefs.h >>conftest.$ac_ext
43096 cat >>conftest.$ac_ext <<_ACEOF
43097 /* end confdefs.h. */
43098 #include <sys/types.h>
43099 #include <sys/stat.h>
43104 if (sizeof (nlink_t))
43110 rm -f conftest.$ac_objext
43111 if { (ac_try="$ac_compile"
43112 case "(($ac_try" in
43113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43114 *) ac_try_echo=$ac_try;;
43116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43117 $as_echo "$ac_try_echo") >&5
43118 (eval "$ac_compile") 2>conftest.er1
43120 grep -v '^ *+' conftest.er1 >conftest.err
43122 cat conftest.err >&5
43123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43124 (exit $ac_status); } && {
43125 test -z "$ac_c_werror_flag" ||
43126 test ! -s conftest.err
43127 } && test -s conftest.$ac_objext; then
43128 cat >conftest.$ac_ext <<_ACEOF
43131 cat confdefs.h >>conftest.$ac_ext
43132 cat >>conftest.$ac_ext <<_ACEOF
43133 /* end confdefs.h. */
43134 #include <sys/types.h>
43135 #include <sys/stat.h>
43140 if (sizeof ((nlink_t)))
43146 rm -f conftest.$ac_objext
43147 if { (ac_try="$ac_compile"
43148 case "(($ac_try" in
43149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43150 *) ac_try_echo=$ac_try;;
43152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43153 $as_echo "$ac_try_echo") >&5
43154 (eval "$ac_compile") 2>conftest.er1
43156 grep -v '^ *+' conftest.er1 >conftest.err
43158 cat conftest.err >&5
43159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43160 (exit $ac_status); } && {
43161 test -z "$ac_c_werror_flag" ||
43162 test ! -s conftest.err
43163 } && test -s conftest.$ac_objext; then
43166 $as_echo "$as_me: failed program was:" >&5
43167 sed 's/^/| /' conftest.$ac_ext >&5
43169 ac_cv_type_nlink_t=yes
43172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43174 $as_echo "$as_me: failed program was:" >&5
43175 sed 's/^/| /' conftest.$ac_ext >&5
43180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43182 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
43183 $as_echo "$ac_cv_type_nlink_t" >&6; }
43184 if test "x$ac_cv_type_nlink_t" = x""yes; then
43188 cat >>confdefs.h <<\_ACEOF
43189 #define nlink_t int
43208 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
43209 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43210 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43211 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43212 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43213 $as_echo_n "(cached) " >&6
43215 cat >conftest.$ac_ext <<_ACEOF
43218 cat confdefs.h >>conftest.$ac_ext
43219 cat >>conftest.$ac_ext <<_ACEOF
43220 /* end confdefs.h. */
43221 #include <sys/stat.h>
43232 rm -f conftest.$ac_objext
43233 if { (ac_try="$ac_compile"
43234 case "(($ac_try" in
43235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43236 *) ac_try_echo=$ac_try;;
43238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43239 $as_echo "$ac_try_echo") >&5
43240 (eval "$ac_compile") 2>conftest.er1
43242 grep -v '^ *+' conftest.er1 >conftest.err
43244 cat conftest.err >&5
43245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43246 (exit $ac_status); } && {
43247 test -z "$ac_c_werror_flag" ||
43248 test ! -s conftest.err
43249 } && test -s conftest.$ac_objext; then
43250 eval "$as_gl_Symbol=yes"
43252 $as_echo "$as_me: failed program was:" >&5
43253 sed 's/^/| /' conftest.$ac_ext >&5
43255 eval "$as_gl_Symbol=no"
43258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43260 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43261 $as_echo "$as_val"'`
43262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43263 $as_echo "$ac_res" >&6; }
43264 as_val=`eval 'as_val=${'$as_gl_Symbol'}
43265 $as_echo "$as_val"'`
43266 if test "x$as_val" = x""yes; then
43267 cat >>confdefs.h <<_ACEOF
43268 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43271 eval ac_cv_have_decl_$gl_func=yes
43277 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43279 if test -z "$MKDIR_P"; then
43280 if test "${ac_cv_path_mkdir+set}" = set; then
43281 $as_echo_n "(cached) " >&6
43283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43287 test -z "$as_dir" && as_dir=.
43288 for ac_prog in mkdir gmkdir; do
43289 for ac_exec_ext in '' $ac_executable_extensions; do
43290 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43292 'mkdir (GNU coreutils) '* | \
43293 'mkdir (coreutils) '* | \
43294 'mkdir (fileutils) '4.1*)
43295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43305 if test "${ac_cv_path_mkdir+set}" = set; then
43306 MKDIR_P="$ac_cv_path_mkdir -p"
43308 # As a last resort, use the slow shell script. Don't cache a
43309 # value for MKDIR_P within a source directory, because that will
43310 # break other packages using the cache if that directory is
43311 # removed, or if the value is a relative name.
43312 test -d ./--version && rmdir ./--version
43313 MKDIR_P="$ac_install_sh -d"
43316 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43317 $as_echo "$MKDIR_P" >&6; }
43323 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43324 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43325 if test -z "$MKDIR_P"; then
43326 if test "${ac_cv_path_mkdir+set}" = set; then
43327 $as_echo_n "(cached) " >&6
43329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43330 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43333 test -z "$as_dir" && as_dir=.
43334 for ac_prog in mkdir gmkdir; do
43335 for ac_exec_ext in '' $ac_executable_extensions; do
43336 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43337 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43338 'mkdir (GNU coreutils) '* | \
43339 'mkdir (coreutils) '* | \
43340 'mkdir (fileutils) '4.1*)
43341 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43351 if test "${ac_cv_path_mkdir+set}" = set; then
43352 MKDIR_P="$ac_cv_path_mkdir -p"
43354 # As a last resort, use the slow shell script. Don't cache a
43355 # value for MKDIR_P within a source directory, because that will
43356 # break other packages using the cache if that directory is
43357 # removed, or if the value is a relative name.
43358 test -d ./--version && rmdir ./--version
43359 MKDIR_P="$ac_install_sh -d"
43362 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43363 $as_echo "$MKDIR_P" >&6; }
43373 if test $ac_cv_header_sysexits_h = yes; then
43386 if test $gl_cv_have_include_next = yes; then
43387 gl_cv_next_sysexits_h='<'sysexits.h'>'
43389 { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
43390 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
43391 if test "${gl_cv_next_sysexits_h+set}" = set; then
43392 $as_echo_n "(cached) " >&6
43395 if test $ac_cv_header_sysexits_h = yes; then
43396 cat >conftest.$ac_ext <<_ACEOF
43399 cat confdefs.h >>conftest.$ac_ext
43400 cat >>conftest.$ac_ext <<_ACEOF
43401 /* end confdefs.h. */
43402 #include <sysexits.h>
43406 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43407 *) gl_absname_cpp="$ac_cpp" ;;
43409 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43410 sed -n '\#/sysexits.h#{
43411 s#.*"\(.*/sysexits.h\)".*#\1#
43417 gl_cv_next_sysexits_h='<'sysexits.h'>'
43421 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
43422 $as_echo "$gl_cv_next_sysexits_h" >&6; }
43424 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
43426 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43428 gl_next_as_first_directive='<'sysexits.h'>'
43430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43431 gl_next_as_first_directive=$gl_cv_next_sysexits_h
43433 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
43437 cat >conftest.$ac_ext <<_ACEOF
43440 cat confdefs.h >>conftest.$ac_ext
43441 cat >>conftest.$ac_ext <<_ACEOF
43442 /* end confdefs.h. */
43443 #include <sysexits.h>
43455 case EX_UNAVAILABLE:
43472 rm -f conftest.$ac_objext
43473 if { (ac_try="$ac_compile"
43474 case "(($ac_try" in
43475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43476 *) ac_try_echo=$ac_try;;
43478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43479 $as_echo "$ac_try_echo") >&5
43480 (eval "$ac_compile") 2>conftest.er1
43482 grep -v '^ *+' conftest.er1 >conftest.err
43484 cat conftest.err >&5
43485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486 (exit $ac_status); } && {
43487 test -z "$ac_c_werror_flag" ||
43488 test ! -s conftest.err
43489 } && test -s conftest.$ac_objext; then
43492 $as_echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43495 SYSEXITS_H=sysexits.h
43498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43501 SYSEXITS_H=sysexits.h
43517 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
43532 { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
43533 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
43534 if test "${gl_cv_time_r_posix+set}" = set; then
43535 $as_echo_n "(cached) " >&6
43537 cat >conftest.$ac_ext <<_ACEOF
43540 cat confdefs.h >>conftest.$ac_ext
43541 cat >>conftest.$ac_ext <<_ACEOF
43542 /* end confdefs.h. */
43547 /* We don't need to append 'restrict's to the argument types,
43548 even though the POSIX signature has the 'restrict's,
43549 since C99 says they can't affect type compatibility. */
43550 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
43552 /* Check the return type is a pointer. On HP-UX 10 it is 'int'. */
43553 *localtime_r (0, 0);
43558 rm -f conftest.$ac_objext
43559 if { (ac_try="$ac_compile"
43560 case "(($ac_try" in
43561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43562 *) ac_try_echo=$ac_try;;
43564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43565 $as_echo "$ac_try_echo") >&5
43566 (eval "$ac_compile") 2>conftest.er1
43568 grep -v '^ *+' conftest.er1 >conftest.err
43570 cat conftest.err >&5
43571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572 (exit $ac_status); } && {
43573 test -z "$ac_c_werror_flag" ||
43574 test ! -s conftest.err
43575 } && test -s conftest.$ac_objext; then
43576 gl_cv_time_r_posix=yes
43578 $as_echo "$as_me: failed program was:" >&5
43579 sed 's/^/| /' conftest.$ac_ext >&5
43581 gl_cv_time_r_posix=no
43584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43586 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
43587 $as_echo "$gl_cv_time_r_posix" >&6; }
43588 if test $gl_cv_time_r_posix = yes; then
43589 REPLACE_LOCALTIME_R=0
43591 REPLACE_LOCALTIME_R=1
43600 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
43625 if test $gl_cv_have_include_next = yes; then
43626 gl_cv_next_unistd_h='<'unistd.h'>'
43628 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
43629 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
43630 if test "${gl_cv_next_unistd_h+set}" = set; then
43631 $as_echo_n "(cached) " >&6
43634 if test $ac_cv_header_unistd_h = yes; then
43635 cat >conftest.$ac_ext <<_ACEOF
43638 cat confdefs.h >>conftest.$ac_ext
43639 cat >>conftest.$ac_ext <<_ACEOF
43640 /* end confdefs.h. */
43641 #include <unistd.h>
43645 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43646 *) gl_absname_cpp="$ac_cpp" ;;
43648 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43649 sed -n '\#/unistd.h#{
43650 s#.*"\(.*/unistd.h\)".*#\1#
43656 gl_cv_next_unistd_h='<'unistd.h'>'
43660 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
43661 $as_echo "$gl_cv_next_unistd_h" >&6; }
43663 NEXT_UNISTD_H=$gl_cv_next_unistd_h
43665 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43666 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43667 gl_next_as_first_directive='<'unistd.h'>'
43669 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43670 gl_next_as_first_directive=$gl_cv_next_unistd_h
43672 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
43683 if test $ac_cv_header_unistd_h = yes; then
43727 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread readlink readlinkat rmdir sleep symlink symlinkat unlink unlinkat usleep; do
43728 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43729 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43730 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43731 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43732 $as_echo_n "(cached) " >&6
43734 cat >conftest.$ac_ext <<_ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h. */
43740 #include <unistd.h>
43741 /* Some systems declare various items in the wrong headers. */
43743 # include <fcntl.h>
43744 # include <stdio.h>
43745 # include <stdlib.h>
43746 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
43760 rm -f conftest.$ac_objext
43761 if { (ac_try="$ac_compile"
43762 case "(($ac_try" in
43763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43764 *) ac_try_echo=$ac_try;;
43766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43767 $as_echo "$ac_try_echo") >&5
43768 (eval "$ac_compile") 2>conftest.er1
43770 grep -v '^ *+' conftest.er1 >conftest.err
43772 cat conftest.err >&5
43773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43774 (exit $ac_status); } && {
43775 test -z "$ac_c_werror_flag" ||
43776 test ! -s conftest.err
43777 } && test -s conftest.$ac_objext; then
43778 eval "$as_gl_Symbol=yes"
43780 $as_echo "$as_me: failed program was:" >&5
43781 sed 's/^/| /' conftest.$ac_ext >&5
43783 eval "$as_gl_Symbol=no"
43786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43788 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43789 $as_echo "$as_val"'`
43790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43791 $as_echo "$ac_res" >&6; }
43792 as_val=`eval 'as_val=${'$as_gl_Symbol'}
43793 $as_echo "$as_val"'`
43794 if test "x$as_val" = x""yes; then
43795 cat >>confdefs.h <<_ACEOF
43796 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43799 eval ac_cv_have_decl_$gl_func=yes
43820 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
43830 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
43840 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
43846 { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
43847 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
43848 if test "${gl_cv_func_unlink_works+set}" = set; then
43849 $as_echo_n "(cached) " >&6
43851 touch conftest.file
43852 # Assume that if we have lstat, we can also check symlinks.
43853 if test $ac_cv_func_lstat = yes; then
43854 ln -s conftest.file conftest.lnk
43856 if test "$cross_compiling" = yes; then
43857 gl_cv_func_unlink_works="guessing no"
43859 cat >conftest.$ac_ext <<_ACEOF
43862 cat confdefs.h >>conftest.$ac_ext
43863 cat >>conftest.$ac_ext <<_ACEOF
43864 /* end confdefs.h. */
43865 #include <unistd.h>
43871 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
43873 if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
43880 rm -f conftest$ac_exeext
43881 if { (ac_try="$ac_link"
43882 case "(($ac_try" in
43883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43884 *) ac_try_echo=$ac_try;;
43886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43887 $as_echo "$ac_try_echo") >&5
43888 (eval "$ac_link") 2>&5
43890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43892 { (case "(($ac_try" in
43893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43894 *) ac_try_echo=$ac_try;;
43896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43897 $as_echo "$ac_try_echo") >&5
43898 (eval "$ac_try") 2>&5
43900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43901 (exit $ac_status); }; }; then
43902 gl_cv_func_unlink_works=yes
43904 $as_echo "$as_me: program exited with status $ac_status" >&5
43905 $as_echo "$as_me: failed program was:" >&5
43906 sed 's/^/| /' conftest.$ac_ext >&5
43908 ( exit $ac_status )
43909 gl_cv_func_unlink_works=no
43911 rm -rf conftest.dSYM
43912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43916 rm -f conftest.file conftest.lnk
43918 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_works" >&5
43919 $as_echo "$gl_cv_func_unlink_works" >&6; }
43920 if test x"$gl_cv_func_unlink_works" != xyes; then
43930 gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
43939 cat >>confdefs.h <<\_ACEOF
43940 #define GNULIB_UNLINK 1
43962 gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
43965 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
43966 # Cygwin, and mingw never let anyone (even root) unlink directories.
43967 # If anyone knows of another system for which unlink can never
43968 # remove a directory, please report it to <bug-coreutils@gnu.org>.
43969 # Unfortunately this is difficult to test for, since it requires root access
43970 # and might create garbage in the file system,
43971 # so the code below simply relies on the kernel name and version number.
43974 linux-* | linux | \
43975 freebsd2.2* | freebsd[3-9]* | freebsd[1-9][0-9]* | \
43979 cat >>confdefs.h <<\_ACEOF
43980 #define UNLINK_CANNOT_UNLINK_DIR 1
43987 cat >>confdefs.h <<\_ACEOF
43988 #define USE_UNLOCKED_IO 1
44050 for ac_func in unsetenv
44052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44054 $as_echo_n "checking for $ac_func... " >&6; }
44055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44056 $as_echo_n "(cached) " >&6
44058 cat >conftest.$ac_ext <<_ACEOF
44061 cat confdefs.h >>conftest.$ac_ext
44062 cat >>conftest.$ac_ext <<_ACEOF
44063 /* end confdefs.h. */
44064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44066 #define $ac_func innocuous_$ac_func
44068 /* System header to define __stub macros and hopefully few prototypes,
44069 which can conflict with char $ac_func (); below.
44070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44071 <limits.h> exists even on freestanding compilers. */
44074 # include <limits.h>
44076 # include <assert.h>
44081 /* Override any GCC internal prototype to avoid an error.
44082 Use char because int might match the return type of a GCC
44083 builtin and then its argument prototype would still apply. */
44088 /* The GNU C library defines this for functions which it implements
44089 to always fail with ENOSYS. Some functions are actually named
44090 something starting with __ and the normal name is an alias. */
44091 #if defined __stub_$ac_func || defined __stub___$ac_func
44098 return $ac_func ();
44103 rm -f conftest.$ac_objext conftest$ac_exeext
44104 if { (ac_try="$ac_link"
44105 case "(($ac_try" in
44106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44107 *) ac_try_echo=$ac_try;;
44109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44110 $as_echo "$ac_try_echo") >&5
44111 (eval "$ac_link") 2>conftest.er1
44113 grep -v '^ *+' conftest.er1 >conftest.err
44115 cat conftest.err >&5
44116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44117 (exit $ac_status); } && {
44118 test -z "$ac_c_werror_flag" ||
44119 test ! -s conftest.err
44120 } && test -s conftest$ac_exeext && {
44121 test "$cross_compiling" = yes ||
44122 $as_test_x conftest$ac_exeext
44124 eval "$as_ac_var=yes"
44126 $as_echo "$as_me: failed program was:" >&5
44127 sed 's/^/| /' conftest.$ac_ext >&5
44129 eval "$as_ac_var=no"
44132 rm -rf conftest.dSYM
44133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44134 conftest$ac_exeext conftest.$ac_ext
44136 ac_res=`eval 'as_val=${'$as_ac_var'}
44137 $as_echo "$as_val"'`
44138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44139 $as_echo "$ac_res" >&6; }
44140 as_val=`eval 'as_val=${'$as_ac_var'}
44141 $as_echo "$as_val"'`
44142 if test "x$as_val" = x""yes; then
44143 cat >>confdefs.h <<_ACEOF
44144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44150 if test $ac_cv_func_unsetenv = no; then
44160 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
44172 { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
44173 $as_echo_n "checking for unsetenv() return type... " >&6; }
44174 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
44175 $as_echo_n "(cached) " >&6
44177 cat >conftest.$ac_ext <<_ACEOF
44180 cat confdefs.h >>conftest.$ac_ext
44181 cat >>conftest.$ac_ext <<_ACEOF
44182 /* end confdefs.h. */
44183 #include <stdlib.h>
44188 #if defined(__STDC__) || defined(__cplusplus)
44189 int unsetenv (const char *name);
44202 rm -f conftest.$ac_objext
44203 if { (ac_try="$ac_compile"
44204 case "(($ac_try" in
44205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44206 *) ac_try_echo=$ac_try;;
44208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44209 $as_echo "$ac_try_echo") >&5
44210 (eval "$ac_compile") 2>conftest.er1
44212 grep -v '^ *+' conftest.er1 >conftest.err
44214 cat conftest.err >&5
44215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216 (exit $ac_status); } && {
44217 test -z "$ac_c_werror_flag" ||
44218 test ! -s conftest.err
44219 } && test -s conftest.$ac_objext; then
44220 gt_cv_func_unsetenv_ret='int'
44222 $as_echo "$as_me: failed program was:" >&5
44223 sed 's/^/| /' conftest.$ac_ext >&5
44225 gt_cv_func_unsetenv_ret='void'
44228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44230 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
44231 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
44232 if test $gt_cv_func_unsetenv_ret = 'void'; then
44234 cat >>confdefs.h <<\_ACEOF
44235 #define VOID_UNSETENV 1
44247 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
44251 { $as_echo "$as_me:$LINENO: checking whether unsetenv works on duplicates" >&5
44252 $as_echo_n "checking whether unsetenv works on duplicates... " >&6; }
44253 if test "${gl_cv_func_unsetenv_works+set}" = set; then
44254 $as_echo_n "(cached) " >&6
44256 if test "$cross_compiling" = yes; then
44257 gl_cv_func_unsetenv_works="guessing no"
44259 cat >conftest.$ac_ext <<_ACEOF
44262 cat confdefs.h >>conftest.$ac_ext
44263 cat >>conftest.$ac_ext <<_ACEOF
44264 /* end confdefs.h. */
44266 #include <stdlib.h>
44272 char entry[] = "b=2";
44273 if (putenv ((char *) "a=1")) return 1;
44274 if (putenv (entry)) return 2;
44277 if (getenv ("a")) return 3;
44283 rm -f conftest$ac_exeext
44284 if { (ac_try="$ac_link"
44285 case "(($ac_try" in
44286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44287 *) ac_try_echo=$ac_try;;
44289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44290 $as_echo "$ac_try_echo") >&5
44291 (eval "$ac_link") 2>&5
44293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44295 { (case "(($ac_try" in
44296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44297 *) ac_try_echo=$ac_try;;
44299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44300 $as_echo "$ac_try_echo") >&5
44301 (eval "$ac_try") 2>&5
44303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304 (exit $ac_status); }; }; then
44305 gl_cv_func_unsetenv_works=yes
44307 $as_echo "$as_me: program exited with status $ac_status" >&5
44308 $as_echo "$as_me: failed program was:" >&5
44309 sed 's/^/| /' conftest.$ac_ext >&5
44311 ( exit $ac_status )
44312 gl_cv_func_unsetenv_works=no
44314 rm -rf conftest.dSYM
44315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44320 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unsetenv_works" >&5
44321 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
44322 if test "$gl_cv_func_unsetenv_works" != yes; then
44332 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
44342 cat >>confdefs.h <<\_ACEOF
44343 #define GNULIB_UNSETENV 1
44357 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
44378 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
44379 { $as_echo "$as_me:$LINENO: checking whether futimesat handles NULL file" >&5
44380 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
44381 if test "${gl_cv_func_futimesat_works+set}" = set; then
44382 $as_echo_n "(cached) " >&6
44384 touch conftest.file
44385 if test "$cross_compiling" = yes; then
44386 gl_cv_func_futimesat_works="guessing no"
44388 cat >conftest.$ac_ext <<_ACEOF
44391 cat confdefs.h >>conftest.$ac_ext
44392 cat >>conftest.$ac_ext <<_ACEOF
44393 /* end confdefs.h. */
44395 #include <stddef.h>
44396 #include <sys/times.h>
44401 int fd = open ("conftest.file", O_RDWR);
44402 if (fd < 0) return 1;
44403 if (futimesat (fd, NULL, NULL)) return 2;
44409 rm -f conftest$ac_exeext
44410 if { (ac_try="$ac_link"
44411 case "(($ac_try" in
44412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44413 *) ac_try_echo=$ac_try;;
44415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44416 $as_echo "$ac_try_echo") >&5
44417 (eval "$ac_link") 2>&5
44419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44421 { (case "(($ac_try" in
44422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44423 *) ac_try_echo=$ac_try;;
44425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44426 $as_echo "$ac_try_echo") >&5
44427 (eval "$ac_try") 2>&5
44429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430 (exit $ac_status); }; }; then
44431 gl_cv_func_futimesat_works=yes
44433 $as_echo "$as_me: program exited with status $ac_status" >&5
44434 $as_echo "$as_me: failed program was:" >&5
44435 sed 's/^/| /' conftest.$ac_ext >&5
44437 ( exit $ac_status )
44438 gl_cv_func_futimesat_works=no
44440 rm -rf conftest.dSYM
44441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44445 rm -f conftest.file
44447 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimesat_works" >&5
44448 $as_echo "$gl_cv_func_futimesat_works" >&6; }
44449 if test "$gl_cv_func_futimesat_works" != yes; then
44451 cat >>confdefs.h <<\_ACEOF
44452 #define FUTIMESAT_NULL_BUG 1
44465 if test $ac_cv_func_vasnprintf = no; then
44481 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
44491 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
44501 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
44511 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
44513 if test $ac_cv_func_vasnprintf = yes; then
44515 cat >>confdefs.h <<\_ACEOF
44516 #define REPLACE_VASNPRINTF 1
44530 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
44531 $as_echo_n "checking for ptrdiff_t... " >&6; }
44532 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
44533 $as_echo_n "(cached) " >&6
44535 ac_cv_type_ptrdiff_t=no
44536 cat >conftest.$ac_ext <<_ACEOF
44539 cat confdefs.h >>conftest.$ac_ext
44540 cat >>conftest.$ac_ext <<_ACEOF
44541 /* end confdefs.h. */
44542 $ac_includes_default
44546 if (sizeof (ptrdiff_t))
44552 rm -f conftest.$ac_objext
44553 if { (ac_try="$ac_compile"
44554 case "(($ac_try" in
44555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44556 *) ac_try_echo=$ac_try;;
44558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44559 $as_echo "$ac_try_echo") >&5
44560 (eval "$ac_compile") 2>conftest.er1
44562 grep -v '^ *+' conftest.er1 >conftest.err
44564 cat conftest.err >&5
44565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44566 (exit $ac_status); } && {
44567 test -z "$ac_c_werror_flag" ||
44568 test ! -s conftest.err
44569 } && test -s conftest.$ac_objext; then
44570 cat >conftest.$ac_ext <<_ACEOF
44573 cat confdefs.h >>conftest.$ac_ext
44574 cat >>conftest.$ac_ext <<_ACEOF
44575 /* end confdefs.h. */
44576 $ac_includes_default
44580 if (sizeof ((ptrdiff_t)))
44586 rm -f conftest.$ac_objext
44587 if { (ac_try="$ac_compile"
44588 case "(($ac_try" in
44589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44590 *) ac_try_echo=$ac_try;;
44592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44593 $as_echo "$ac_try_echo") >&5
44594 (eval "$ac_compile") 2>conftest.er1
44596 grep -v '^ *+' conftest.er1 >conftest.err
44598 cat conftest.err >&5
44599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44600 (exit $ac_status); } && {
44601 test -z "$ac_c_werror_flag" ||
44602 test ! -s conftest.err
44603 } && test -s conftest.$ac_objext; then
44606 $as_echo "$as_me: failed program was:" >&5
44607 sed 's/^/| /' conftest.$ac_ext >&5
44609 ac_cv_type_ptrdiff_t=yes
44612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44614 $as_echo "$as_me: failed program was:" >&5
44615 sed 's/^/| /' conftest.$ac_ext >&5
44620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44622 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
44623 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
44624 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
44628 cat >>confdefs.h <<\_ACEOF
44629 #define ptrdiff_t long
44645 for ac_func in vasprintf
44647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44649 $as_echo_n "checking for $ac_func... " >&6; }
44650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44651 $as_echo_n "(cached) " >&6
44653 cat >conftest.$ac_ext <<_ACEOF
44656 cat confdefs.h >>conftest.$ac_ext
44657 cat >>conftest.$ac_ext <<_ACEOF
44658 /* end confdefs.h. */
44659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44661 #define $ac_func innocuous_$ac_func
44663 /* System header to define __stub macros and hopefully few prototypes,
44664 which can conflict with char $ac_func (); below.
44665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44666 <limits.h> exists even on freestanding compilers. */
44669 # include <limits.h>
44671 # include <assert.h>
44676 /* Override any GCC internal prototype to avoid an error.
44677 Use char because int might match the return type of a GCC
44678 builtin and then its argument prototype would still apply. */
44683 /* The GNU C library defines this for functions which it implements
44684 to always fail with ENOSYS. Some functions are actually named
44685 something starting with __ and the normal name is an alias. */
44686 #if defined __stub_$ac_func || defined __stub___$ac_func
44693 return $ac_func ();
44698 rm -f conftest.$ac_objext conftest$ac_exeext
44699 if { (ac_try="$ac_link"
44700 case "(($ac_try" in
44701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44702 *) ac_try_echo=$ac_try;;
44704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44705 $as_echo "$ac_try_echo") >&5
44706 (eval "$ac_link") 2>conftest.er1
44708 grep -v '^ *+' conftest.er1 >conftest.err
44710 cat conftest.err >&5
44711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44712 (exit $ac_status); } && {
44713 test -z "$ac_c_werror_flag" ||
44714 test ! -s conftest.err
44715 } && test -s conftest$ac_exeext && {
44716 test "$cross_compiling" = yes ||
44717 $as_test_x conftest$ac_exeext
44719 eval "$as_ac_var=yes"
44721 $as_echo "$as_me: failed program was:" >&5
44722 sed 's/^/| /' conftest.$ac_ext >&5
44724 eval "$as_ac_var=no"
44727 rm -rf conftest.dSYM
44728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44729 conftest$ac_exeext conftest.$ac_ext
44731 ac_res=`eval 'as_val=${'$as_ac_var'}
44732 $as_echo "$as_val"'`
44733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44734 $as_echo "$ac_res" >&6; }
44735 as_val=`eval 'as_val=${'$as_ac_var'}
44736 $as_echo "$as_val"'`
44737 if test "x$as_val" = x""yes; then
44738 cat >>confdefs.h <<_ACEOF
44739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44745 if test $ac_cv_func_vasprintf = no; then
44755 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
44765 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
44768 if test $ac_cv_func_vasprintf = yes; then
44769 REPLACE_VASPRINTF=1
44788 cat >>confdefs.h <<\_ACEOF
44789 #define GNULIB_VASPRINTF 1
44796 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
44800 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
44803 # Check whether --with-packager was given.
44804 if test "${with_packager+set}" = set; then
44805 withval=$with_packager; case $withval in
44808 cat >>confdefs.h <<_ACEOF
44809 #define PACKAGE_PACKAGER "$withval"
44818 # Check whether --with-packager-version was given.
44819 if test "${with_packager_version+set}" = set; then
44820 withval=$with_packager_version; case $withval in
44823 cat >>confdefs.h <<_ACEOF
44824 #define PACKAGE_PACKAGER_VERSION "$withval"
44833 # Check whether --with-packager-bug-reports was given.
44834 if test "${with_packager_bug_reports+set}" = set; then
44835 withval=$with_packager_bug_reports; case $withval in
44838 cat >>confdefs.h <<_ACEOF
44839 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
44847 if test "X$with_packager" = "X" && \
44848 test "X$with_packager_version$with_packager_bug_reports" != "X"
44850 { { $as_echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
44851 $as_echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
44852 { (exit 1); exit 1; }; }
44857 gl_cv_func_vsnprintf_usable=no
44859 for ac_func in vsnprintf
44861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44862 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44863 $as_echo_n "checking for $ac_func... " >&6; }
44864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44865 $as_echo_n "(cached) " >&6
44867 cat >conftest.$ac_ext <<_ACEOF
44870 cat confdefs.h >>conftest.$ac_ext
44871 cat >>conftest.$ac_ext <<_ACEOF
44872 /* end confdefs.h. */
44873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44875 #define $ac_func innocuous_$ac_func
44877 /* System header to define __stub macros and hopefully few prototypes,
44878 which can conflict with char $ac_func (); below.
44879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44880 <limits.h> exists even on freestanding compilers. */
44883 # include <limits.h>
44885 # include <assert.h>
44890 /* Override any GCC internal prototype to avoid an error.
44891 Use char because int might match the return type of a GCC
44892 builtin and then its argument prototype would still apply. */
44897 /* The GNU C library defines this for functions which it implements
44898 to always fail with ENOSYS. Some functions are actually named
44899 something starting with __ and the normal name is an alias. */
44900 #if defined __stub_$ac_func || defined __stub___$ac_func
44907 return $ac_func ();
44912 rm -f conftest.$ac_objext conftest$ac_exeext
44913 if { (ac_try="$ac_link"
44914 case "(($ac_try" in
44915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44916 *) ac_try_echo=$ac_try;;
44918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44919 $as_echo "$ac_try_echo") >&5
44920 (eval "$ac_link") 2>conftest.er1
44922 grep -v '^ *+' conftest.er1 >conftest.err
44924 cat conftest.err >&5
44925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926 (exit $ac_status); } && {
44927 test -z "$ac_c_werror_flag" ||
44928 test ! -s conftest.err
44929 } && test -s conftest$ac_exeext && {
44930 test "$cross_compiling" = yes ||
44931 $as_test_x conftest$ac_exeext
44933 eval "$as_ac_var=yes"
44935 $as_echo "$as_me: failed program was:" >&5
44936 sed 's/^/| /' conftest.$ac_ext >&5
44938 eval "$as_ac_var=no"
44941 rm -rf conftest.dSYM
44942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44943 conftest$ac_exeext conftest.$ac_ext
44945 ac_res=`eval 'as_val=${'$as_ac_var'}
44946 $as_echo "$as_val"'`
44947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44948 $as_echo "$ac_res" >&6; }
44949 as_val=`eval 'as_val=${'$as_ac_var'}
44950 $as_echo "$as_val"'`
44951 if test "x$as_val" = x""yes; then
44952 cat >>confdefs.h <<_ACEOF
44953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44959 if test $ac_cv_func_vsnprintf = yes; then
44962 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
44963 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
44964 if test "${gl_cv_func_snprintf_size1+set}" = set; then
44965 $as_echo_n "(cached) " >&6
44968 if test "$cross_compiling" = yes; then
44969 gl_cv_func_snprintf_size1="guessing yes"
44971 cat >conftest.$ac_ext <<_ACEOF
44974 cat confdefs.h >>conftest.$ac_ext
44975 cat >>conftest.$ac_ext <<_ACEOF
44976 /* end confdefs.h. */
44981 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
44982 snprintf (buf, 1, "%d", 12345);
44983 return buf[1] != 'E';
44986 rm -f conftest$ac_exeext
44987 if { (ac_try="$ac_link"
44988 case "(($ac_try" in
44989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44990 *) ac_try_echo=$ac_try;;
44992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44993 $as_echo "$ac_try_echo") >&5
44994 (eval "$ac_link") 2>&5
44996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44998 { (case "(($ac_try" in
44999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45000 *) ac_try_echo=$ac_try;;
45002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45003 $as_echo "$ac_try_echo") >&5
45004 (eval "$ac_try") 2>&5
45006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45007 (exit $ac_status); }; }; then
45008 gl_cv_func_snprintf_size1=yes
45010 $as_echo "$as_me: program exited with status $ac_status" >&5
45011 $as_echo "$as_me: failed program was:" >&5
45012 sed 's/^/| /' conftest.$ac_ext >&5
45014 ( exit $ac_status )
45015 gl_cv_func_snprintf_size1=no
45017 rm -rf conftest.dSYM
45018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45024 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
45025 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
45027 case "$gl_cv_func_snprintf_size1" in
45029 gl_cv_func_vsnprintf_usable=yes
45033 if test $gl_cv_func_vsnprintf_usable = no; then
45044 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
45046 if test $ac_cv_func_vsnprintf = yes; then
45047 REPLACE_VSNPRINTF=1
45056 if test $ac_cv_have_decl_vsnprintf = no; then
45057 HAVE_DECL_VSNPRINTF=0
45065 cat >>confdefs.h <<\_ACEOF
45066 #define GNULIB_VSNPRINTF 1
45091 if test $gl_cv_have_include_next = yes; then
45092 gl_cv_next_wchar_h='<'wchar.h'>'
45094 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
45095 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
45096 if test "${gl_cv_next_wchar_h+set}" = set; then
45097 $as_echo_n "(cached) " >&6
45100 if test $ac_cv_header_wchar_h = yes; then
45101 cat >conftest.$ac_ext <<_ACEOF
45104 cat confdefs.h >>conftest.$ac_ext
45105 cat >>conftest.$ac_ext <<_ACEOF
45106 /* end confdefs.h. */
45111 aix*) gl_absname_cpp="$ac_cpp -C" ;;
45112 *) gl_absname_cpp="$ac_cpp" ;;
45114 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45115 sed -n '\#/wchar.h#{
45116 s#.*"\(.*/wchar.h\)".*#\1#
45122 gl_cv_next_wchar_h='<'wchar.h'>'
45126 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
45127 $as_echo "$gl_cv_next_wchar_h" >&6; }
45129 NEXT_WCHAR_H=$gl_cv_next_wchar_h
45131 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45133 gl_next_as_first_directive='<'wchar.h'>'
45135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45136 gl_next_as_first_directive=$gl_cv_next_wchar_h
45138 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
45142 if test $ac_cv_header_wchar_h = yes; then
45150 if test $gt_cv_c_wint_t = yes; then
45169 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
45170 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45171 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
45172 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45173 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
45174 $as_echo_n "(cached) " >&6
45176 cat >conftest.$ac_ext <<_ACEOF
45179 cat confdefs.h >>conftest.$ac_ext
45180 cat >>conftest.$ac_ext <<_ACEOF
45181 /* end confdefs.h. */
45183 /* Some systems require additional headers. */
45185 # include <stddef.h>
45186 # include <stdio.h>
45200 rm -f conftest.$ac_objext
45201 if { (ac_try="$ac_compile"
45202 case "(($ac_try" in
45203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45204 *) ac_try_echo=$ac_try;;
45206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45207 $as_echo "$ac_try_echo") >&5
45208 (eval "$ac_compile") 2>conftest.er1
45210 grep -v '^ *+' conftest.er1 >conftest.err
45212 cat conftest.err >&5
45213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214 (exit $ac_status); } && {
45215 test -z "$ac_c_werror_flag" ||
45216 test ! -s conftest.err
45217 } && test -s conftest.$ac_objext; then
45218 eval "$as_gl_Symbol=yes"
45220 $as_echo "$as_me: failed program was:" >&5
45221 sed 's/^/| /' conftest.$ac_ext >&5
45223 eval "$as_gl_Symbol=no"
45226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45228 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
45229 $as_echo "$as_val"'`
45230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45231 $as_echo "$ac_res" >&6; }
45232 as_val=`eval 'as_val=${'$as_gl_Symbol'}
45233 $as_echo "$as_val"'`
45234 if test "x$as_val" = x""yes; then
45235 cat >>confdefs.h <<_ACEOF
45236 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45239 eval ac_cv_have_decl_$gl_func=yes
45265 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
45269 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
45270 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
45271 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
45272 $as_echo_n "(cached) " >&6
45276 # Guess no on AIX and OSF/1.
45277 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
45278 # Guess yes otherwise.
45279 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
45281 if test $LOCALE_JA != none; then
45282 if test "$cross_compiling" = yes; then
45285 cat >conftest.$ac_ext <<_ACEOF
45288 cat confdefs.h >>conftest.$ac_ext
45289 cat >>conftest.$ac_ext <<_ACEOF
45290 /* end confdefs.h. */
45292 #include <locale.h>
45293 #include <string.h>
45297 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
45299 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
45303 memset (&state, '\0', sizeof (mbstate_t));
45304 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
45305 if (mbsinit (&state))
45311 rm -f conftest$ac_exeext
45312 if { (ac_try="$ac_link"
45313 case "(($ac_try" in
45314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45315 *) ac_try_echo=$ac_try;;
45317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45318 $as_echo "$ac_try_echo") >&5
45319 (eval "$ac_link") 2>&5
45321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45323 { (case "(($ac_try" in
45324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45325 *) ac_try_echo=$ac_try;;
45327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45328 $as_echo "$ac_try_echo") >&5
45329 (eval "$ac_try") 2>&5
45331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332 (exit $ac_status); }; }; then
45333 gl_cv_func_mbrtowc_incomplete_state=yes
45335 $as_echo "$as_me: program exited with status $ac_status" >&5
45336 $as_echo "$as_me: failed program was:" >&5
45337 sed 's/^/| /' conftest.$ac_ext >&5
45339 ( exit $ac_status )
45340 gl_cv_func_mbrtowc_incomplete_state=no
45342 rm -rf conftest.dSYM
45343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45350 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
45351 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
45356 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
45357 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
45358 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
45359 $as_echo_n "(cached) " >&6
45363 # Guess no on Solaris 8.
45364 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
45365 # Guess yes otherwise.
45366 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
45368 if test $LOCALE_ZH_CN != none; then
45369 if test "$cross_compiling" = yes; then
45372 cat >conftest.$ac_ext <<_ACEOF
45375 cat confdefs.h >>conftest.$ac_ext
45376 cat >>conftest.$ac_ext <<_ACEOF
45377 /* end confdefs.h. */
45379 #include <locale.h>
45380 #include <stdlib.h>
45381 #include <string.h>
45385 /* This fails on Solaris 8:
45386 mbrtowc returns 2, and sets wc to 0x00F0.
45387 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
45388 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
45390 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
45394 memset (&state, '\0', sizeof (mbstate_t));
45395 if (mbrtowc (&wc, input + 3, 6, &state) != 4
45396 && mbtowc (&wc, input + 3, 6) == 4)
45402 rm -f conftest$ac_exeext
45403 if { (ac_try="$ac_link"
45404 case "(($ac_try" in
45405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45406 *) ac_try_echo=$ac_try;;
45408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45409 $as_echo "$ac_try_echo") >&5
45410 (eval "$ac_link") 2>&5
45412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45414 { (case "(($ac_try" in
45415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45416 *) ac_try_echo=$ac_try;;
45418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45419 $as_echo "$ac_try_echo") >&5
45420 (eval "$ac_try") 2>&5
45422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45423 (exit $ac_status); }; }; then
45424 gl_cv_func_mbrtowc_sanitycheck=yes
45426 $as_echo "$as_me: program exited with status $ac_status" >&5
45427 $as_echo "$as_me: failed program was:" >&5
45428 sed 's/^/| /' conftest.$ac_ext >&5
45430 ( exit $ac_status )
45431 gl_cv_func_mbrtowc_sanitycheck=no
45433 rm -rf conftest.dSYM
45434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45441 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
45442 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
45444 REPLACE_MBSTATE_T=0
45445 case "$gl_cv_func_mbrtowc_incomplete_state" in
45447 *) REPLACE_MBSTATE_T=1 ;;
45449 case "$gl_cv_func_mbrtowc_sanitycheck" in
45451 *) REPLACE_MBSTATE_T=1 ;;
45454 REPLACE_MBSTATE_T=1
45456 if test $REPLACE_MBSTATE_T = 1; then
45462 if test $REPLACE_MBSTATE_T = 1; then
45471 if test $ac_cv_func_wcrtomb = no; then
45474 if test $HAVE_WCRTOMB != 0 && test $REPLACE_WCRTOMB != 1; then
45480 { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
45481 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
45482 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
45483 $as_echo_n "(cached) " >&6
45487 # Guess no on AIX 4, OSF/1 and Solaris.
45488 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
45489 # Guess yes otherwise.
45490 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
45492 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
45493 if test "$cross_compiling" = yes; then
45496 cat >conftest.$ac_ext <<_ACEOF
45499 cat confdefs.h >>conftest.$ac_ext
45500 cat >>conftest.$ac_ext <<_ACEOF
45501 /* end confdefs.h. */
45503 #include <locale.h>
45505 #include <string.h>
45509 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
45511 if (wcrtomb (NULL, 0, NULL) != 1)
45514 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
45516 if (wcrtomb (NULL, 0, NULL) != 1)
45519 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
45521 if (wcrtomb (NULL, 0, NULL) != 1)
45524 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
45526 if (wcrtomb (NULL, 0, NULL) != 1)
45532 rm -f conftest$ac_exeext
45533 if { (ac_try="$ac_link"
45534 case "(($ac_try" in
45535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45536 *) ac_try_echo=$ac_try;;
45538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45539 $as_echo "$ac_try_echo") >&5
45540 (eval "$ac_link") 2>&5
45542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45544 { (case "(($ac_try" in
45545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45546 *) ac_try_echo=$ac_try;;
45548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45549 $as_echo "$ac_try_echo") >&5
45550 (eval "$ac_try") 2>&5
45552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45553 (exit $ac_status); }; }; then
45554 gl_cv_func_wcrtomb_retval=yes
45556 $as_echo "$as_me: program exited with status $ac_status" >&5
45557 $as_echo "$as_me: failed program was:" >&5
45558 sed 's/^/| /' conftest.$ac_ext >&5
45560 ( exit $ac_status )
45561 gl_cv_func_wcrtomb_retval=no
45563 rm -rf conftest.dSYM
45564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45571 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
45572 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
45573 case "$gl_cv_func_wcrtomb_retval" in
45575 *) REPLACE_WCRTOMB=1 ;;
45578 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
45590 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
45602 cat >>confdefs.h <<\_ACEOF
45603 #define GNULIB_WCRTOMB 1
45617 if test $ac_cv_func_iswcntrl = yes; then
45632 if test $gt_cv_c_wint_t = yes; then
45639 if test $ac_cv_header_wctype_h = yes; then
45640 if test $ac_cv_func_iswcntrl = yes; then
45641 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
45642 $as_echo_n "checking whether iswcntrl works... " >&6; }
45643 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
45644 $as_echo_n "(cached) " >&6
45647 if test "$cross_compiling" = yes; then
45648 cat >conftest.$ac_ext <<_ACEOF
45651 cat confdefs.h >>conftest.$ac_ext
45652 cat >>conftest.$ac_ext <<_ACEOF
45653 /* end confdefs.h. */
45654 #include <stdlib.h>
45655 #if __GNU_LIBRARY__ == 1
45656 Linux libc5 i18n is broken.
45666 rm -f conftest.$ac_objext
45667 if { (ac_try="$ac_compile"
45668 case "(($ac_try" in
45669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45670 *) ac_try_echo=$ac_try;;
45672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45673 $as_echo "$ac_try_echo") >&5
45674 (eval "$ac_compile") 2>conftest.er1
45676 grep -v '^ *+' conftest.er1 >conftest.err
45678 cat conftest.err >&5
45679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45680 (exit $ac_status); } && {
45681 test -z "$ac_c_werror_flag" ||
45682 test ! -s conftest.err
45683 } && test -s conftest.$ac_objext; then
45684 gl_cv_func_iswcntrl_works=yes
45686 $as_echo "$as_me: failed program was:" >&5
45687 sed 's/^/| /' conftest.$ac_ext >&5
45689 gl_cv_func_iswcntrl_works=no
45692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45695 cat >conftest.$ac_ext <<_ACEOF
45698 cat confdefs.h >>conftest.$ac_ext
45699 cat >>conftest.$ac_ext <<_ACEOF
45700 /* end confdefs.h. */
45702 #include <stddef.h>
45706 #include <wctype.h>
45707 int main () { return iswprint ('x') == 0; }
45709 rm -f conftest$ac_exeext
45710 if { (ac_try="$ac_link"
45711 case "(($ac_try" in
45712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45713 *) ac_try_echo=$ac_try;;
45715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45716 $as_echo "$ac_try_echo") >&5
45717 (eval "$ac_link") 2>&5
45719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45721 { (case "(($ac_try" in
45722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45723 *) ac_try_echo=$ac_try;;
45725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45726 $as_echo "$ac_try_echo") >&5
45727 (eval "$ac_try") 2>&5
45729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45730 (exit $ac_status); }; }; then
45731 gl_cv_func_iswcntrl_works=yes
45733 $as_echo "$as_me: program exited with status $ac_status" >&5
45734 $as_echo "$as_me: failed program was:" >&5
45735 sed 's/^/| /' conftest.$ac_ext >&5
45737 ( exit $ac_status )
45738 gl_cv_func_iswcntrl_works=no
45740 rm -rf conftest.dSYM
45741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45747 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
45748 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
45761 if test $gl_cv_have_include_next = yes; then
45762 gl_cv_next_wctype_h='<'wctype.h'>'
45764 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
45765 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
45766 if test "${gl_cv_next_wctype_h+set}" = set; then
45767 $as_echo_n "(cached) " >&6
45770 if test $ac_cv_header_wctype_h = yes; then
45771 cat >conftest.$ac_ext <<_ACEOF
45774 cat confdefs.h >>conftest.$ac_ext
45775 cat >>conftest.$ac_ext <<_ACEOF
45776 /* end confdefs.h. */
45777 #include <wctype.h>
45781 aix*) gl_absname_cpp="$ac_cpp -C" ;;
45782 *) gl_absname_cpp="$ac_cpp" ;;
45784 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45785 sed -n '\#/wctype.h#{
45786 s#.*"\(.*/wctype.h\)".*#\1#
45792 gl_cv_next_wctype_h='<'wctype.h'>'
45796 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
45797 $as_echo "$gl_cv_next_wctype_h" >&6; }
45799 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
45801 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45803 gl_next_as_first_directive='<'wctype.h'>'
45805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45806 gl_next_as_first_directive=$gl_cv_next_wctype_h
45808 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
45818 if test "$gl_cv_func_iswcntrl_works" = no; then
45846 { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
45847 $as_echo_n "checking whether wcwidth is declared... " >&6; }
45848 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
45849 $as_echo_n "(cached) " >&6
45851 cat >conftest.$ac_ext <<_ACEOF
45854 cat confdefs.h >>conftest.$ac_ext
45855 cat >>conftest.$ac_ext <<_ACEOF
45856 /* end confdefs.h. */
45858 /* AIX 3.2.5 declares wcwidth in <string.h>. */
45859 #include <string.h>
45860 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45862 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45863 before <wchar.h>. */
45864 #include <stddef.h>
45881 rm -f conftest.$ac_objext
45882 if { (ac_try="$ac_compile"
45883 case "(($ac_try" in
45884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45885 *) ac_try_echo=$ac_try;;
45887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45888 $as_echo "$ac_try_echo") >&5
45889 (eval "$ac_compile") 2>conftest.er1
45891 grep -v '^ *+' conftest.er1 >conftest.err
45893 cat conftest.err >&5
45894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45895 (exit $ac_status); } && {
45896 test -z "$ac_c_werror_flag" ||
45897 test ! -s conftest.err
45898 } && test -s conftest.$ac_objext; then
45899 ac_cv_have_decl_wcwidth=yes
45901 $as_echo "$as_me: failed program was:" >&5
45902 sed 's/^/| /' conftest.$ac_ext >&5
45904 ac_cv_have_decl_wcwidth=no
45907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45909 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
45910 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
45911 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
45913 cat >>confdefs.h <<_ACEOF
45914 #define HAVE_DECL_WCWIDTH 1
45919 cat >>confdefs.h <<_ACEOF
45920 #define HAVE_DECL_WCWIDTH 0
45927 if test $ac_cv_have_decl_wcwidth != yes; then
45928 HAVE_DECL_WCWIDTH=0
45931 if test $ac_cv_func_wcwidth = no; then
45934 { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
45935 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
45936 if test "${gl_cv_func_wcwidth_works+set}" = set; then
45937 $as_echo_n "(cached) " >&6
45940 if test "$cross_compiling" = yes; then
45943 # Guess yes on glibc systems.
45944 *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
45945 *) gl_cv_func_wcwidth_works="guessing no";;
45949 cat >conftest.$ac_ext <<_ACEOF
45952 cat confdefs.h >>conftest.$ac_ext
45953 cat >>conftest.$ac_ext <<_ACEOF
45954 /* end confdefs.h. */
45956 #include <locale.h>
45957 /* AIX 3.2.5 declares wcwidth in <string.h>. */
45958 #include <string.h>
45959 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45961 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45962 before <wchar.h>. */
45963 #include <stddef.h>
45967 #if !HAVE_DECL_WCWIDTH
45969 # ifdef __cplusplus
45976 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
45977 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
45982 rm -f conftest$ac_exeext
45983 if { (ac_try="$ac_link"
45984 case "(($ac_try" in
45985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45986 *) ac_try_echo=$ac_try;;
45988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45989 $as_echo "$ac_try_echo") >&5
45990 (eval "$ac_link") 2>&5
45992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45994 { (case "(($ac_try" in
45995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45996 *) ac_try_echo=$ac_try;;
45998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45999 $as_echo "$ac_try_echo") >&5
46000 (eval "$ac_try") 2>&5
46002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46003 (exit $ac_status); }; }; then
46004 gl_cv_func_wcwidth_works=yes
46006 $as_echo "$as_me: program exited with status $ac_status" >&5
46007 $as_echo "$as_me: failed program was:" >&5
46008 sed 's/^/| /' conftest.$ac_ext >&5
46010 ( exit $ac_status )
46011 gl_cv_func_wcwidth_works=no
46013 rm -rf conftest.dSYM
46014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46020 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
46021 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
46022 case "$gl_cv_func_wcwidth_works" in
46024 *no) REPLACE_WCWIDTH=1 ;;
46027 if test $REPLACE_WCWIDTH = 1; then
46036 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
46040 if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
46051 cat >>confdefs.h <<\_ACEOF
46052 #define GNULIB_WCWIDTH 1
46066 cat >>confdefs.h <<\_ACEOF
46067 #define GNULIB_WRITE 1
46081 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
46101 gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
46110 for ac_header in stdint.h
46112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46115 $as_echo_n "checking for $ac_header... " >&6; }
46116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46117 $as_echo_n "(cached) " >&6
46119 ac_res=`eval 'as_val=${'$as_ac_Header'}
46120 $as_echo "$as_val"'`
46121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46122 $as_echo "$ac_res" >&6; }
46124 # Is the header compilable?
46125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
46126 $as_echo_n "checking $ac_header usability... " >&6; }
46127 cat >conftest.$ac_ext <<_ACEOF
46130 cat confdefs.h >>conftest.$ac_ext
46131 cat >>conftest.$ac_ext <<_ACEOF
46132 /* end confdefs.h. */
46133 $ac_includes_default
46134 #include <$ac_header>
46136 rm -f conftest.$ac_objext
46137 if { (ac_try="$ac_compile"
46138 case "(($ac_try" in
46139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46140 *) ac_try_echo=$ac_try;;
46142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46143 $as_echo "$ac_try_echo") >&5
46144 (eval "$ac_compile") 2>conftest.er1
46146 grep -v '^ *+' conftest.er1 >conftest.err
46148 cat conftest.err >&5
46149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46150 (exit $ac_status); } && {
46151 test -z "$ac_c_werror_flag" ||
46152 test ! -s conftest.err
46153 } && test -s conftest.$ac_objext; then
46154 ac_header_compiler=yes
46156 $as_echo "$as_me: failed program was:" >&5
46157 sed 's/^/| /' conftest.$ac_ext >&5
46159 ac_header_compiler=no
46162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46164 $as_echo "$ac_header_compiler" >&6; }
46166 # Is the header present?
46167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
46168 $as_echo_n "checking $ac_header presence... " >&6; }
46169 cat >conftest.$ac_ext <<_ACEOF
46172 cat confdefs.h >>conftest.$ac_ext
46173 cat >>conftest.$ac_ext <<_ACEOF
46174 /* end confdefs.h. */
46175 #include <$ac_header>
46177 if { (ac_try="$ac_cpp conftest.$ac_ext"
46178 case "(($ac_try" in
46179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46180 *) ac_try_echo=$ac_try;;
46182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46183 $as_echo "$ac_try_echo") >&5
46184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46186 grep -v '^ *+' conftest.er1 >conftest.err
46188 cat conftest.err >&5
46189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190 (exit $ac_status); } >/dev/null && {
46191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46192 test ! -s conftest.err
46194 ac_header_preproc=yes
46196 $as_echo "$as_me: failed program was:" >&5
46197 sed 's/^/| /' conftest.$ac_ext >&5
46199 ac_header_preproc=no
46202 rm -f conftest.err conftest.$ac_ext
46203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46204 $as_echo "$ac_header_preproc" >&6; }
46206 # So? What about this header?
46207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46213 ac_header_preproc=yes
46216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46229 ## ------------------------------ ##
46230 ## Report this to bug-tar@gnu.org ##
46231 ## ------------------------------ ##
46233 ) | sed "s/^/$as_me: WARNING: /" >&2
46236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46237 $as_echo_n "checking for $ac_header... " >&6; }
46238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46239 $as_echo_n "(cached) " >&6
46241 eval "$as_ac_Header=\$ac_header_preproc"
46243 ac_res=`eval 'as_val=${'$as_ac_Header'}
46244 $as_echo "$as_val"'`
46245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46246 $as_echo "$ac_res" >&6; }
46249 as_val=`eval 'as_val=${'$as_ac_Header'}
46250 $as_echo "$as_val"'`
46251 if test "x$as_val" = x""yes; then
46252 cat >>confdefs.h <<_ACEOF
46253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46275 gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
46285 gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
46295 gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
46303 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
46325 gl_source_base='tests'
46333 LIBGNU_LIBDEPS="$gl_libdeps"
46335 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
46347 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
46348 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
46349 if test "${ac_cv_header_time+set}" = set; then
46350 $as_echo_n "(cached) " >&6
46352 cat >conftest.$ac_ext <<_ACEOF
46355 cat confdefs.h >>conftest.$ac_ext
46356 cat >>conftest.$ac_ext <<_ACEOF
46357 /* end confdefs.h. */
46358 #include <sys/types.h>
46359 #include <sys/time.h>
46365 if ((struct tm *) 0)
46371 rm -f conftest.$ac_objext
46372 if { (ac_try="$ac_compile"
46373 case "(($ac_try" in
46374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46375 *) ac_try_echo=$ac_try;;
46377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46378 $as_echo "$ac_try_echo") >&5
46379 (eval "$ac_compile") 2>conftest.er1
46381 grep -v '^ *+' conftest.er1 >conftest.err
46383 cat conftest.err >&5
46384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46385 (exit $ac_status); } && {
46386 test -z "$ac_c_werror_flag" ||
46387 test ! -s conftest.err
46388 } && test -s conftest.$ac_objext; then
46389 ac_cv_header_time=yes
46391 $as_echo "$as_me: failed program was:" >&5
46392 sed 's/^/| /' conftest.$ac_ext >&5
46394 ac_cv_header_time=no
46397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
46400 $as_echo "$ac_cv_header_time" >&6; }
46401 if test $ac_cv_header_time = yes; then
46403 cat >>confdefs.h <<\_ACEOF
46404 #define TIME_WITH_SYS_TIME 1
46409 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
46410 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
46411 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
46412 $as_echo_n "(cached) " >&6
46414 cat >conftest.$ac_ext <<_ACEOF
46417 cat confdefs.h >>conftest.$ac_ext
46418 cat >>conftest.$ac_ext <<_ACEOF
46419 /* end confdefs.h. */
46420 $ac_includes_default
46424 static struct stat ac_aggr;
46425 if (ac_aggr.st_blksize)
46431 rm -f conftest.$ac_objext
46432 if { (ac_try="$ac_compile"
46433 case "(($ac_try" in
46434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46435 *) ac_try_echo=$ac_try;;
46437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46438 $as_echo "$ac_try_echo") >&5
46439 (eval "$ac_compile") 2>conftest.er1
46441 grep -v '^ *+' conftest.er1 >conftest.err
46443 cat conftest.err >&5
46444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46445 (exit $ac_status); } && {
46446 test -z "$ac_c_werror_flag" ||
46447 test ! -s conftest.err
46448 } && test -s conftest.$ac_objext; then
46449 ac_cv_member_struct_stat_st_blksize=yes
46451 $as_echo "$as_me: failed program was:" >&5
46452 sed 's/^/| /' conftest.$ac_ext >&5
46454 cat >conftest.$ac_ext <<_ACEOF
46457 cat confdefs.h >>conftest.$ac_ext
46458 cat >>conftest.$ac_ext <<_ACEOF
46459 /* end confdefs.h. */
46460 $ac_includes_default
46464 static struct stat ac_aggr;
46465 if (sizeof ac_aggr.st_blksize)
46471 rm -f conftest.$ac_objext
46472 if { (ac_try="$ac_compile"
46473 case "(($ac_try" in
46474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46475 *) ac_try_echo=$ac_try;;
46477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46478 $as_echo "$ac_try_echo") >&5
46479 (eval "$ac_compile") 2>conftest.er1
46481 grep -v '^ *+' conftest.er1 >conftest.err
46483 cat conftest.err >&5
46484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46485 (exit $ac_status); } && {
46486 test -z "$ac_c_werror_flag" ||
46487 test ! -s conftest.err
46488 } && test -s conftest.$ac_objext; then
46489 ac_cv_member_struct_stat_st_blksize=yes
46491 $as_echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46494 ac_cv_member_struct_stat_st_blksize=no
46497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46502 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
46503 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
46504 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
46506 cat >>confdefs.h <<_ACEOF
46507 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
46511 cat >>confdefs.h <<\_ACEOF
46512 #define HAVE_ST_BLKSIZE 1
46524 # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
46527 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
46528 $as_echo_n "checking for library containing setsockopt... " >&6; }
46529 if test "${ac_cv_search_setsockopt+set}" = set; then
46530 $as_echo_n "(cached) " >&6
46532 ac_func_search_save_LIBS=$LIBS
46533 cat >conftest.$ac_ext <<_ACEOF
46536 cat confdefs.h >>conftest.$ac_ext
46537 cat >>conftest.$ac_ext <<_ACEOF
46538 /* end confdefs.h. */
46540 /* Override any GCC internal prototype to avoid an error.
46541 Use char because int might match the return type of a GCC
46542 builtin and then its argument prototype would still apply. */
46546 char setsockopt ();
46550 return setsockopt ();
46555 for ac_lib in '' socket; do
46556 if test -z "$ac_lib"; then
46557 ac_res="none required"
46560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
46562 rm -f conftest.$ac_objext conftest$ac_exeext
46563 if { (ac_try="$ac_link"
46564 case "(($ac_try" in
46565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46566 *) ac_try_echo=$ac_try;;
46568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46569 $as_echo "$ac_try_echo") >&5
46570 (eval "$ac_link") 2>conftest.er1
46572 grep -v '^ *+' conftest.er1 >conftest.err
46574 cat conftest.err >&5
46575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46576 (exit $ac_status); } && {
46577 test -z "$ac_c_werror_flag" ||
46578 test ! -s conftest.err
46579 } && test -s conftest$ac_exeext && {
46580 test "$cross_compiling" = yes ||
46581 $as_test_x conftest$ac_exeext
46583 ac_cv_search_setsockopt=$ac_res
46585 $as_echo "$as_me: failed program was:" >&5
46586 sed 's/^/| /' conftest.$ac_ext >&5
46591 rm -rf conftest.dSYM
46592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46594 if test "${ac_cv_search_setsockopt+set}" = set; then
46598 if test "${ac_cv_search_setsockopt+set}" = set; then
46601 ac_cv_search_setsockopt=no
46603 rm conftest.$ac_ext
46604 LIBS=$ac_func_search_save_LIBS
46606 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
46607 $as_echo "$ac_cv_search_setsockopt" >&6; }
46608 ac_res=$ac_cv_search_setsockopt
46609 if test "$ac_res" != no; then
46610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46613 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
46614 $as_echo_n "checking for library containing setsockopt... " >&6; }
46615 if test "${ac_cv_search_setsockopt+set}" = set; then
46616 $as_echo_n "(cached) " >&6
46618 ac_func_search_save_LIBS=$LIBS
46619 cat >conftest.$ac_ext <<_ACEOF
46622 cat confdefs.h >>conftest.$ac_ext
46623 cat >>conftest.$ac_ext <<_ACEOF
46624 /* end confdefs.h. */
46626 /* Override any GCC internal prototype to avoid an error.
46627 Use char because int might match the return type of a GCC
46628 builtin and then its argument prototype would still apply. */
46632 char setsockopt ();
46636 return setsockopt ();
46641 for ac_lib in '' socket; do
46642 if test -z "$ac_lib"; then
46643 ac_res="none required"
46646 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
46648 rm -f conftest.$ac_objext conftest$ac_exeext
46649 if { (ac_try="$ac_link"
46650 case "(($ac_try" in
46651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46652 *) ac_try_echo=$ac_try;;
46654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46655 $as_echo "$ac_try_echo") >&5
46656 (eval "$ac_link") 2>conftest.er1
46658 grep -v '^ *+' conftest.er1 >conftest.err
46660 cat conftest.err >&5
46661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46662 (exit $ac_status); } && {
46663 test -z "$ac_c_werror_flag" ||
46664 test ! -s conftest.err
46665 } && test -s conftest$ac_exeext && {
46666 test "$cross_compiling" = yes ||
46667 $as_test_x conftest$ac_exeext
46669 ac_cv_search_setsockopt=$ac_res
46671 $as_echo "$as_me: failed program was:" >&5
46672 sed 's/^/| /' conftest.$ac_ext >&5
46677 rm -rf conftest.dSYM
46678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46680 if test "${ac_cv_search_setsockopt+set}" = set; then
46684 if test "${ac_cv_search_setsockopt+set}" = set; then
46687 ac_cv_search_setsockopt=no
46689 rm conftest.$ac_ext
46690 LIBS=$ac_func_search_save_LIBS
46692 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
46693 $as_echo "$ac_cv_search_setsockopt" >&6; }
46694 ac_res=$ac_cv_search_setsockopt
46695 if test "$ac_res" != no; then
46696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46702 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
46703 $as_echo_n "checking for library containing setsockopt... " >&6; }
46704 if test "${ac_cv_search_setsockopt+set}" = set; then
46705 $as_echo_n "(cached) " >&6
46707 ac_func_search_save_LIBS=$LIBS
46708 cat >conftest.$ac_ext <<_ACEOF
46711 cat confdefs.h >>conftest.$ac_ext
46712 cat >>conftest.$ac_ext <<_ACEOF
46713 /* end confdefs.h. */
46715 /* Override any GCC internal prototype to avoid an error.
46716 Use char because int might match the return type of a GCC
46717 builtin and then its argument prototype would still apply. */
46721 char setsockopt ();
46725 return setsockopt ();
46730 for ac_lib in '' nsl; do
46731 if test -z "$ac_lib"; then
46732 ac_res="none required"
46735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
46737 rm -f conftest.$ac_objext conftest$ac_exeext
46738 if { (ac_try="$ac_link"
46739 case "(($ac_try" in
46740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46741 *) ac_try_echo=$ac_try;;
46743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46744 $as_echo "$ac_try_echo") >&5
46745 (eval "$ac_link") 2>conftest.er1
46747 grep -v '^ *+' conftest.er1 >conftest.err
46749 cat conftest.err >&5
46750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46751 (exit $ac_status); } && {
46752 test -z "$ac_c_werror_flag" ||
46753 test ! -s conftest.err
46754 } && test -s conftest$ac_exeext && {
46755 test "$cross_compiling" = yes ||
46756 $as_test_x conftest$ac_exeext
46758 ac_cv_search_setsockopt=$ac_res
46760 $as_echo "$as_me: failed program was:" >&5
46761 sed 's/^/| /' conftest.$ac_ext >&5
46766 rm -rf conftest.dSYM
46767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46769 if test "${ac_cv_search_setsockopt+set}" = set; then
46773 if test "${ac_cv_search_setsockopt+set}" = set; then
46776 ac_cv_search_setsockopt=no
46778 rm conftest.$ac_ext
46779 LIBS=$ac_func_search_save_LIBS
46781 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
46782 $as_echo "$ac_cv_search_setsockopt" >&6; }
46783 ac_res=$ac_cv_search_setsockopt
46784 if test "$ac_res" != no; then
46785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46790 case "$ac_cv_search_setsockopt" in
46791 -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
46797 if test $ac_cv_header_sys_mtio_h = yes; then
46798 { $as_echo "$as_me:$LINENO: checking for remote tape header files" >&5
46799 $as_echo_n "checking for remote tape header files... " >&6; }
46800 if test "${pu_cv_header_rmt+set}" = set; then
46801 $as_echo_n "(cached) " >&6
46803 cat >conftest.$ac_ext <<_ACEOF
46806 cat confdefs.h >>conftest.$ac_ext
46807 cat >>conftest.$ac_ext <<_ACEOF
46808 /* end confdefs.h. */
46811 # include <sgtty.h>
46813 #include <sys/socket.h>
46815 if { (ac_try="$ac_cpp conftest.$ac_ext"
46816 case "(($ac_try" in
46817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46818 *) ac_try_echo=$ac_try;;
46820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46821 $as_echo "$ac_try_echo") >&5
46822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46824 grep -v '^ *+' conftest.er1 >conftest.err
46826 cat conftest.err >&5
46827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46828 (exit $ac_status); } >/dev/null && {
46829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46830 test ! -s conftest.err
46832 pu_cv_header_rmt=yes
46834 $as_echo "$as_me: failed program was:" >&5
46835 sed 's/^/| /' conftest.$ac_ext >&5
46837 pu_cv_header_rmt=no
46840 rm -f conftest.err conftest.$ac_ext
46842 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
46843 $as_echo "$pu_cv_header_rmt" >&6; }
46844 test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
46850 for ac_header in sys/mtio.h
46852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46855 $as_echo_n "checking for $ac_header... " >&6; }
46856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46857 $as_echo_n "(cached) " >&6
46859 ac_res=`eval 'as_val=${'$as_ac_Header'}
46860 $as_echo "$as_val"'`
46861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46862 $as_echo "$ac_res" >&6; }
46864 # Is the header compilable?
46865 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
46866 $as_echo_n "checking $ac_header usability... " >&6; }
46867 cat >conftest.$ac_ext <<_ACEOF
46870 cat confdefs.h >>conftest.$ac_ext
46871 cat >>conftest.$ac_ext <<_ACEOF
46872 /* end confdefs.h. */
46873 $ac_includes_default
46874 #include <$ac_header>
46876 rm -f conftest.$ac_objext
46877 if { (ac_try="$ac_compile"
46878 case "(($ac_try" in
46879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46880 *) ac_try_echo=$ac_try;;
46882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46883 $as_echo "$ac_try_echo") >&5
46884 (eval "$ac_compile") 2>conftest.er1
46886 grep -v '^ *+' conftest.er1 >conftest.err
46888 cat conftest.err >&5
46889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46890 (exit $ac_status); } && {
46891 test -z "$ac_c_werror_flag" ||
46892 test ! -s conftest.err
46893 } && test -s conftest.$ac_objext; then
46894 ac_header_compiler=yes
46896 $as_echo "$as_me: failed program was:" >&5
46897 sed 's/^/| /' conftest.$ac_ext >&5
46899 ac_header_compiler=no
46902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46903 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46904 $as_echo "$ac_header_compiler" >&6; }
46906 # Is the header present?
46907 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
46908 $as_echo_n "checking $ac_header presence... " >&6; }
46909 cat >conftest.$ac_ext <<_ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h. */
46915 #include <$ac_header>
46917 if { (ac_try="$ac_cpp conftest.$ac_ext"
46918 case "(($ac_try" in
46919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46920 *) ac_try_echo=$ac_try;;
46922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46923 $as_echo "$ac_try_echo") >&5
46924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46926 grep -v '^ *+' conftest.er1 >conftest.err
46928 cat conftest.err >&5
46929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930 (exit $ac_status); } >/dev/null && {
46931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46932 test ! -s conftest.err
46934 ac_header_preproc=yes
46936 $as_echo "$as_me: failed program was:" >&5
46937 sed 's/^/| /' conftest.$ac_ext >&5
46939 ac_header_preproc=no
46942 rm -f conftest.err conftest.$ac_ext
46943 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46944 $as_echo "$ac_header_preproc" >&6; }
46946 # So? What about this header?
46947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46950 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46952 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46953 ac_header_preproc=yes
46956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46957 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46959 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46961 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46963 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46967 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46969 ## ------------------------------ ##
46970 ## Report this to bug-tar@gnu.org ##
46971 ## ------------------------------ ##
46973 ) | sed "s/^/$as_me: WARNING: /" >&2
46976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46977 $as_echo_n "checking for $ac_header... " >&6; }
46978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46979 $as_echo_n "(cached) " >&6
46981 eval "$as_ac_Header=\$ac_header_preproc"
46983 ac_res=`eval 'as_val=${'$as_ac_Header'}
46984 $as_echo "$as_val"'`
46985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46986 $as_echo "$ac_res" >&6; }
46989 as_val=`eval 'as_val=${'$as_ac_Header'}
46990 $as_echo "$as_val"'`
46991 if test "x$as_val" = x""yes; then
46992 cat >>confdefs.h <<_ACEOF
46993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47000 { $as_echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
47001 $as_echo_n "checking which ioctl field to test for reversed bytes... " >&6; }
47002 if test "${pu_cv_header_mtio_check_field+set}" = set; then
47003 $as_echo_n "(cached) " >&6
47005 cat >conftest.$ac_ext <<_ACEOF
47008 cat confdefs.h >>conftest.$ac_ext
47009 cat >>conftest.$ac_ext <<_ACEOF
47010 /* end confdefs.h. */
47011 #include <sys/mtio.h>
47014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47015 $EGREP "mt_model" >/dev/null 2>&1; then
47016 pu_cv_header_mtio_check_field=mt_model
47018 pu_cv_header_mtio_check_field=mt_type
47023 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
47024 $as_echo "$pu_cv_header_mtio_check_field" >&6; }
47026 cat >>confdefs.h <<_ACEOF
47027 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
47033 if test "x$DEFAULT_RMT_DIR" != x; then
47034 DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
47036 DEFAULT_RMT_DIR='$(libexecdir)'
47039 { $as_echo "$as_me:$LINENO: checking whether to build rmt" >&5
47040 $as_echo_n "checking whether to build rmt... " >&6; }
47042 # Check whether --with-rmt was given.
47043 if test "${with_rmt+set}" = set; then
47044 withval=$with_rmt; case $withval in
47045 yes|no) { { $as_echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
47046 $as_echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
47047 { (exit 1); exit 1; }; };;
47048 /*) DEFAULT_RMT_COMMAND=$withval
47049 { $as_echo "$as_me:$LINENO: result: no, use $withval instead" >&5
47050 $as_echo "no, use $withval instead" >&6; };;
47051 *) { { $as_echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
47052 $as_echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
47053 { (exit 1); exit 1; }; };;
47056 { $as_echo "$as_me:$LINENO: result: yes" >&5
47057 $as_echo "yes" >&6; }
47059 if test "$PU_RMT_PROG" = ""; then
47060 { $as_echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
47061 $as_echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
47067 if test "x$DEFAULT_RMT_COMMAND" != x; then
47069 cat >>confdefs.h <<_ACEOF
47070 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
47126 for ac_header in sys/buf.h
47128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47130 $as_echo_n "checking for $ac_header... " >&6; }
47131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47132 $as_echo_n "(cached) " >&6
47134 cat >conftest.$ac_ext <<_ACEOF
47137 cat confdefs.h >>conftest.$ac_ext
47138 cat >>conftest.$ac_ext <<_ACEOF
47139 /* end confdefs.h. */
47140 #if HAVE_SYS_PARAM_H
47141 #include <sys/param.h>
47144 #include <$ac_header>
47146 rm -f conftest.$ac_objext
47147 if { (ac_try="$ac_compile"
47148 case "(($ac_try" in
47149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47150 *) ac_try_echo=$ac_try;;
47152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47153 $as_echo "$ac_try_echo") >&5
47154 (eval "$ac_compile") 2>conftest.er1
47156 grep -v '^ *+' conftest.er1 >conftest.err
47158 cat conftest.err >&5
47159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47160 (exit $ac_status); } && {
47161 test -z "$ac_c_werror_flag" ||
47162 test ! -s conftest.err
47163 } && test -s conftest.$ac_objext; then
47164 eval "$as_ac_Header=yes"
47166 $as_echo "$as_me: failed program was:" >&5
47167 sed 's/^/| /' conftest.$ac_ext >&5
47169 eval "$as_ac_Header=no"
47172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47174 ac_res=`eval 'as_val=${'$as_ac_Header'}
47175 $as_echo "$as_val"'`
47176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47177 $as_echo "$ac_res" >&6; }
47178 as_val=`eval 'as_val=${'$as_ac_Header'}
47179 $as_echo "$as_val"'`
47180 if test "x$as_val" = x""yes; then
47181 cat >>confdefs.h <<_ACEOF
47182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47192 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47193 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
47194 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47195 $as_echo_n "(cached) " >&6
47197 cat >conftest.$ac_ext <<_ACEOF
47200 cat confdefs.h >>conftest.$ac_ext
47201 cat >>conftest.$ac_ext <<_ACEOF
47202 /* end confdefs.h. */
47203 $ac_includes_default
47207 static struct stat ac_aggr;
47208 if (ac_aggr.st_blksize)
47214 rm -f conftest.$ac_objext
47215 if { (ac_try="$ac_compile"
47216 case "(($ac_try" in
47217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47218 *) ac_try_echo=$ac_try;;
47220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47221 $as_echo "$ac_try_echo") >&5
47222 (eval "$ac_compile") 2>conftest.er1
47224 grep -v '^ *+' conftest.er1 >conftest.err
47226 cat conftest.err >&5
47227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47228 (exit $ac_status); } && {
47229 test -z "$ac_c_werror_flag" ||
47230 test ! -s conftest.err
47231 } && test -s conftest.$ac_objext; then
47232 ac_cv_member_struct_stat_st_blksize=yes
47234 $as_echo "$as_me: failed program was:" >&5
47235 sed 's/^/| /' conftest.$ac_ext >&5
47237 cat >conftest.$ac_ext <<_ACEOF
47240 cat confdefs.h >>conftest.$ac_ext
47241 cat >>conftest.$ac_ext <<_ACEOF
47242 /* end confdefs.h. */
47243 $ac_includes_default
47247 static struct stat ac_aggr;
47248 if (sizeof ac_aggr.st_blksize)
47254 rm -f conftest.$ac_objext
47255 if { (ac_try="$ac_compile"
47256 case "(($ac_try" in
47257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47258 *) ac_try_echo=$ac_try;;
47260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47261 $as_echo "$ac_try_echo") >&5
47262 (eval "$ac_compile") 2>conftest.er1
47264 grep -v '^ *+' conftest.er1 >conftest.err
47266 cat conftest.err >&5
47267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47268 (exit $ac_status); } && {
47269 test -z "$ac_c_werror_flag" ||
47270 test ! -s conftest.err
47271 } && test -s conftest.$ac_objext; then
47272 ac_cv_member_struct_stat_st_blksize=yes
47274 $as_echo "$as_me: failed program was:" >&5
47275 sed 's/^/| /' conftest.$ac_ext >&5
47277 ac_cv_member_struct_stat_st_blksize=no
47280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47285 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47286 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
47287 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
47289 cat >>confdefs.h <<_ACEOF
47290 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47311 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
47312 $as_echo_n "checking for library containing gethostbyname... " >&6; }
47313 if test "${ac_cv_search_gethostbyname+set}" = set; then
47314 $as_echo_n "(cached) " >&6
47316 ac_func_search_save_LIBS=$LIBS
47317 cat >conftest.$ac_ext <<_ACEOF
47320 cat confdefs.h >>conftest.$ac_ext
47321 cat >>conftest.$ac_ext <<_ACEOF
47322 /* end confdefs.h. */
47324 /* Override any GCC internal prototype to avoid an error.
47325 Use char because int might match the return type of a GCC
47326 builtin and then its argument prototype would still apply. */
47330 char gethostbyname ();
47334 return gethostbyname ();
47339 for ac_lib in '' nsl; do
47340 if test -z "$ac_lib"; then
47341 ac_res="none required"
47344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
47346 rm -f conftest.$ac_objext conftest$ac_exeext
47347 if { (ac_try="$ac_link"
47348 case "(($ac_try" in
47349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47350 *) ac_try_echo=$ac_try;;
47352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47353 $as_echo "$ac_try_echo") >&5
47354 (eval "$ac_link") 2>conftest.er1
47356 grep -v '^ *+' conftest.er1 >conftest.err
47358 cat conftest.err >&5
47359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47360 (exit $ac_status); } && {
47361 test -z "$ac_c_werror_flag" ||
47362 test ! -s conftest.err
47363 } && test -s conftest$ac_exeext && {
47364 test "$cross_compiling" = yes ||
47365 $as_test_x conftest$ac_exeext
47367 ac_cv_search_gethostbyname=$ac_res
47369 $as_echo "$as_me: failed program was:" >&5
47370 sed 's/^/| /' conftest.$ac_ext >&5
47375 rm -rf conftest.dSYM
47376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47378 if test "${ac_cv_search_gethostbyname+set}" = set; then
47382 if test "${ac_cv_search_gethostbyname+set}" = set; then
47385 ac_cv_search_gethostbyname=no
47387 rm conftest.$ac_ext
47388 LIBS=$ac_func_search_save_LIBS
47390 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
47391 $as_echo "$ac_cv_search_gethostbyname" >&6; }
47392 ac_res=$ac_cv_search_gethostbyname
47393 if test "$ac_res" != no; then
47394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47409 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
47411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47413 $as_echo_n "checking for $ac_func... " >&6; }
47414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47415 $as_echo_n "(cached) " >&6
47417 cat >conftest.$ac_ext <<_ACEOF
47420 cat confdefs.h >>conftest.$ac_ext
47421 cat >>conftest.$ac_ext <<_ACEOF
47422 /* end confdefs.h. */
47423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47425 #define $ac_func innocuous_$ac_func
47427 /* System header to define __stub macros and hopefully few prototypes,
47428 which can conflict with char $ac_func (); below.
47429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47430 <limits.h> exists even on freestanding compilers. */
47433 # include <limits.h>
47435 # include <assert.h>
47440 /* Override any GCC internal prototype to avoid an error.
47441 Use char because int might match the return type of a GCC
47442 builtin and then its argument prototype would still apply. */
47447 /* The GNU C library defines this for functions which it implements
47448 to always fail with ENOSYS. Some functions are actually named
47449 something starting with __ and the normal name is an alias. */
47450 #if defined __stub_$ac_func || defined __stub___$ac_func
47457 return $ac_func ();
47462 rm -f conftest.$ac_objext conftest$ac_exeext
47463 if { (ac_try="$ac_link"
47464 case "(($ac_try" in
47465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47466 *) ac_try_echo=$ac_try;;
47468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47469 $as_echo "$ac_try_echo") >&5
47470 (eval "$ac_link") 2>conftest.er1
47472 grep -v '^ *+' conftest.er1 >conftest.err
47474 cat conftest.err >&5
47475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47476 (exit $ac_status); } && {
47477 test -z "$ac_c_werror_flag" ||
47478 test ! -s conftest.err
47479 } && test -s conftest$ac_exeext && {
47480 test "$cross_compiling" = yes ||
47481 $as_test_x conftest$ac_exeext
47483 eval "$as_ac_var=yes"
47485 $as_echo "$as_me: failed program was:" >&5
47486 sed 's/^/| /' conftest.$ac_ext >&5
47488 eval "$as_ac_var=no"
47491 rm -rf conftest.dSYM
47492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47493 conftest$ac_exeext conftest.$ac_ext
47495 ac_res=`eval 'as_val=${'$as_ac_var'}
47496 $as_echo "$as_val"'`
47497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47498 $as_echo "$ac_res" >&6; }
47499 as_val=`eval 'as_val=${'$as_ac_var'}
47500 $as_echo "$as_val"'`
47501 if test "x$as_val" = x""yes; then
47502 cat >>confdefs.h <<_ACEOF
47503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47509 { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
47510 $as_echo_n "checking whether getgrgid is declared... " >&6; }
47511 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
47512 $as_echo_n "(cached) " >&6
47514 cat >conftest.$ac_ext <<_ACEOF
47517 cat confdefs.h >>conftest.$ac_ext
47518 cat >>conftest.$ac_ext <<_ACEOF
47519 /* end confdefs.h. */
47533 rm -f conftest.$ac_objext
47534 if { (ac_try="$ac_compile"
47535 case "(($ac_try" in
47536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47537 *) ac_try_echo=$ac_try;;
47539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47540 $as_echo "$ac_try_echo") >&5
47541 (eval "$ac_compile") 2>conftest.er1
47543 grep -v '^ *+' conftest.er1 >conftest.err
47545 cat conftest.err >&5
47546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47547 (exit $ac_status); } && {
47548 test -z "$ac_c_werror_flag" ||
47549 test ! -s conftest.err
47550 } && test -s conftest.$ac_objext; then
47551 ac_cv_have_decl_getgrgid=yes
47553 $as_echo "$as_me: failed program was:" >&5
47554 sed 's/^/| /' conftest.$ac_ext >&5
47556 ac_cv_have_decl_getgrgid=no
47559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47561 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
47562 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
47563 if test "x$ac_cv_have_decl_getgrgid" = x""yes; then
47565 cat >>confdefs.h <<_ACEOF
47566 #define HAVE_DECL_GETGRGID 1
47571 cat >>confdefs.h <<_ACEOF
47572 #define HAVE_DECL_GETGRGID 0
47579 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
47580 $as_echo_n "checking whether getpwuid is declared... " >&6; }
47581 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
47582 $as_echo_n "(cached) " >&6
47584 cat >conftest.$ac_ext <<_ACEOF
47587 cat confdefs.h >>conftest.$ac_ext
47588 cat >>conftest.$ac_ext <<_ACEOF
47589 /* end confdefs.h. */
47603 rm -f conftest.$ac_objext
47604 if { (ac_try="$ac_compile"
47605 case "(($ac_try" in
47606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47607 *) ac_try_echo=$ac_try;;
47609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47610 $as_echo "$ac_try_echo") >&5
47611 (eval "$ac_compile") 2>conftest.er1
47613 grep -v '^ *+' conftest.er1 >conftest.err
47615 cat conftest.err >&5
47616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47617 (exit $ac_status); } && {
47618 test -z "$ac_c_werror_flag" ||
47619 test ! -s conftest.err
47620 } && test -s conftest.$ac_objext; then
47621 ac_cv_have_decl_getpwuid=yes
47623 $as_echo "$as_me: failed program was:" >&5
47624 sed 's/^/| /' conftest.$ac_ext >&5
47626 ac_cv_have_decl_getpwuid=no
47629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47631 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
47632 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
47633 if test "x$ac_cv_have_decl_getpwuid" = x""yes; then
47635 cat >>confdefs.h <<_ACEOF
47636 #define HAVE_DECL_GETPWUID 1
47641 cat >>confdefs.h <<_ACEOF
47642 #define HAVE_DECL_GETPWUID 0
47649 { $as_echo "$as_me:$LINENO: checking whether time is declared" >&5
47650 $as_echo_n "checking whether time is declared... " >&6; }
47651 if test "${ac_cv_have_decl_time+set}" = set; then
47652 $as_echo_n "(cached) " >&6
47654 cat >conftest.$ac_ext <<_ACEOF
47657 cat confdefs.h >>conftest.$ac_ext
47658 cat >>conftest.$ac_ext <<_ACEOF
47659 /* end confdefs.h. */
47673 rm -f conftest.$ac_objext
47674 if { (ac_try="$ac_compile"
47675 case "(($ac_try" in
47676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47677 *) ac_try_echo=$ac_try;;
47679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47680 $as_echo "$ac_try_echo") >&5
47681 (eval "$ac_compile") 2>conftest.er1
47683 grep -v '^ *+' conftest.er1 >conftest.err
47685 cat conftest.err >&5
47686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47687 (exit $ac_status); } && {
47688 test -z "$ac_c_werror_flag" ||
47689 test ! -s conftest.err
47690 } && test -s conftest.$ac_objext; then
47691 ac_cv_have_decl_time=yes
47693 $as_echo "$as_me: failed program was:" >&5
47694 sed 's/^/| /' conftest.$ac_ext >&5
47696 ac_cv_have_decl_time=no
47699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47701 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
47702 $as_echo "$ac_cv_have_decl_time" >&6; }
47703 if test "x$ac_cv_have_decl_time" = x""yes; then
47705 cat >>confdefs.h <<_ACEOF
47706 #define HAVE_DECL_TIME 1
47711 cat >>confdefs.h <<_ACEOF
47712 #define HAVE_DECL_TIME 0
47721 for ac_func in waitpid
47723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47725 $as_echo_n "checking for $ac_func... " >&6; }
47726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47727 $as_echo_n "(cached) " >&6
47729 cat >conftest.$ac_ext <<_ACEOF
47732 cat confdefs.h >>conftest.$ac_ext
47733 cat >>conftest.$ac_ext <<_ACEOF
47734 /* end confdefs.h. */
47735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47737 #define $ac_func innocuous_$ac_func
47739 /* System header to define __stub macros and hopefully few prototypes,
47740 which can conflict with char $ac_func (); below.
47741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47742 <limits.h> exists even on freestanding compilers. */
47745 # include <limits.h>
47747 # include <assert.h>
47752 /* Override any GCC internal prototype to avoid an error.
47753 Use char because int might match the return type of a GCC
47754 builtin and then its argument prototype would still apply. */
47759 /* The GNU C library defines this for functions which it implements
47760 to always fail with ENOSYS. Some functions are actually named
47761 something starting with __ and the normal name is an alias. */
47762 #if defined __stub_$ac_func || defined __stub___$ac_func
47769 return $ac_func ();
47774 rm -f conftest.$ac_objext conftest$ac_exeext
47775 if { (ac_try="$ac_link"
47776 case "(($ac_try" in
47777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47778 *) ac_try_echo=$ac_try;;
47780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47781 $as_echo "$ac_try_echo") >&5
47782 (eval "$ac_link") 2>conftest.er1
47784 grep -v '^ *+' conftest.er1 >conftest.err
47786 cat conftest.err >&5
47787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47788 (exit $ac_status); } && {
47789 test -z "$ac_c_werror_flag" ||
47790 test ! -s conftest.err
47791 } && test -s conftest$ac_exeext && {
47792 test "$cross_compiling" = yes ||
47793 $as_test_x conftest$ac_exeext
47795 eval "$as_ac_var=yes"
47797 $as_echo "$as_me: failed program was:" >&5
47798 sed 's/^/| /' conftest.$ac_ext >&5
47800 eval "$as_ac_var=no"
47803 rm -rf conftest.dSYM
47804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47805 conftest$ac_exeext conftest.$ac_ext
47807 ac_res=`eval 'as_val=${'$as_ac_var'}
47808 $as_echo "$as_val"'`
47809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47810 $as_echo "$ac_res" >&6; }
47811 as_val=`eval 'as_val=${'$as_ac_var'}
47812 $as_echo "$as_val"'`
47813 if test "x$as_val" = x""yes; then
47814 cat >>confdefs.h <<_ACEOF
47815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47819 case " $LIBOBJS " in
47820 *" $ac_func.$ac_objext "* ) ;;
47821 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
47830 { $as_echo "$as_me:$LINENO: checking for remote shell" >&5
47831 $as_echo_n "checking for remote shell... " >&6; }
47832 if test "${tar_cv_path_RSH+set}" = set; then
47833 $as_echo_n "(cached) " >&6
47835 if test -n "$RSH"; then
47836 tar_cv_path_RSH=$RSH
47839 for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
47840 /usr/bin/nsh /usr/bin/rcmd
47842 # Prefer a non-symlink rsh to a symlink one, so that binaries built
47843 # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
47844 # will run on AIX 4.3.0, which has only /usr/bin/rsh.
47845 if test -f $ac_file; then
47846 if (test -h $ac_file) 2>/dev/null; then
47847 test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
47849 tar_cv_path_RSH=$ac_file
47856 { $as_echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
47857 $as_echo "$tar_cv_path_RSH" >&6; }
47858 if test $tar_cv_path_RSH = no; then
47860 for ac_header in netdb.h
47862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47865 $as_echo_n "checking for $ac_header... " >&6; }
47866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47867 $as_echo_n "(cached) " >&6
47869 ac_res=`eval 'as_val=${'$as_ac_Header'}
47870 $as_echo "$as_val"'`
47871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47872 $as_echo "$ac_res" >&6; }
47874 # Is the header compilable?
47875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
47876 $as_echo_n "checking $ac_header usability... " >&6; }
47877 cat >conftest.$ac_ext <<_ACEOF
47880 cat confdefs.h >>conftest.$ac_ext
47881 cat >>conftest.$ac_ext <<_ACEOF
47882 /* end confdefs.h. */
47883 $ac_includes_default
47884 #include <$ac_header>
47886 rm -f conftest.$ac_objext
47887 if { (ac_try="$ac_compile"
47888 case "(($ac_try" in
47889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47890 *) ac_try_echo=$ac_try;;
47892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47893 $as_echo "$ac_try_echo") >&5
47894 (eval "$ac_compile") 2>conftest.er1
47896 grep -v '^ *+' conftest.er1 >conftest.err
47898 cat conftest.err >&5
47899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47900 (exit $ac_status); } && {
47901 test -z "$ac_c_werror_flag" ||
47902 test ! -s conftest.err
47903 } && test -s conftest.$ac_objext; then
47904 ac_header_compiler=yes
47906 $as_echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47909 ac_header_compiler=no
47912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47914 $as_echo "$ac_header_compiler" >&6; }
47916 # Is the header present?
47917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
47918 $as_echo_n "checking $ac_header presence... " >&6; }
47919 cat >conftest.$ac_ext <<_ACEOF
47922 cat confdefs.h >>conftest.$ac_ext
47923 cat >>conftest.$ac_ext <<_ACEOF
47924 /* end confdefs.h. */
47925 #include <$ac_header>
47927 if { (ac_try="$ac_cpp conftest.$ac_ext"
47928 case "(($ac_try" in
47929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47930 *) ac_try_echo=$ac_try;;
47932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47933 $as_echo "$ac_try_echo") >&5
47934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47936 grep -v '^ *+' conftest.er1 >conftest.err
47938 cat conftest.err >&5
47939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47940 (exit $ac_status); } >/dev/null && {
47941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47942 test ! -s conftest.err
47944 ac_header_preproc=yes
47946 $as_echo "$as_me: failed program was:" >&5
47947 sed 's/^/| /' conftest.$ac_ext >&5
47949 ac_header_preproc=no
47952 rm -f conftest.err conftest.$ac_ext
47953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47954 $as_echo "$ac_header_preproc" >&6; }
47956 # So? What about this header?
47957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47963 ac_header_preproc=yes
47966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47969 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47973 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47979 ## ------------------------------ ##
47980 ## Report this to bug-tar@gnu.org ##
47981 ## ------------------------------ ##
47983 ) | sed "s/^/$as_me: WARNING: /" >&2
47986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47987 $as_echo_n "checking for $ac_header... " >&6; }
47988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47989 $as_echo_n "(cached) " >&6
47991 eval "$as_ac_Header=\$ac_header_preproc"
47993 ac_res=`eval 'as_val=${'$as_ac_Header'}
47994 $as_echo "$as_val"'`
47995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47996 $as_echo "$ac_res" >&6; }
47999 as_val=`eval 'as_val=${'$as_ac_Header'}
48000 $as_echo "$as_val"'`
48001 if test "x$as_val" = x""yes; then
48002 cat >>confdefs.h <<_ACEOF
48003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48012 cat >>confdefs.h <<_ACEOF
48013 #define REMOTE_SHELL "$tar_cv_path_RSH"
48022 # Check whether --with-compress was given.
48023 if test "${with_compress+set}" = set; then
48024 withval=$with_compress; tar_cv_compressor_compress=${withval}
48026 tar_cv_compressor_compress=compress
48030 cat >>confdefs.h <<_ACEOF
48031 #define COMPRESS_PROGRAM "$tar_cv_compressor_compress"
48038 # Check whether --with-gzip was given.
48039 if test "${with_gzip+set}" = set; then
48040 withval=$with_gzip; tar_cv_compressor_gzip=${withval}
48042 tar_cv_compressor_gzip=gzip
48046 cat >>confdefs.h <<_ACEOF
48047 #define GZIP_PROGRAM "$tar_cv_compressor_gzip"
48054 # Check whether --with-bzip2 was given.
48055 if test "${with_bzip2+set}" = set; then
48056 withval=$with_bzip2; tar_cv_compressor_bzip2=${withval}
48058 tar_cv_compressor_bzip2=bzip2
48062 cat >>confdefs.h <<_ACEOF
48063 #define BZIP2_PROGRAM "$tar_cv_compressor_bzip2"
48070 # Check whether --with-lzip was given.
48071 if test "${with_lzip+set}" = set; then
48072 withval=$with_lzip; tar_cv_compressor_lzip=${withval}
48074 tar_cv_compressor_lzip=lzip
48078 cat >>confdefs.h <<_ACEOF
48079 #define LZIP_PROGRAM "$tar_cv_compressor_lzip"
48086 # Check whether --with-lzma was given.
48087 if test "${with_lzma+set}" = set; then
48088 withval=$with_lzma; tar_cv_compressor_lzma=${withval}
48090 tar_cv_compressor_lzma=lzma
48094 cat >>confdefs.h <<_ACEOF
48095 #define LZMA_PROGRAM "$tar_cv_compressor_lzma"
48102 # Check whether --with-lzop was given.
48103 if test "${with_lzop+set}" = set; then
48104 withval=$with_lzop; tar_cv_compressor_lzop=${withval}
48106 tar_cv_compressor_lzop=lzop
48110 cat >>confdefs.h <<_ACEOF
48111 #define LZOP_PROGRAM "$tar_cv_compressor_lzop"
48118 # Check whether --with-xz was given.
48119 if test "${with_xz+set}" = set; then
48120 withval=$with_xz; tar_cv_compressor_xz=${withval}
48122 tar_cv_compressor_xz=xz
48126 cat >>confdefs.h <<_ACEOF
48127 #define XZ_PROGRAM "$tar_cv_compressor_xz"
48131 { $as_echo "$as_me:$LINENO: checking for default archive format" >&5
48132 $as_echo_n "checking for default archive format... " >&6; }
48136 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
48137 DEFAULT_ARCHIVE_FORMAT="GNU"
48139 case $DEFAULT_ARCHIVE_FORMAT in
48140 V7|OLDGNU|USTAR|POSIX|GNU) ;;
48141 *) { { $as_echo "$as_me:$LINENO: error: Invalid format name" >&5
48142 $as_echo "$as_me: error: Invalid format name" >&2;}
48143 { (exit 1); exit 1; }; };;
48146 cat >>confdefs.h <<_ACEOF
48147 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
48150 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
48151 $as_echo "$DEFAULT_ARCHIVE_FORMAT" >&6; }
48153 { $as_echo "$as_me:$LINENO: checking for default archive" >&5
48154 $as_echo_n "checking for default archive... " >&6; }
48157 if test -z "$DEFAULT_ARCHIVE"; then
48160 if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
48161 { $as_echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
48162 $as_echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
48164 # FIXME: Look for DEFTAPE in <sys/mtio.h>.
48165 # FIXME: Let DEVICE_PREFIX be configured from the environment.
48166 # FIXME: Rearrange, here.
48167 case $DEFAULT_ARCHIVE in
48170 cat >>confdefs.h <<\_ACEOF
48171 #define DENSITY_LETTER 1
48174 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
48177 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
48183 case "$device_prefix" in
48186 cat >>confdefs.h <<_ACEOF
48187 #define DEVICE_PREFIX "$device_prefix"
48194 cat >>confdefs.h <<_ACEOF
48195 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
48198 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
48199 $as_echo "$DEFAULT_ARCHIVE" >&6; }
48202 { $as_echo "$as_me:$LINENO: checking for default blocking" >&5
48203 $as_echo_n "checking for default blocking... " >&6; }
48204 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
48206 cat >>confdefs.h <<_ACEOF
48207 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
48210 { $as_echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
48211 $as_echo "$DEFAULT_BLOCKING" >&6; }
48213 { $as_echo "$as_me:$LINENO: checking for default quoting style" >&5
48214 $as_echo_n "checking for default quoting style... " >&6; }
48217 DEFAULT_QUOTING_STYLE="escape"
48220 case $DEFAULT_QUOTING_STYLE in
48221 literal|shell|shell-always|c|escape|locale|clocale) ;;
48222 *) { { $as_echo "$as_me:$LINENO: error: Invalid quoting style" >&5
48223 $as_echo "$as_me: error: Invalid quoting style" >&2;}
48224 { (exit 1); exit 1; }; };;
48226 { $as_echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
48227 $as_echo "$DEFAULT_QUOTING_STYLE" >&6; }
48228 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
48230 cat >>confdefs.h <<_ACEOF
48231 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
48237 if test "X$prefix" = "XNONE"; then
48238 acl_final_prefix="$ac_default_prefix"
48240 acl_final_prefix="$prefix"
48242 if test "X$exec_prefix" = "XNONE"; then
48243 acl_final_exec_prefix='${prefix}'
48245 acl_final_exec_prefix="$exec_prefix"
48247 acl_save_prefix="$prefix"
48248 prefix="$acl_final_prefix"
48249 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
48250 prefix="$acl_save_prefix"
48253 # Check whether --with-gnu-ld was given.
48254 if test "${with_gnu_ld+set}" = set; then
48255 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
48260 # Prepare PATH_SEPARATOR.
48261 # The user is always right.
48262 if test "${PATH_SEPARATOR+set}" != set; then
48263 echo "#! /bin/sh" >conf$$.sh
48264 echo "exit 0" >>conf$$.sh
48266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48274 if test "$GCC" = yes; then
48275 # Check if gcc -print-prog-name=ld gives a path.
48276 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
48277 $as_echo_n "checking for ld used by GCC... " >&6; }
48280 # gcc leaves a trailing carriage return which upsets mingw
48281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
48283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
48286 # Accept absolute paths.
48287 [\\/]* | [A-Za-z]:[\\/]*)
48288 re_direlt='/[^/][^/]*/\.\./'
48289 # Canonicalize the path of ld
48290 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
48291 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
48292 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
48294 test -z "$LD" && LD="$ac_prog"
48297 # If it fails, then pretend we aren't using GCC.
48301 # If it is relative, then search for the first ld in PATH.
48302 with_gnu_ld=unknown
48305 elif test "$with_gnu_ld" = yes; then
48306 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
48307 $as_echo_n "checking for GNU ld... " >&6; }
48309 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
48310 $as_echo_n "checking for non-GNU ld... " >&6; }
48312 if test "${acl_cv_path_LD+set}" = set; then
48313 $as_echo_n "(cached) " >&6
48315 if test -z "$LD"; then
48316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
48317 for ac_dir in $PATH; do
48318 test -z "$ac_dir" && ac_dir=.
48319 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
48320 acl_cv_path_LD="$ac_dir/$ac_prog"
48321 # Check to see if the program is GNU ld. I'd rather use --version,
48322 # but apparently some GNU ld's only accept -v.
48323 # Break only if it was the GNU/non-GNU ld that we prefer.
48324 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
48325 *GNU* | *'with BFD'*)
48326 test "$with_gnu_ld" != no && break ;;
48328 test "$with_gnu_ld" != yes && break ;;
48334 acl_cv_path_LD="$LD" # Let the user override the test with a path.
48338 LD="$acl_cv_path_LD"
48339 if test -n "$LD"; then
48340 { $as_echo "$as_me:$LINENO: result: $LD" >&5
48341 $as_echo "$LD" >&6; }
48343 { $as_echo "$as_me:$LINENO: result: no" >&5
48344 $as_echo "no" >&6; }
48346 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
48347 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
48348 { (exit 1); exit 1; }; }
48349 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
48350 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
48351 if test "${acl_cv_prog_gnu_ld+set}" = set; then
48352 $as_echo_n "(cached) " >&6
48354 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
48355 case `$LD -v 2>&1 </dev/null` in
48356 *GNU* | *'with BFD'*)
48357 acl_cv_prog_gnu_ld=yes ;;
48359 acl_cv_prog_gnu_ld=no ;;
48362 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
48363 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
48364 with_gnu_ld=$acl_cv_prog_gnu_ld
48369 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
48370 $as_echo_n "checking for shared library run path origin... " >&6; }
48371 if test "${acl_cv_rpath+set}" = set; then
48372 $as_echo_n "(cached) " >&6
48375 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
48376 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
48378 rm -f ./conftest.sh
48382 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
48383 $as_echo "$acl_cv_rpath" >&6; }
48385 acl_libext="$acl_cv_libext"
48386 acl_shlibext="$acl_cv_shlibext"
48387 acl_libname_spec="$acl_cv_libname_spec"
48388 acl_library_names_spec="$acl_cv_library_names_spec"
48389 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
48390 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
48391 acl_hardcode_direct="$acl_cv_hardcode_direct"
48392 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
48393 # Check whether --enable-rpath was given.
48394 if test "${enable_rpath+set}" = set; then
48395 enableval=$enable_rpath; :
48407 { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
48408 $as_echo_n "checking for 64-bit host... " >&6; }
48409 if test "${gl_cv_solaris_64bit+set}" = set; then
48410 $as_echo_n "(cached) " >&6
48412 cat >conftest.$ac_ext <<_ACEOF
48415 cat confdefs.h >>conftest.$ac_ext
48416 cat >>conftest.$ac_ext <<_ACEOF
48417 /* end confdefs.h. */
48424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48425 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
48426 gl_cv_solaris_64bit=yes
48428 gl_cv_solaris_64bit=no
48434 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
48435 $as_echo "$gl_cv_solaris_64bit" >&6; }
48436 if test $gl_cv_solaris_64bit = yes; then
48437 acl_libdirstem=lib/64
48438 case "$host_cpu" in
48439 sparc*) acl_libdirstem2=lib/sparcv9 ;;
48440 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
48445 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
48446 if test -n "$searchpath"; then
48447 acl_save_IFS="${IFS= }"; IFS=":"
48448 for searchdir in $searchpath; do
48449 if test -d "$searchdir"; then
48450 case "$searchdir" in
48451 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
48453 # Better ignore directories of this form. They are misleading.
48455 *) searchdir=`cd "$searchdir" && pwd`
48456 case "$searchdir" in
48457 */lib64 ) acl_libdirstem=lib64 ;;
48462 IFS="$acl_save_IFS"
48466 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
48481 acl_save_prefix="$prefix"
48482 prefix="$acl_final_prefix"
48483 acl_save_exec_prefix="$exec_prefix"
48484 exec_prefix="$acl_final_exec_prefix"
48486 eval additional_includedir=\"$includedir\"
48487 eval additional_libdir=\"$libdir\"
48489 exec_prefix="$acl_save_exec_prefix"
48490 prefix="$acl_save_prefix"
48493 # Check whether --with-libiconv-prefix was given.
48494 if test "${with_libiconv_prefix+set}" = set; then
48495 withval=$with_libiconv_prefix;
48496 if test "X$withval" = "Xno"; then
48499 if test "X$withval" = "X"; then
48501 acl_save_prefix="$prefix"
48502 prefix="$acl_final_prefix"
48503 acl_save_exec_prefix="$exec_prefix"
48504 exec_prefix="$acl_final_exec_prefix"
48506 eval additional_includedir=\"$includedir\"
48507 eval additional_libdir=\"$libdir\"
48509 exec_prefix="$acl_save_exec_prefix"
48510 prefix="$acl_save_prefix"
48513 additional_includedir="$withval/include"
48514 additional_libdir="$withval/$acl_libdirstem"
48515 if test "$acl_libdirstem2" != "$acl_libdirstem" \
48516 && ! test -d "$withval/$acl_libdirstem"; then
48517 additional_libdir="$withval/$acl_libdirstem2"
48531 names_already_handled=
48532 names_next_round='iconv '
48533 while test -n "$names_next_round"; do
48534 names_this_round="$names_next_round"
48536 for name in $names_this_round; do
48538 for n in $names_already_handled; do
48539 if test "$n" = "$name"; then
48540 already_handled=yes
48544 if test -z "$already_handled"; then
48545 names_already_handled="$names_already_handled $name"
48546 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
48547 eval value=\"\$HAVE_LIB$uppername\"
48548 if test -n "$value"; then
48549 if test "$value" = yes; then
48550 eval value=\"\$LIB$uppername\"
48551 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
48552 eval value=\"\$LTLIB$uppername\"
48553 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
48562 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
48563 if test -n "$acl_shlibext"; then
48564 shrext=".$acl_shlibext" # typically: shrext=.so
48568 if test $use_additional = yes; then
48569 dir="$additional_libdir"
48570 if test -n "$acl_shlibext"; then
48571 if test -f "$dir/$libname$shrext"; then
48573 found_so="$dir/$libname$shrext"
48575 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48576 ver=`(cd "$dir" && \
48577 for f in "$libname$shrext".*; do echo "$f"; done \
48578 | sed -e "s,^$libname$shrext\\\\.,," \
48579 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48580 | sed 1q ) 2>/dev/null`
48581 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48583 found_so="$dir/$libname$shrext.$ver"
48586 eval library_names=\"$acl_library_names_spec\"
48587 for f in $library_names; do
48588 if test -f "$dir/$f"; then
48597 if test "X$found_dir" = "X"; then
48598 if test -f "$dir/$libname.$acl_libext"; then
48600 found_a="$dir/$libname.$acl_libext"
48603 if test "X$found_dir" != "X"; then
48604 if test -f "$dir/$libname.la"; then
48605 found_la="$dir/$libname.la"
48609 if test "X$found_dir" = "X"; then
48610 for x in $LDFLAGS $LTLIBICONV; do
48612 acl_save_prefix="$prefix"
48613 prefix="$acl_final_prefix"
48614 acl_save_exec_prefix="$exec_prefix"
48615 exec_prefix="$acl_final_exec_prefix"
48617 exec_prefix="$acl_save_exec_prefix"
48618 prefix="$acl_save_prefix"
48622 dir=`echo "X$x" | sed -e 's/^X-L//'`
48623 if test -n "$acl_shlibext"; then
48624 if test -f "$dir/$libname$shrext"; then
48626 found_so="$dir/$libname$shrext"
48628 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48629 ver=`(cd "$dir" && \
48630 for f in "$libname$shrext".*; do echo "$f"; done \
48631 | sed -e "s,^$libname$shrext\\\\.,," \
48632 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48633 | sed 1q ) 2>/dev/null`
48634 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48636 found_so="$dir/$libname$shrext.$ver"
48639 eval library_names=\"$acl_library_names_spec\"
48640 for f in $library_names; do
48641 if test -f "$dir/$f"; then
48650 if test "X$found_dir" = "X"; then
48651 if test -f "$dir/$libname.$acl_libext"; then
48653 found_a="$dir/$libname.$acl_libext"
48656 if test "X$found_dir" != "X"; then
48657 if test -f "$dir/$libname.la"; then
48658 found_la="$dir/$libname.la"
48663 if test "X$found_dir" != "X"; then
48668 if test "X$found_dir" != "X"; then
48669 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
48670 if test "X$found_so" != "X"; then
48671 if test "$enable_rpath" = no \
48672 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
48673 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
48674 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48677 for x in $ltrpathdirs; do
48678 if test "X$x" = "X$found_dir"; then
48683 if test -z "$haveit"; then
48684 ltrpathdirs="$ltrpathdirs $found_dir"
48686 if test "$acl_hardcode_direct" = yes; then
48687 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48689 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
48690 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48692 for x in $rpathdirs; do
48693 if test "X$x" = "X$found_dir"; then
48698 if test -z "$haveit"; then
48699 rpathdirs="$rpathdirs $found_dir"
48703 for x in $LDFLAGS $LIBICONV; do
48705 acl_save_prefix="$prefix"
48706 prefix="$acl_final_prefix"
48707 acl_save_exec_prefix="$exec_prefix"
48708 exec_prefix="$acl_final_exec_prefix"
48710 exec_prefix="$acl_save_exec_prefix"
48711 prefix="$acl_save_prefix"
48713 if test "X$x" = "X-L$found_dir"; then
48718 if test -z "$haveit"; then
48719 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
48721 if test "$acl_hardcode_minus_L" != no; then
48722 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48724 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
48730 if test "X$found_a" != "X"; then
48731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
48733 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
48736 additional_includedir=
48737 case "$found_dir" in
48738 */$acl_libdirstem | */$acl_libdirstem/)
48739 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
48740 if test "$name" = 'iconv'; then
48741 LIBICONV_PREFIX="$basedir"
48743 additional_includedir="$basedir/include"
48745 */$acl_libdirstem2 | */$acl_libdirstem2/)
48746 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
48747 if test "$name" = 'iconv'; then
48748 LIBICONV_PREFIX="$basedir"
48750 additional_includedir="$basedir/include"
48753 if test "X$additional_includedir" != "X"; then
48754 if test "X$additional_includedir" != "X/usr/include"; then
48756 if test "X$additional_includedir" = "X/usr/local/include"; then
48757 if test -n "$GCC"; then
48759 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48763 if test -z "$haveit"; then
48764 for x in $CPPFLAGS $INCICONV; do
48766 acl_save_prefix="$prefix"
48767 prefix="$acl_final_prefix"
48768 acl_save_exec_prefix="$exec_prefix"
48769 exec_prefix="$acl_final_exec_prefix"
48771 exec_prefix="$acl_save_exec_prefix"
48772 prefix="$acl_save_prefix"
48774 if test "X$x" = "X-I$additional_includedir"; then
48779 if test -z "$haveit"; then
48780 if test -d "$additional_includedir"; then
48781 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
48787 if test -n "$found_la"; then
48788 save_libdir="$libdir"
48789 case "$found_la" in
48790 */* | *\\*) . "$found_la" ;;
48791 *) . "./$found_la" ;;
48793 libdir="$save_libdir"
48794 for dep in $dependency_libs; do
48797 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
48798 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
48799 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
48801 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
48802 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
48803 if test -n "$GCC"; then
48805 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48809 if test -z "$haveit"; then
48811 for x in $LDFLAGS $LIBICONV; do
48813 acl_save_prefix="$prefix"
48814 prefix="$acl_final_prefix"
48815 acl_save_exec_prefix="$exec_prefix"
48816 exec_prefix="$acl_final_exec_prefix"
48818 exec_prefix="$acl_save_exec_prefix"
48819 prefix="$acl_save_prefix"
48821 if test "X$x" = "X-L$additional_libdir"; then
48826 if test -z "$haveit"; then
48827 if test -d "$additional_libdir"; then
48828 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
48832 for x in $LDFLAGS $LTLIBICONV; do
48834 acl_save_prefix="$prefix"
48835 prefix="$acl_final_prefix"
48836 acl_save_exec_prefix="$exec_prefix"
48837 exec_prefix="$acl_final_exec_prefix"
48839 exec_prefix="$acl_save_exec_prefix"
48840 prefix="$acl_save_prefix"
48842 if test "X$x" = "X-L$additional_libdir"; then
48847 if test -z "$haveit"; then
48848 if test -d "$additional_libdir"; then
48849 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
48856 dir=`echo "X$dep" | sed -e 's/^X-R//'`
48857 if test "$enable_rpath" != no; then
48859 for x in $rpathdirs; do
48860 if test "X$x" = "X$dir"; then
48865 if test -z "$haveit"; then
48866 rpathdirs="$rpathdirs $dir"
48869 for x in $ltrpathdirs; do
48870 if test "X$x" = "X$dir"; then
48875 if test -z "$haveit"; then
48876 ltrpathdirs="$ltrpathdirs $dir"
48881 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
48884 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
48887 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
48888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
48894 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
48895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
48901 if test "X$rpathdirs" != "X"; then
48902 if test -n "$acl_hardcode_libdir_separator"; then
48904 for found_dir in $rpathdirs; do
48905 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
48907 acl_save_libdir="$libdir"
48909 eval flag=\"$acl_hardcode_libdir_flag_spec\"
48910 libdir="$acl_save_libdir"
48911 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
48913 for found_dir in $rpathdirs; do
48914 acl_save_libdir="$libdir"
48915 libdir="$found_dir"
48916 eval flag=\"$acl_hardcode_libdir_flag_spec\"
48917 libdir="$acl_save_libdir"
48918 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
48922 if test "X$ltrpathdirs" != "X"; then
48923 for found_dir in $ltrpathdirs; do
48924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
48939 am_save_CPPFLAGS="$CPPFLAGS"
48941 for element in $INCICONV; do
48943 for x in $CPPFLAGS; do
48945 acl_save_prefix="$prefix"
48946 prefix="$acl_final_prefix"
48947 acl_save_exec_prefix="$exec_prefix"
48948 exec_prefix="$acl_final_exec_prefix"
48950 exec_prefix="$acl_save_exec_prefix"
48951 prefix="$acl_save_prefix"
48953 if test "X$x" = "X$element"; then
48958 if test -z "$haveit"; then
48959 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
48964 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
48965 $as_echo_n "checking for iconv... " >&6; }
48966 if test "${am_cv_func_iconv+set}" = set; then
48967 $as_echo_n "(cached) " >&6
48970 am_cv_func_iconv="no, consider installing GNU libiconv"
48972 cat >conftest.$ac_ext <<_ACEOF
48975 cat confdefs.h >>conftest.$ac_ext
48976 cat >>conftest.$ac_ext <<_ACEOF
48977 /* end confdefs.h. */
48978 #include <stdlib.h>
48983 iconv_t cd = iconv_open("","");
48984 iconv(cd,NULL,NULL,NULL,NULL);
48990 rm -f conftest.$ac_objext conftest$ac_exeext
48991 if { (ac_try="$ac_link"
48992 case "(($ac_try" in
48993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48994 *) ac_try_echo=$ac_try;;
48996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48997 $as_echo "$ac_try_echo") >&5
48998 (eval "$ac_link") 2>conftest.er1
49000 grep -v '^ *+' conftest.er1 >conftest.err
49002 cat conftest.err >&5
49003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49004 (exit $ac_status); } && {
49005 test -z "$ac_c_werror_flag" ||
49006 test ! -s conftest.err
49007 } && test -s conftest$ac_exeext && {
49008 test "$cross_compiling" = yes ||
49009 $as_test_x conftest$ac_exeext
49011 am_cv_func_iconv=yes
49013 $as_echo "$as_me: failed program was:" >&5
49014 sed 's/^/| /' conftest.$ac_ext >&5
49019 rm -rf conftest.dSYM
49020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49021 conftest$ac_exeext conftest.$ac_ext
49022 if test "$am_cv_func_iconv" != yes; then
49023 am_save_LIBS="$LIBS"
49024 LIBS="$LIBS $LIBICONV"
49025 cat >conftest.$ac_ext <<_ACEOF
49028 cat confdefs.h >>conftest.$ac_ext
49029 cat >>conftest.$ac_ext <<_ACEOF
49030 /* end confdefs.h. */
49031 #include <stdlib.h>
49036 iconv_t cd = iconv_open("","");
49037 iconv(cd,NULL,NULL,NULL,NULL);
49043 rm -f conftest.$ac_objext conftest$ac_exeext
49044 if { (ac_try="$ac_link"
49045 case "(($ac_try" in
49046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49047 *) ac_try_echo=$ac_try;;
49049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49050 $as_echo "$ac_try_echo") >&5
49051 (eval "$ac_link") 2>conftest.er1
49053 grep -v '^ *+' conftest.er1 >conftest.err
49055 cat conftest.err >&5
49056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49057 (exit $ac_status); } && {
49058 test -z "$ac_c_werror_flag" ||
49059 test ! -s conftest.err
49060 } && test -s conftest$ac_exeext && {
49061 test "$cross_compiling" = yes ||
49062 $as_test_x conftest$ac_exeext
49064 am_cv_lib_iconv=yes
49065 am_cv_func_iconv=yes
49067 $as_echo "$as_me: failed program was:" >&5
49068 sed 's/^/| /' conftest.$ac_ext >&5
49073 rm -rf conftest.dSYM
49074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49075 conftest$ac_exeext conftest.$ac_ext
49076 LIBS="$am_save_LIBS"
49080 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
49081 $as_echo "$am_cv_func_iconv" >&6; }
49082 if test "$am_cv_func_iconv" = yes; then
49083 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
49084 $as_echo_n "checking for working iconv... " >&6; }
49085 if test "${am_cv_func_iconv_works+set}" = set; then
49086 $as_echo_n "(cached) " >&6
49089 am_save_LIBS="$LIBS"
49090 if test $am_cv_lib_iconv = yes; then
49091 LIBS="$LIBS $LIBICONV"
49093 if test "$cross_compiling" = yes; then
49095 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
49096 *) am_cv_func_iconv_works="guessing yes" ;;
49099 cat >conftest.$ac_ext <<_ACEOF
49102 cat confdefs.h >>conftest.$ac_ext
49103 cat >>conftest.$ac_ext <<_ACEOF
49104 /* end confdefs.h. */
49107 #include <string.h>
49110 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
49113 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
49114 if (cd_utf8_to_88591 != (iconv_t)(-1))
49116 static const char input[] = "\342\202\254"; /* EURO SIGN */
49118 const char *inptr = input;
49119 size_t inbytesleft = strlen (input);
49120 char *outptr = buf;
49121 size_t outbytesleft = sizeof (buf);
49122 size_t res = iconv (cd_utf8_to_88591,
49123 (char **) &inptr, &inbytesleft,
49124 &outptr, &outbytesleft);
49129 /* Test against Solaris 10 bug: Failures are not distinguishable from
49130 successful returns. */
49132 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
49133 if (cd_ascii_to_88591 != (iconv_t)(-1))
49135 static const char input[] = "\263";
49137 const char *inptr = input;
49138 size_t inbytesleft = strlen (input);
49139 char *outptr = buf;
49140 size_t outbytesleft = sizeof (buf);
49141 size_t res = iconv (cd_ascii_to_88591,
49142 (char **) &inptr, &inbytesleft,
49143 &outptr, &outbytesleft);
49148 #if 0 /* This bug could be worked around by the caller. */
49149 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
49151 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
49152 if (cd_88591_to_utf8 != (iconv_t)(-1))
49154 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
49156 const char *inptr = input;
49157 size_t inbytesleft = strlen (input);
49158 char *outptr = buf;
49159 size_t outbytesleft = sizeof (buf);
49160 size_t res = iconv (cd_88591_to_utf8,
49161 (char **) &inptr, &inbytesleft,
49162 &outptr, &outbytesleft);
49168 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
49170 if (/* Try standardized names. */
49171 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
49172 /* Try IRIX, OSF/1 names. */
49173 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
49174 /* Try AIX names. */
49175 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
49176 /* Try HP-UX names. */
49177 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
49182 rm -f conftest$ac_exeext
49183 if { (ac_try="$ac_link"
49184 case "(($ac_try" in
49185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49186 *) ac_try_echo=$ac_try;;
49188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49189 $as_echo "$ac_try_echo") >&5
49190 (eval "$ac_link") 2>&5
49192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49194 { (case "(($ac_try" in
49195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49196 *) ac_try_echo=$ac_try;;
49198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49199 $as_echo "$ac_try_echo") >&5
49200 (eval "$ac_try") 2>&5
49202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49203 (exit $ac_status); }; }; then
49204 am_cv_func_iconv_works=yes
49206 $as_echo "$as_me: program exited with status $ac_status" >&5
49207 $as_echo "$as_me: failed program was:" >&5
49208 sed 's/^/| /' conftest.$ac_ext >&5
49210 ( exit $ac_status )
49211 am_cv_func_iconv_works=no
49213 rm -rf conftest.dSYM
49214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49218 LIBS="$am_save_LIBS"
49221 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
49222 $as_echo "$am_cv_func_iconv_works" >&6; }
49223 case "$am_cv_func_iconv_works" in
49224 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
49225 *) am_func_iconv=yes ;;
49228 am_func_iconv=no am_cv_lib_iconv=no
49230 if test "$am_func_iconv" = yes; then
49232 cat >>confdefs.h <<\_ACEOF
49233 #define HAVE_ICONV 1
49237 if test "$am_cv_lib_iconv" = yes; then
49238 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
49239 $as_echo_n "checking how to link with libiconv... " >&6; }
49240 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
49241 $as_echo "$LIBICONV" >&6; }
49243 CPPFLAGS="$am_save_CPPFLAGS"
49250 if test "$am_cv_func_iconv" = yes; then
49251 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
49252 $as_echo_n "checking for iconv declaration... " >&6; }
49253 if test "${am_cv_proto_iconv+set}" = set; then
49254 $as_echo_n "(cached) " >&6
49257 cat >conftest.$ac_ext <<_ACEOF
49260 cat confdefs.h >>conftest.$ac_ext
49261 cat >>conftest.$ac_ext <<_ACEOF
49262 /* end confdefs.h. */
49264 #include <stdlib.h>
49270 #if defined(__STDC__) || defined(__cplusplus)
49271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
49284 rm -f conftest.$ac_objext
49285 if { (ac_try="$ac_compile"
49286 case "(($ac_try" in
49287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49288 *) ac_try_echo=$ac_try;;
49290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49291 $as_echo "$ac_try_echo") >&5
49292 (eval "$ac_compile") 2>conftest.er1
49294 grep -v '^ *+' conftest.er1 >conftest.err
49296 cat conftest.err >&5
49297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49298 (exit $ac_status); } && {
49299 test -z "$ac_c_werror_flag" ||
49300 test ! -s conftest.err
49301 } && test -s conftest.$ac_objext; then
49302 am_cv_proto_iconv_arg1=""
49304 $as_echo "$as_me: failed program was:" >&5
49305 sed 's/^/| /' conftest.$ac_ext >&5
49307 am_cv_proto_iconv_arg1="const"
49310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49311 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);"
49314 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
49315 { $as_echo "$as_me:$LINENO: result:
49316 $am_cv_proto_iconv" >&5
49318 $am_cv_proto_iconv" >&6; }
49320 cat >>confdefs.h <<_ACEOF
49321 #define ICONV_CONST $am_cv_proto_iconv_arg1
49327 for ac_header in iconv.h
49329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49332 $as_echo_n "checking for $ac_header... " >&6; }
49333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49334 $as_echo_n "(cached) " >&6
49336 ac_res=`eval 'as_val=${'$as_ac_Header'}
49337 $as_echo "$as_val"'`
49338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49339 $as_echo "$ac_res" >&6; }
49341 # Is the header compilable?
49342 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49343 $as_echo_n "checking $ac_header usability... " >&6; }
49344 cat >conftest.$ac_ext <<_ACEOF
49347 cat confdefs.h >>conftest.$ac_ext
49348 cat >>conftest.$ac_ext <<_ACEOF
49349 /* end confdefs.h. */
49350 $ac_includes_default
49351 #include <$ac_header>
49353 rm -f conftest.$ac_objext
49354 if { (ac_try="$ac_compile"
49355 case "(($ac_try" in
49356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49357 *) ac_try_echo=$ac_try;;
49359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49360 $as_echo "$ac_try_echo") >&5
49361 (eval "$ac_compile") 2>conftest.er1
49363 grep -v '^ *+' conftest.er1 >conftest.err
49365 cat conftest.err >&5
49366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49367 (exit $ac_status); } && {
49368 test -z "$ac_c_werror_flag" ||
49369 test ! -s conftest.err
49370 } && test -s conftest.$ac_objext; then
49371 ac_header_compiler=yes
49373 $as_echo "$as_me: failed program was:" >&5
49374 sed 's/^/| /' conftest.$ac_ext >&5
49376 ac_header_compiler=no
49379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49380 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49381 $as_echo "$ac_header_compiler" >&6; }
49383 # Is the header present?
49384 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49385 $as_echo_n "checking $ac_header presence... " >&6; }
49386 cat >conftest.$ac_ext <<_ACEOF
49389 cat confdefs.h >>conftest.$ac_ext
49390 cat >>conftest.$ac_ext <<_ACEOF
49391 /* end confdefs.h. */
49392 #include <$ac_header>
49394 if { (ac_try="$ac_cpp conftest.$ac_ext"
49395 case "(($ac_try" in
49396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49397 *) ac_try_echo=$ac_try;;
49399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49400 $as_echo "$ac_try_echo") >&5
49401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49403 grep -v '^ *+' conftest.er1 >conftest.err
49405 cat conftest.err >&5
49406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49407 (exit $ac_status); } >/dev/null && {
49408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49409 test ! -s conftest.err
49411 ac_header_preproc=yes
49413 $as_echo "$as_me: failed program was:" >&5
49414 sed 's/^/| /' conftest.$ac_ext >&5
49416 ac_header_preproc=no
49419 rm -f conftest.err conftest.$ac_ext
49420 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49421 $as_echo "$ac_header_preproc" >&6; }
49423 # So? What about this header?
49424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49427 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49430 ac_header_preproc=yes
49433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49434 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49436 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49438 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
49440 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
49441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49442 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49444 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49446 ## ------------------------------ ##
49447 ## Report this to bug-tar@gnu.org ##
49448 ## ------------------------------ ##
49450 ) | sed "s/^/$as_me: WARNING: /" >&2
49453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49454 $as_echo_n "checking for $ac_header... " >&6; }
49455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49456 $as_echo_n "(cached) " >&6
49458 eval "$as_ac_Header=\$ac_header_preproc"
49460 ac_res=`eval 'as_val=${'$as_ac_Header'}
49461 $as_echo "$as_val"'`
49462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49463 $as_echo "$ac_res" >&6; }
49466 as_val=`eval 'as_val=${'$as_ac_Header'}
49467 $as_echo "$as_val"'`
49468 if test "x$as_val" = x""yes; then
49469 cat >>confdefs.h <<_ACEOF
49470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49477 { $as_echo "$as_me:$LINENO: checking for iconv_t" >&5
49478 $as_echo_n "checking for iconv_t... " >&6; }
49479 if test "${ac_cv_type_iconv_t+set}" = set; then
49480 $as_echo_n "(cached) " >&6
49482 ac_cv_type_iconv_t=no
49483 cat >conftest.$ac_ext <<_ACEOF
49486 cat confdefs.h >>conftest.$ac_ext
49487 cat >>conftest.$ac_ext <<_ACEOF
49488 /* end confdefs.h. */
49490 #ifdef HAVE_ICONV_H
49491 # include <iconv.h>
49498 if (sizeof (iconv_t))
49504 rm -f conftest.$ac_objext
49505 if { (ac_try="$ac_compile"
49506 case "(($ac_try" in
49507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49508 *) ac_try_echo=$ac_try;;
49510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49511 $as_echo "$ac_try_echo") >&5
49512 (eval "$ac_compile") 2>conftest.er1
49514 grep -v '^ *+' conftest.er1 >conftest.err
49516 cat conftest.err >&5
49517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49518 (exit $ac_status); } && {
49519 test -z "$ac_c_werror_flag" ||
49520 test ! -s conftest.err
49521 } && test -s conftest.$ac_objext; then
49522 cat >conftest.$ac_ext <<_ACEOF
49525 cat confdefs.h >>conftest.$ac_ext
49526 cat >>conftest.$ac_ext <<_ACEOF
49527 /* end confdefs.h. */
49529 #ifdef HAVE_ICONV_H
49530 # include <iconv.h>
49537 if (sizeof ((iconv_t)))
49543 rm -f conftest.$ac_objext
49544 if { (ac_try="$ac_compile"
49545 case "(($ac_try" in
49546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49547 *) ac_try_echo=$ac_try;;
49549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49550 $as_echo "$ac_try_echo") >&5
49551 (eval "$ac_compile") 2>conftest.er1
49553 grep -v '^ *+' conftest.er1 >conftest.err
49555 cat conftest.err >&5
49556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557 (exit $ac_status); } && {
49558 test -z "$ac_c_werror_flag" ||
49559 test ! -s conftest.err
49560 } && test -s conftest.$ac_objext; then
49563 $as_echo "$as_me: failed program was:" >&5
49564 sed 's/^/| /' conftest.$ac_ext >&5
49566 ac_cv_type_iconv_t=yes
49569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49571 $as_echo "$as_me: failed program was:" >&5
49572 sed 's/^/| /' conftest.$ac_ext >&5
49577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49579 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
49580 $as_echo "$ac_cv_type_iconv_t" >&6; }
49581 if test "x$ac_cv_type_iconv_t" = x""yes; then
49585 cat >>confdefs.h <<\_ACEOF
49586 #define iconv_t int
49594 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
49595 $as_echo_n "checking whether NLS is requested... " >&6; }
49596 # Check whether --enable-nls was given.
49597 if test "${enable_nls+set}" = set; then
49598 enableval=$enable_nls; USE_NLS=$enableval
49603 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
49604 $as_echo "$USE_NLS" >&6; }
49609 GETTEXT_MACRO_VERSION=0.17
49614 # Prepare PATH_SEPARATOR.
49615 # The user is always right.
49616 if test "${PATH_SEPARATOR+set}" != set; then
49617 echo "#! /bin/sh" >conf$$.sh
49618 echo "exit 0" >>conf$$.sh
49620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49628 # Find out how to test for executable files. Don't use a zero-byte file,
49629 # as systems may use methods other than mode bits to determine executability.
49630 cat >conf$$.file <<_ASEOF
49634 chmod +x conf$$.file
49635 if test -x conf$$.file >/dev/null 2>&1; then
49636 ac_executable_p="test -x"
49638 ac_executable_p="test -f"
49642 # Extract the first word of "msgfmt", so it can be a program name with args.
49643 set dummy msgfmt; ac_word=$2
49644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49645 $as_echo_n "checking for $ac_word... " >&6; }
49646 if test "${ac_cv_path_MSGFMT+set}" = set; then
49647 $as_echo_n "(cached) " >&6
49651 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
49654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49655 for ac_dir in $PATH; do
49657 test -z "$ac_dir" && ac_dir=.
49658 for ac_exec_ext in '' $ac_executable_extensions; do
49659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49660 echo "$as_me: trying $ac_dir/$ac_word..." >&5
49661 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
49662 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
49663 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
49670 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
49674 MSGFMT="$ac_cv_path_MSGFMT"
49675 if test "$MSGFMT" != ":"; then
49676 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
49677 $as_echo "$MSGFMT" >&6; }
49679 { $as_echo "$as_me:$LINENO: result: no" >&5
49680 $as_echo "no" >&6; }
49683 # Extract the first word of "gmsgfmt", so it can be a program name with args.
49684 set dummy gmsgfmt; ac_word=$2
49685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49686 $as_echo_n "checking for $ac_word... " >&6; }
49687 if test "${ac_cv_path_GMSGFMT+set}" = set; then
49688 $as_echo_n "(cached) " >&6
49692 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
49695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49696 for as_dir in $PATH
49699 test -z "$as_dir" && as_dir=.
49700 for ac_exec_ext in '' $ac_executable_extensions; do
49701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49702 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
49703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49710 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
49714 GMSGFMT=$ac_cv_path_GMSGFMT
49715 if test -n "$GMSGFMT"; then
49716 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
49717 $as_echo "$GMSGFMT" >&6; }
49719 { $as_echo "$as_me:$LINENO: result: no" >&5
49720 $as_echo "no" >&6; }
49725 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
49726 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
49727 *) MSGFMT_015=$MSGFMT ;;
49730 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
49731 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
49732 *) GMSGFMT_015=$GMSGFMT ;;
49737 # Prepare PATH_SEPARATOR.
49738 # The user is always right.
49739 if test "${PATH_SEPARATOR+set}" != set; then
49740 echo "#! /bin/sh" >conf$$.sh
49741 echo "exit 0" >>conf$$.sh
49743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49751 # Find out how to test for executable files. Don't use a zero-byte file,
49752 # as systems may use methods other than mode bits to determine executability.
49753 cat >conf$$.file <<_ASEOF
49757 chmod +x conf$$.file
49758 if test -x conf$$.file >/dev/null 2>&1; then
49759 ac_executable_p="test -x"
49761 ac_executable_p="test -f"
49765 # Extract the first word of "xgettext", so it can be a program name with args.
49766 set dummy xgettext; ac_word=$2
49767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49768 $as_echo_n "checking for $ac_word... " >&6; }
49769 if test "${ac_cv_path_XGETTEXT+set}" = set; then
49770 $as_echo_n "(cached) " >&6
49772 case "$XGETTEXT" in
49774 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
49777 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49778 for ac_dir in $PATH; do
49780 test -z "$ac_dir" && ac_dir=.
49781 for ac_exec_ext in '' $ac_executable_extensions; do
49782 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49783 echo "$as_me: trying $ac_dir/$ac_word..." >&5
49784 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
49785 (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
49786 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
49793 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
49797 XGETTEXT="$ac_cv_path_XGETTEXT"
49798 if test "$XGETTEXT" != ":"; then
49799 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
49800 $as_echo "$XGETTEXT" >&6; }
49802 { $as_echo "$as_me:$LINENO: result: no" >&5
49803 $as_echo "no" >&6; }
49808 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
49809 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
49810 *) XGETTEXT_015=$XGETTEXT ;;
49815 # Prepare PATH_SEPARATOR.
49816 # The user is always right.
49817 if test "${PATH_SEPARATOR+set}" != set; then
49818 echo "#! /bin/sh" >conf$$.sh
49819 echo "exit 0" >>conf$$.sh
49821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49829 # Find out how to test for executable files. Don't use a zero-byte file,
49830 # as systems may use methods other than mode bits to determine executability.
49831 cat >conf$$.file <<_ASEOF
49835 chmod +x conf$$.file
49836 if test -x conf$$.file >/dev/null 2>&1; then
49837 ac_executable_p="test -x"
49839 ac_executable_p="test -f"
49843 # Extract the first word of "msgmerge", so it can be a program name with args.
49844 set dummy msgmerge; ac_word=$2
49845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49846 $as_echo_n "checking for $ac_word... " >&6; }
49847 if test "${ac_cv_path_MSGMERGE+set}" = set; then
49848 $as_echo_n "(cached) " >&6
49850 case "$MSGMERGE" in
49852 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
49855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49856 for ac_dir in $PATH; do
49858 test -z "$ac_dir" && ac_dir=.
49859 for ac_exec_ext in '' $ac_executable_extensions; do
49860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49861 echo "$as_me: trying $ac_dir/$ac_word..." >&5
49862 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
49863 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
49870 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
49874 MSGMERGE="$ac_cv_path_MSGMERGE"
49875 if test "$MSGMERGE" != ":"; then
49876 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
49877 $as_echo "$MSGMERGE" >&6; }
49879 { $as_echo "$as_me:$LINENO: result: no" >&5
49880 $as_echo "no" >&6; }
49884 test -n "$localedir" || localedir='${datadir}/locale'
49887 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
49890 ac_config_commands="$ac_config_commands po-directories"
49916 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
49917 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
49918 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
49919 $as_echo_n "(cached) " >&6
49921 gt_save_LIBS="$LIBS"
49922 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
49923 cat >conftest.$ac_ext <<_ACEOF
49926 cat confdefs.h >>conftest.$ac_ext
49927 cat >>conftest.$ac_ext <<_ACEOF
49928 /* end confdefs.h. */
49929 #include <CoreFoundation/CFPreferences.h>
49933 CFPreferencesCopyAppValue(NULL, NULL)
49938 rm -f conftest.$ac_objext conftest$ac_exeext
49939 if { (ac_try="$ac_link"
49940 case "(($ac_try" in
49941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49942 *) ac_try_echo=$ac_try;;
49944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49945 $as_echo "$ac_try_echo") >&5
49946 (eval "$ac_link") 2>conftest.er1
49948 grep -v '^ *+' conftest.er1 >conftest.err
49950 cat conftest.err >&5
49951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49952 (exit $ac_status); } && {
49953 test -z "$ac_c_werror_flag" ||
49954 test ! -s conftest.err
49955 } && test -s conftest$ac_exeext && {
49956 test "$cross_compiling" = yes ||
49957 $as_test_x conftest$ac_exeext
49959 gt_cv_func_CFPreferencesCopyAppValue=yes
49961 $as_echo "$as_me: failed program was:" >&5
49962 sed 's/^/| /' conftest.$ac_ext >&5
49964 gt_cv_func_CFPreferencesCopyAppValue=no
49967 rm -rf conftest.dSYM
49968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49969 conftest$ac_exeext conftest.$ac_ext
49970 LIBS="$gt_save_LIBS"
49972 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
49973 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
49974 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
49976 cat >>confdefs.h <<\_ACEOF
49977 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
49981 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
49982 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
49983 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
49984 $as_echo_n "(cached) " >&6
49986 gt_save_LIBS="$LIBS"
49987 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
49988 cat >conftest.$ac_ext <<_ACEOF
49991 cat confdefs.h >>conftest.$ac_ext
49992 cat >>conftest.$ac_ext <<_ACEOF
49993 /* end confdefs.h. */
49994 #include <CoreFoundation/CFLocale.h>
49998 CFLocaleCopyCurrent();
50003 rm -f conftest.$ac_objext conftest$ac_exeext
50004 if { (ac_try="$ac_link"
50005 case "(($ac_try" in
50006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50007 *) ac_try_echo=$ac_try;;
50009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50010 $as_echo "$ac_try_echo") >&5
50011 (eval "$ac_link") 2>conftest.er1
50013 grep -v '^ *+' conftest.er1 >conftest.err
50015 cat conftest.err >&5
50016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50017 (exit $ac_status); } && {
50018 test -z "$ac_c_werror_flag" ||
50019 test ! -s conftest.err
50020 } && test -s conftest$ac_exeext && {
50021 test "$cross_compiling" = yes ||
50022 $as_test_x conftest$ac_exeext
50024 gt_cv_func_CFLocaleCopyCurrent=yes
50026 $as_echo "$as_me: failed program was:" >&5
50027 sed 's/^/| /' conftest.$ac_ext >&5
50029 gt_cv_func_CFLocaleCopyCurrent=no
50032 rm -rf conftest.dSYM
50033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50034 conftest$ac_exeext conftest.$ac_ext
50035 LIBS="$gt_save_LIBS"
50037 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
50038 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
50039 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50041 cat >>confdefs.h <<\_ACEOF
50042 #define HAVE_CFLOCALECOPYCURRENT 1
50047 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50048 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
50060 case " $gt_needs " in
50061 *" need-formatstring-macros "*) gt_api_version=3 ;;
50062 *" need-ngettext "*) gt_api_version=2 ;;
50063 *) gt_api_version=1 ;;
50065 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
50066 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
50068 if test "$USE_NLS" = "yes"; then
50069 gt_use_preinstalled_gnugettext=no
50072 if test $gt_api_version -ge 3; then
50073 gt_revision_test_code='
50074 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
50075 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
50077 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
50080 gt_revision_test_code=
50082 if test $gt_api_version -ge 2; then
50083 gt_expression_test_code=' + * ngettext ("", "", 0)'
50085 gt_expression_test_code=
50088 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
50089 $as_echo_n "checking for GNU gettext in libc... " >&6; }
50090 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
50091 $as_echo_n "(cached) " >&6
50093 cat >conftest.$ac_ext <<_ACEOF
50096 cat confdefs.h >>conftest.$ac_ext
50097 cat >>conftest.$ac_ext <<_ACEOF
50098 /* end confdefs.h. */
50099 #include <libintl.h>
50100 $gt_revision_test_code
50101 extern int _nl_msg_cat_cntr;
50102 extern int *_nl_domain_bindings;
50106 bindtextdomain ("", "");
50107 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
50112 rm -f conftest.$ac_objext conftest$ac_exeext
50113 if { (ac_try="$ac_link"
50114 case "(($ac_try" in
50115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50116 *) ac_try_echo=$ac_try;;
50118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50119 $as_echo "$ac_try_echo") >&5
50120 (eval "$ac_link") 2>conftest.er1
50122 grep -v '^ *+' conftest.er1 >conftest.err
50124 cat conftest.err >&5
50125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50126 (exit $ac_status); } && {
50127 test -z "$ac_c_werror_flag" ||
50128 test ! -s conftest.err
50129 } && test -s conftest$ac_exeext && {
50130 test "$cross_compiling" = yes ||
50131 $as_test_x conftest$ac_exeext
50133 eval "$gt_func_gnugettext_libc=yes"
50135 $as_echo "$as_me: failed program was:" >&5
50136 sed 's/^/| /' conftest.$ac_ext >&5
50138 eval "$gt_func_gnugettext_libc=no"
50141 rm -rf conftest.dSYM
50142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50143 conftest$ac_exeext conftest.$ac_ext
50145 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
50146 $as_echo "$as_val"'`
50147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50148 $as_echo "$ac_res" >&6; }
50150 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
50156 am_save_CPPFLAGS="$CPPFLAGS"
50158 for element in $INCICONV; do
50160 for x in $CPPFLAGS; do
50162 acl_save_prefix="$prefix"
50163 prefix="$acl_final_prefix"
50164 acl_save_exec_prefix="$exec_prefix"
50165 exec_prefix="$acl_final_exec_prefix"
50167 exec_prefix="$acl_save_exec_prefix"
50168 prefix="$acl_save_prefix"
50170 if test "X$x" = "X$element"; then
50175 if test -z "$haveit"; then
50176 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
50181 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
50182 $as_echo_n "checking for iconv... " >&6; }
50183 if test "${am_cv_func_iconv+set}" = set; then
50184 $as_echo_n "(cached) " >&6
50187 am_cv_func_iconv="no, consider installing GNU libiconv"
50189 cat >conftest.$ac_ext <<_ACEOF
50192 cat confdefs.h >>conftest.$ac_ext
50193 cat >>conftest.$ac_ext <<_ACEOF
50194 /* end confdefs.h. */
50195 #include <stdlib.h>
50200 iconv_t cd = iconv_open("","");
50201 iconv(cd,NULL,NULL,NULL,NULL);
50207 rm -f conftest.$ac_objext conftest$ac_exeext
50208 if { (ac_try="$ac_link"
50209 case "(($ac_try" in
50210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50211 *) ac_try_echo=$ac_try;;
50213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50214 $as_echo "$ac_try_echo") >&5
50215 (eval "$ac_link") 2>conftest.er1
50217 grep -v '^ *+' conftest.er1 >conftest.err
50219 cat conftest.err >&5
50220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50221 (exit $ac_status); } && {
50222 test -z "$ac_c_werror_flag" ||
50223 test ! -s conftest.err
50224 } && test -s conftest$ac_exeext && {
50225 test "$cross_compiling" = yes ||
50226 $as_test_x conftest$ac_exeext
50228 am_cv_func_iconv=yes
50230 $as_echo "$as_me: failed program was:" >&5
50231 sed 's/^/| /' conftest.$ac_ext >&5
50236 rm -rf conftest.dSYM
50237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50238 conftest$ac_exeext conftest.$ac_ext
50239 if test "$am_cv_func_iconv" != yes; then
50240 am_save_LIBS="$LIBS"
50241 LIBS="$LIBS $LIBICONV"
50242 cat >conftest.$ac_ext <<_ACEOF
50245 cat confdefs.h >>conftest.$ac_ext
50246 cat >>conftest.$ac_ext <<_ACEOF
50247 /* end confdefs.h. */
50248 #include <stdlib.h>
50253 iconv_t cd = iconv_open("","");
50254 iconv(cd,NULL,NULL,NULL,NULL);
50260 rm -f conftest.$ac_objext conftest$ac_exeext
50261 if { (ac_try="$ac_link"
50262 case "(($ac_try" in
50263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50264 *) ac_try_echo=$ac_try;;
50266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50267 $as_echo "$ac_try_echo") >&5
50268 (eval "$ac_link") 2>conftest.er1
50270 grep -v '^ *+' conftest.er1 >conftest.err
50272 cat conftest.err >&5
50273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50274 (exit $ac_status); } && {
50275 test -z "$ac_c_werror_flag" ||
50276 test ! -s conftest.err
50277 } && test -s conftest$ac_exeext && {
50278 test "$cross_compiling" = yes ||
50279 $as_test_x conftest$ac_exeext
50281 am_cv_lib_iconv=yes
50282 am_cv_func_iconv=yes
50284 $as_echo "$as_me: failed program was:" >&5
50285 sed 's/^/| /' conftest.$ac_ext >&5
50290 rm -rf conftest.dSYM
50291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50292 conftest$ac_exeext conftest.$ac_ext
50293 LIBS="$am_save_LIBS"
50297 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
50298 $as_echo "$am_cv_func_iconv" >&6; }
50299 if test "$am_cv_func_iconv" = yes; then
50300 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
50301 $as_echo_n "checking for working iconv... " >&6; }
50302 if test "${am_cv_func_iconv_works+set}" = set; then
50303 $as_echo_n "(cached) " >&6
50306 am_save_LIBS="$LIBS"
50307 if test $am_cv_lib_iconv = yes; then
50308 LIBS="$LIBS $LIBICONV"
50310 if test "$cross_compiling" = yes; then
50312 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
50313 *) am_cv_func_iconv_works="guessing yes" ;;
50316 cat >conftest.$ac_ext <<_ACEOF
50319 cat confdefs.h >>conftest.$ac_ext
50320 cat >>conftest.$ac_ext <<_ACEOF
50321 /* end confdefs.h. */
50324 #include <string.h>
50327 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
50330 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
50331 if (cd_utf8_to_88591 != (iconv_t)(-1))
50333 static const char input[] = "\342\202\254"; /* EURO SIGN */
50335 const char *inptr = input;
50336 size_t inbytesleft = strlen (input);
50337 char *outptr = buf;
50338 size_t outbytesleft = sizeof (buf);
50339 size_t res = iconv (cd_utf8_to_88591,
50340 (char **) &inptr, &inbytesleft,
50341 &outptr, &outbytesleft);
50346 /* Test against Solaris 10 bug: Failures are not distinguishable from
50347 successful returns. */
50349 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
50350 if (cd_ascii_to_88591 != (iconv_t)(-1))
50352 static const char input[] = "\263";
50354 const char *inptr = input;
50355 size_t inbytesleft = strlen (input);
50356 char *outptr = buf;
50357 size_t outbytesleft = sizeof (buf);
50358 size_t res = iconv (cd_ascii_to_88591,
50359 (char **) &inptr, &inbytesleft,
50360 &outptr, &outbytesleft);
50365 #if 0 /* This bug could be worked around by the caller. */
50366 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
50368 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
50369 if (cd_88591_to_utf8 != (iconv_t)(-1))
50371 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
50373 const char *inptr = input;
50374 size_t inbytesleft = strlen (input);
50375 char *outptr = buf;
50376 size_t outbytesleft = sizeof (buf);
50377 size_t res = iconv (cd_88591_to_utf8,
50378 (char **) &inptr, &inbytesleft,
50379 &outptr, &outbytesleft);
50385 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
50387 if (/* Try standardized names. */
50388 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
50389 /* Try IRIX, OSF/1 names. */
50390 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
50391 /* Try AIX names. */
50392 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
50393 /* Try HP-UX names. */
50394 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
50399 rm -f conftest$ac_exeext
50400 if { (ac_try="$ac_link"
50401 case "(($ac_try" in
50402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50403 *) ac_try_echo=$ac_try;;
50405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50406 $as_echo "$ac_try_echo") >&5
50407 (eval "$ac_link") 2>&5
50409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50411 { (case "(($ac_try" in
50412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50413 *) ac_try_echo=$ac_try;;
50415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50416 $as_echo "$ac_try_echo") >&5
50417 (eval "$ac_try") 2>&5
50419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50420 (exit $ac_status); }; }; then
50421 am_cv_func_iconv_works=yes
50423 $as_echo "$as_me: program exited with status $ac_status" >&5
50424 $as_echo "$as_me: failed program was:" >&5
50425 sed 's/^/| /' conftest.$ac_ext >&5
50427 ( exit $ac_status )
50428 am_cv_func_iconv_works=no
50430 rm -rf conftest.dSYM
50431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50435 LIBS="$am_save_LIBS"
50438 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
50439 $as_echo "$am_cv_func_iconv_works" >&6; }
50440 case "$am_cv_func_iconv_works" in
50441 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
50442 *) am_func_iconv=yes ;;
50445 am_func_iconv=no am_cv_lib_iconv=no
50447 if test "$am_func_iconv" = yes; then
50449 cat >>confdefs.h <<\_ACEOF
50450 #define HAVE_ICONV 1
50454 if test "$am_cv_lib_iconv" = yes; then
50455 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
50456 $as_echo_n "checking how to link with libiconv... " >&6; }
50457 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
50458 $as_echo "$LIBICONV" >&6; }
50460 CPPFLAGS="$am_save_CPPFLAGS"
50477 acl_save_prefix="$prefix"
50478 prefix="$acl_final_prefix"
50479 acl_save_exec_prefix="$exec_prefix"
50480 exec_prefix="$acl_final_exec_prefix"
50482 eval additional_includedir=\"$includedir\"
50483 eval additional_libdir=\"$libdir\"
50485 exec_prefix="$acl_save_exec_prefix"
50486 prefix="$acl_save_prefix"
50489 # Check whether --with-libintl-prefix was given.
50490 if test "${with_libintl_prefix+set}" = set; then
50491 withval=$with_libintl_prefix;
50492 if test "X$withval" = "Xno"; then
50495 if test "X$withval" = "X"; then
50497 acl_save_prefix="$prefix"
50498 prefix="$acl_final_prefix"
50499 acl_save_exec_prefix="$exec_prefix"
50500 exec_prefix="$acl_final_exec_prefix"
50502 eval additional_includedir=\"$includedir\"
50503 eval additional_libdir=\"$libdir\"
50505 exec_prefix="$acl_save_exec_prefix"
50506 prefix="$acl_save_prefix"
50509 additional_includedir="$withval/include"
50510 additional_libdir="$withval/$acl_libdirstem"
50511 if test "$acl_libdirstem2" != "$acl_libdirstem" \
50512 && ! test -d "$withval/$acl_libdirstem"; then
50513 additional_libdir="$withval/$acl_libdirstem2"
50527 names_already_handled=
50528 names_next_round='intl '
50529 while test -n "$names_next_round"; do
50530 names_this_round="$names_next_round"
50532 for name in $names_this_round; do
50534 for n in $names_already_handled; do
50535 if test "$n" = "$name"; then
50536 already_handled=yes
50540 if test -z "$already_handled"; then
50541 names_already_handled="$names_already_handled $name"
50542 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50543 eval value=\"\$HAVE_LIB$uppername\"
50544 if test -n "$value"; then
50545 if test "$value" = yes; then
50546 eval value=\"\$LIB$uppername\"
50547 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
50548 eval value=\"\$LTLIB$uppername\"
50549 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
50558 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
50559 if test -n "$acl_shlibext"; then
50560 shrext=".$acl_shlibext" # typically: shrext=.so
50564 if test $use_additional = yes; then
50565 dir="$additional_libdir"
50566 if test -n "$acl_shlibext"; then
50567 if test -f "$dir/$libname$shrext"; then
50569 found_so="$dir/$libname$shrext"
50571 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
50572 ver=`(cd "$dir" && \
50573 for f in "$libname$shrext".*; do echo "$f"; done \
50574 | sed -e "s,^$libname$shrext\\\\.,," \
50575 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
50576 | sed 1q ) 2>/dev/null`
50577 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
50579 found_so="$dir/$libname$shrext.$ver"
50582 eval library_names=\"$acl_library_names_spec\"
50583 for f in $library_names; do
50584 if test -f "$dir/$f"; then
50593 if test "X$found_dir" = "X"; then
50594 if test -f "$dir/$libname.$acl_libext"; then
50596 found_a="$dir/$libname.$acl_libext"
50599 if test "X$found_dir" != "X"; then
50600 if test -f "$dir/$libname.la"; then
50601 found_la="$dir/$libname.la"
50605 if test "X$found_dir" = "X"; then
50606 for x in $LDFLAGS $LTLIBINTL; do
50608 acl_save_prefix="$prefix"
50609 prefix="$acl_final_prefix"
50610 acl_save_exec_prefix="$exec_prefix"
50611 exec_prefix="$acl_final_exec_prefix"
50613 exec_prefix="$acl_save_exec_prefix"
50614 prefix="$acl_save_prefix"
50618 dir=`echo "X$x" | sed -e 's/^X-L//'`
50619 if test -n "$acl_shlibext"; then
50620 if test -f "$dir/$libname$shrext"; then
50622 found_so="$dir/$libname$shrext"
50624 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
50625 ver=`(cd "$dir" && \
50626 for f in "$libname$shrext".*; do echo "$f"; done \
50627 | sed -e "s,^$libname$shrext\\\\.,," \
50628 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
50629 | sed 1q ) 2>/dev/null`
50630 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
50632 found_so="$dir/$libname$shrext.$ver"
50635 eval library_names=\"$acl_library_names_spec\"
50636 for f in $library_names; do
50637 if test -f "$dir/$f"; then
50646 if test "X$found_dir" = "X"; then
50647 if test -f "$dir/$libname.$acl_libext"; then
50649 found_a="$dir/$libname.$acl_libext"
50652 if test "X$found_dir" != "X"; then
50653 if test -f "$dir/$libname.la"; then
50654 found_la="$dir/$libname.la"
50659 if test "X$found_dir" != "X"; then
50664 if test "X$found_dir" != "X"; then
50665 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
50666 if test "X$found_so" != "X"; then
50667 if test "$enable_rpath" = no \
50668 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
50669 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
50670 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50673 for x in $ltrpathdirs; do
50674 if test "X$x" = "X$found_dir"; then
50679 if test -z "$haveit"; then
50680 ltrpathdirs="$ltrpathdirs $found_dir"
50682 if test "$acl_hardcode_direct" = yes; then
50683 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50685 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
50686 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50688 for x in $rpathdirs; do
50689 if test "X$x" = "X$found_dir"; then
50694 if test -z "$haveit"; then
50695 rpathdirs="$rpathdirs $found_dir"
50699 for x in $LDFLAGS $LIBINTL; do
50701 acl_save_prefix="$prefix"
50702 prefix="$acl_final_prefix"
50703 acl_save_exec_prefix="$exec_prefix"
50704 exec_prefix="$acl_final_exec_prefix"
50706 exec_prefix="$acl_save_exec_prefix"
50707 prefix="$acl_save_prefix"
50709 if test "X$x" = "X-L$found_dir"; then
50714 if test -z "$haveit"; then
50715 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
50717 if test "$acl_hardcode_minus_L" != no; then
50718 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50720 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50726 if test "X$found_a" != "X"; then
50727 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
50729 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
50732 additional_includedir=
50733 case "$found_dir" in
50734 */$acl_libdirstem | */$acl_libdirstem/)
50735 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
50736 if test "$name" = 'intl'; then
50737 LIBINTL_PREFIX="$basedir"
50739 additional_includedir="$basedir/include"
50741 */$acl_libdirstem2 | */$acl_libdirstem2/)
50742 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
50743 if test "$name" = 'intl'; then
50744 LIBINTL_PREFIX="$basedir"
50746 additional_includedir="$basedir/include"
50749 if test "X$additional_includedir" != "X"; then
50750 if test "X$additional_includedir" != "X/usr/include"; then
50752 if test "X$additional_includedir" = "X/usr/local/include"; then
50753 if test -n "$GCC"; then
50755 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50759 if test -z "$haveit"; then
50760 for x in $CPPFLAGS $INCINTL; do
50762 acl_save_prefix="$prefix"
50763 prefix="$acl_final_prefix"
50764 acl_save_exec_prefix="$exec_prefix"
50765 exec_prefix="$acl_final_exec_prefix"
50767 exec_prefix="$acl_save_exec_prefix"
50768 prefix="$acl_save_prefix"
50770 if test "X$x" = "X-I$additional_includedir"; then
50775 if test -z "$haveit"; then
50776 if test -d "$additional_includedir"; then
50777 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
50783 if test -n "$found_la"; then
50784 save_libdir="$libdir"
50785 case "$found_la" in
50786 */* | *\\*) . "$found_la" ;;
50787 *) . "./$found_la" ;;
50789 libdir="$save_libdir"
50790 for dep in $dependency_libs; do
50793 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
50794 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
50795 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
50797 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
50798 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
50799 if test -n "$GCC"; then
50801 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50805 if test -z "$haveit"; then
50807 for x in $LDFLAGS $LIBINTL; do
50809 acl_save_prefix="$prefix"
50810 prefix="$acl_final_prefix"
50811 acl_save_exec_prefix="$exec_prefix"
50812 exec_prefix="$acl_final_exec_prefix"
50814 exec_prefix="$acl_save_exec_prefix"
50815 prefix="$acl_save_prefix"
50817 if test "X$x" = "X-L$additional_libdir"; then
50822 if test -z "$haveit"; then
50823 if test -d "$additional_libdir"; then
50824 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
50828 for x in $LDFLAGS $LTLIBINTL; do
50830 acl_save_prefix="$prefix"
50831 prefix="$acl_final_prefix"
50832 acl_save_exec_prefix="$exec_prefix"
50833 exec_prefix="$acl_final_exec_prefix"
50835 exec_prefix="$acl_save_exec_prefix"
50836 prefix="$acl_save_prefix"
50838 if test "X$x" = "X-L$additional_libdir"; then
50843 if test -z "$haveit"; then
50844 if test -d "$additional_libdir"; then
50845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
50852 dir=`echo "X$dep" | sed -e 's/^X-R//'`
50853 if test "$enable_rpath" != no; then
50855 for x in $rpathdirs; do
50856 if test "X$x" = "X$dir"; then
50861 if test -z "$haveit"; then
50862 rpathdirs="$rpathdirs $dir"
50865 for x in $ltrpathdirs; do
50866 if test "X$x" = "X$dir"; then
50871 if test -z "$haveit"; then
50872 ltrpathdirs="$ltrpathdirs $dir"
50877 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
50880 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
50883 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
50884 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
50890 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
50897 if test "X$rpathdirs" != "X"; then
50898 if test -n "$acl_hardcode_libdir_separator"; then
50900 for found_dir in $rpathdirs; do
50901 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
50903 acl_save_libdir="$libdir"
50905 eval flag=\"$acl_hardcode_libdir_flag_spec\"
50906 libdir="$acl_save_libdir"
50907 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50909 for found_dir in $rpathdirs; do
50910 acl_save_libdir="$libdir"
50911 libdir="$found_dir"
50912 eval flag=\"$acl_hardcode_libdir_flag_spec\"
50913 libdir="$acl_save_libdir"
50914 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50918 if test "X$ltrpathdirs" != "X"; then
50919 for found_dir in $ltrpathdirs; do
50920 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
50929 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
50930 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
50931 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
50932 $as_echo_n "(cached) " >&6
50934 gt_save_CPPFLAGS="$CPPFLAGS"
50935 CPPFLAGS="$CPPFLAGS $INCINTL"
50936 gt_save_LIBS="$LIBS"
50937 LIBS="$LIBS $LIBINTL"
50938 cat >conftest.$ac_ext <<_ACEOF
50941 cat confdefs.h >>conftest.$ac_ext
50942 cat >>conftest.$ac_ext <<_ACEOF
50943 /* end confdefs.h. */
50944 #include <libintl.h>
50945 $gt_revision_test_code
50946 extern int _nl_msg_cat_cntr;
50951 const char *_nl_expand_alias (const char *);
50955 bindtextdomain ("", "");
50956 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
50961 rm -f conftest.$ac_objext conftest$ac_exeext
50962 if { (ac_try="$ac_link"
50963 case "(($ac_try" in
50964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50965 *) ac_try_echo=$ac_try;;
50967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50968 $as_echo "$ac_try_echo") >&5
50969 (eval "$ac_link") 2>conftest.er1
50971 grep -v '^ *+' conftest.er1 >conftest.err
50973 cat conftest.err >&5
50974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50975 (exit $ac_status); } && {
50976 test -z "$ac_c_werror_flag" ||
50977 test ! -s conftest.err
50978 } && test -s conftest$ac_exeext && {
50979 test "$cross_compiling" = yes ||
50980 $as_test_x conftest$ac_exeext
50982 eval "$gt_func_gnugettext_libintl=yes"
50984 $as_echo "$as_me: failed program was:" >&5
50985 sed 's/^/| /' conftest.$ac_ext >&5
50987 eval "$gt_func_gnugettext_libintl=no"
50990 rm -rf conftest.dSYM
50991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50992 conftest$ac_exeext conftest.$ac_ext
50993 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
50994 LIBS="$LIBS $LIBICONV"
50995 cat >conftest.$ac_ext <<_ACEOF
50998 cat confdefs.h >>conftest.$ac_ext
50999 cat >>conftest.$ac_ext <<_ACEOF
51000 /* end confdefs.h. */
51001 #include <libintl.h>
51002 $gt_revision_test_code
51003 extern int _nl_msg_cat_cntr;
51008 const char *_nl_expand_alias (const char *);
51012 bindtextdomain ("", "");
51013 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
51018 rm -f conftest.$ac_objext conftest$ac_exeext
51019 if { (ac_try="$ac_link"
51020 case "(($ac_try" in
51021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51022 *) ac_try_echo=$ac_try;;
51024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51025 $as_echo "$ac_try_echo") >&5
51026 (eval "$ac_link") 2>conftest.er1
51028 grep -v '^ *+' conftest.er1 >conftest.err
51030 cat conftest.err >&5
51031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51032 (exit $ac_status); } && {
51033 test -z "$ac_c_werror_flag" ||
51034 test ! -s conftest.err
51035 } && test -s conftest$ac_exeext && {
51036 test "$cross_compiling" = yes ||
51037 $as_test_x conftest$ac_exeext
51039 LIBINTL="$LIBINTL $LIBICONV"
51040 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
51041 eval "$gt_func_gnugettext_libintl=yes"
51044 $as_echo "$as_me: failed program was:" >&5
51045 sed 's/^/| /' conftest.$ac_ext >&5
51050 rm -rf conftest.dSYM
51051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51052 conftest$ac_exeext conftest.$ac_ext
51054 CPPFLAGS="$gt_save_CPPFLAGS"
51055 LIBS="$gt_save_LIBS"
51057 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
51058 $as_echo "$as_val"'`
51059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51060 $as_echo "$ac_res" >&6; }
51063 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
51064 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
51065 && test "$PACKAGE" != gettext-runtime \
51066 && test "$PACKAGE" != gettext-tools; }; then
51067 gt_use_preinstalled_gnugettext=yes
51076 if test -n "$INTL_MACOSX_LIBS"; then
51077 if test "$gt_use_preinstalled_gnugettext" = "yes" \
51078 || test "$nls_cv_use_gnu_gettext" = "yes"; then
51079 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
51080 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
51084 if test "$gt_use_preinstalled_gnugettext" = "yes" \
51085 || test "$nls_cv_use_gnu_gettext" = "yes"; then
51087 cat >>confdefs.h <<\_ACEOF
51088 #define ENABLE_NLS 1
51096 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
51097 $as_echo_n "checking whether to use NLS... " >&6; }
51098 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
51099 $as_echo "$USE_NLS" >&6; }
51100 if test "$USE_NLS" = "yes"; then
51101 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
51102 $as_echo_n "checking where the gettext function comes from... " >&6; }
51103 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
51104 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
51105 gt_source="external libintl"
51110 gt_source="included intl directory"
51112 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
51113 $as_echo "$gt_source" >&6; }
51116 if test "$USE_NLS" = "yes"; then
51118 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
51119 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
51120 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
51121 $as_echo_n "checking how to link with libintl... " >&6; }
51122 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
51123 $as_echo "$LIBINTL" >&6; }
51125 for element in $INCINTL; do
51127 for x in $CPPFLAGS; do
51129 acl_save_prefix="$prefix"
51130 prefix="$acl_final_prefix"
51131 acl_save_exec_prefix="$exec_prefix"
51132 exec_prefix="$acl_final_exec_prefix"
51134 exec_prefix="$acl_save_exec_prefix"
51135 prefix="$acl_save_prefix"
51137 if test "X$x" = "X$element"; then
51142 if test -z "$haveit"; then
51143 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
51150 cat >>confdefs.h <<\_ACEOF
51151 #define HAVE_GETTEXT 1
51155 cat >>confdefs.h <<\_ACEOF
51156 #define HAVE_DCGETTEXT 1
51166 INTLLIBS="$LIBINTL"
51175 # Initialize the test suite.
51176 ac_config_commands="$ac_config_commands tests/atconfig"
51179 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
51180 # FIXME: tests/preset?
51182 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
51187 # Check whether --enable-backup-scripts was given.
51188 if test "${enable_backup_scripts+set}" = set; then
51189 enableval=$enable_backup_scripts; case $enableval in
51190 yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
51191 BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
51198 if date +%Y-%m-%d 2>/dev/null >&2; then
51199 BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
51201 BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
51204 ac_config_files="$ac_config_files Makefile doc/Makefile gnu/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
51206 cat >confcache <<\_ACEOF
51207 # This file is a shell script that caches the results of configure
51208 # tests run on this system so they can be shared between configure
51209 # scripts and configure runs, see configure's option --config-cache.
51210 # It is not useful on other systems. If it contains results you don't
51211 # want to keep, you may remove or edit it.
51213 # config.status only pays attention to the cache file if you give it
51214 # the --recheck option to rerun configure.
51216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51218 # following values.
51222 # The following way of writing the cache mishandles newlines in values,
51223 # but we know of no workaround that is simple, portable, and efficient.
51224 # So, we kill variables containing newlines.
51225 # Ultrix sh set writes to stderr and can't be redirected directly,
51226 # and sets the high bit in the cache file unless we assign to the vars.
51228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51229 eval ac_val=\$$ac_var
51233 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
51234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
51237 _ | IFS | as_nl) ;; #(
51238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
51239 *) $as_unset $ac_var ;;
51245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
51246 *${as_nl}ac_space=\ *)
51247 # `set' does not quote correctly, so add quotes (double-quote
51248 # substitution turns \\\\ into \\, and sed turns \\ into \).
51251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51254 # `set' quotes correctly as required by POSIX, so do not add quotes.
51255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51269 if test -w "$cache_file"; then
51270 test "x$cache_file" != "x/dev/null" &&
51271 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
51272 $as_echo "$as_me: updating cache $cache_file" >&6;}
51273 cat confcache >$cache_file
51275 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51276 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51281 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51282 # Let make expand exec_prefix.
51283 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51285 DEFS=-DHAVE_CONFIG_H
51289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51290 # 1. Remove the extension, and $U if already installed.
51291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51292 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
51293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
51294 # will be set to the directory where LIBOBJS objects are built.
51295 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51296 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51298 LIBOBJS=$ac_libobjs
51300 LTLIBOBJS=$ac_ltlibobjs
51303 if test -n "$EXEEXT"; then
51305 am__EXEEXT_FALSE='#'
51307 am__EXEEXT_TRUE='#'
51311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51312 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51313 Usually this means the macro was only invoked conditionally." >&5
51314 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
51315 Usually this means the macro was only invoked conditionally." >&2;}
51316 { (exit 1); exit 1; }; }
51318 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51319 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51320 Usually this means the macro was only invoked conditionally." >&5
51321 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51322 Usually this means the macro was only invoked conditionally." >&2;}
51323 { (exit 1); exit 1; }; }
51325 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
51326 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
51327 Usually this means the macro was only invoked conditionally." >&5
51328 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
51329 Usually this means the macro was only invoked conditionally." >&2;}
51330 { (exit 1); exit 1; }; }
51335 if test -n "$gl_LIBOBJS"; then
51336 # Remove the extension.
51337 sed_drop_objext='s/\.o$//;s/\.obj$//'
51338 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
51339 gl_libobjs="$gl_libobjs $i.$ac_objext"
51340 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
51343 gl_LIBOBJS=$gl_libobjs
51345 gl_LTLIBOBJS=$gl_ltlibobjs
51351 if test -n "$gltests_LIBOBJS"; then
51352 # Remove the extension.
51353 sed_drop_objext='s/\.o$//;s/\.obj$//'
51354 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
51355 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
51356 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
51359 gltests_LIBOBJS=$gltests_libobjs
51361 gltests_LTLIBOBJS=$gltests_ltlibobjs
51365 : ${CONFIG_STATUS=./config.status}
51367 ac_clean_files_save=$ac_clean_files
51368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51369 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
51371 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51373 # Generated by $as_me.
51374 # Run this file to recreate the current configuration.
51375 # Compiler output produced by configure, useful for debugging
51376 # configure, is in config.log if it exists.
51379 ac_cs_recheck=false
51381 SHELL=\${CONFIG_SHELL-$SHELL}
51384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51385 ## --------------------- ##
51386 ## M4sh Initialization. ##
51387 ## --------------------- ##
51389 # Be more Bourne compatible
51390 DUALCASE=1; export DUALCASE # for MKS sh
51391 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51394 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
51395 # is contrary to our usage. Disable this feature.
51396 alias -g '${1+"$@"}'='"$@"'
51397 setopt NO_GLOB_SUBST
51399 case `(set -o) 2>/dev/null` in
51400 *posix*) set -o posix ;;
51409 # Avoid depending upon Character Ranges.
51410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51413 as_cr_digits='0123456789'
51414 as_cr_alnum=$as_cr_Letters$as_cr_digits
51419 # Printing a long string crashes Solaris 7 /usr/bin/printf.
51420 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
51421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
51422 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51423 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51424 as_echo='printf %s\n'
51425 as_echo_n='printf %s'
51427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
51429 as_echo_n='/usr/ucb/echo -n'
51431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
51432 as_echo_n_body='eval
51436 expr "X$arg" : "X\\(.*\\)$as_nl";
51437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
51439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
51441 export as_echo_n_body
51442 as_echo_n='sh -c $as_echo_n_body as_echo'
51444 export as_echo_body
51445 as_echo='sh -c $as_echo_body as_echo'
51448 # The user is always right.
51449 if test "${PATH_SEPARATOR+set}" != set; then
51451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
51452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
51457 # Support unset when possible.
51458 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51466 # We need space, tab and new line, in precisely that order. Quoting is
51467 # there to prevent editors from complaining about space-tab.
51468 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51469 # splitting by setting IFS to empty value.)
51472 # Find who we are. Look in the path if we contain no directory separator.
51474 *[\\/]* ) as_myself=$0 ;;
51475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51476 for as_dir in $PATH
51479 test -z "$as_dir" && as_dir=.
51480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51486 # We did not find ourselves, most probably we were run as `sh COMMAND'
51487 # in which case we are not to be found in the path.
51488 if test "x$as_myself" = x; then
51491 if test ! -f "$as_myself"; then
51492 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51493 { (exit 1); exit 1; }
51496 # Work around bugs in pre-3.0 UWIN ksh.
51497 for as_var in ENV MAIL MAILPATH
51498 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51510 # Required to use basename.
51511 if expr a : '\(a\)' >/dev/null 2>&1 &&
51512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
51518 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51519 as_basename=basename
51525 # Name of the executable.
51526 as_me=`$as_basename -- "$0" ||
51527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51528 X"$0" : 'X\(//\)$' \| \
51529 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51531 sed '/^.*\/\([^/][^/]*\)\/*$/{
51550 as_lineno_1=$LINENO
51551 as_lineno_2=$LINENO
51552 test "x$as_lineno_1" != "x$as_lineno_2" &&
51553 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51555 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51556 # uniformly replaced by the line number. The first 'sed' inserts a
51557 # line-number line after each line using $LINENO; the second 'sed'
51558 # does the real work. The second script uses 'N' to pair each
51559 # line-number line with the line containing $LINENO, and appends
51560 # trailing '-' during substitution so that $LINENO is not a special
51561 # case at line end.
51562 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51563 # scripts with optimization help from Paolo Bonzini. Blame Lee
51564 # E. McMahon (1931-1989) for sed's syntax. :-)
51576 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51579 ' >$as_me.lineno &&
51580 chmod +x "$as_me.lineno" ||
51581 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51582 { (exit 1); exit 1; }; }
51584 # Don't try to exec as it changes $[0], causing all sort of problems
51585 # (the dirname of $[0] is not the place where we might find the
51586 # original and so on. Autoconf is especially sensitive to this).
51587 . "./$as_me.lineno"
51588 # Exit status is that of the last command.
51593 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51599 ECHO_C= ECHO_N= ECHO_T=
51600 case `echo -n x` in
51602 case `echo 'x\c'` in
51603 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
51609 if expr a : '\(a\)' >/dev/null 2>&1 &&
51610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
51616 rm -f conf$$ conf$$.exe conf$$.file
51617 if test -d conf$$.dir; then
51618 rm -f conf$$.dir/conf$$.file
51621 mkdir conf$$.dir 2>/dev/null
51623 if (echo >conf$$.file) 2>/dev/null; then
51624 if ln -s conf$$.file conf$$ 2>/dev/null; then
51626 # ... but there are two gotchas:
51627 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51628 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51629 # In both cases, we have to default to `cp -p'.
51630 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51632 elif ln conf$$.file conf$$ 2>/dev/null; then
51640 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51641 rmdir conf$$.dir 2>/dev/null
51643 if mkdir -p . 2>/dev/null; then
51646 test -d ./-p && rmdir ./-p
51650 if test -x / >/dev/null 2>&1; then
51651 as_test_x='test -x'
51653 if ls -dL / >/dev/null 2>&1; then
51660 if test -d "$1"; then
51666 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51667 ???[sx]*):;;*)false;;esac;fi
51671 as_executable_p=$as_test_x
51673 # Sed expression to map a string onto a valid CPP name.
51674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51676 # Sed expression to map a string onto a valid variable name.
51677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51682 # Save the log message, to keep $[0] and so on meaningful, and to
51683 # report actual input values of CONFIG_FILES etc. instead of their
51684 # values after options handling.
51686 This file was extended by GNU tar $as_me 1.23, which was
51687 generated by GNU Autoconf 2.63. Invocation command line was
51689 CONFIG_FILES = $CONFIG_FILES
51690 CONFIG_HEADERS = $CONFIG_HEADERS
51691 CONFIG_LINKS = $CONFIG_LINKS
51692 CONFIG_COMMANDS = $CONFIG_COMMANDS
51695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51700 case $ac_config_files in *"
51701 "*) set x $ac_config_files; shift; ac_config_files=$*;;
51704 case $ac_config_headers in *"
51705 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
51709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51710 # Files that config.status was made for.
51711 config_files="$ac_config_files"
51712 config_headers="$ac_config_headers"
51713 config_commands="$ac_config_commands"
51717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51719 \`$as_me' instantiates files from templates according to the
51720 current configuration.
51722 Usage: $0 [OPTION]... [FILE]...
51724 -h, --help print this help, then exit
51725 -V, --version print version number and configuration settings, then exit
51726 -q, --quiet, --silent
51727 do not print progress messages
51728 -d, --debug don't remove temporary files
51729 --recheck update $as_me by reconfiguring in the same conditions
51730 --file=FILE[:TEMPLATE]
51731 instantiate the configuration file FILE
51732 --header=FILE[:TEMPLATE]
51733 instantiate the configuration header FILE
51735 Configuration files:
51738 Configuration headers:
51741 Configuration commands:
51744 Report bugs to <bug-autoconf@gnu.org>."
51747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51749 GNU tar config.status 1.23
51750 configured by $0, generated by GNU Autoconf 2.63,
51751 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51753 Copyright (C) 2008 Free Software Foundation, Inc.
51754 This config.status script is free software; the Free Software Foundation
51755 gives unlimited permission to copy, distribute and modify it."
51762 test -n "\$AWK" || AWK=awk
51765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51766 # The default lists apply if the user does not specify any file.
51772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
51773 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51784 # Handling of the options.
51785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51787 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51788 $as_echo "$ac_cs_version"; exit ;;
51789 --debug | --debu | --deb | --de | --d | -d )
51791 --file | --fil | --fi | --f )
51794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51796 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
51797 ac_need_defaults=false;;
51798 --header | --heade | --head | --hea )
51801 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51803 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
51804 ac_need_defaults=false;;
51806 # Conflict between --help and --header
51807 { $as_echo "$as_me: error: ambiguous option: $1
51808 Try \`$0 --help' for more information." >&2
51809 { (exit 1); exit 1; }; };;
51810 --help | --hel | -h )
51811 $as_echo "$ac_cs_usage"; exit ;;
51812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51816 # This is an error.
51817 -*) { $as_echo "$as_me: error: unrecognized option: $1
51818 Try \`$0 --help' for more information." >&2
51819 { (exit 1); exit 1; }; } ;;
51821 *) ac_config_targets="$ac_config_targets $1"
51822 ac_need_defaults=false ;;
51828 ac_configure_extra_args=
51830 if $ac_cs_silent; then
51832 ac_configure_extra_args="$ac_configure_extra_args --silent"
51836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51837 if \$ac_cs_recheck; then
51838 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51840 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
51841 CONFIG_SHELL='$SHELL'
51842 export CONFIG_SHELL
51847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51852 ## Running $as_me. ##
51858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51862 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51863 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
51864 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
51865 # from automake < 1.5.
51866 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
51867 # Capture the value of LINGUAS because we need it to compute CATALOGS.
51868 LINGUAS="${LINGUAS-%UNSET%}"
51873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51875 # Handling of arguments.
51876 for ac_config_target in $ac_config_targets
51878 case $ac_config_target in
51879 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
51880 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51881 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
51882 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
51883 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51884 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
51885 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51886 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51887 "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
51888 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51889 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51890 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
51891 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
51892 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51894 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51895 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51896 { (exit 1); exit 1; }; };;
51901 # If the user did not use the arguments to specify the items to instantiate,
51902 # then the envvar interface is used. Set only those that are not.
51903 # We use the long form for the default assignment because of an extremely
51904 # bizarre bug on SunOS 4.1.3.
51905 if $ac_need_defaults; then
51906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51908 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51911 # Have a temporary directory for convenience. Make it in the build tree
51912 # simply because there is no reason against having it here, and in addition,
51913 # creating and moving files from /tmp can sometimes cause problems.
51914 # Hook for its removal unless debugging.
51915 # Note that there is a small window in which the directory will not be cleaned:
51916 # after its creation but before its name has been assigned to `$tmp'.
51920 trap 'exit_status=$?
51921 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51923 trap '{ (exit 1); exit 1; }' 1 2 13 15
51925 # Create a (secure) tmp directory for tmp files.
51928 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51929 test -n "$tmp" && test -d "$tmp"
51932 tmp=./conf$$-$RANDOM
51933 (umask 077 && mkdir "$tmp")
51936 $as_echo "$as_me: cannot create a temporary directory in ." >&2
51937 { (exit 1); exit 1; }
51940 # Set up the scripts for CONFIG_FILES section.
51941 # No need to generate them if there are no CONFIG_FILES.
51942 # This happens for instance with `./config.status config.h'.
51943 if test -n "$CONFIG_FILES"; then
51947 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
51948 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
51951 ac_cs_awk_cr=$ac_cr
51954 echo 'BEGIN {' >"$tmp/subs1.awk" &&
51959 echo "cat >conf$$subs.awk <<_ACEOF" &&
51960 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
51962 } >conf$$subs.sh ||
51963 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51964 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51965 { (exit 1); exit 1; }; }
51966 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
51968 for ac_last_try in false false false false false :; do
51969 . ./conf$$subs.sh ||
51970 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51971 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51972 { (exit 1); exit 1; }; }
51974 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
51975 if test $ac_delim_n = $ac_delim_num; then
51977 elif $ac_last_try; then
51978 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51979 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51980 { (exit 1); exit 1; }; }
51982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51985 rm -f conf$$subs.sh
51987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51988 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
51992 s/^/S["/; s/!.*/"]=/
52002 s/\(.\{148\}\).*/\1/
52004 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
52009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52016 s/\(.\{148\}\).*/\1/
52018 s/["\\]/\\&/g; s/^/"/; s/$/"/
52022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52027 ' <conf$$subs.awk | sed '
52032 ' >>$CONFIG_STATUS || ac_write_fail=1
52033 rm -f conf$$subs.awk
52034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52036 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
52037 for (key in S) S_is_set[key] = 1
52043 nfields = split(line, field, "@")
52045 len = length(field[1])
52046 for (i = 2; i < nfields; i++) {
52048 keylen = length(key)
52049 if (S_is_set[key]) {
52051 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
52052 len += length(value) + length(field[++i])
52063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52064 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
52065 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
52068 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
52069 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
52070 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
52071 { (exit 1); exit 1; }; }
52074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52076 # trailing colons and then remove the whole line if VPATH becomes empty
52077 # (actually we leave an empty line to preserve line numbers).
52078 if test "x$srcdir" = x.; then
52079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52080 s/:*\$(srcdir):*/:/
52081 s/:*\${srcdir}:*/:/
52083 s/^\([^=]*=[ ]*\):*/\1/
52089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52090 fi # test -n "$CONFIG_FILES"
52092 # Set up the scripts for CONFIG_HEADERS section.
52093 # No need to generate them if there are no CONFIG_HEADERS.
52094 # This happens for instance with `./config.status Makefile'.
52095 if test -n "$CONFIG_HEADERS"; then
52096 cat >"$tmp/defines.awk" <<\_ACAWK ||
52100 # Transform confdefs.h into an awk script `defines.awk', embedded as
52101 # here-document in config.status, that substitutes the proper values into
52102 # config.h.in to produce config.h.
52104 # Create a delimiter string that does not exist in confdefs.h, to ease
52105 # handling of long lines.
52107 for ac_last_try in false false :; do
52108 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
52109 if test -z "$ac_t"; then
52111 elif $ac_last_try; then
52112 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
52113 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
52114 { (exit 1); exit 1; }; }
52116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52120 # For the awk script, D is an array of macro values keyed by name,
52121 # likewise P contains macro parameters if any. Preserve backslash
52122 # newline sequences.
52124 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52126 s/.\{148\}/&'"$ac_delim"'/g
52129 s/^[ ]*#[ ]*define[ ][ ]*/ /
52136 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
52138 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
52142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
52143 D["\1"]=" \3\\\\\\n"\\/p
52145 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
52150 s/.\{148\}/&'"$ac_delim"'/g
52155 s/["\\]/\\&/g; s/^/"/; s/$/"/p
52158 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
52160 ' <confdefs.h | sed '
52161 s/'"$ac_delim"'/"\\\
52162 "/g' >>$CONFIG_STATUS || ac_write_fail=1
52164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52165 for (key in D) D_is_set[key] = 1
52168 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
52170 split(line, arg, " ")
52171 if (arg[1] == "#") {
52175 defundef = substr(arg[1], 2)
52178 split(mac1, mac2, "(") #)
52180 prefix = substr(line, 1, index(line, defundef) - 1)
52181 if (D_is_set[macro]) {
52182 # Preserve the white space surrounding the "#".
52183 print prefix "define", macro P[macro] D[macro]
52186 # Replace #undef with comments. This is necessary, for example,
52187 # in the case of _POSIX_SOURCE, which is predefined and required
52188 # on some systems where configure will not decide to define it.
52189 if (defundef == "undef") {
52190 print "/*", prefix defundef, macro, "*/"
52198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52199 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
52200 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
52201 { (exit 1); exit 1; }; }
52202 fi # test -n "$CONFIG_HEADERS"
52205 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
52210 :[FHLC]) ac_mode=$ac_tag; continue;;
52212 case $ac_mode$ac_tag in
52214 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
52215 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
52216 { (exit 1); exit 1; }; };;
52217 :[FH]-) ac_tag=-:-;;
52218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52235 -) ac_f="$tmp/stdin";;
52236 *) # Look for the file first in the build tree, then in the source tree
52237 # (if the path is not absolute). The absolute path cannot be DOS-style,
52238 # because $ac_f cannot contain `:'.
52242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52244 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52245 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52246 { (exit 1); exit 1; }; };;
52248 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
52249 ac_file_inputs="$ac_file_inputs '$ac_f'"
52252 # Let's still pretend it is `configure' which instantiates (i.e., don't
52253 # use $as_me), people would be surprised to read:
52254 # /* config.h. Generated by config.status. */
52255 configure_input='Generated from '`
52256 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
52258 if test x"$ac_file" != x-; then
52259 configure_input="$ac_file. $configure_input"
52260 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
52261 $as_echo "$as_me: creating $ac_file" >&6;}
52263 # Neutralize special characters interpreted by sed in replacement strings.
52264 case $configure_input in #(
52265 *\&* | *\|* | *\\* )
52266 ac_sed_conf_input=`$as_echo "$configure_input" |
52267 sed 's/[\\\\&|]/\\\\&/g'`;; #(
52268 *) ac_sed_conf_input=$configure_input;;
52272 *:-:* | *:-) cat >"$tmp/stdin" \
52273 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52274 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52275 { (exit 1); exit 1; }; } ;;
52280 ac_dir=`$as_dirname -- "$ac_file" ||
52281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52282 X"$ac_file" : 'X\(//\)[^/]' \| \
52283 X"$ac_file" : 'X\(//\)$' \| \
52284 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52285 $as_echo X"$ac_file" |
52286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52290 /^X\(\/\/\)[^/].*/{
52305 -*) as_dir=./$as_dir;;
52307 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52311 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52312 *) as_qdir=$as_dir;;
52314 as_dirs="'$as_qdir' $as_dirs"
52315 as_dir=`$as_dirname -- "$as_dir" ||
52316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52317 X"$as_dir" : 'X\(//\)[^/]' \| \
52318 X"$as_dir" : 'X\(//\)$' \| \
52319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52320 $as_echo X"$as_dir" |
52321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52325 /^X\(\/\/\)[^/].*/{
52338 test -d "$as_dir" && break
52340 test -z "$as_dirs" || eval "mkdir $as_dirs"
52341 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52342 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
52343 { (exit 1); exit 1; }; }; }
52347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52349 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
52350 # A ".." for each directory in $ac_dir_suffix.
52351 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
52352 case $ac_top_builddir_sub in
52353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52357 ac_abs_top_builddir=$ac_pwd
52358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52359 # for backward compatibility:
52360 ac_top_builddir=$ac_top_build_prefix
52363 .) # We are building in place.
52365 ac_top_srcdir=$ac_top_builddir_sub
52366 ac_abs_top_srcdir=$ac_pwd ;;
52367 [\\/]* | ?:[\\/]* ) # Absolute name.
52368 ac_srcdir=$srcdir$ac_dir_suffix;
52369 ac_top_srcdir=$srcdir
52370 ac_abs_top_srcdir=$srcdir ;;
52371 *) # Relative name.
52372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52373 ac_top_srcdir=$ac_top_build_prefix$srcdir
52374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52386 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52387 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52389 ac_MKDIR_P=$MKDIR_P
52391 [\\/$]* | ?:[\\/]* ) ;;
52392 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
52396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52397 # If the template does not know about datarootdir, expand it.
52398 # FIXME: This hack should be removed a few years after 2.60.
52399 ac_datarootdir_hack=; ac_datarootdir_seen=
52412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
52413 *datarootdir*) ac_datarootdir_seen=yes;;
52414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52415 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52419 ac_datarootdir_hack='
52420 s&@datadir@&$datadir&g
52421 s&@docdir@&$docdir&g
52422 s&@infodir@&$infodir&g
52423 s&@localedir@&$localedir&g
52424 s&@mandir@&$mandir&g
52425 s&\\\${datarootdir}&$datarootdir&g' ;;
52429 # Neutralize VPATH when `$srcdir' = `.'.
52430 # Shell code in configure.ac might set extrasub.
52431 # FIXME: do we really want to maintain this feature?
52432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52433 ac_sed_extra="$ac_vpsub
52436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52439 s|@configure_input@|$ac_sed_conf_input|;t t
52440 s&@top_builddir@&$ac_top_builddir_sub&;t t
52441 s&@top_build_prefix@&$ac_top_build_prefix&;t t
52442 s&@srcdir@&$ac_srcdir&;t t
52443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52444 s&@top_srcdir@&$ac_top_srcdir&;t t
52445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52446 s&@builddir@&$ac_builddir&;t t
52447 s&@abs_builddir@&$ac_abs_builddir&;t t
52448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52449 s&@INSTALL@&$ac_INSTALL&;t t
52450 s&@MKDIR_P@&$ac_MKDIR_P&;t t
52451 $ac_datarootdir_hack
52453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
52454 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52455 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52456 { (exit 1); exit 1; }; }
52458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52459 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52461 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52462 which seems to be undefined. Please make sure it is defined." >&5
52463 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52464 which seems to be undefined. Please make sure it is defined." >&2;}
52468 -) cat "$tmp/out" && rm -f "$tmp/out";;
52469 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
52471 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52472 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52473 { (exit 1); exit 1; }; }
52479 if test x"$ac_file" != x-; then
52481 $as_echo "/* $configure_input */" \
52482 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
52483 } >"$tmp/config.h" \
52484 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52485 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52486 { (exit 1); exit 1; }; }
52487 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
52488 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52489 $as_echo "$as_me: $ac_file is unchanged" >&6;}
52492 mv "$tmp/config.h" "$ac_file" \
52493 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52494 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52495 { (exit 1); exit 1; }; }
52498 $as_echo "/* $configure_input */" \
52499 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
52500 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
52501 $as_echo "$as_me: error: could not create -" >&2;}
52502 { (exit 1); exit 1; }; }
52504 # Compute "$ac_file"'s index in $config_headers.
52507 for _am_header in $config_headers :; do
52508 case $_am_header in
52509 $_am_arg | $_am_arg:* )
52512 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52515 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
52516 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52517 X"$_am_arg" : 'X\(//\)[^/]' \| \
52518 X"$_am_arg" : 'X\(//\)$' \| \
52519 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
52520 $as_echo X"$_am_arg" |
52521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52525 /^X\(\/\/\)[^/].*/{
52537 s/.*/./; q'`/stamp-h$_am_stamp_count
52540 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
52541 $as_echo "$as_me: executing $ac_file commands" >&6;}
52546 case $ac_file$ac_mode in
52547 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
52548 # Autoconf 2.62 quotes --file arguments for eval, but not when files
52549 # are listed without --file. Let's play safe and only enable the eval
52550 # if we detect the quoting.
52551 case $CONFIG_FILES in
52552 *\'*) eval set x "$CONFIG_FILES" ;;
52553 *) set x $CONFIG_FILES ;;
52558 # Strip MF so we end up with the name of the file.
52559 mf=`echo "$mf" | sed -e 's/:.*$//'`
52560 # Check whether this is an Automake generated Makefile or not.
52561 # We used to match only the files named `Makefile.in', but
52562 # some people rename them; so instead we look at the file content.
52563 # Grep'ing the first line is not enough: some people post-process
52564 # each Makefile.in and add a new line on top of each file to say so.
52565 # Grep'ing the whole file is not good either: AIX grep has a line
52566 # limit of 2048, but all sed's we know have understand at least 4000.
52567 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
52568 dirpart=`$as_dirname -- "$mf" ||
52569 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52570 X"$mf" : 'X\(//\)[^/]' \| \
52571 X"$mf" : 'X\(//\)$' \| \
52572 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
52574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52578 /^X\(\/\/\)[^/].*/{
52594 # Extract the definition of DEPDIR, am__include, and am__quote
52595 # from the Makefile without running `make'.
52596 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52597 test -z "$DEPDIR" && continue
52598 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52599 test -z "am__include" && continue
52600 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52601 # When using ansi2knr, U may be empty or an underscore; expand it
52602 U=`sed -n 's/^U = //p' < "$mf"`
52603 # Find all dependency output files, they are included files with
52604 # $(DEPDIR) in their names. We invoke sed twice because it is the
52605 # simplest approach to changing $(DEPDIR) to its actual value in the
52607 for file in `sed -n "
52608 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52609 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52610 # Make sure the directory exists.
52611 test -f "$dirpart/$file" && continue
52612 fdir=`$as_dirname -- "$file" ||
52613 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52614 X"$file" : 'X\(//\)[^/]' \| \
52615 X"$file" : 'X\(//\)$' \| \
52616 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
52617 $as_echo X"$file" |
52618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52622 /^X\(\/\/\)[^/].*/{
52635 { as_dir=$dirpart/$fdir
52637 -*) as_dir=./$as_dir;;
52639 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52644 *) as_qdir=$as_dir;;
52646 as_dirs="'$as_qdir' $as_dirs"
52647 as_dir=`$as_dirname -- "$as_dir" ||
52648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52649 X"$as_dir" : 'X\(//\)[^/]' \| \
52650 X"$as_dir" : 'X\(//\)$' \| \
52651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52652 $as_echo X"$as_dir" |
52653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52657 /^X\(\/\/\)[^/].*/{
52670 test -d "$as_dir" && break
52672 test -z "$as_dirs" || eval "mkdir $as_dirs"
52673 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52674 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
52675 { (exit 1); exit 1; }; }; }
52676 # echo "creating $dirpart/$file"
52677 echo '# dummy' > "$dirpart/$file"
52682 "po-directories":C)
52683 for ac_file in $CONFIG_FILES; do
52684 # Support "outfile[:infile[:infile...]]"
52686 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
52688 # PO directories have a Makefile.in generated from Makefile.in.in.
52689 case "$ac_file" in */Makefile.in)
52690 # Adjust a relative srcdir.
52691 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
52692 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
52693 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
52694 # In autoconf-2.13 it is called $ac_given_srcdir.
52695 # In autoconf-2.50 it is called $srcdir.
52696 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
52697 case "$ac_given_srcdir" in
52698 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
52699 /*) top_srcdir="$ac_given_srcdir" ;;
52700 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
52702 # Treat a directory as a PO directory if and only if it has a
52703 # POTFILES.in file. This allows packages to have multiple PO
52704 # directories under different names or in different locations.
52705 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
52706 rm -f "$ac_dir/POTFILES"
52707 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
52708 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
52709 POMAKEFILEDEPS="POTFILES.in"
52710 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
52711 # on $ac_dir but don't depend on user-specified configuration
52713 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
52714 # The LINGUAS file contains the set of available languages.
52715 if test -n "$OBSOLETE_ALL_LINGUAS"; then
52716 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
52718 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
52719 # Hide the ALL_LINGUAS assigment from automake < 1.5.
52720 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
52721 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
52723 # The set of available languages was given in configure.in.
52724 # Hide the ALL_LINGUAS assigment from automake < 1.5.
52725 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52728 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52729 # Compute UPDATEPOFILES
52730 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52731 # Compute DUMMYPOFILES
52732 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52734 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52735 case "$ac_given_srcdir" in
52737 *) srcdirpre='$(srcdir)/' ;;
52743 for lang in $ALL_LINGUAS; do
52744 POFILES="$POFILES $srcdirpre$lang.po"
52745 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52746 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52747 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52749 # CATALOGS depends on both $ac_dir and the user's LINGUAS
52750 # environment variable.
52752 if test -n "$ALL_LINGUAS"; then
52753 for presentlang in $ALL_LINGUAS; do
52755 if test "%UNSET%" != "$LINGUAS"; then
52756 desiredlanguages="$LINGUAS"
52758 desiredlanguages="$ALL_LINGUAS"
52760 for desiredlang in $desiredlanguages; do
52761 # Use the presentlang catalog if desiredlang is
52762 # a. equal to presentlang, or
52763 # b. a variant of presentlang (because in this case,
52764 # presentlang can be used as a fallback for messages
52765 # which are not translated in the desiredlang catalog).
52766 case "$desiredlang" in
52767 "$presentlang"*) useit=yes;;
52770 if test $useit = yes; then
52771 INST_LINGUAS="$INST_LINGUAS $presentlang"
52776 if test -n "$INST_LINGUAS"; then
52777 for lang in $INST_LINGUAS; do
52778 CATALOGS="$CATALOGS $lang.gmo"
52781 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52782 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"
52783 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52784 if test -f "$f"; then
52786 *.orig | *.bak | *~) ;;
52787 *) cat "$f" >> "$ac_dir/Makefile" ;;
52795 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
52796 # Configurable variable values for building test suites.
52798 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
52800 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
52802 abs_builddir='$ac_abs_builddir'
52803 at_srcdir='$ac_srcdir'
52804 abs_srcdir='$ac_abs_srcdir'
52805 at_top_srcdir='$ac_top_srcdir'
52806 abs_top_srcdir='$ac_abs_top_srcdir'
52807 at_top_build_prefix='$ac_top_build_prefix'
52808 abs_top_builddir='$ac_abs_top_builddir'
52810 # Backward compatibility with Autotest <= 2.59b:
52811 at_top_builddir=\$at_top_build_prefix
52813 AUTOTEST_PATH='tests'
52815 SHELL=\${CONFIG_SHELL-'$SHELL'}
52823 { (exit 0); exit 0; }
52825 chmod +x $CONFIG_STATUS
52826 ac_clean_files=$ac_clean_files_save
52828 test $ac_write_fail = 0 ||
52829 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
52830 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
52831 { (exit 1); exit 1; }; }
52834 # configure is writing to config.log, and then calls config.status.
52835 # config.status does its own redirection, appending to config.log.
52836 # Unfortunately, on DOS this fails, as config.log is still kept open
52837 # by configure, so config.status won't be able to write to it; its
52838 # output is simply discarded. So we exec the FD to /dev/null,
52839 # effectively closing config.log, so it can be properly (re)opened and
52840 # appended to by config.status. When coming back to configure, we
52841 # need to make the FD available again.
52842 if test "$no_create" != yes; then
52844 ac_config_status_args=
52845 test "$silent" = yes &&
52846 ac_config_status_args="$ac_config_status_args --quiet"
52848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52851 # would make configure fail if this is the last instruction.
52852 $ac_cs_success || { (exit 1); exit 1; }
52854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
52855 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
52856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}