2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for GNU tar 1.25.
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.25'
600 PACKAGE_STRING='GNU tar 1.25'
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
686 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
693 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
695 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
696 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
697 LIBUNISTRING_UNIWIDTH_H
698 LIBUNISTRING_UNITYPES_H
700 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
702 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
703 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
704 TIME_H_DEFINES_STRUCT_TIMESPEC
705 NEXT_AS_FIRST_DIRECTIVE_TIME_H
709 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
711 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
713 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
715 NEXT_AS_FIRST_DIRECTIVE_STRING_H
717 HAVE_DECL_STRNCASECMP
720 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
722 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
725 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
730 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
814 LOCALCHARSET_TESTS_ENVIRONMENT
816 HAVE_LANGINFO_YESEXPR
818 HAVE_LANGINFO_T_FMT_AMPM
819 HAVE_LANGINFO_CODESET
821 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
826 UINT64_MAX_EQ_ULONG_MAX
827 UINT32_MAX_LT_UINTMAX_MAX
828 INT64_MAX_EQ_LONG_MAX
829 INT32_MAX_LT_INTMAX_MAX
831 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
850 HAVE_SIGNED_SIG_ATOMIC_T
853 BITSIZEOF_SIG_ATOMIC_T
856 APPLE_UNIVERSAL_BUILD
860 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
864 HAVE_UNSIGNED_LONG_LONG_INT
868 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
882 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
884 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
893 REPLACE_STDIO_WRITE_FUNCS
902 REPLACE_OBSTACK_PRINTF
924 HAVE_DECL_OBSTACK_PRINTF
928 GNULIB_VSPRINTF_POSIX
932 GNULIB_VFPRINTF_POSIX
937 GNULIB_STDIO_H_SIGPIPE
950 GNULIB_OBSTACK_PRINTF_POSIX
951 GNULIB_OBSTACK_PRINTF
1016 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1018 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1021 PRAGMA_SYSTEM_HEADER
1022 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1038 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1039 UNISTD_H_HAVE_WINSOCK2_H
1065 HAVE_DECL_GETUSERSHELL
1066 HAVE_DECL_GETPAGESIZE
1067 HAVE_DECL_GETLOGIN_R
1102 GNULIB_UNISTD_H_SIGPIPE
1103 GNULIB_UNISTD_H_GETOPT
1124 GNULIB_GETDTABLESIZE
1125 GNULIB_GETDOMAINNAME
1146 REPLACE_CANONICALIZE_FILE_NAME
1151 HAVE_STRUCT_RANDOM_DATA
1167 HAVE_DECL_GETLOADAVG
1168 HAVE_CANONICALIZE_FILE_NAME
1180 GNULIB_REALLOC_POSIX
1193 GNULIB_CANONICALIZE_FILE_NAME
1235 GL_COND_LIBTOOL_FALSE
1236 GL_COND_LIBTOOL_TRUE
1268 AM_DEFAULT_VERBOSITY
1277 INSTALL_STRIP_PROGRAM
1319 program_transform_name
1331 enable_option_checking
1333 enable_dependency_tracking
1337 with_packager_version
1338 with_packager_bug_reports
1349 with_libiconv_prefix
1352 enable_backup_scripts
1354 ac_precious_vars='build_alias
1366 DEFAULT_ARCHIVE_FORMAT
1369 DEFAULT_QUOTING_STYLE'
1372 # Initialize some variables set by options.
1374 ac_init_version=false
1375 ac_unrecognized_opts=
1376 ac_unrecognized_sep=
1377 # The variables have the same names as the options, with
1378 # dashes changed to underlines.
1379 cache_file=/dev/null
1386 program_transform_name=s,x,x,
1394 # Installation directory options.
1395 # These are left unexpanded so users can "make install exec_prefix=/foo"
1396 # and all the variables that are supposed to be based on exec_prefix
1397 # by default will actually change.
1398 # Use braces instead of parens because sh, perl, etc. also accept them.
1399 # (The list follows the same order as the GNU Coding Standards.)
1400 bindir='${exec_prefix}/bin'
1401 sbindir='${exec_prefix}/sbin'
1402 libexecdir='${exec_prefix}/libexec'
1403 datarootdir='${prefix}/share'
1404 datadir='${datarootdir}'
1405 sysconfdir='${prefix}/etc'
1406 sharedstatedir='${prefix}/com'
1407 localstatedir='${prefix}/var'
1408 includedir='${prefix}/include'
1409 oldincludedir='/usr/include'
1410 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1411 infodir='${datarootdir}/info'
1416 libdir='${exec_prefix}/lib'
1417 localedir='${datarootdir}/locale'
1418 mandir='${datarootdir}/man'
1424 # If the previous option needs an argument, assign it.
1425 if test -n "$ac_prev"; then
1426 eval $ac_prev=\$ac_option
1432 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1436 # Accept the important Cygnus configure options, so we can diagnose typos.
1438 case $ac_dashdash$ac_option in
1442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1445 bindir=$ac_optarg ;;
1447 -build | --build | --buil | --bui | --bu)
1448 ac_prev=build_alias ;;
1449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1450 build_alias=$ac_optarg ;;
1452 -cache-file | --cache-file | --cache-fil | --cache-fi \
1453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1454 ac_prev=cache_file ;;
1455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1457 cache_file=$ac_optarg ;;
1459 --config-cache | -C)
1460 cache_file=config.cache ;;
1462 -datadir | --datadir | --datadi | --datad)
1464 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1465 datadir=$ac_optarg ;;
1467 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1468 | --dataroo | --dataro | --datar)
1469 ac_prev=datarootdir ;;
1470 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1471 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1472 datarootdir=$ac_optarg ;;
1474 -disable-* | --disable-*)
1475 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1476 # Reject names that are not valid shell variable names.
1477 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1478 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1479 { (exit 1); exit 1; }; }
1480 ac_useropt_orig=$ac_useropt
1481 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482 case $ac_user_opts in
1484 "enable_$ac_useropt"
1486 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1487 ac_unrecognized_sep=', ';;
1489 eval enable_$ac_useropt=no ;;
1491 -docdir | --docdir | --docdi | --doc | --do)
1493 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1494 docdir=$ac_optarg ;;
1496 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1498 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1499 dvidir=$ac_optarg ;;
1501 -enable-* | --enable-*)
1502 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1505 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1506 { (exit 1); exit 1; }; }
1507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1511 "enable_$ac_useropt"
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1516 eval enable_$ac_useropt=\$ac_optarg ;;
1518 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1519 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1520 | --exec | --exe | --ex)
1521 ac_prev=exec_prefix ;;
1522 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1523 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1524 | --exec=* | --exe=* | --ex=*)
1525 exec_prefix=$ac_optarg ;;
1527 -gas | --gas | --ga | --g)
1528 # Obsolete; use --with-gas.
1531 -help | --help | --hel | --he | -h)
1532 ac_init_help=long ;;
1533 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1534 ac_init_help=recursive ;;
1535 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1536 ac_init_help=short ;;
1538 -host | --host | --hos | --ho)
1539 ac_prev=host_alias ;;
1540 -host=* | --host=* | --hos=* | --ho=*)
1541 host_alias=$ac_optarg ;;
1543 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1545 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1547 htmldir=$ac_optarg ;;
1549 -includedir | --includedir | --includedi | --included | --include \
1550 | --includ | --inclu | --incl | --inc)
1551 ac_prev=includedir ;;
1552 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1553 | --includ=* | --inclu=* | --incl=* | --inc=*)
1554 includedir=$ac_optarg ;;
1556 -infodir | --infodir | --infodi | --infod | --info | --inf)
1558 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1559 infodir=$ac_optarg ;;
1561 -libdir | --libdir | --libdi | --libd)
1563 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1564 libdir=$ac_optarg ;;
1566 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1567 | --libexe | --libex | --libe)
1568 ac_prev=libexecdir ;;
1569 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1570 | --libexe=* | --libex=* | --libe=*)
1571 libexecdir=$ac_optarg ;;
1573 -localedir | --localedir | --localedi | --localed | --locale)
1574 ac_prev=localedir ;;
1575 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1576 localedir=$ac_optarg ;;
1578 -localstatedir | --localstatedir | --localstatedi | --localstated \
1579 | --localstate | --localstat | --localsta | --localst | --locals)
1580 ac_prev=localstatedir ;;
1581 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1582 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1583 localstatedir=$ac_optarg ;;
1585 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1587 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1588 mandir=$ac_optarg ;;
1590 -nfp | --nfp | --nf)
1591 # Obsolete; use --without-fp.
1594 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1595 | --no-cr | --no-c | -n)
1598 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1599 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1602 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1603 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1604 | --oldin | --oldi | --old | --ol | --o)
1605 ac_prev=oldincludedir ;;
1606 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1607 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1608 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1609 oldincludedir=$ac_optarg ;;
1611 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1613 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1614 prefix=$ac_optarg ;;
1616 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1617 | --program-pre | --program-pr | --program-p)
1618 ac_prev=program_prefix ;;
1619 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1620 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1621 program_prefix=$ac_optarg ;;
1623 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1624 | --program-suf | --program-su | --program-s)
1625 ac_prev=program_suffix ;;
1626 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1627 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1628 program_suffix=$ac_optarg ;;
1630 -program-transform-name | --program-transform-name \
1631 | --program-transform-nam | --program-transform-na \
1632 | --program-transform-n | --program-transform- \
1633 | --program-transform | --program-transfor \
1634 | --program-transfo | --program-transf \
1635 | --program-trans | --program-tran \
1636 | --progr-tra | --program-tr | --program-t)
1637 ac_prev=program_transform_name ;;
1638 -program-transform-name=* | --program-transform-name=* \
1639 | --program-transform-nam=* | --program-transform-na=* \
1640 | --program-transform-n=* | --program-transform-=* \
1641 | --program-transform=* | --program-transfor=* \
1642 | --program-transfo=* | --program-transf=* \
1643 | --program-trans=* | --program-tran=* \
1644 | --progr-tra=* | --program-tr=* | --program-t=*)
1645 program_transform_name=$ac_optarg ;;
1647 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1649 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1650 pdfdir=$ac_optarg ;;
1652 -psdir | --psdir | --psdi | --psd | --ps)
1654 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1665 sbindir=$ac_optarg ;;
1667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1669 | --sharedst | --shareds | --shared | --share | --shar \
1671 ac_prev=sharedstatedir ;;
1672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1676 sharedstatedir=$ac_optarg ;;
1678 -site | --site | --sit)
1680 -site=* | --site=* | --sit=*)
1683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1686 srcdir=$ac_optarg ;;
1688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1689 | --syscon | --sysco | --sysc | --sys | --sy)
1690 ac_prev=sysconfdir ;;
1691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1693 sysconfdir=$ac_optarg ;;
1695 -target | --target | --targe | --targ | --tar | --ta | --t)
1696 ac_prev=target_alias ;;
1697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1698 target_alias=$ac_optarg ;;
1700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1703 -version | --version | --versio | --versi | --vers | -V)
1704 ac_init_version=: ;;
1707 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1708 # Reject names that are not valid shell variable names.
1709 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1710 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1711 { (exit 1); exit 1; }; }
1712 ac_useropt_orig=$ac_useropt
1713 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1714 case $ac_user_opts in
1718 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1719 ac_unrecognized_sep=', ';;
1721 eval with_$ac_useropt=\$ac_optarg ;;
1723 -without-* | --without-*)
1724 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1725 # Reject names that are not valid shell variable names.
1726 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1727 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1728 { (exit 1); exit 1; }; }
1729 ac_useropt_orig=$ac_useropt
1730 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1735 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1736 ac_unrecognized_sep=', ';;
1738 eval with_$ac_useropt=no ;;
1741 # Obsolete; use --with-x.
1744 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1745 | --x-incl | --x-inc | --x-in | --x-i)
1746 ac_prev=x_includes ;;
1747 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1748 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1749 x_includes=$ac_optarg ;;
1751 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1752 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1753 ac_prev=x_libraries ;;
1754 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1755 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1756 x_libraries=$ac_optarg ;;
1758 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1759 Try \`$0 --help' for more information." >&2
1760 { (exit 1); exit 1; }; }
1764 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1765 # Reject names that are not valid shell variable names.
1766 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1767 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1768 { (exit 1); exit 1; }; }
1769 eval $ac_envvar=\$ac_optarg
1770 export $ac_envvar ;;
1773 # FIXME: should be removed in autoconf 3.0.
1774 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1775 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1776 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1777 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1783 if test -n "$ac_prev"; then
1784 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1785 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1786 { (exit 1); exit 1; }; }
1789 if test -n "$ac_unrecognized_opts"; then
1790 case $enable_option_checking in
1792 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1793 { (exit 1); exit 1; }; } ;;
1794 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1798 # Check all directory arguments for consistency.
1799 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1800 datadir sysconfdir sharedstatedir localstatedir includedir \
1801 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1802 libdir localedir mandir
1804 eval ac_val=\$$ac_var
1805 # Remove trailing slashes.
1808 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1809 eval $ac_var=\$ac_val;;
1811 # Be sure to have absolute directory names.
1813 [\\/$]* | ?:[\\/]* ) continue;;
1814 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1816 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1817 { (exit 1); exit 1; }; }
1820 # There might be people who depend on the old broken behavior: `$host'
1821 # used to hold the argument of --host etc.
1822 # FIXME: To remove some day.
1825 target=$target_alias
1827 # FIXME: To remove some day.
1828 if test "x$host_alias" != x; then
1829 if test "x$build_alias" = x; then
1830 cross_compiling=maybe
1831 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1832 If a cross compiler is detected then cross compile mode will be used." >&2
1833 elif test "x$build_alias" != "x$host_alias"; then
1839 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1841 test "$silent" = yes && exec 6>/dev/null
1844 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1845 ac_ls_di=`ls -di .` &&
1846 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1847 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1848 { (exit 1); exit 1; }; }
1849 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1850 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1851 { (exit 1); exit 1; }; }
1854 # Find the source files, if location was not specified.
1855 if test -z "$srcdir"; then
1856 ac_srcdir_defaulted=yes
1857 # Try the directory containing this script, then the parent directory.
1858 ac_confdir=`$as_dirname -- "$as_myself" ||
1859 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1860 X"$as_myself" : 'X\(//\)[^/]' \| \
1861 X"$as_myself" : 'X\(//\)$' \| \
1862 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1863 $as_echo X"$as_myself" |
1864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1882 if test ! -r "$srcdir/$ac_unique_file"; then
1886 ac_srcdir_defaulted=no
1888 if test ! -r "$srcdir/$ac_unique_file"; then
1889 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1890 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1891 { (exit 1); exit 1; }; }
1893 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1895 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1896 { (exit 1); exit 1; }; }
1898 # When building in place, set srcdir=.
1899 if test "$ac_abs_confdir" = "$ac_pwd"; then
1902 # Remove unnecessary trailing slashes from srcdir.
1903 # Double slashes in file names in object file debugging info
1904 # mess up M-x gdb in Emacs.
1906 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1908 for ac_var in $ac_precious_vars; do
1909 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1910 eval ac_env_${ac_var}_value=\$${ac_var}
1911 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1912 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1916 # Report the --help message.
1918 if test "$ac_init_help" = "long"; then
1919 # Omit some internal or obsolete options to make the list less imposing.
1920 # This message is too long to be a string in the A/UX 3.1 sh.
1922 \`configure' configures GNU tar 1.25 to adapt to many kinds of systems.
1924 Usage: $0 [OPTION]... [VAR=VALUE]...
1926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1927 VAR=VALUE. See below for descriptions of some of the useful variables.
1929 Defaults for the options are specified in brackets.
1932 -h, --help display this help and exit
1933 --help=short display options specific to this package
1934 --help=recursive display the short help of all the included packages
1935 -V, --version display version information and exit
1936 -q, --quiet, --silent do not print \`checking...' messages
1937 --cache-file=FILE cache test results in FILE [disabled]
1938 -C, --config-cache alias for \`--cache-file=config.cache'
1939 -n, --no-create do not create output files
1940 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1942 Installation directories:
1943 --prefix=PREFIX install architecture-independent files in PREFIX
1944 [$ac_default_prefix]
1945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1948 By default, \`make install' will install all the files in
1949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1951 for instance \`--prefix=\$HOME'.
1953 For better control, use the options below.
1955 Fine tuning of the installation directories:
1956 --bindir=DIR user executables [EPREFIX/bin]
1957 --sbindir=DIR system admin executables [EPREFIX/sbin]
1958 --libexecdir=DIR program executables [EPREFIX/libexec]
1959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1962 --libdir=DIR object code libraries [EPREFIX/lib]
1963 --includedir=DIR C header files [PREFIX/include]
1964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1965 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1966 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1967 --infodir=DIR info documentation [DATAROOTDIR/info]
1968 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1969 --mandir=DIR man documentation [DATAROOTDIR/man]
1970 --docdir=DIR documentation root [DATAROOTDIR/doc/tar]
1971 --htmldir=DIR html documentation [DOCDIR]
1972 --dvidir=DIR dvi documentation [DOCDIR]
1973 --pdfdir=DIR pdf documentation [DOCDIR]
1974 --psdir=DIR ps documentation [DOCDIR]
1980 --program-prefix=PREFIX prepend PREFIX to installed program names
1981 --program-suffix=SUFFIX append SUFFIX to installed program names
1982 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1985 --build=BUILD configure for building on BUILD [guessed]
1986 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1990 if test -n "$ac_init_help"; then
1991 case $ac_init_help in
1992 short | recursive ) echo "Configuration of GNU tar 1.25:";;
1997 --disable-option-checking ignore unrecognized --enable/--with options
1998 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1999 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2000 --enable-silent-rules less verbose build output (undo: `make V=1')
2001 --disable-silent-rules verbose build output (undo: `make V=0')
2002 --disable-dependency-tracking speeds up one-time build
2003 --enable-dependency-tracking do not reject slow dependency extractors
2004 --disable-largefile omit support for large files
2005 --disable-rpath do not hardcode runtime library paths
2006 --disable-nls do not use Native Language Support
2007 --enable-backup-scripts Create and install backup and restore scripts
2010 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2011 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2012 --without-included-regex
2013 don't compile regex; this is the default on systems
2014 with recent-enough versions of the GNU C Library
2015 (use with caution on other systems).
2016 --with-packager String identifying the packager of this software
2017 --with-packager-version Packager-specific version information
2018 --with-packager-bug-reports
2019 Packager info for bug reports (URL/e-mail/...)
2020 --with-rmt=FILE Use FILE as the default `rmt' program. Do not build
2021 included copy of `rmt'.
2022 --with-compress=PROG use PROG as compress compressor program
2023 --with-gzip=PROG use PROG as gzip compressor program
2024 --with-bzip2=PROG use PROG as bzip2 compressor program
2025 --with-lzip=PROG use PROG as lzip compressor program
2026 --with-lzma=PROG use PROG as lzma compressor program
2027 --with-lzop=PROG use PROG as lzop compressor program
2028 --with-xz=PROG use PROG as xz compressor program
2029 --with-gnu-ld assume the C compiler uses GNU ld default=no
2030 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2031 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2032 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2033 --without-libintl-prefix don't search for libintl in includedir and libdir
2035 Some influential environment variables:
2036 CC C compiler command
2037 CFLAGS C compiler flags
2038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2039 nonstandard directory <lib dir>
2040 LIBS libraries to pass to the linker, e.g. -l<library>
2041 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2042 you have headers in a nonstandard directory <include dir>
2043 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2044 the first program found out of: `bison -y', `byacc', `yacc'.
2045 YFLAGS The list of arguments that will be passed by default to $YACC.
2046 This script will default YFLAGS to the empty string to avoid a
2047 default value of `-d' given by some make applications.
2050 Define full file name of the directory where to install `rmt'.
2051 (default: $(libexecdir))
2052 DEFAULT_ARCHIVE_FORMAT
2053 Set the default archive format. Allowed values are: V7, OLDGNU,
2054 USTAR, POSIX, GNU. Default is GNU
2056 Set the name of the default archive (default: -)
2058 Define default blocking factor (default: 20)
2059 DEFAULT_QUOTING_STYLE
2060 Set the default quoting style. Allowed values are: literal,
2061 shell, shell-always, c, escape, locale, clocale . Default is
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2067 Report bugs to <bug-tar@gnu.org>.
2072 if test "$ac_init_help" = "recursive"; then
2073 # If there are subdirs, report their specific --help.
2074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2075 test -d "$ac_dir" ||
2076 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2084 # A ".." for each directory in $ac_dir_suffix.
2085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2086 case $ac_top_builddir_sub in
2087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2091 ac_abs_top_builddir=$ac_pwd
2092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2093 # for backward compatibility:
2094 ac_top_builddir=$ac_top_build_prefix
2097 .) # We are building in place.
2099 ac_top_srcdir=$ac_top_builddir_sub
2100 ac_abs_top_srcdir=$ac_pwd ;;
2101 [\\/]* | ?:[\\/]* ) # Absolute name.
2102 ac_srcdir=$srcdir$ac_dir_suffix;
2103 ac_top_srcdir=$srcdir
2104 ac_abs_top_srcdir=$srcdir ;;
2106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2107 ac_top_srcdir=$ac_top_build_prefix$srcdir
2108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2112 cd "$ac_dir" || { ac_status=$?; continue; }
2113 # Check for guested configure.
2114 if test -f "$ac_srcdir/configure.gnu"; then
2116 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2117 elif test -f "$ac_srcdir/configure"; then
2119 $SHELL "$ac_srcdir/configure" --help=recursive
2121 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123 cd "$ac_pwd" || { ac_status=$?; break; }
2127 test -n "$ac_init_help" && exit $ac_status
2128 if $ac_init_version; then
2130 GNU tar configure 1.25
2131 generated by GNU Autoconf 2.63
2133 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2134 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2140 cat >config.log <<_ACEOF
2141 This file contains any messages produced by compilers while
2142 running configure, to aid debugging if configure makes a mistake.
2144 It was created by GNU tar $as_me 1.25, which was
2145 generated by GNU Autoconf 2.63. Invocation command line was
2157 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2158 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2159 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2160 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2161 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2164 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2166 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2167 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2168 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2169 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2170 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2171 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2172 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 $as_echo "PATH: $as_dir"
2197 # Keep a trace of the command line.
2198 # Strip out --no-create and --no-recursion so they do not pile up.
2199 # Strip out --silent because we don't want to record it for future runs.
2200 # Also quote any args containing shell meta-characters.
2201 # Make two passes to allow for proper duplicate-argument suppression.
2205 ac_must_keep_next=false
2211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2213 | -silent | --silent | --silen | --sile | --sil)
2216 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2219 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2221 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2222 if test $ac_must_keep_next = true; then
2223 ac_must_keep_next=false # Got value, back to normal.
2226 *=* | --config-cache | -C | -disable-* | --disable-* \
2227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2229 | -with-* | --with-* | -without-* | --without-* | --x)
2230 case "$ac_configure_args0 " in
2231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2234 -* ) ac_must_keep_next=true ;;
2237 ac_configure_args="$ac_configure_args '$ac_arg'"
2242 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2243 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2245 # When interrupted or exit'd, cleanup temporary files, and complete
2246 # config.log. We remove comments because anyway the quotes in there
2247 # would cause problems or look ugly.
2248 # WARNING: Use '\'' to represent an apostrophe within the trap.
2249 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2250 trap 'exit_status=$?
2251 # Save into config.log some information that might help in debugging.
2256 ## ---------------- ##
2257 ## Cache variables. ##
2258 ## ---------------- ##
2261 # The following way of writing the cache mishandles newlines in values,
2263 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2264 eval ac_val=\$$ac_var
2268 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2272 _ | IFS | as_nl) ;; #(
2273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2274 *) $as_unset $ac_var ;;
2279 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2280 *${as_nl}ac_space=\ *)
2282 "s/'\''/'\''\\\\'\'''\''/g;
2283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2294 ## ----------------- ##
2295 ## Output variables. ##
2296 ## ----------------- ##
2299 for ac_var in $ac_subst_vars
2301 eval ac_val=\$$ac_var
2303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 $as_echo "$ac_var='\''$ac_val'\''"
2309 if test -n "$ac_subst_files"; then
2311 ## ------------------- ##
2312 ## File substitutions. ##
2313 ## ------------------- ##
2316 for ac_var in $ac_subst_files
2318 eval ac_val=\$$ac_var
2320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 $as_echo "$ac_var='\''$ac_val'\''"
2327 if test -s confdefs.h; then
2337 test "$ac_signal" != 0 &&
2338 $as_echo "$as_me: caught signal $ac_signal"
2339 $as_echo "$as_me: exit $exit_status"
2341 rm -f core *.core core.conftest.* &&
2342 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2345 for ac_signal in 1 2 13 15; do
2346 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2350 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2351 rm -f -r conftest* confdefs.h
2353 # Predefined preprocessor variables.
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_NAME "$PACKAGE_NAME"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_STRING "$PACKAGE_STRING"
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2380 # Let the site file select an alternate cache file if it wants to.
2381 # Prefer an explicitly selected file to automatically selected ones.
2384 if test -n "$CONFIG_SITE"; then
2385 ac_site_file1=$CONFIG_SITE
2386 elif test "x$prefix" != xNONE; then
2387 ac_site_file1=$prefix/share/config.site
2388 ac_site_file2=$prefix/etc/config.site
2390 ac_site_file1=$ac_default_prefix/share/config.site
2391 ac_site_file2=$ac_default_prefix/etc/config.site
2393 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2395 test "x$ac_site_file" = xNONE && continue
2396 if test -r "$ac_site_file"; then
2397 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2398 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399 sed 's/^/| /' "$ac_site_file" >&5
2404 if test -r "$cache_file"; then
2405 # Some versions of bash will fail to source /dev/null (special
2406 # files actually), so we avoid doing that.
2407 if test -f "$cache_file"; then
2408 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2409 $as_echo "$as_me: loading cache $cache_file" >&6;}
2411 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2412 *) . "./$cache_file";;
2416 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2417 $as_echo "$as_me: creating cache $cache_file" >&6;}
2421 ac_header_list="$ac_header_list fcntl.h"
2422 ac_header_list="$ac_header_list linux/fd.h"
2423 ac_header_list="$ac_header_list memory.h"
2424 ac_header_list="$ac_header_list net/errno.h"
2425 ac_header_list="$ac_header_list sgtty.h"
2426 ac_header_list="$ac_header_list string.h"
2427 ac_header_list="$ac_header_list sys/param.h"
2428 ac_header_list="$ac_header_list sys/device.h"
2429 ac_header_list="$ac_header_list sys/gentape.h"
2430 ac_header_list="$ac_header_list sys/inet.h"
2431 ac_header_list="$ac_header_list sys/io/trioctl.h"
2432 ac_header_list="$ac_header_list sys/mtio.h"
2433 ac_header_list="$ac_header_list sys/time.h"
2434 ac_header_list="$ac_header_list sys/tprintf.h"
2435 ac_header_list="$ac_header_list sys/tape.h"
2436 ac_header_list="$ac_header_list unistd.h"
2437 ac_header_list="$ac_header_list locale.h"
2438 ac_func_list="$ac_func_list flockfile"
2439 ac_func_list="$ac_func_list funlockfile"
2440 ac_header_list="$ac_header_list features.h"
2441 ac_header_list="$ac_header_list linewrap.h"
2442 ac_func_list="$ac_func_list pathconf"
2443 ac_func_list="$ac_func_list btowc"
2444 ac_func_list="$ac_func_list canonicalize_file_name"
2445 ac_func_list="$ac_func_list getcwd"
2446 ac_func_list="$ac_func_list readlink"
2447 ac_func_list="$ac_func_list realpath"
2448 ac_func_list="$ac_func_list chown"
2449 ac_func_list="$ac_func_list fchown"
2450 ac_header_list="$ac_header_list dirent.h"
2451 ac_func_list="$ac_func_list fdopendir"
2452 ac_func_list="$ac_func_list dup2"
2453 ac_header_list="$ac_header_list errno.h"
2454 ac_func_list="$ac_func_list fchdir"
2455 ac_func_list="$ac_func_list fcntl"
2456 ac_func_list="$ac_func_list mempcpy"
2457 ac_header_list="$ac_header_list float.h"
2458 ac_func_list="$ac_func_list isblank"
2459 ac_func_list="$ac_func_list iswctype"
2460 ac_func_list="$ac_func_list mbsrtowcs"
2461 ac_func_list="$ac_func_list wmemchr"
2462 ac_func_list="$ac_func_list wmemcpy"
2463 ac_func_list="$ac_func_list wmempcpy"
2464 ac_header_list="$ac_header_list wctype.h"
2465 gl_fnmatch_required=GNU
2466 ac_header_list="$ac_header_list stdio_ext.h"
2467 ac_func_list="$ac_func_list __fpending"
2468 ac_func_list="$ac_func_list futimens"
2469 ac_func_list="$ac_func_list getdelim"
2470 ac_func_list="$ac_func_list getdtablesize"
2471 gl_getopt_required=GNU
2472 ac_header_list="$ac_header_list getopt.h"
2473 ac_func_list="$ac_func_list gettimeofday"
2474 ac_func_list="$ac_func_list nanotime"
2475 ac_header_list="$ac_header_list stdint.h"
2476 ac_header_list="$ac_header_list wchar.h"
2477 ac_header_list="$ac_header_list inttypes.h"
2478 ac_header_list="$ac_header_list langinfo.h"
2479 ac_func_list="$ac_func_list lchmod"
2480 ac_func_list="$ac_func_list link"
2481 ac_func_list="$ac_func_list linkat"
2482 ac_func_list="$ac_func_list symlink"
2483 ac_func_list="$ac_func_list lstat"
2484 ac_func_list="$ac_func_list mbsinit"
2485 ac_func_list="$ac_func_list mbrtowc"
2486 ac_header_list="$ac_header_list sys/mman.h"
2487 ac_func_list="$ac_func_list mprotect"
2488 ac_func_list="$ac_func_list memchr"
2489 ac_func_list="$ac_func_list mkfifo"
2490 ac_func_list="$ac_func_list mkfifoat"
2491 ac_func_list="$ac_func_list mknodat"
2492 ac_func_list="$ac_func_list mknod"
2493 ac_func_list="$ac_func_list alarm"
2494 ac_func_list="$ac_func_list nl_langinfo"
2495 ac_header_list="$ac_header_list priv.h"
2496 ac_func_list="$ac_func_list readlinkat"
2497 ac_func_list="$ac_func_list wcscoll"
2498 ac_func_list="$ac_func_list renameat"
2499 ac_func_list="$ac_func_list setenv"
2500 ac_func_list="$ac_func_list sleep"
2501 ac_header_list="$ac_header_list stdarg.h"
2502 ac_header_list="$ac_header_list stddef.h"
2503 ac_header_list="$ac_header_list stdio.h"
2504 ac_header_list="$ac_header_list stdlib.h"
2505 ac_func_list="$ac_func_list strdup"
2506 ac_header_list="$ac_header_list sys/socket.h"
2507 ac_header_list="$ac_header_list strings.h"
2508 ac_func_list="$ac_func_list strndup"
2509 ac_func_list="$ac_func_list symlinkat"
2510 ac_header_list="$ac_header_list sys/stat.h"
2511 ac_header_list="$ac_header_list sysexits.h"
2512 ac_header_list="$ac_header_list time.h"
2513 ac_func_list="$ac_func_list localtime_r"
2514 ac_func_list="$ac_func_list pipe"
2515 ac_header_list="$ac_header_list utime.h"
2516 ac_func_list="$ac_func_list futimes"
2517 ac_func_list="$ac_func_list futimesat"
2518 ac_func_list="$ac_func_list utimensat"
2519 ac_func_list="$ac_func_list lutimes"
2520 ac_func_list="$ac_func_list vasnprintf"
2521 ac_func_list="$ac_func_list wcrtomb"
2522 ac_func_list="$ac_func_list iswcntrl"
2523 ac_func_list="$ac_func_list iswblank"
2524 ac_func_list="$ac_func_list wcwidth"
2525 ac_header_list="$ac_header_list netdb.h"
2526 ac_header_list="$ac_header_list sys/wait.h"
2527 ac_header_list="$ac_header_list pwd.h"
2528 ac_header_list="$ac_header_list grp.h"
2529 ac_func_list="$ac_func_list setlocale"
2530 ac_func_list="$ac_func_list fchmod"
2531 ac_func_list="$ac_func_list fsync"
2532 gt_needs="$gt_needs need-formatstring-macros"
2533 # Check that the precious variables saved in the cache have kept the same
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2543 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2547 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2561 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2565 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2589 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2590 { (exit 1); exit 1; }; }
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 for ac_dir in build-aux "$srcdir"/build-aux; do
2627 if test -f "$ac_dir/install-sh"; then
2629 ac_install_sh="$ac_aux_dir/install-sh -c"
2631 elif test -f "$ac_dir/install.sh"; then
2633 ac_install_sh="$ac_aux_dir/install.sh -c"
2635 elif test -f "$ac_dir/shtool"; then
2637 ac_install_sh="$ac_aux_dir/shtool install -c"
2641 if test -z "$ac_aux_dir"; then
2642 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2643 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2644 { (exit 1); exit 1; }; }
2647 # These three variables are undocumented and unsupported,
2648 # and are intended to be withdrawn in a future Autoconf release.
2649 # They can cause serious problems if a builder's source tree is in a directory
2650 # whose full name contains unusual characters.
2651 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2652 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2653 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2656 ac_config_headers="$ac_config_headers config.h"
2659 am__api_version='1.11'
2661 # Find a good install program. We prefer a C program (faster),
2662 # so one script is as good as another. But avoid the broken or
2663 # incompatible versions:
2664 # SysV /etc/install, /usr/sbin/install
2665 # SunOS /usr/etc/install
2666 # IRIX /sbin/install
2668 # AmigaOS /C/install, which installs bootblocks on floppy discs
2669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2672 # OS/2's system install, which has a completely different semantic
2673 # ./install, which can be erroneously created by make from ./install.sh.
2674 # Reject install programs that cannot install multiple files.
2675 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2676 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2677 if test -z "$INSTALL"; then
2678 if test "${ac_cv_path_install+set}" = set; then
2679 $as_echo_n "(cached) " >&6
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 # Account for people who put trailing slashes in PATH elements.
2688 ./ | .// | /cC/* | \
2689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2693 # OSF1 and SCO ODT 3.0 have their own names for install.
2694 # Don't use installbsd from OSF since it installs stuff as root
2696 for ac_prog in ginstall scoinst install; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2699 if test $ac_prog = install &&
2700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701 # AIX install. It has an incompatible calling convention.
2703 elif test $ac_prog = install &&
2704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705 # program-specific install script used by HP pwplus--don't use.
2708 rm -rf conftest.one conftest.two conftest.dir
2709 echo one > conftest.one
2710 echo two > conftest.two
2712 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2713 test -s conftest.one && test -s conftest.two &&
2714 test -s conftest.dir/conftest.one &&
2715 test -s conftest.dir/conftest.two
2717 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730 rm -rf conftest.one conftest.two conftest.dir
2733 if test "${ac_cv_path_install+set}" = set; then
2734 INSTALL=$ac_cv_path_install
2736 # As a last resort, use the slow shell script. Don't cache a
2737 # value for INSTALL within a source directory, because that will
2738 # break other packages using the cache if that directory is
2739 # removed, or if the value is a relative name.
2740 INSTALL=$ac_install_sh
2743 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2744 $as_echo "$INSTALL" >&6; }
2746 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2747 # It thinks the first close brace ends the variable substitution.
2748 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2750 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2752 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2754 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2755 $as_echo_n "checking whether build environment is sane... " >&6; }
2758 echo timestamp > conftest.file
2759 # Reject unsafe characters in $srcdir or the absolute working directory
2760 # name. Accept space and tab only in the latter.
2764 *[\\\"\#\$\&\'\`$am_lf]*)
2765 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2766 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2767 { (exit 1); exit 1; }; };;
2770 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2771 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2772 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2773 { (exit 1); exit 1; }; };;
2776 # Do `set' in a subshell so we don't clobber the current shell's
2777 # arguments. Must try -L first in case configure is actually a
2778 # symlink; some systems play weird games with the mod time of symlinks
2779 # (eg FreeBSD returns the mod time of the symlink's containing
2782 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2783 if test "$*" = "X"; then
2785 set X `ls -t "$srcdir/configure" conftest.file`
2788 if test "$*" != "X $srcdir/configure conftest.file" \
2789 && test "$*" != "X conftest.file $srcdir/configure"; then
2791 # If neither matched, then we have a broken ls. This can happen
2792 # if, for instance, CONFIG_SHELL is bash and it inherits a
2793 # broken ls alias from the environment. This has actually
2794 # happened. Such a system could not be considered "sane".
2795 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2796 alias in your environment" >&5
2797 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2798 alias in your environment" >&2;}
2799 { (exit 1); exit 1; }; }
2802 test "$2" = conftest.file
2808 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2809 Check your system clock" >&5
2810 $as_echo "$as_me: error: newly created file is older than distributed files!
2811 Check your system clock" >&2;}
2812 { (exit 1); exit 1; }; }
2814 { $as_echo "$as_me:$LINENO: result: yes" >&5
2815 $as_echo "yes" >&6; }
2816 test "$program_prefix" != NONE &&
2817 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2818 # Use a double $ so make ignores it.
2819 test "$program_suffix" != NONE &&
2820 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2821 # Double any \ or $.
2822 # By default was `s,x,x', remove it if useless.
2823 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2824 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2829 if test x"${MISSING+set}" != xset; then
2832 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2834 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2837 # Use eval to expand $SHELL
2838 if eval "$MISSING --run true"; then
2839 am_missing_run="$MISSING --run "
2842 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2843 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2846 if test x"${install_sh}" != xset; then
2849 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851 install_sh="\${SHELL} $am_aux_dir/install-sh"
2855 # Installed binaries are usually stripped using `strip' when the user
2856 # run `make install-strip'. However `strip' might not be the right
2857 # tool to use in cross-compilation environments, therefore Automake
2858 # will honor the `STRIP' environment variable to overrule this program.
2859 if test "$cross_compiling" != no; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}strip; ac_word=$2
2863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_STRIP+set}" = set; then
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$STRIP"; then
2869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 STRIP=$ac_cv_prog_STRIP
2889 if test -n "$STRIP"; then
2890 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2891 $as_echo "$STRIP" >&6; }
2893 { $as_echo "$as_me:$LINENO: result: no" >&5
2894 $as_echo "no" >&6; }
2899 if test -z "$ac_cv_prog_STRIP"; then
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2931 $as_echo "$ac_ct_STRIP" >&6; }
2933 { $as_echo "$as_me:$LINENO: result: no" >&5
2934 $as_echo "no" >&6; }
2937 if test "x$ac_ct_STRIP" = x; then
2940 case $cross_compiling:$ac_tool_warned in
2942 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2949 STRIP="$ac_cv_prog_STRIP"
2953 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2955 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2956 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2957 if test -z "$MKDIR_P"; then
2958 if test "${ac_cv_path_mkdir+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965 test -z "$as_dir" && as_dir=.
2966 for ac_prog in mkdir gmkdir; do
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2969 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2970 'mkdir (GNU coreutils) '* | \
2971 'mkdir (coreutils) '* | \
2972 'mkdir (fileutils) '4.1*)
2973 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2983 if test "${ac_cv_path_mkdir+set}" = set; then
2984 MKDIR_P="$ac_cv_path_mkdir -p"
2986 # As a last resort, use the slow shell script. Don't cache a
2987 # value for MKDIR_P within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the value is a relative name.
2990 test -d ./--version && rmdir ./--version
2991 MKDIR_P="$ac_install_sh -d"
2994 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2995 $as_echo "$MKDIR_P" >&6; }
3000 [\\/$]* | ?:[\\/]*) ;;
3001 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3004 for ac_prog in gawk mawk nawk awk
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_AWK+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$AWK"; then
3014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_AWK="$ac_prog"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 if test -n "$AWK"; then
3035 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3043 test -n "$AWK" && break
3046 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3051 $as_echo_n "(cached) " >&6
3053 cat >conftest.make <<\_ACEOF
3056 @echo '@@@%%%=$(MAKE)=@@@%%%'
3058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061 eval ac_cv_prog_make_${ac_make}_set=yes;;
3063 eval ac_cv_prog_make_${ac_make}_set=no;;
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068 { $as_echo "$as_me:$LINENO: result: yes" >&5
3069 $as_echo "yes" >&6; }
3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3074 SET_MAKE="MAKE=${MAKE-make}"
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3084 rmdir .tst 2>/dev/null
3086 # Check whether --enable-silent-rules was given.
3087 if test "${enable_silent_rules+set}" = set; then
3088 enableval=$enable_silent_rules;
3091 case $enable_silent_rules in
3092 yes) AM_DEFAULT_VERBOSITY=0;;
3093 no) AM_DEFAULT_VERBOSITY=1;;
3094 *) AM_DEFAULT_VERBOSITY=1;;
3098 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3099 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3100 # is not polluted with repeated "-I."
3101 am__isrc=' -I$(srcdir)'
3102 # test to see if srcdir already configured
3103 if test -f $srcdir/config.status; then
3104 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3105 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3106 { (exit 1); exit 1; }; }
3110 # test whether we have cygpath
3111 if test -z "$CYGPATH_W"; then
3112 if (cygpath --version) >/dev/null 2>/dev/null; then
3113 CYGPATH_W='cygpath -w'
3120 # Define the identity of the package.
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE "$PACKAGE"
3130 cat >>confdefs.h <<_ACEOF
3131 #define VERSION "$VERSION"
3134 # Some tools Automake needs.
3136 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3139 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3142 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3145 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3148 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3150 # We need awk for the "check" target. The system "awk" is bad on
3152 # Always define AMTAR for backward compatibility.
3154 AMTAR=${AMTAR-"${am_missing_run}tar"}
3157 { $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
3158 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3159 # Loop over all known methods to create a tar archive until one works.
3160 _am_tools='gnutar plaintar pax cpio none'
3161 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3162 # Do not fold the above two line into one, because Tru64 sh and
3163 # Solaris sh will not grok spaces in the rhs of `-'.
3164 for _am_tool in $_am_tools
3168 for _am_tar in tar gnutar gtar;
3170 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3171 ($_am_tar --version) >&5 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && break
3176 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3177 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3178 am__untar="$_am_tar -xf -"
3181 # Must skip GNU tar: if it does not support --format= it doesn't create
3182 # ustar tarball either.
3183 (tar --version) >/dev/null 2>&1 && continue
3184 am__tar='tar chf - "$$tardir"'
3185 am__tar_='tar chf - "$tardir"'
3186 am__untar='tar xf -'
3189 am__tar='pax -L -x ustar -w "$$tardir"'
3190 am__tar_='pax -L -x ustar -w "$tardir"'
3194 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3195 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3196 am__untar='cpio -i -H ustar -d'
3205 # If the value was cached, stop now. We just wanted to have am__tar
3206 # and am__untar set.
3207 test -n "${am_cv_prog_tar_ustar}" && break
3209 # tar/untar a dummy directory, and stop if the command works
3212 echo GrepMe > conftest.dir/file
3213 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3214 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }
3219 if test -s conftest.tar; then
3220 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3221 ($am__untar <conftest.tar) >&5 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }
3225 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3230 if test "${am_cv_prog_tar_ustar+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3233 am_cv_prog_tar_ustar=$_am_tool
3236 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
3237 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3244 # Enable silent rules by default:
3245 # Check whether --enable-silent-rules was given.
3246 if test "${enable_silent_rules+set}" = set; then
3247 enableval=$enable_silent_rules;
3250 case $enable_silent_rules in
3251 yes) AM_DEFAULT_VERBOSITY=0;;
3252 no) AM_DEFAULT_VERBOSITY=1;;
3253 *) AM_DEFAULT_VERBOSITY=0;;
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_CC+set}" = set; then
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3296 { $as_echo "$as_me:$LINENO: result: no" >&5
3297 $as_echo "no" >&6; }
3302 if test -z "$ac_cv_prog_CC"; then
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_ac_ct_CC="gcc"
3322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3336 { $as_echo "$as_me:$LINENO: result: no" >&5
3337 $as_echo "no" >&6; }
3340 if test "x$ac_ct_CC" = x; then
3343 case $cross_compiling:$ac_tool_warned in
3345 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if test "${ac_cv_prog_CC+set}" = set; then
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 ac_cv_prog_CC="${ac_tool_prefix}cc"
3375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 if test -n "$CC"; then
3386 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3389 { $as_echo "$as_me:$LINENO: result: no" >&5
3390 $as_echo "no" >&6; }
3396 if test -z "$CC"; then
3397 # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3446 { $as_echo "$as_me:$LINENO: result: no" >&5
3447 $as_echo "no" >&6; }
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:$LINENO: result: no" >&5
3489 $as_echo "no" >&6; }
3493 test -n "$CC" && break
3496 if test -z "$CC"; then
3498 for ac_prog in cl.exe
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_ac_ct_CC="$ac_prog"
3518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3532 { $as_echo "$as_me:$LINENO: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$ac_ct_CC" && break
3540 if test "x$ac_ct_CC" = x; then
3543 case $cross_compiling:$ac_tool_warned in
3545 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3556 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details." >&5
3560 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details." >&2;}
3562 { (exit 1); exit 1; }; }; }
3564 # Provide some information about the compiler.
3565 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3568 { (ac_try="$ac_compiler --version >&5"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_compiler --version >&5") 2>&5
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3579 { (ac_try="$ac_compiler -v >&5"
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585 $as_echo "$ac_try_echo") >&5
3586 (eval "$ac_compiler -v >&5") 2>&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }
3590 { (ac_try="$ac_compiler -V >&5"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596 $as_echo "$ac_try_echo") >&5
3597 (eval "$ac_compiler -V >&5") 2>&5
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3617 ac_clean_files_save=$ac_clean_files
3618 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3619 # Try to create an executable without -o first, disregard a.out.
3620 # It will help us diagnose broken compilers, and finding out an intuition
3622 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3623 $as_echo_n "checking for C compiler default output file name... " >&6; }
3624 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3626 # The possible output files:
3627 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3630 for ac_file in $ac_files
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3634 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3639 if { (ac_try="$ac_link_default"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_link_default") 2>&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; then
3650 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3651 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3652 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3653 # so that the user can short-circuit this test for compilers unknown to
3655 for ac_file in $ac_files ''
3657 test -f "$ac_file" || continue
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3662 # We found the default executable, but exeext='' is most
3666 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3668 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3670 # We set ac_cv_exeext here because the later test for it is not
3671 # safe: cross compilers may not add the suffix if given an `-o'
3672 # argument, so we may need to know it at that point already.
3673 # Even if this section looks crufty: it has the advantage of
3680 test "$ac_cv_exeext" = no && ac_cv_exeext=
3686 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 if test -z "$ac_file"; then
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3695 See \`config.log' for more details." >&5
3696 $as_echo "$as_me: error: C compiler cannot create executables
3697 See \`config.log' for more details." >&2;}
3698 { (exit 77); exit 77; }; }; }
3701 ac_exeext=$ac_cv_exeext
3703 # Check that the compiler produces executables we can run. If not, either
3704 # the compiler is broken, or we cross compile.
3705 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3706 $as_echo_n "checking whether the C compiler works... " >&6; }
3707 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3708 # If not cross compiling, check that we can run a simple program.
3709 if test "$cross_compiling" != yes; then
3710 if { ac_try='./$ac_file'
3711 { (case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717 (eval "$ac_try") 2>&5
3719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3723 if test "$cross_compiling" = maybe; then
3726 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3729 If you meant to cross compile, use \`--host'.
3730 See \`config.log' for more details." >&5
3731 $as_echo "$as_me: error: cannot run C compiled programs.
3732 If you meant to cross compile, use \`--host'.
3733 See \`config.log' for more details." >&2;}
3734 { (exit 1); exit 1; }; }; }
3738 { $as_echo "$as_me:$LINENO: result: yes" >&5
3739 $as_echo "yes" >&6; }
3741 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3742 ac_clean_files=$ac_clean_files_save
3743 # Check that the compiler produces executables we can run. If not, either
3744 # the compiler is broken, or we cross compile.
3745 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3746 $as_echo_n "checking whether we are cross compiling... " >&6; }
3747 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3748 $as_echo "$cross_compiling" >&6; }
3750 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3751 $as_echo_n "checking for suffix of executables... " >&6; }
3752 if { (ac_try="$ac_link"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759 (eval "$ac_link") 2>&5
3761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; then
3763 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3764 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3765 # work properly (i.e., refer to `conftest.exe'), while it won't with
3767 for ac_file in conftest.exe conftest conftest.*; do
3768 test -f "$ac_file" || continue
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3777 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3780 See \`config.log' for more details." >&5
3781 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3782 See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }; }
3786 rm -f conftest$ac_cv_exeext
3787 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3788 $as_echo "$ac_cv_exeext" >&6; }
3790 rm -f conftest.$ac_ext
3791 EXEEXT=$ac_cv_exeext
3793 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3794 $as_echo_n "checking for suffix of object files... " >&6; }
3795 if test "${ac_cv_objext+set}" = set; then
3796 $as_echo_n "(cached) " >&6
3798 cat >conftest.$ac_ext <<_ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3813 rm -f conftest.o conftest.obj
3814 if { (ac_try="$ac_compile"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820 $as_echo "$ac_try_echo") >&5
3821 (eval "$ac_compile") 2>&5
3823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; then
3825 for ac_file in conftest.o conftest.obj conftest.*; do
3826 test -f "$ac_file" || continue;
3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3829 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3834 $as_echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3840 See \`config.log' for more details." >&5
3841 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3842 See \`config.log' for more details." >&2;}
3843 { (exit 1); exit 1; }; }; }
3846 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3848 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3849 $as_echo "$ac_cv_objext" >&6; }
3850 OBJEXT=$ac_cv_objext
3852 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3853 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3854 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3855 $as_echo_n "(cached) " >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3882 $as_echo "$ac_try_echo") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3907 if test $ac_compiler_gnu = yes; then
3912 ac_test_CFLAGS=${CFLAGS+set}
3913 ac_save_CFLAGS=$CFLAGS
3914 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3916 if test "${ac_cv_prog_cc_g+set}" = set; then
3917 $as_echo_n "(cached) " >&6
3919 ac_save_c_werror_flag=$ac_c_werror_flag
3920 ac_c_werror_flag=yes
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3945 $as_echo "$ac_try_echo") >&5
3946 (eval "$ac_compile") 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && {
3953 test -z "$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3955 } && test -s conftest.$ac_objext; then
3958 $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3997 $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_c_werror_flag=$ac_save_c_werror_flag
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025 (eval "$ac_compile") 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest.$ac_objext; then
4037 $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_c_werror_flag=$ac_save_c_werror_flag
4052 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4053 $as_echo "$ac_cv_prog_cc_g" >&6; }
4054 if test "$ac_test_CFLAGS" = set; then
4055 CFLAGS=$ac_save_CFLAGS
4056 elif test $ac_cv_prog_cc_g = yes; then
4057 if test "$GCC" = yes; then
4063 if test "$GCC" = yes; then
4069 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4070 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4071 if test "${ac_cv_prog_cc_c89+set}" = set; then
4072 $as_echo_n "(cached) " >&6
4074 ac_cv_prog_cc_c89=no
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4084 #include <sys/types.h>
4085 #include <sys/stat.h>
4086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4087 struct buf { int x; };
4088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4089 static char *e (p, i)
4095 static char *f (char * (*g) (char **, int), char **p, ...)
4100 s = g (p, va_arg (v,int));
4105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4106 function prototypes and stuff, but not '\xHH' hex character constants.
4107 These don't provoke an error unfortunately, instead are silently treated
4108 as 'x'. The following induces an error, until -std is added to get
4109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4110 array size at least. It's necessary to write '\x00'==0 to get something
4111 that's true only with -std. */
4112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4115 inside strings and character constants. */
4117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4119 int test (int i, double x);
4120 struct s1 {int (*f) (int a);};
4121 struct s2 {int (*f) (double a);};
4122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4136 CC="$ac_save_CC $ac_arg"
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4144 $as_echo "$ac_try_echo") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } && {
4152 test -z "$ac_c_werror_flag" ||
4153 test ! -s conftest.err
4154 } && test -s conftest.$ac_objext; then
4155 ac_cv_prog_cc_c89=$ac_arg
4157 $as_echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c89" != "xno" && break
4166 rm -f conftest.$ac_ext
4171 case "x$ac_cv_prog_cc_c89" in
4173 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4176 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 DEPDIR="${am__leading_dot}deps"
4192 ac_config_commands="$ac_config_commands depfiles"
4195 am_make=${MAKE-make}
4196 cat > confinc << 'END'
4198 @echo this is the am__doit target
4201 # If we don't find an include directive, just comment out the code.
4202 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4203 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4207 # First try GNU make style include.
4208 echo "include confinc" > confmf
4209 # Ignore all kinds of additional output from `make'.
4210 case `$am_make -s -f confmf 2> /dev/null` in #(
4211 *the\ am__doit\ target*)
4217 # Now try BSD make style include.
4218 if test "$am__include" = "#"; then
4219 echo '.include "confinc"' > confmf
4220 case `$am_make -s -f confmf 2> /dev/null` in #(
4221 *the\ am__doit\ target*)
4222 am__include=.include
4230 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4231 $as_echo "$_am_result" >&6; }
4232 rm -f confinc confmf
4234 # Check whether --enable-dependency-tracking was given.
4235 if test "${enable_dependency_tracking+set}" = set; then
4236 enableval=$enable_dependency_tracking;
4239 if test "x$enable_dependency_tracking" != xno; then
4240 am_depcomp="$ac_aux_dir/depcomp"
4243 if test "x$enable_dependency_tracking" != xno; then
4253 depcc="$CC" am_compiler_list=
4255 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4256 $as_echo_n "checking dependency style of $depcc... " >&6; }
4257 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4258 $as_echo_n "(cached) " >&6
4260 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4261 # We make a subdir and do the tests there. Otherwise we can end up
4262 # making bogus files that we don't know about and never remove. For
4263 # instance it was reported that on HP-UX the gcc test will end up
4264 # making a dummy file named `D' -- because `-MD' means `put the output
4267 # Copy depcomp to subdir because otherwise we won't find it if we're
4268 # using a relative directory.
4269 cp "$am_depcomp" conftest.dir
4271 # We will build objects and dependencies in a subdirectory because
4272 # it helps to detect inapplicable dependency modes. For instance
4273 # both Tru64's cc and ICC support -MD to output dependencies as a
4274 # side effect of compilation, but ICC will put the dependencies in
4275 # the current directory while Tru64 will put them in the object
4279 am_cv_CC_dependencies_compiler_type=none
4280 if test "$am_compiler_list" = ""; then
4281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4284 case " $depcc " in #(
4285 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4288 for depmode in $am_compiler_list; do
4289 # Setup a source with many dependencies, because some compilers
4290 # like to wrap large dependency lists on column 80 (with \), and
4291 # we should not choose a depcomp mode which is confused by this.
4293 # We need to recreate these files for each test, as the compiler may
4294 # overwrite some of them when testing with obscure command lines.
4295 # This happens at least with the AIX C compiler.
4297 for i in 1 2 3 4 5 6; do
4298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4300 # Solaris 8's {/usr,}/bin/sh.
4301 touch sub/conftst$i.h
4303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4305 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4306 # mode. It turns out that the SunPro C++ compiler does not properly
4307 # handle `-M -o', and we need to detect this. Also, some Intel
4308 # versions had trouble with output in subdirs
4309 am__obj=sub/conftest.${OBJEXT-o}
4310 am__minus_obj="-o $am__obj"
4313 # This depmode causes a compiler race in universal mode.
4314 test "$am__universal" = false || continue
4317 # after this tag, mechanisms are not by side-effect, so they'll
4318 # only be used when explicitly requested
4319 if test "x$enable_dependency_tracking" = xyes; then
4325 msvisualcpp | msvcmsys)
4326 # This compiler won't grok `-c -o', but also, the minuso test has
4327 # not run yet. These depmodes are late enough in the game, and
4328 # so weak that their functioning should not be impacted.
4329 am__obj=conftest.${OBJEXT-o}
4334 if depmode=$depmode \
4335 source=sub/conftest.c object=$am__obj \
4336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338 >/dev/null 2>conftest.err &&
4339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343 # icc doesn't choke on unknown options, it will just issue warnings
4344 # or remarks (even with -Werror). So we grep stderr for any message
4345 # that says an option was ignored or not supported.
4346 # When given -MP, icc 7.0 and 7.1 complain thusly:
4347 # icc: Command line warning: ignoring option '-M'; no argument required
4348 # The diagnosis changed in icc 8.0:
4349 # icc: Command line remark: option '-MP' not supported
4350 if (grep 'ignoring option' conftest.err ||
4351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352 am_cv_CC_dependencies_compiler_type=$depmode
4361 am_cv_CC_dependencies_compiler_type=none
4365 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4370 test "x$enable_dependency_tracking" != xno \
4371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4373 am__fastdepCC_FALSE='#'
4375 am__fastdepCC_TRUE='#'
4376 am__fastdepCC_FALSE=
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_RANLIB+set}" = set; then
4387 $as_echo_n "(cached) " >&6
4389 if test -n "$RANLIB"; then
4390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 RANLIB=$ac_cv_prog_RANLIB
4410 if test -n "$RANLIB"; then
4411 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4412 $as_echo "$RANLIB" >&6; }
4414 { $as_echo "$as_me:$LINENO: result: no" >&5
4415 $as_echo "no" >&6; }
4420 if test -z "$ac_cv_prog_RANLIB"; then
4421 ac_ct_RANLIB=$RANLIB
4422 # Extract the first word of "ranlib", so it can be a program name with args.
4423 set dummy ranlib; ac_word=$2
4424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4427 $as_echo_n "(cached) " >&6
4429 if test -n "$ac_ct_RANLIB"; then
4430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_ac_ct_RANLIB="ranlib"
4440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450 if test -n "$ac_ct_RANLIB"; then
4451 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4452 $as_echo "$ac_ct_RANLIB" >&6; }
4454 { $as_echo "$as_me:$LINENO: result: no" >&5
4455 $as_echo "no" >&6; }
4458 if test "x$ac_ct_RANLIB" = x; then
4461 case $cross_compiling:$ac_tool_warned in
4463 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4467 RANLIB=$ac_ct_RANLIB
4470 RANLIB="$ac_cv_prog_RANLIB"
4473 for ac_prog in 'bison -y' byacc
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476 set dummy $ac_prog; ac_word=$2
4477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_YACC+set}" = set; then
4480 $as_echo_n "(cached) " >&6
4482 if test -n "$YACC"; then
4483 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_YACC="$ac_prog"
4493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 YACC=$ac_cv_prog_YACC
4503 if test -n "$YACC"; then
4504 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4505 $as_echo "$YACC" >&6; }
4507 { $as_echo "$as_me:$LINENO: result: no" >&5
4508 $as_echo "no" >&6; }
4512 test -n "$YACC" && break
4514 test -n "$YACC" || YACC="yacc"
4516 if test "x$CC" != xcc; then
4517 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4518 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4520 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4521 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4523 set dummy $CC; ac_cc=`$as_echo "$2" |
4524 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4525 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4526 $as_echo_n "(cached) " >&6
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4543 # Make sure it works both with $CC and with simple cc.
4544 # We do the test twice because some compilers refuse to overwrite an
4545 # existing .o file with -o, though they will create one.
4546 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4548 if { (case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553 $as_echo "$ac_try_echo") >&5
4554 (eval "$ac_try") 2>&5
4556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4563 $as_echo "$ac_try_echo") >&5
4564 (eval "$ac_try") 2>&5
4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); };
4569 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4570 if test "x$CC" != xcc; then
4571 # Test first that cc exists at all.
4572 if { ac_try='cc -c conftest.$ac_ext >&5'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4578 $as_echo "$ac_try_echo") >&5
4579 (eval "$ac_try") 2>&5
4581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4585 if { (case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4590 $as_echo "$ac_try_echo") >&5
4591 (eval "$ac_try") 2>&5
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_try") 2>&5
4603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); };
4609 # cc exists but doesn't like -o.
4610 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4615 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4617 rm -f core conftest*
4620 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4621 { $as_echo "$as_me:$LINENO: result: yes" >&5
4622 $as_echo "yes" >&6; }
4624 { $as_echo "$as_me:$LINENO: result: no" >&5
4625 $as_echo "no" >&6; }
4627 cat >>confdefs.h <<\_ACEOF
4628 #define NO_MINUS_C_MINUS_O 1
4633 # FIXME: we rely on the cache variable name because
4634 # there is no other way.
4636 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4637 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4638 if test "$am_t" != yes; then
4639 # Losing compiler, so override with the script.
4640 # FIXME: It is wrong to rewrite CC.
4641 # But if we don't then we get into trouble of one sort or another.
4642 # A longer-term fix would be to have automake use am__CC in this case,
4643 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4644 CC="$am_aux_dir/compile $CC"
4648 # Make sure we can run config.sub.
4649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4650 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4651 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4652 { (exit 1); exit 1; }; }
4654 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4655 $as_echo_n "checking build system type... " >&6; }
4656 if test "${ac_cv_build+set}" = set; then
4657 $as_echo_n "(cached) " >&6
4659 ac_build_alias=$build_alias
4660 test "x$ac_build_alias" = x &&
4661 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4662 test "x$ac_build_alias" = x &&
4663 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4664 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4665 { (exit 1); exit 1; }; }
4666 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4667 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4668 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4669 { (exit 1); exit 1; }; }
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4673 $as_echo "$ac_cv_build" >&6; }
4674 case $ac_cv_build in
4676 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4677 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4678 { (exit 1); exit 1; }; };;
4681 ac_save_IFS=$IFS; IFS='-'
4687 # Remember, the first character of IFS is used to create $*,
4688 # except with old shells:
4691 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4694 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4695 $as_echo_n "checking host system type... " >&6; }
4696 if test "${ac_cv_host+set}" = set; then
4697 $as_echo_n "(cached) " >&6
4699 if test "x$host_alias" = x; then
4700 ac_cv_host=$ac_cv_build
4702 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4703 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4704 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4705 { (exit 1); exit 1; }; }
4709 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4710 $as_echo "$ac_cv_host" >&6; }
4713 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4714 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4715 { (exit 1); exit 1; }; };;
4718 ac_save_IFS=$IFS; IFS='-'
4724 # Remember, the first character of IFS is used to create $*,
4725 # except with old shells:
4728 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4739 # On Suns, sometimes $CPP names a directory.
4740 if test -n "$CPP" && test -d "$CPP"; then
4743 if test -z "$CPP"; then
4744 if test "${ac_cv_prog_CPP+set}" = set; then
4745 $as_echo_n "(cached) " >&6
4747 # Double quotes because CPP needs to be expanded
4748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4751 for ac_c_preproc_warn_flag in '' yes
4753 # Use a header file that comes with gcc, so configuring glibc
4754 # with a fresh cross-compiler works.
4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 # <limits.h> exists even on freestanding compilers.
4757 # On the NeXT, cc -E runs the code through the compiler's parser,
4758 # not just through cpp. "Syntax error" is here to catch this case.
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4766 # include <limits.h>
4768 # include <assert.h>
4772 if { (ac_try="$ac_cpp conftest.$ac_ext"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781 grep -v '^ *+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } >/dev/null && {
4786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787 test ! -s conftest.err
4791 $as_echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Broken: fails on valid input.
4798 rm -f conftest.err conftest.$ac_ext
4800 # OK, works on sane cases. Now check whether nonexistent headers
4801 # can be detected and how.
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #include <ac_nonexistent.h>
4810 if { (ac_try="$ac_cpp conftest.$ac_ext"
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816 $as_echo "$ac_try_echo") >&5
4817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } >/dev/null && {
4824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4825 test ! -s conftest.err
4827 # Broken: success on invalid input.
4830 $as_echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 # Passes both tests.
4838 rm -f conftest.err conftest.$ac_ext
4841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842 rm -f conftest.err conftest.$ac_ext
4843 if $ac_preproc_ok; then
4855 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4856 $as_echo "$CPP" >&6; }
4858 for ac_c_preproc_warn_flag in '' yes
4860 # Use a header file that comes with gcc, so configuring glibc
4861 # with a fresh cross-compiler works.
4862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863 # <limits.h> exists even on freestanding compilers.
4864 # On the NeXT, cc -E runs the code through the compiler's parser,
4865 # not just through cpp. "Syntax error" is here to catch this case.
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 # include <limits.h>
4875 # include <assert.h>
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null && {
4893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4898 $as_echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Broken: fails on valid input.
4905 rm -f conftest.err conftest.$ac_ext
4907 # OK, works on sane cases. Now check whether nonexistent headers
4908 # can be detected and how.
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <ac_nonexistent.h>
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4923 $as_echo "$ac_try_echo") >&5
4924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } >/dev/null && {
4931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4932 test ! -s conftest.err
4934 # Broken: success on invalid input.
4937 $as_echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Passes both tests.
4945 rm -f conftest.err conftest.$ac_ext
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4953 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4955 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4956 See \`config.log' for more details." >&5
4957 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4958 See \`config.log' for more details." >&2;}
4959 { (exit 1); exit 1; }; }; }
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4970 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971 if test "${ac_cv_path_GREP+set}" = set; then
4972 $as_echo_n "(cached) " >&6
4974 if test -z "$GREP"; then
4975 ac_path_GREP_found=false
4976 # Loop through the user's path and test for each of PROGNAME-LIST
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981 test -z "$as_dir" && as_dir=.
4982 for ac_prog in grep ggrep; do
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4985 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4986 # Check for GNU ac_path_GREP and select it if it is found.
4987 # Check for GNU $ac_path_GREP
4988 case `"$ac_path_GREP" --version 2>&1` in
4990 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4993 $as_echo_n 0123456789 >"conftest.in"
4996 cat "conftest.in" "conftest.in" >"conftest.tmp"
4997 mv "conftest.tmp" "conftest.in"
4998 cp "conftest.in" "conftest.nl"
4999 $as_echo 'GREP' >> "conftest.nl"
5000 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002 ac_count=`expr $ac_count + 1`
5003 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5004 # Best one so far, save it but keep looking for a better one
5005 ac_cv_path_GREP="$ac_path_GREP"
5006 ac_path_GREP_max=$ac_count
5008 # 10*(2^10) chars as input seems more than enough
5009 test $ac_count -gt 10 && break
5011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 $ac_path_GREP_found && break 3
5019 if test -z "$ac_cv_path_GREP"; then
5020 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5021 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5022 { (exit 1); exit 1; }; }
5025 ac_cv_path_GREP=$GREP
5029 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5030 $as_echo "$ac_cv_path_GREP" >&6; }
5031 GREP="$ac_cv_path_GREP"
5034 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5035 $as_echo_n "checking for egrep... " >&6; }
5036 if test "${ac_cv_path_EGREP+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5039 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5040 then ac_cv_path_EGREP="$GREP -E"
5042 if test -z "$EGREP"; then
5043 ac_path_EGREP_found=false
5044 # Loop through the user's path and test for each of PROGNAME-LIST
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5049 test -z "$as_dir" && as_dir=.
5050 for ac_prog in egrep; do
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5053 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5054 # Check for GNU ac_path_EGREP and select it if it is found.
5055 # Check for GNU $ac_path_EGREP
5056 case `"$ac_path_EGREP" --version 2>&1` in
5058 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5061 $as_echo_n 0123456789 >"conftest.in"
5064 cat "conftest.in" "conftest.in" >"conftest.tmp"
5065 mv "conftest.tmp" "conftest.in"
5066 cp "conftest.in" "conftest.nl"
5067 $as_echo 'EGREP' >> "conftest.nl"
5068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5070 ac_count=`expr $ac_count + 1`
5071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5072 # Best one so far, save it but keep looking for a better one
5073 ac_cv_path_EGREP="$ac_path_EGREP"
5074 ac_path_EGREP_max=$ac_count
5076 # 10*(2^10) chars as input seems more than enough
5077 test $ac_count -gt 10 && break
5079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5082 $ac_path_EGREP_found && break 3
5087 if test -z "$ac_cv_path_EGREP"; then
5088 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5089 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5090 { (exit 1); exit 1; }; }
5093 ac_cv_path_EGREP=$EGREP
5098 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5099 $as_echo "$ac_cv_path_EGREP" >&6; }
5100 EGREP="$ac_cv_path_EGREP"
5103 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5104 $as_echo_n "checking for ANSI C header files... " >&6; }
5105 if test "${ac_cv_header_stdc+set}" = set; then
5106 $as_echo_n "(cached) " >&6
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134 $as_echo "$ac_try_echo") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 ac_cv_header_stdc=yes
5147 $as_echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 ac_cv_header_stdc=no
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 if test $ac_cv_header_stdc = yes; then
5156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "memchr" >/dev/null 2>&1; then
5170 ac_cv_header_stdc=no
5176 if test $ac_cv_header_stdc = yes; then
5177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5188 $EGREP "free" >/dev/null 2>&1; then
5191 ac_cv_header_stdc=no
5197 if test $ac_cv_header_stdc = yes; then
5198 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5199 if test "$cross_compiling" = yes; then
5202 cat >conftest.$ac_ext <<_ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5210 #if ((' ' & 0x0FF) == 0x020)
5211 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5212 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5214 # define ISLOWER(c) \
5215 (('a' <= (c) && (c) <= 'i') \
5216 || ('j' <= (c) && (c) <= 'r') \
5217 || ('s' <= (c) && (c) <= 'z'))
5218 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5221 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5226 for (i = 0; i < 256; i++)
5227 if (XOR (islower (i), ISLOWER (i))
5228 || toupper (i) != TOUPPER (i))
5233 rm -f conftest$ac_exeext
5234 if { (ac_try="$ac_link"
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5240 $as_echo "$ac_try_echo") >&5
5241 (eval "$ac_link") 2>&5
5243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5245 { (case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5250 $as_echo "$ac_try_echo") >&5
5251 (eval "$ac_try") 2>&5
5253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5257 $as_echo "$as_me: program exited with status $ac_status" >&5
5258 $as_echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_cv_header_stdc=no
5264 rm -rf conftest.dSYM
5265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5272 $as_echo "$ac_cv_header_stdc" >&6; }
5273 if test $ac_cv_header_stdc = yes; then
5275 cat >>confdefs.h <<\_ACEOF
5276 #define STDC_HEADERS 1
5281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5292 inttypes.h stdint.h unistd.h
5294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5296 $as_echo_n "checking for $ac_header... " >&6; }
5297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5298 $as_echo_n "(cached) " >&6
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5308 #include <$ac_header>
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5317 $as_echo "$ac_try_echo") >&5
5318 (eval "$ac_compile") 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest.$ac_objext; then
5328 eval "$as_ac_Header=yes"
5330 $as_echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 eval "$as_ac_Header=no"
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_res=`eval 'as_val=${'$as_ac_Header'}
5339 $as_echo "$as_val"'`
5340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5341 $as_echo "$ac_res" >&6; }
5342 as_val=`eval 'as_val=${'$as_ac_Header'}
5343 $as_echo "$as_val"'`
5344 if test "x$as_val" = x""yes; then
5345 cat >>confdefs.h <<_ACEOF
5346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5357 if test "${ac_cv_header_minix_config_h+set}" = set; then
5358 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5359 $as_echo_n "checking for minix/config.h... " >&6; }
5360 if test "${ac_cv_header_minix_config_h+set}" = set; then
5361 $as_echo_n "(cached) " >&6
5363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5364 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5366 # Is the header compilable?
5367 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5368 $as_echo_n "checking minix/config.h usability... " >&6; }
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 $ac_includes_default
5376 #include <minix/config.h>
5378 rm -f conftest.$ac_objext
5379 if { (ac_try="$ac_compile"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385 $as_echo "$ac_try_echo") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } && {
5393 test -z "$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5395 } && test -s conftest.$ac_objext; then
5396 ac_header_compiler=yes
5398 $as_echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_header_compiler=no
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5406 $as_echo "$ac_header_compiler" >&6; }
5408 # Is the header present?
5409 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5410 $as_echo_n "checking minix/config.h presence... " >&6; }
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <minix/config.h>
5419 if { (ac_try="$ac_cpp conftest.$ac_ext"
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5425 $as_echo "$ac_try_echo") >&5
5426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } >/dev/null && {
5433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5434 test ! -s conftest.err
5436 ac_header_preproc=yes
5438 $as_echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 ac_header_preproc=no
5444 rm -f conftest.err conftest.$ac_ext
5445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5446 $as_echo "$ac_header_preproc" >&6; }
5448 # So? What about this header?
5449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5451 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5452 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5453 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5454 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5455 ac_header_preproc=yes
5458 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5459 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5460 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5461 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5462 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5463 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5464 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5465 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5466 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5467 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5468 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5469 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5471 ## ------------------------------ ##
5472 ## Report this to bug-tar@gnu.org ##
5473 ## ------------------------------ ##
5475 ) | sed "s/^/$as_me: WARNING: /" >&2
5478 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5479 $as_echo_n "checking for minix/config.h... " >&6; }
5480 if test "${ac_cv_header_minix_config_h+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5483 ac_cv_header_minix_config_h=$ac_header_preproc
5485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5486 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5489 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5496 if test "$MINIX" = yes; then
5498 cat >>confdefs.h <<\_ACEOF
5499 #define _POSIX_SOURCE 1
5503 cat >>confdefs.h <<\_ACEOF
5504 #define _POSIX_1_SOURCE 2
5508 cat >>confdefs.h <<\_ACEOF
5517 cat >>confdefs.h <<\_ACEOF
5518 #define _XOPEN_SOURCE 500
5526 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5527 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5528 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5531 cat >conftest.$ac_ext <<_ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5538 # define __EXTENSIONS__ 1
5539 $ac_includes_default
5548 rm -f conftest.$ac_objext
5549 if { (ac_try="$ac_compile"
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5555 $as_echo "$ac_try_echo") >&5
5556 (eval "$ac_compile") 2>conftest.er1
5558 grep -v '^ *+' conftest.er1 >conftest.err
5560 cat conftest.err >&5
5561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && {
5563 test -z "$ac_c_werror_flag" ||
5564 test ! -s conftest.err
5565 } && test -s conftest.$ac_objext; then
5566 ac_cv_safe_to_define___extensions__=yes
5568 $as_echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 ac_cv_safe_to_define___extensions__=no
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5577 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5578 test $ac_cv_safe_to_define___extensions__ = yes &&
5579 cat >>confdefs.h <<\_ACEOF
5580 #define __EXTENSIONS__ 1
5583 cat >>confdefs.h <<\_ACEOF
5584 #define _ALL_SOURCE 1
5587 cat >>confdefs.h <<\_ACEOF
5588 #define _GNU_SOURCE 1
5591 cat >>confdefs.h <<\_ACEOF
5592 #define _POSIX_PTHREAD_SEMANTICS 1
5595 cat >>confdefs.h <<\_ACEOF
5596 #define _TANDEM_SOURCE 1
5607 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5608 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5609 if test "${ac_cv_sys_largefile_source+set}" = set; then
5610 $as_echo_n "(cached) " >&6
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <sys/types.h> /* for off_t */
5624 int (*fp) (FILE *, off_t, int) = fseeko;
5625 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (ac_try="$ac_link"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5637 $as_echo "$ac_try_echo") >&5
5638 (eval "$ac_link") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest$ac_exeext && {
5648 test "$cross_compiling" = yes ||
5649 $as_test_x conftest$ac_exeext
5651 ac_cv_sys_largefile_source=no; break
5653 $as_echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5659 rm -rf conftest.dSYM
5660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5661 conftest$ac_exeext conftest.$ac_ext
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #define _LARGEFILE_SOURCE 1
5669 #include <sys/types.h> /* for off_t */
5674 int (*fp) (FILE *, off_t, int) = fseeko;
5675 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (ac_try="$ac_link"
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687 $as_echo "$ac_try_echo") >&5
5688 (eval "$ac_link") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest$ac_exeext && {
5698 test "$cross_compiling" = yes ||
5699 $as_test_x conftest$ac_exeext
5701 ac_cv_sys_largefile_source=1; break
5703 $as_echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -rf conftest.dSYM
5710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5711 conftest$ac_exeext conftest.$ac_ext
5712 ac_cv_sys_largefile_source=unknown
5716 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5717 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5718 case $ac_cv_sys_largefile_source in #(
5721 cat >>confdefs.h <<_ACEOF
5722 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5728 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5729 # in glibc 2.1.3, but that breaks too many other things.
5730 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5731 if test $ac_cv_sys_largefile_source != unknown; then
5733 cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_FSEEKO 1
5739 case $ac_cv_prog_cc_stdc in
5740 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5741 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5742 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5743 if test "${ac_cv_prog_cc_c99+set}" = set; then
5744 $as_echo_n "(cached) " >&6
5746 ac_cv_prog_cc_c99=no
5748 cat >conftest.$ac_ext <<_ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5755 #include <stdbool.h>
5760 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5761 #define debug(...) fprintf (stderr, __VA_ARGS__)
5762 #define showlist(...) puts (#__VA_ARGS__)
5763 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5765 test_varargs_macros (void)
5770 debug ("X = %d\n", x);
5771 showlist (The first, second, and third items.);
5772 report (x>y, "x is %d but y is %d", x, y);
5775 // Check long long types.
5776 #define BIG64 18446744073709551615ull
5777 #define BIG32 4294967295ul
5778 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5780 your preprocessor is broken;
5784 your preprocessor is broken;
5786 static long long int bignum = -9223372036854775807LL;
5787 static unsigned long long int ubignum = BIG64;
5789 struct incomplete_array
5797 const wchar_t *name;
5801 typedef const char *ccp;
5804 test_restrict (ccp restrict text)
5806 // See if C++-style comments work.
5807 // Iterate through items via the restricted pointer.
5808 // Also check for declarations in for loops.
5809 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5814 // Check varargs and va_copy.
5816 test_varargs (const char *format, ...)
5819 va_start (args, format);
5821 va_copy (args_copy, args);
5832 str = va_arg (args_copy, const char *);
5835 number = va_arg (args_copy, int);
5838 fnumber = va_arg (args_copy, double);
5853 _Bool success = false;
5856 if (test_restrict ("String literal") == 0)
5858 char *restrict newvar = "Another string";
5861 test_varargs ("s, d' f .", "string", 65, 34.234);
5862 test_varargs_macros ();
5864 // Check flexible array members.
5865 struct incomplete_array *ia =
5866 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5868 for (int i = 0; i < ia->datasize; ++i)
5869 ia->data[i] = i * 1.234;
5871 // Check named initializers.
5872 struct named_init ni = {
5874 .name = L"Test wide string",
5875 .average = 543.34343,
5880 int dynamic_array[ni.number];
5881 dynamic_array[ni.number - 1] = 543;
5883 // work around unused variable warnings
5884 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5885 || dynamic_array[ni.number - 1] != 543);
5891 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5893 CC="$ac_save_CC $ac_arg"
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5901 $as_echo "$ac_try_echo") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_objext; then
5912 ac_cv_prog_cc_c99=$ac_arg
5914 $as_echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5920 rm -f core conftest.err conftest.$ac_objext
5921 test "x$ac_cv_prog_cc_c99" != "xno" && break
5923 rm -f conftest.$ac_ext
5928 case "x$ac_cv_prog_cc_c99" in
5930 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5931 $as_echo "none needed" >&6; } ;;
5933 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5934 $as_echo "unsupported" >&6; } ;;
5936 CC="$CC $ac_cv_prog_cc_c99"
5937 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5938 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5940 if test "x$ac_cv_prog_cc_c99" != xno; then
5941 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5943 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5945 if test "${ac_cv_prog_cc_c89+set}" = set; then
5946 $as_echo_n "(cached) " >&6
5948 ac_cv_prog_cc_c89=no
5950 cat >conftest.$ac_ext <<_ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5958 #include <sys/types.h>
5959 #include <sys/stat.h>
5960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5961 struct buf { int x; };
5962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5963 static char *e (p, i)
5969 static char *f (char * (*g) (char **, int), char **p, ...)
5974 s = g (p, va_arg (v,int));
5979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5980 function prototypes and stuff, but not '\xHH' hex character constants.
5981 These don't provoke an error unfortunately, instead are silently treated
5982 as 'x'. The following induces an error, until -std is added to get
5983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5984 array size at least. It's necessary to write '\x00'==0 to get something
5985 that's true only with -std. */
5986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5988 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5989 inside strings and character constants. */
5991 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5993 int test (int i, double x);
5994 struct s1 {int (*f) (int a);};
5995 struct s2 {int (*f) (double a);};
5996 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6002 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6007 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6008 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6010 CC="$ac_save_CC $ac_arg"
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6018 $as_echo "$ac_try_echo") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6021 grep -v '^ *+' conftest.er1 >conftest.err
6023 cat conftest.err >&5
6024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
6029 ac_cv_prog_cc_c89=$ac_arg
6031 $as_echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6037 rm -f core conftest.err conftest.$ac_objext
6038 test "x$ac_cv_prog_cc_c89" != "xno" && break
6040 rm -f conftest.$ac_ext
6045 case "x$ac_cv_prog_cc_c89" in
6047 { $as_echo "$as_me:$LINENO: result: none needed" >&5
6048 $as_echo "none needed" >&6; } ;;
6050 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6051 $as_echo "unsupported" >&6; } ;;
6053 CC="$CC $ac_cv_prog_cc_c89"
6054 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6055 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6057 if test "x$ac_cv_prog_cc_c89" != xno; then
6058 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6060 ac_cv_prog_cc_stdc=no
6068 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
6069 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6070 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6074 case $ac_cv_prog_cc_stdc in
6075 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6076 $as_echo "unsupported" >&6; } ;;
6077 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
6078 $as_echo "none needed" >&6; } ;;
6079 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6080 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6087 # Code from module alloca:
6088 # Code from module alloca-opt:
6089 # Code from module areadlink:
6090 # Code from module areadlinkat:
6091 # Code from module arg-nonnull:
6092 # Code from module argmatch:
6093 # Code from module argp:
6094 # Code from module argp-version-etc:
6095 # Code from module backupfile:
6096 # Code from module bitrotate:
6097 # Code from module btowc:
6098 # Code from module c++defs:
6099 # Code from module c-ctype:
6100 # Code from module canonicalize-lgpl:
6101 # Code from module chdir-long:
6102 # Code from module chown:
6103 # Code from module clock-time:
6104 # Code from module cloexec:
6105 # Code from module close:
6106 # Code from module close-hook:
6107 # Code from module close-stream:
6108 # Code from module closeout:
6109 # Code from module configmake:
6110 # Code from module d-ino:
6111 # Code from module dirent:
6112 # Code from module dirent-safer:
6113 # Code from module dirfd:
6114 # Code from module dirname:
6115 # Code from module dirname-lgpl:
6116 # Code from module double-slash-root:
6117 # Code from module dup2:
6118 # Code from module environ:
6119 # Code from module errno:
6120 # Code from module error:
6121 # Code from module exclude:
6122 # Code from module exitfail:
6123 # Code from module extensions:
6125 # Code from module fchdir:
6126 # Code from module fclose:
6127 # Code from module fcntl:
6128 # Code from module fcntl-h:
6129 # Code from module fdopendir:
6130 # Code from module fdutimensat:
6131 # Code from module fileblocks:
6132 # Code from module filenamecat-lgpl:
6133 # Code from module float:
6134 # Code from module fnmatch:
6135 # Code from module fnmatch-gnu:
6136 # Code from module fpending:
6137 # Code from module fseeko:
6139 # Code from module full-write:
6140 # Code from module futimens:
6141 # Code from module getcwd:
6142 # Code from module getdelim:
6143 # Code from module getdtablesize:
6144 # Code from module getline:
6145 # Code from module getopt-gnu:
6146 # Code from module getopt-posix:
6147 # Code from module getpagesize:
6148 # Code from module gettext:
6149 # Code from module gettext-h:
6150 # Code from module gettime:
6151 # Code from module gettimeofday:
6152 # Code from module gitlog-to-changelog:
6153 # Code from module hash:
6154 # Code from module havelib:
6155 # Code from module human:
6156 # Code from module include_next:
6157 # Code from module inline:
6158 # Code from module intprops:
6159 # Code from module inttostr:
6160 # Code from module inttypes:
6161 # Code from module langinfo:
6162 # Code from module lchown:
6163 # Code from module link:
6164 # Code from module link-follow:
6165 # Code from module linkat:
6166 # Code from module localcharset:
6167 # Code from module lseek:
6168 # Code from module lstat:
6169 # Code from module malloc-gnu:
6170 # Code from module malloc-posix:
6171 # Code from module malloca:
6172 # Code from module mbchar:
6173 # Code from module mbrtowc:
6174 # Code from module mbscasecmp:
6175 # Code from module mbsinit:
6176 # Code from module mbsrtowcs:
6177 # Code from module mbuiter:
6178 # Code from module memchr:
6179 # Code from module mempcpy:
6180 # Code from module memrchr:
6181 # Code from module mkdir:
6182 # Code from module mkdtemp:
6183 # Code from module mkfifo:
6184 # Code from module mkfifoat:
6185 # Code from module mknod:
6186 # Code from module mktime:
6187 # Code from module modechange:
6188 # Code from module multiarch:
6189 # Code from module nl_langinfo:
6190 # Code from module obstack:
6191 # Code from module open:
6192 # Code from module openat:
6193 # Code from module openat-die:
6194 # Code from module parse-datetime:
6195 # Code from module pathmax:
6196 # Code from module priv-set:
6197 # Code from module progname:
6198 # Code from module quote:
6199 # Code from module quotearg:
6200 # Code from module quotearg-simple:
6201 # Code from module rawmemchr:
6202 # Code from module readlink:
6203 # Code from module readlinkat:
6204 # Code from module realloc-posix:
6205 # Code from module regex:
6206 # Code from module rename:
6207 # Code from module renameat:
6208 # Code from module rmdir:
6209 # Code from module rpmatch:
6210 # Code from module safe-read:
6211 # Code from module safe-write:
6212 # Code from module same-inode:
6213 # Code from module save-cwd:
6214 # Code from module savedir:
6215 # Code from module setenv:
6216 # Code from module size_max:
6217 # Code from module sleep:
6218 # Code from module snprintf:
6219 # Code from module ssize_t:
6220 # Code from module stat:
6221 # Code from module stat-macros:
6222 # Code from module stat-time:
6223 # Code from module stdarg:
6225 # Code from module stdbool:
6226 # Code from module stddef:
6227 # Code from module stdint:
6228 # Code from module stdio:
6229 # Code from module stdlib:
6230 # Code from module stpcpy:
6231 # Code from module strcase:
6232 # Code from module strchrnul:
6233 # Code from module strdup-posix:
6234 # Code from module streq:
6235 # Code from module strerror:
6236 # Code from module string:
6237 # Code from module strings:
6238 # Code from module strndup:
6239 # Code from module strnlen:
6240 # Code from module strnlen1:
6241 # Code from module strtoimax:
6242 # Code from module strtol:
6243 # Code from module strtoll:
6244 # Code from module strtoul:
6245 # Code from module strtoull:
6246 # Code from module strtoumax:
6247 # Code from module symlink:
6248 # Code from module symlinkat:
6249 # Code from module sys_stat:
6250 # Code from module sys_time:
6251 # Code from module sysexits:
6252 # Code from module tempname:
6253 # Code from module time:
6254 # Code from module time_r:
6255 # Code from module timespec:
6256 # Code from module unistd:
6257 # Code from module unistd-safer:
6258 # Code from module unitypes:
6259 # Code from module uniwidth/base:
6260 # Code from module uniwidth/width:
6261 # Code from module unlink:
6262 # Code from module unlinkdir:
6263 # Code from module unlocked-io:
6264 # Code from module unsetenv:
6265 # Code from module utimens:
6266 # Code from module utimensat:
6267 # Code from module vasnprintf:
6268 # Code from module vasprintf:
6269 # Code from module verify:
6270 # Code from module version-etc:
6271 # Code from module version-etc-fsf:
6272 # Code from module vsnprintf:
6273 # Code from module warn-on-use:
6274 # Code from module wchar:
6275 # Code from module wcrtomb:
6276 # Code from module wctype:
6277 # Code from module wcwidth:
6278 # Code from module write:
6279 # Code from module xalloc:
6280 # Code from module xalloc-die:
6281 # Code from module xgetcwd:
6282 # Code from module xsize:
6283 # Code from module xstrndup:
6284 # Code from module xstrtol:
6285 # Code from module xstrtoumax:
6286 # Code from module xvasprintf:
6289 # Check whether --enable-largefile was given.
6290 if test "${enable_largefile+set}" = set; then
6291 enableval=$enable_largefile;
6294 if test "$enable_largefile" != no; then
6296 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6297 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6298 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6299 $as_echo_n "(cached) " >&6
6301 ac_cv_sys_largefile_CC=no
6302 if test "$GCC" != yes; then
6305 # IRIX 6.2 and later do not support large files by default,
6306 # so use the C compiler's -n32 option if that helps.
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #include <sys/types.h>
6314 /* Check that off_t can represent 2**63 - 1 correctly.
6315 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6316 since some C++ compilers masquerading as C compilers
6317 incorrectly reject 9223372036854775807. */
6318 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6319 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6320 && LARGE_OFF_T % 2147483647 == 1)
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6337 $as_echo "$ac_try_echo") >&5
6338 (eval "$ac_compile") 2>conftest.er1
6340 grep -v '^ *+' conftest.er1 >conftest.err
6342 cat conftest.err >&5
6343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.$ac_objext; then
6350 $as_echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6356 rm -f core conftest.err conftest.$ac_objext
6358 rm -f conftest.$ac_objext
6359 if { (ac_try="$ac_compile"
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6368 grep -v '^ *+' conftest.er1 >conftest.err
6370 cat conftest.err >&5
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 ac_cv_sys_largefile_CC=' -n32'; break
6378 $as_echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6384 rm -f core conftest.err conftest.$ac_objext
6388 rm -f conftest.$ac_ext
6391 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6392 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6393 if test "$ac_cv_sys_largefile_CC" != no; then
6394 CC=$CC$ac_cv_sys_largefile_CC
6397 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6398 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6399 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6400 $as_echo_n "(cached) " >&6
6403 cat >conftest.$ac_ext <<_ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 #include <sys/types.h>
6410 /* Check that off_t can represent 2**63 - 1 correctly.
6411 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6412 since some C++ compilers masquerading as C compilers
6413 incorrectly reject 9223372036854775807. */
6414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6416 && LARGE_OFF_T % 2147483647 == 1)
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.$ac_objext; then
6444 ac_cv_sys_file_offset_bits=no; break
6446 $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 #define _FILE_OFFSET_BITS 64
6460 #include <sys/types.h>
6461 /* Check that off_t can represent 2**63 - 1 correctly.
6462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6463 since some C++ compilers masquerading as C compilers
6464 incorrectly reject 9223372036854775807. */
6465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6467 && LARGE_OFF_T % 2147483647 == 1)
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484 $as_echo "$ac_try_echo") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 ac_cv_sys_file_offset_bits=64; break
6497 $as_echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 ac_cv_sys_file_offset_bits=unknown
6508 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6509 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6510 case $ac_cv_sys_file_offset_bits in #(
6513 cat >>confdefs.h <<_ACEOF
6514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6519 if test $ac_cv_sys_file_offset_bits = unknown; then
6520 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6521 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6522 if test "${ac_cv_sys_large_files+set}" = set; then
6523 $as_echo_n "(cached) " >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6556 $as_echo "$ac_try_echo") >&5
6557 (eval "$ac_compile") 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest.$ac_objext; then
6567 ac_cv_sys_large_files=no; break
6569 $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #define _LARGE_FILES 1
6583 #include <sys/types.h>
6584 /* Check that off_t can represent 2**63 - 1 correctly.
6585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6586 since some C++ compilers masquerading as C compilers
6587 incorrectly reject 9223372036854775807. */
6588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6590 && LARGE_OFF_T % 2147483647 == 1)
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6607 $as_echo "$ac_try_echo") >&5
6608 (eval "$ac_compile") 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } && {
6615 test -z "$ac_c_werror_flag" ||
6616 test ! -s conftest.err
6617 } && test -s conftest.$ac_objext; then
6618 ac_cv_sys_large_files=1; break
6620 $as_echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 ac_cv_sys_large_files=unknown
6631 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6632 $as_echo "$ac_cv_sys_large_files" >&6; }
6633 case $ac_cv_sys_large_files in #(
6636 cat >>confdefs.h <<_ACEOF
6637 #define _LARGE_FILES $ac_cv_sys_large_files
6645 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6646 $as_echo_n "checking for library containing strerror... " >&6; }
6647 if test "${ac_cv_search_strerror+set}" = set; then
6648 $as_echo_n "(cached) " >&6
6650 ac_func_search_save_LIBS=$LIBS
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 /* Override any GCC internal prototype to avoid an error.
6659 Use char because int might match the return type of a GCC
6660 builtin and then its argument prototype would still apply. */
6673 for ac_lib in '' cposix; do
6674 if test -z "$ac_lib"; then
6675 ac_res="none required"
6678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (ac_try="$ac_link"
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6687 $as_echo "$ac_try_echo") >&5
6688 (eval "$ac_link") 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest$ac_exeext && {
6698 test "$cross_compiling" = yes ||
6699 $as_test_x conftest$ac_exeext
6701 ac_cv_search_strerror=$ac_res
6703 $as_echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6709 rm -rf conftest.dSYM
6710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6712 if test "${ac_cv_search_strerror+set}" = set; then
6716 if test "${ac_cv_search_strerror+set}" = set; then
6719 ac_cv_search_strerror=no
6722 LIBS=$ac_func_search_save_LIBS
6724 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6725 $as_echo "$ac_cv_search_strerror" >&6; }
6726 ac_res=$ac_cv_search_strerror
6727 if test "$ac_res" != no; then
6728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6732 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6733 $as_echo_n "checking for inline... " >&6; }
6734 if test "${ac_cv_c_inline+set}" = set; then
6735 $as_echo_n "(cached) " >&6
6738 for ac_kw in inline __inline__ __inline; do
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6747 static $ac_kw foo_t static_foo () {return 0; }
6748 $ac_kw foo_t foo () {return 0; }
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6759 $as_echo "$ac_try_echo") >&5
6760 (eval "$ac_compile") 2>conftest.er1
6762 grep -v '^ *+' conftest.er1 >conftest.err
6764 cat conftest.err >&5
6765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest.$ac_objext; then
6770 ac_cv_c_inline=$ac_kw
6772 $as_echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 test "$ac_cv_c_inline" != no && break
6783 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6784 $as_echo "$ac_cv_c_inline" >&6; }
6787 case $ac_cv_c_inline in
6790 case $ac_cv_c_inline in
6792 *) ac_val=$ac_cv_c_inline;;
6794 cat >>confdefs.h <<_ACEOF
6796 #define inline $ac_val
6807 for ac_header in $ac_header_list
6809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6812 $as_echo_n "checking for $ac_header... " >&6; }
6813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6814 $as_echo_n "(cached) " >&6
6816 ac_res=`eval 'as_val=${'$as_ac_Header'}
6817 $as_echo "$as_val"'`
6818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6821 # Is the header compilable?
6822 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6823 $as_echo_n "checking $ac_header usability... " >&6; }
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 $ac_includes_default
6831 #include <$ac_header>
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1 >conftest.err
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
6851 ac_header_compiler=yes
6853 $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_header_compiler=no
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6861 $as_echo "$ac_header_compiler" >&6; }
6863 # Is the header present?
6864 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6865 $as_echo_n "checking $ac_header presence... " >&6; }
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 #include <$ac_header>
6874 if { (ac_try="$ac_cpp conftest.$ac_ext"
6876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6883 grep -v '^ *+' conftest.er1 >conftest.err
6885 cat conftest.err >&5
6886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } >/dev/null && {
6888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6891 ac_header_preproc=yes
6893 $as_echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_header_preproc=no
6899 rm -f conftest.err conftest.$ac_ext
6900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 $as_echo "$ac_header_preproc" >&6; }
6903 # So? What about this header?
6904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6907 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6910 ac_header_preproc=yes
6913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6914 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6916 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6918 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6920 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6922 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6924 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6926 ## ------------------------------ ##
6927 ## Report this to bug-tar@gnu.org ##
6928 ## ------------------------------ ##
6930 ) | sed "s/^/$as_me: WARNING: /" >&2
6933 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6934 $as_echo_n "checking for $ac_header... " >&6; }
6935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6936 $as_echo_n "(cached) " >&6
6938 eval "$as_ac_Header=\$ac_header_preproc"
6940 ac_res=`eval 'as_val=${'$as_ac_Header'}
6941 $as_echo "$as_val"'`
6942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6943 $as_echo "$ac_res" >&6; }
6946 as_val=`eval 'as_val=${'$as_ac_Header'}
6947 $as_echo "$as_val"'`
6948 if test "x$as_val" = x""yes; then
6949 cat >>confdefs.h <<_ACEOF
6950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7031 for ac_header in sys/buf.h
7033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7035 $as_echo_n "checking for $ac_header... " >&6; }
7036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7037 $as_echo_n "(cached) " >&6
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #if HAVE_SYS_PARAM_H
7046 #include <sys/param.h>
7049 #include <$ac_header>
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7058 $as_echo "$ac_try_echo") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
7069 eval "$as_ac_Header=yes"
7071 $as_echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 eval "$as_ac_Header=no"
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 ac_res=`eval 'as_val=${'$as_ac_Header'}
7080 $as_echo "$as_val"'`
7081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7082 $as_echo "$ac_res" >&6; }
7083 as_val=`eval 'as_val=${'$as_ac_Header'}
7084 $as_echo "$as_val"'`
7085 if test "x$as_val" = x""yes; then
7086 cat >>confdefs.h <<_ACEOF
7087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7095 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7096 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7097 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7098 $as_echo_n "(cached) " >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <sys/types.h>
7107 #include <sys/wait.h>
7109 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7112 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7120 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7132 $as_echo "$ac_try_echo") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7135 grep -v '^ *+' conftest.er1 >conftest.err
7137 cat conftest.err >&5
7138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
7143 ac_cv_header_sys_wait_h=yes
7145 $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 ac_cv_header_sys_wait_h=no
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7154 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7155 if test $ac_cv_header_sys_wait_h = yes; then
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_SYS_WAIT_H 1
7170 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7171 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7172 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7173 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+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>
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202 $as_echo "$ac_try_echo") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 eval "$as_ac_Header=yes"
7215 $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 eval "$as_ac_Header=no"
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 ac_res=`eval 'as_val=${'$as_ac_Header'}
7224 $as_echo "$as_val"'`
7225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7226 $as_echo "$ac_res" >&6; }
7227 as_val=`eval 'as_val=${'$as_ac_Header'}
7228 $as_echo "$as_val"'`
7229 if test "x$as_val" = x""yes; then
7230 cat >>confdefs.h <<_ACEOF
7231 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7234 ac_header_dirent=$ac_hdr; break
7238 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7239 if test $ac_header_dirent = dirent.h; then
7240 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7241 $as_echo_n "checking for library containing opendir... " >&6; }
7242 if test "${ac_cv_search_opendir+set}" = set; then
7243 $as_echo_n "(cached) " >&6
7245 ac_func_search_save_LIBS=$LIBS
7246 cat >conftest.$ac_ext <<_ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7253 /* Override any GCC internal prototype to avoid an error.
7254 Use char because int might match the return type of a GCC
7255 builtin and then its argument prototype would still apply. */
7268 for ac_lib in '' dir; do
7269 if test -z "$ac_lib"; then
7270 ac_res="none required"
7273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7275 rm -f conftest.$ac_objext conftest$ac_exeext
7276 if { (ac_try="$ac_link"
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7282 $as_echo "$ac_try_echo") >&5
7283 (eval "$ac_link") 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest$ac_exeext && {
7293 test "$cross_compiling" = yes ||
7294 $as_test_x conftest$ac_exeext
7296 ac_cv_search_opendir=$ac_res
7298 $as_echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -rf conftest.dSYM
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307 if test "${ac_cv_search_opendir+set}" = set; then
7311 if test "${ac_cv_search_opendir+set}" = set; then
7314 ac_cv_search_opendir=no
7317 LIBS=$ac_func_search_save_LIBS
7319 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7320 $as_echo "$ac_cv_search_opendir" >&6; }
7321 ac_res=$ac_cv_search_opendir
7322 if test "$ac_res" != no; then
7323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7328 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7329 $as_echo_n "checking for library containing opendir... " >&6; }
7330 if test "${ac_cv_search_opendir+set}" = set; then
7331 $as_echo_n "(cached) " >&6
7333 ac_func_search_save_LIBS=$LIBS
7334 cat >conftest.$ac_ext <<_ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7341 /* Override any GCC internal prototype to avoid an error.
7342 Use char because int might match the return type of a GCC
7343 builtin and then its argument prototype would still apply. */
7356 for ac_lib in '' x; do
7357 if test -z "$ac_lib"; then
7358 ac_res="none required"
7361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7363 rm -f conftest.$ac_objext conftest$ac_exeext
7364 if { (ac_try="$ac_link"
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_link") 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest$ac_exeext && {
7381 test "$cross_compiling" = yes ||
7382 $as_test_x conftest$ac_exeext
7384 ac_cv_search_opendir=$ac_res
7386 $as_echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7392 rm -rf conftest.dSYM
7393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7395 if test "${ac_cv_search_opendir+set}" = set; then
7399 if test "${ac_cv_search_opendir+set}" = set; then
7402 ac_cv_search_opendir=no
7405 LIBS=$ac_func_search_save_LIBS
7407 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7408 $as_echo "$ac_cv_search_opendir" >&6; }
7409 ac_res=$ac_cv_search_opendir
7410 if test "$ac_res" != no; then
7411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7417 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7418 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7419 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7420 $as_echo_n "(cached) " >&6
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 #include <sys/types.h>
7432 return makedev(0, 0);
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (ac_try="$ac_link"
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7444 $as_echo "$ac_try_echo") >&5
7445 (eval "$ac_link") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest$ac_exeext && {
7455 test "$cross_compiling" = yes ||
7456 $as_test_x conftest$ac_exeext
7458 ac_cv_header_sys_types_h_makedev=yes
7460 $as_echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ac_cv_header_sys_types_h_makedev=no
7466 rm -rf conftest.dSYM
7467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7468 conftest$ac_exeext conftest.$ac_ext
7471 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7472 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7474 if test $ac_cv_header_sys_types_h_makedev = no; then
7475 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7476 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7477 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7478 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7479 $as_echo_n "(cached) " >&6
7481 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7482 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7484 # Is the header compilable?
7485 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7486 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
7487 cat >conftest.$ac_ext <<_ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #include <sys/mkdev.h>
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7503 $as_echo "$ac_try_echo") >&5
7504 (eval "$ac_compile") 2>conftest.er1
7506 grep -v '^ *+' conftest.er1 >conftest.err
7508 cat conftest.err >&5
7509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } && {
7511 test -z "$ac_c_werror_flag" ||
7512 test ! -s conftest.err
7513 } && test -s conftest.$ac_objext; then
7514 ac_header_compiler=yes
7516 $as_echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 ac_header_compiler=no
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7524 $as_echo "$ac_header_compiler" >&6; }
7526 # Is the header present?
7527 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7528 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 #include <sys/mkdev.h>
7537 if { (ac_try="$ac_cpp conftest.$ac_ext"
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7546 grep -v '^ *+' conftest.er1 >conftest.err
7548 cat conftest.err >&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } >/dev/null && {
7551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7554 ac_header_preproc=yes
7556 $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 ac_header_preproc=no
7562 rm -f conftest.err conftest.$ac_ext
7563 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7564 $as_echo "$ac_header_preproc" >&6; }
7566 # So? What about this header?
7567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7569 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7570 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7571 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7572 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7573 ac_header_preproc=yes
7576 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7577 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7578 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7579 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7580 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7581 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7582 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
7583 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
7584 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7585 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7586 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7587 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7589 ## ------------------------------ ##
7590 ## Report this to bug-tar@gnu.org ##
7591 ## ------------------------------ ##
7593 ) | sed "s/^/$as_me: WARNING: /" >&2
7596 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7597 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7598 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7599 $as_echo_n "(cached) " >&6
7601 ac_cv_header_sys_mkdev_h=$ac_header_preproc
7603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7604 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7607 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
7609 cat >>confdefs.h <<\_ACEOF
7610 #define MAJOR_IN_MKDEV 1
7617 if test $ac_cv_header_sys_mkdev_h = no; then
7618 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7619 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7620 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7621 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7622 $as_echo_n "(cached) " >&6
7624 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7625 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7627 # Is the header compilable?
7628 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7629 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
7630 cat >conftest.$ac_ext <<_ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 #include <sys/sysmacros.h>
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647 (eval "$ac_compile") 2>conftest.er1
7649 grep -v '^ *+' conftest.er1 >conftest.err
7651 cat conftest.err >&5
7652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.$ac_objext; then
7657 ac_header_compiler=yes
7659 $as_echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 ac_header_compiler=no
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7667 $as_echo "$ac_header_compiler" >&6; }
7669 # Is the header present?
7670 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7671 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <sys/sysmacros.h>
7680 if { (ac_try="$ac_cpp conftest.$ac_ext"
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7686 $as_echo "$ac_try_echo") >&5
7687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7689 grep -v '^ *+' conftest.er1 >conftest.err
7691 cat conftest.err >&5
7692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } >/dev/null && {
7694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7697 ac_header_preproc=yes
7699 $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ac_header_preproc=no
7705 rm -f conftest.err conftest.$ac_ext
7706 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7707 $as_echo "$ac_header_preproc" >&6; }
7709 # So? What about this header?
7710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7712 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7713 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7714 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7715 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7716 ac_header_preproc=yes
7719 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7720 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7721 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7722 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7723 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7724 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7725 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7726 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7727 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7728 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7729 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7730 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7732 ## ------------------------------ ##
7733 ## Report this to bug-tar@gnu.org ##
7734 ## ------------------------------ ##
7736 ) | sed "s/^/$as_me: WARNING: /" >&2
7739 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7740 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7741 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7742 $as_echo_n "(cached) " >&6
7744 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7746 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7747 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7750 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
7752 cat >>confdefs.h <<\_ACEOF
7753 #define MAJOR_IN_SYSMACROS 1
7762 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7763 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7764 if test "${ac_cv_header_stat_broken+set}" = set; then
7765 $as_echo_n "(cached) " >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7773 #include <sys/types.h>
7774 #include <sys/stat.h>
7776 #if defined S_ISBLK && defined S_IFDIR
7777 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7780 #if defined S_ISBLK && defined S_IFCHR
7781 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7784 #if defined S_ISLNK && defined S_IFREG
7785 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7788 #if defined S_ISSOCK && defined S_IFREG
7789 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800 $as_echo "$ac_try_echo") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
7811 ac_cv_header_stat_broken=no
7813 $as_echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 ac_cv_header_stat_broken=yes
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7822 $as_echo "$ac_cv_header_stat_broken" >&6; }
7823 if test $ac_cv_header_stat_broken = yes; then
7825 cat >>confdefs.h <<\_ACEOF
7826 #define STAT_MACROS_BROKEN 1
7831 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7832 $as_echo_n "checking for ANSI C header files... " >&6; }
7833 if test "${ac_cv_header_stdc+set}" = set; then
7834 $as_echo_n "(cached) " >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7855 rm -f conftest.$ac_objext
7856 if { (ac_try="$ac_compile"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_header_stdc=yes
7875 $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_cv_header_stdc=no
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 if test $ac_cv_header_stdc = yes; then
7884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "memchr" >/dev/null 2>&1; then
7898 ac_cv_header_stdc=no
7904 if test $ac_cv_header_stdc = yes; then
7905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916 $EGREP "free" >/dev/null 2>&1; then
7919 ac_cv_header_stdc=no
7925 if test $ac_cv_header_stdc = yes; then
7926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7927 if test "$cross_compiling" = yes; then
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7938 #if ((' ' & 0x0FF) == 0x020)
7939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7942 # define ISLOWER(c) \
7943 (('a' <= (c) && (c) <= 'i') \
7944 || ('j' <= (c) && (c) <= 'r') \
7945 || ('s' <= (c) && (c) <= 'z'))
7946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7954 for (i = 0; i < 256; i++)
7955 if (XOR (islower (i), ISLOWER (i))
7956 || toupper (i) != TOUPPER (i))
7961 rm -f conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_link") 2>&5
7971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7973 { (case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979 (eval "$ac_try") 2>&5
7981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7985 $as_echo "$as_me: program exited with status $ac_status" >&5
7986 $as_echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_header_stdc=no
7992 rm -rf conftest.dSYM
7993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8000 $as_echo "$ac_cv_header_stdc" >&6; }
8001 if test $ac_cv_header_stdc = yes; then
8003 cat >>confdefs.h <<\_ACEOF
8004 #define STDC_HEADERS 1
8010 { $as_echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
8011 $as_echo_n "checking for st_fstype string in struct stat... " >&6; }
8012 if test "${diff_cv_st_fstype_string+set}" = set; then
8013 $as_echo_n "(cached) " >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 #include <sys/types.h>
8022 #include <sys/stat.h>
8026 struct stat s; s.st_fstype[0] = 'x';
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 diff_cv_st_fstype_string=yes
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 diff_cv_st_fstype_string=no
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 { $as_echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
8061 $as_echo "$diff_cv_st_fstype_string" >&6; }
8062 if test $diff_cv_st_fstype_string = yes; then
8064 cat >>confdefs.h <<\_ACEOF
8065 #define HAVE_ST_FSTYPE_STRING 1
8070 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8071 $as_echo_n "checking return type of signal handlers... " >&6; }
8072 if test "${ac_cv_type_signal+set}" = set; then
8073 $as_echo_n "(cached) " >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 #include <sys/types.h>
8087 return *(signal (0, 0)) (0) == 1;
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8099 $as_echo "$ac_try_echo") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && {
8107 test -z "$ac_c_werror_flag" ||
8108 test ! -s conftest.err
8109 } && test -s conftest.$ac_objext; then
8110 ac_cv_type_signal=int
8112 $as_echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_cv_type_signal=void
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8121 $as_echo "$ac_cv_type_signal" >&6; }
8123 cat >>confdefs.h <<_ACEOF
8124 #define RETSIGTYPE $ac_cv_type_signal
8128 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
8129 $as_echo_n "checking for mode_t... " >&6; }
8130 if test "${ac_cv_type_mode_t+set}" = set; then
8131 $as_echo_n "(cached) " >&6
8133 ac_cv_type_mode_t=no
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8144 if (sizeof (mode_t))
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157 $as_echo "$ac_try_echo") >&5
8158 (eval "$ac_compile") 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest.$ac_objext; then
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8178 if (sizeof ((mode_t)))
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8204 $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_type_mode_t=yes
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8221 $as_echo "$ac_cv_type_mode_t" >&6; }
8222 if test "x$ac_cv_type_mode_t" = x""yes; then
8226 cat >>confdefs.h <<_ACEOF
8232 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
8233 $as_echo_n "checking for pid_t... " >&6; }
8234 if test "${ac_cv_type_pid_t+set}" = set; then
8235 $as_echo_n "(cached) " >&6
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 $ac_includes_default
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8261 $as_echo "$ac_try_echo") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1 >conftest.err
8266 cat conftest.err >&5
8267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8282 if (sizeof ((pid_t)))
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8308 $as_echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_cv_type_pid_t=yes
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 $as_echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8325 $as_echo "$ac_cv_type_pid_t" >&6; }
8326 if test "x$ac_cv_type_pid_t" = x""yes; then
8330 cat >>confdefs.h <<_ACEOF
8336 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8337 $as_echo_n "checking for off_t... " >&6; }
8338 if test "${ac_cv_type_off_t+set}" = set; then
8339 $as_echo_n "(cached) " >&6
8342 cat >conftest.$ac_ext <<_ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8365 $as_echo "$ac_try_echo") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8386 if (sizeof ((off_t)))
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8399 $as_echo "$ac_try_echo") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest.$ac_objext; then
8412 $as_echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_type_off_t=yes
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 $as_echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8429 $as_echo "$ac_cv_type_off_t" >&6; }
8430 if test "x$ac_cv_type_off_t" = x""yes; then
8434 cat >>confdefs.h <<_ACEOF
8435 #define off_t long int
8440 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8441 $as_echo_n "checking for size_t... " >&6; }
8442 if test "${ac_cv_type_size_t+set}" = set; then
8443 $as_echo_n "(cached) " >&6
8445 ac_cv_type_size_t=no
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8456 if (sizeof (size_t))
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8469 $as_echo "$ac_try_echo") >&5
8470 (eval "$ac_compile") 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest.$ac_objext; then
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8490 if (sizeof ((size_t)))
8496 rm -f conftest.$ac_objext
8497 if { (ac_try="$ac_compile"
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8503 $as_echo "$ac_try_echo") >&5
8504 (eval "$ac_compile") 2>conftest.er1
8506 grep -v '^ *+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && {
8511 test -z "$ac_c_werror_flag" ||
8512 test ! -s conftest.err
8513 } && test -s conftest.$ac_objext; then
8516 $as_echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_cv_type_size_t=yes
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8533 $as_echo "$ac_cv_type_size_t" >&6; }
8534 if test "x$ac_cv_type_size_t" = x""yes; then
8538 cat >>confdefs.h <<_ACEOF
8539 #define size_t unsigned int
8544 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8545 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8546 if test "${ac_cv_type_uid_t+set}" = set; then
8547 $as_echo_n "(cached) " >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 #include <sys/types.h>
8558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8559 $EGREP "uid_t" >/dev/null 2>&1; then
8560 ac_cv_type_uid_t=yes
8567 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8568 $as_echo "$ac_cv_type_uid_t" >&6; }
8569 if test $ac_cv_type_uid_t = no; then
8571 cat >>confdefs.h <<\_ACEOF
8576 cat >>confdefs.h <<\_ACEOF
8582 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
8583 $as_echo_n "checking for major_t... " >&6; }
8584 if test "${ac_cv_type_major_t+set}" = set; then
8585 $as_echo_n "(cached) " >&6
8587 ac_cv_type_major_t=no
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 $ac_includes_default
8598 if (sizeof (major_t))
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8611 $as_echo "$ac_try_echo") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8632 if (sizeof ((major_t)))
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8645 $as_echo "$ac_try_echo") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8658 $as_echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 ac_cv_type_major_t=yes
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 $as_echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
8675 $as_echo "$ac_cv_type_major_t" >&6; }
8676 if test "x$ac_cv_type_major_t" = x""yes; then
8680 cat >>confdefs.h <<\_ACEOF
8686 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
8687 $as_echo_n "checking for minor_t... " >&6; }
8688 if test "${ac_cv_type_minor_t+set}" = set; then
8689 $as_echo_n "(cached) " >&6
8691 ac_cv_type_minor_t=no
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8702 if (sizeof (minor_t))
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8715 $as_echo "$ac_try_echo") >&5
8716 (eval "$ac_compile") 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && {
8723 test -z "$ac_c_werror_flag" ||
8724 test ! -s conftest.err
8725 } && test -s conftest.$ac_objext; then
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 $ac_includes_default
8736 if (sizeof ((minor_t)))
8742 rm -f conftest.$ac_objext
8743 if { (ac_try="$ac_compile"
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749 $as_echo "$ac_try_echo") >&5
8750 (eval "$ac_compile") 2>conftest.er1
8752 grep -v '^ *+' conftest.er1 >conftest.err
8754 cat conftest.err >&5
8755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } && {
8757 test -z "$ac_c_werror_flag" ||
8758 test ! -s conftest.err
8759 } && test -s conftest.$ac_objext; then
8762 $as_echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 ac_cv_type_minor_t=yes
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8779 $as_echo "$ac_cv_type_minor_t" >&6; }
8780 if test "x$ac_cv_type_minor_t" = x""yes; then
8784 cat >>confdefs.h <<\_ACEOF
8790 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
8791 $as_echo_n "checking for dev_t... " >&6; }
8792 if test "${ac_cv_type_dev_t+set}" = set; then
8793 $as_echo_n "(cached) " >&6
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 $ac_includes_default
8812 rm -f conftest.$ac_objext
8813 if { (ac_try="$ac_compile"
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8819 $as_echo "$ac_try_echo") >&5
8820 (eval "$ac_compile") 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && {
8827 test -z "$ac_c_werror_flag" ||
8828 test ! -s conftest.err
8829 } && test -s conftest.$ac_objext; then
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 $ac_includes_default
8840 if (sizeof ((dev_t)))
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
8866 $as_echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_cv_type_dev_t=yes
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 $as_echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8883 $as_echo "$ac_cv_type_dev_t" >&6; }
8884 if test "x$ac_cv_type_dev_t" = x""yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define dev_t unsigned
8894 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
8895 $as_echo_n "checking for ino_t... " >&6; }
8896 if test "${ac_cv_type_ino_t+set}" = set; then
8897 $as_echo_n "(cached) " >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8916 rm -f conftest.$ac_objext
8917 if { (ac_try="$ac_compile"
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8923 $as_echo "$ac_try_echo") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940 $ac_includes_default
8944 if (sizeof ((ino_t)))
8950 rm -f conftest.$ac_objext
8951 if { (ac_try="$ac_compile"
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8957 $as_echo "$ac_try_echo") >&5
8958 (eval "$ac_compile") 2>conftest.er1
8960 grep -v '^ *+' conftest.er1 >conftest.err
8962 cat conftest.err >&5
8963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && {
8965 test -z "$ac_c_werror_flag" ||
8966 test ! -s conftest.err
8967 } && test -s conftest.$ac_objext; then
8970 $as_echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_cv_type_ino_t=yes
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 $as_echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8987 $as_echo "$ac_cv_type_ino_t" >&6; }
8988 if test "x$ac_cv_type_ino_t" = x""yes; then
8992 cat >>confdefs.h <<_ACEOF
8993 #define ino_t unsigned
9000 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9001 $as_echo_n "checking for ssize_t... " >&6; }
9002 if test "${gt_cv_ssize_t+set}" = set; then
9003 $as_echo_n "(cached) " >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 #include <sys/types.h>
9015 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9021 rm -f conftest.$ac_objext
9022 if { (ac_try="$ac_compile"
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9028 $as_echo "$ac_try_echo") >&5
9029 (eval "$ac_compile") 2>conftest.er1
9031 grep -v '^ *+' conftest.er1 >conftest.err
9033 cat conftest.err >&5
9034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } && {
9036 test -z "$ac_c_werror_flag" ||
9037 test ! -s conftest.err
9038 } && test -s conftest.$ac_objext; then
9041 $as_echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9050 $as_echo "$gt_cv_ssize_t" >&6; }
9051 if test $gt_cv_ssize_t = no; then
9053 cat >>confdefs.h <<\_ACEOF
9067 LIBC_FATAL_STDERR_=1
9068 export LIBC_FATAL_STDERR_
9070 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9071 # for constant arguments. Useless!
9072 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
9073 $as_echo_n "checking for working alloca.h... " >&6; }
9074 if test "${ac_cv_working_alloca_h+set}" = set; then
9075 $as_echo_n "(cached) " >&6
9077 cat >conftest.$ac_ext <<_ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9087 char *p = (char *) alloca (2 * sizeof (int));
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9100 $as_echo "$ac_try_echo") >&5
9101 (eval "$ac_link") 2>conftest.er1
9103 grep -v '^ *+' conftest.er1 >conftest.err
9105 cat conftest.err >&5
9106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && {
9108 test -z "$ac_c_werror_flag" ||
9109 test ! -s conftest.err
9110 } && test -s conftest$ac_exeext && {
9111 test "$cross_compiling" = yes ||
9112 $as_test_x conftest$ac_exeext
9114 ac_cv_working_alloca_h=yes
9116 $as_echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_cv_working_alloca_h=no
9122 rm -rf conftest.dSYM
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124 conftest$ac_exeext conftest.$ac_ext
9126 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9127 $as_echo "$ac_cv_working_alloca_h" >&6; }
9128 if test $ac_cv_working_alloca_h = yes; then
9130 cat >>confdefs.h <<\_ACEOF
9131 #define HAVE_ALLOCA_H 1
9136 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
9137 $as_echo_n "checking for alloca... " >&6; }
9138 if test "${ac_cv_func_alloca_works+set}" = set; then
9139 $as_echo_n "(cached) " >&6
9141 cat >conftest.$ac_ext <<_ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9148 # define alloca __builtin_alloca
9151 # include <malloc.h>
9152 # define alloca _alloca
9154 # ifdef HAVE_ALLOCA_H
9155 # include <alloca.h>
9160 # ifndef alloca /* predefined by HP cc +Olibcalls */
9171 char *p = (char *) alloca (1);
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184 $as_echo "$ac_try_echo") >&5
9185 (eval "$ac_link") 2>conftest.er1
9187 grep -v '^ *+' conftest.er1 >conftest.err
9189 cat conftest.err >&5
9190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } && {
9192 test -z "$ac_c_werror_flag" ||
9193 test ! -s conftest.err
9194 } && test -s conftest$ac_exeext && {
9195 test "$cross_compiling" = yes ||
9196 $as_test_x conftest$ac_exeext
9198 ac_cv_func_alloca_works=yes
9200 $as_echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 ac_cv_func_alloca_works=no
9206 rm -rf conftest.dSYM
9207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9208 conftest$ac_exeext conftest.$ac_ext
9210 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9211 $as_echo "$ac_cv_func_alloca_works" >&6; }
9213 if test $ac_cv_func_alloca_works = yes; then
9215 cat >>confdefs.h <<\_ACEOF
9216 #define HAVE_ALLOCA 1
9220 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9221 # that cause trouble. Some versions do not even contain alloca or
9222 # contain a buggy version. If you still want to use their alloca,
9223 # use ar to extract alloca.o from them instead of compiling alloca.c.
9229 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9231 cat >>confdefs.h <<\_ACEOF
9236 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9237 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9238 if test "${ac_cv_os_cray+set}" = set; then
9239 $as_echo_n "(cached) " >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #if defined CRAY && ! defined CRAY2
9254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9255 $EGREP "webecray" >/dev/null 2>&1; then
9263 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9264 $as_echo "$ac_cv_os_cray" >&6; }
9265 if test $ac_cv_os_cray = yes; then
9266 for ac_func in _getb67 GETB67 getb67; do
9267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9268 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9269 $as_echo_n "checking for $ac_func... " >&6; }
9270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9271 $as_echo_n "(cached) " >&6
9273 cat >conftest.$ac_ext <<_ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281 #define $ac_func innocuous_$ac_func
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char $ac_func (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9289 # include <limits.h>
9291 # include <assert.h>
9296 /* Override any GCC internal prototype to avoid an error.
9297 Use char because int might match the return type of a GCC
9298 builtin and then its argument prototype would still apply. */
9303 /* The GNU C library defines this for functions which it implements
9304 to always fail with ENOSYS. Some functions are actually named
9305 something starting with __ and the normal name is an alias. */
9306 #if defined __stub_$ac_func || defined __stub___$ac_func
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (ac_try="$ac_link"
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9325 $as_echo "$ac_try_echo") >&5
9326 (eval "$ac_link") 2>conftest.er1
9328 grep -v '^ *+' conftest.er1 >conftest.err
9330 cat conftest.err >&5
9331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } && {
9333 test -z "$ac_c_werror_flag" ||
9334 test ! -s conftest.err
9335 } && test -s conftest$ac_exeext && {
9336 test "$cross_compiling" = yes ||
9337 $as_test_x conftest$ac_exeext
9339 eval "$as_ac_var=yes"
9341 $as_echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9344 eval "$as_ac_var=no"
9347 rm -rf conftest.dSYM
9348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9349 conftest$ac_exeext conftest.$ac_ext
9351 ac_res=`eval 'as_val=${'$as_ac_var'}
9352 $as_echo "$as_val"'`
9353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9354 $as_echo "$ac_res" >&6; }
9355 as_val=`eval 'as_val=${'$as_ac_var'}
9356 $as_echo "$as_val"'`
9357 if test "x$as_val" = x""yes; then
9359 cat >>confdefs.h <<_ACEOF
9360 #define CRAY_STACKSEG_END $ac_func
9369 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9370 $as_echo_n "checking stack direction for C alloca... " >&6; }
9371 if test "${ac_cv_c_stack_direction+set}" = set; then
9372 $as_echo_n "(cached) " >&6
9374 if test "$cross_compiling" = yes; then
9375 ac_cv_c_stack_direction=0
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 $ac_includes_default
9385 find_stack_direction ()
9387 static char *addr = 0;
9392 return find_stack_direction ();
9395 return (&dummy > addr) ? 1 : -1;
9401 return find_stack_direction () < 0;
9404 rm -f conftest$ac_exeext
9405 if { (ac_try="$ac_link"
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9411 $as_echo "$ac_try_echo") >&5
9412 (eval "$ac_link") 2>&5
9414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416 { (case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9421 $as_echo "$ac_try_echo") >&5
9422 (eval "$ac_try") 2>&5
9424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 ac_cv_c_stack_direction=1
9428 $as_echo "$as_me: program exited with status $ac_status" >&5
9429 $as_echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9433 ac_cv_c_stack_direction=-1
9435 rm -rf conftest.dSYM
9436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9441 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9442 $as_echo "$ac_cv_c_stack_direction" >&6; }
9444 cat >>confdefs.h <<_ACEOF
9445 #define STACK_DIRECTION $ac_cv_c_stack_direction
9451 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9452 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9453 if test "${ac_cv_c_restrict+set}" = set; then
9454 $as_echo_n "(cached) " >&6
9457 # The order here caters to the fact that C++ does not require restrict.
9458 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 typedef int * int_ptr;
9466 int foo (int_ptr $ac_kw ip) {
9480 rm -f conftest.$ac_objext
9481 if { (ac_try="$ac_compile"
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9487 $as_echo "$ac_try_echo") >&5
9488 (eval "$ac_compile") 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && {
9495 test -z "$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 } && test -s conftest.$ac_objext; then
9498 ac_cv_c_restrict=$ac_kw
9500 $as_echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 test "$ac_cv_c_restrict" != no && break
9511 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9512 $as_echo "$ac_cv_c_restrict" >&6; }
9515 case $ac_cv_c_restrict in
9517 no) cat >>confdefs.h <<\_ACEOF
9518 #define restrict /**/
9521 *) cat >>confdefs.h <<_ACEOF
9522 #define restrict $ac_cv_c_restrict
9527 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9528 $as_echo_n "checking whether getenv is declared... " >&6; }
9529 if test "${ac_cv_have_decl_getenv+set}" = set; then
9530 $as_echo_n "(cached) " >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9557 $as_echo "$ac_try_echo") >&5
9558 (eval "$ac_compile") 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && {
9565 test -z "$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest.$ac_objext; then
9568 ac_cv_have_decl_getenv=yes
9570 $as_echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_cv_have_decl_getenv=no
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9579 $as_echo "$ac_cv_have_decl_getenv" >&6; }
9580 if test "x$ac_cv_have_decl_getenv" = x""yes; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define HAVE_DECL_GETENV 1
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_DECL_GETENV 0
9596 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9597 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
9598 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9599 $as_echo_n "(cached) " >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9611 #ifndef clearerr_unlocked
9612 (void) clearerr_unlocked;
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9626 $as_echo "$ac_try_echo") >&5
9627 (eval "$ac_compile") 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest.$ac_objext; then
9637 ac_cv_have_decl_clearerr_unlocked=yes
9639 $as_echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 ac_cv_have_decl_clearerr_unlocked=no
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9648 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
9649 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
9651 cat >>confdefs.h <<_ACEOF
9652 #define HAVE_DECL_CLEARERR_UNLOCKED 1
9657 cat >>confdefs.h <<_ACEOF
9658 #define HAVE_DECL_CLEARERR_UNLOCKED 0
9665 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9666 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9667 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9668 $as_echo_n "(cached) " >&6
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $ac_includes_default
9680 #ifndef feof_unlocked
9681 (void) feof_unlocked;
9688 rm -f conftest.$ac_objext
9689 if { (ac_try="$ac_compile"
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9695 $as_echo "$ac_try_echo") >&5
9696 (eval "$ac_compile") 2>conftest.er1
9698 grep -v '^ *+' conftest.er1 >conftest.err
9700 cat conftest.err >&5
9701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } && {
9703 test -z "$ac_c_werror_flag" ||
9704 test ! -s conftest.err
9705 } && test -s conftest.$ac_objext; then
9706 ac_cv_have_decl_feof_unlocked=yes
9708 $as_echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_have_decl_feof_unlocked=no
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9717 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9718 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
9720 cat >>confdefs.h <<_ACEOF
9721 #define HAVE_DECL_FEOF_UNLOCKED 1
9726 cat >>confdefs.h <<_ACEOF
9727 #define HAVE_DECL_FEOF_UNLOCKED 0
9734 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9735 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
9736 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9737 $as_echo_n "(cached) " >&6
9739 cat >conftest.$ac_ext <<_ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 $ac_includes_default
9749 #ifndef ferror_unlocked
9750 (void) ferror_unlocked;
9757 rm -f conftest.$ac_objext
9758 if { (ac_try="$ac_compile"
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764 $as_echo "$ac_try_echo") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 ac_cv_have_decl_ferror_unlocked=yes
9777 $as_echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_cv_have_decl_ferror_unlocked=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9786 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
9787 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define HAVE_DECL_FERROR_UNLOCKED 1
9795 cat >>confdefs.h <<_ACEOF
9796 #define HAVE_DECL_FERROR_UNLOCKED 0
9803 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9804 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
9805 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9806 $as_echo_n "(cached) " >&6
9808 cat >conftest.$ac_ext <<_ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 $ac_includes_default
9818 #ifndef fflush_unlocked
9819 (void) fflush_unlocked;
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833 $as_echo "$ac_try_echo") >&5
9834 (eval "$ac_compile") 2>conftest.er1
9836 grep -v '^ *+' conftest.er1 >conftest.err
9838 cat conftest.err >&5
9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && {
9841 test -z "$ac_c_werror_flag" ||
9842 test ! -s conftest.err
9843 } && test -s conftest.$ac_objext; then
9844 ac_cv_have_decl_fflush_unlocked=yes
9846 $as_echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ac_cv_have_decl_fflush_unlocked=no
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9855 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
9856 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9864 cat >>confdefs.h <<_ACEOF
9865 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9872 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9873 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9874 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9875 $as_echo_n "(cached) " >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9887 #ifndef fgets_unlocked
9888 (void) fgets_unlocked;
9895 rm -f conftest.$ac_objext
9896 if { (ac_try="$ac_compile"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9902 $as_echo "$ac_try_echo") >&5
9903 (eval "$ac_compile") 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } && {
9910 test -z "$ac_c_werror_flag" ||
9911 test ! -s conftest.err
9912 } && test -s conftest.$ac_objext; then
9913 ac_cv_have_decl_fgets_unlocked=yes
9915 $as_echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_have_decl_fgets_unlocked=no
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9924 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
9925 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define HAVE_DECL_FGETS_UNLOCKED 1
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE_DECL_FGETS_UNLOCKED 0
9941 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9942 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
9943 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9956 #ifndef fputc_unlocked
9957 (void) fputc_unlocked;
9964 rm -f conftest.$ac_objext
9965 if { (ac_try="$ac_compile"
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971 $as_echo "$ac_try_echo") >&5
9972 (eval "$ac_compile") 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest.$ac_objext; then
9982 ac_cv_have_decl_fputc_unlocked=yes
9984 $as_echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_have_decl_fputc_unlocked=no
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9993 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
9994 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
9996 cat >>confdefs.h <<_ACEOF
9997 #define HAVE_DECL_FPUTC_UNLOCKED 1
10002 cat >>confdefs.h <<_ACEOF
10003 #define HAVE_DECL_FPUTC_UNLOCKED 0
10010 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10011 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
10012 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10013 $as_echo_n "(cached) " >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $ac_includes_default
10025 #ifndef fputs_unlocked
10026 (void) fputs_unlocked;
10033 rm -f conftest.$ac_objext
10034 if { (ac_try="$ac_compile"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10040 $as_echo "$ac_try_echo") >&5
10041 (eval "$ac_compile") 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && {
10048 test -z "$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 } && test -s conftest.$ac_objext; then
10051 ac_cv_have_decl_fputs_unlocked=yes
10053 $as_echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_cv_have_decl_fputs_unlocked=no
10059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10062 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
10063 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
10065 cat >>confdefs.h <<_ACEOF
10066 #define HAVE_DECL_FPUTS_UNLOCKED 1
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_DECL_FPUTS_UNLOCKED 0
10079 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
10080 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
10081 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
10082 $as_echo_n "(cached) " >&6
10084 cat >conftest.$ac_ext <<_ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090 $ac_includes_default
10094 #ifndef fread_unlocked
10095 (void) fread_unlocked;
10102 rm -f conftest.$ac_objext
10103 if { (ac_try="$ac_compile"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109 $as_echo "$ac_try_echo") >&5
10110 (eval "$ac_compile") 2>conftest.er1
10112 grep -v '^ *+' conftest.er1 >conftest.err
10114 cat conftest.err >&5
10115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest.$ac_objext; then
10120 ac_cv_have_decl_fread_unlocked=yes
10122 $as_echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10125 ac_cv_have_decl_fread_unlocked=no
10128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
10131 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
10132 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
10134 cat >>confdefs.h <<_ACEOF
10135 #define HAVE_DECL_FREAD_UNLOCKED 1
10140 cat >>confdefs.h <<_ACEOF
10141 #define HAVE_DECL_FREAD_UNLOCKED 0
10148 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
10149 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
10150 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
10151 $as_echo_n "(cached) " >&6
10153 cat >conftest.$ac_ext <<_ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 $ac_includes_default
10163 #ifndef fwrite_unlocked
10164 (void) fwrite_unlocked;
10171 rm -f conftest.$ac_objext
10172 if { (ac_try="$ac_compile"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10178 $as_echo "$ac_try_echo") >&5
10179 (eval "$ac_compile") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest.$ac_objext; then
10189 ac_cv_have_decl_fwrite_unlocked=yes
10191 $as_echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_have_decl_fwrite_unlocked=no
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
10200 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
10201 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
10203 cat >>confdefs.h <<_ACEOF
10204 #define HAVE_DECL_FWRITE_UNLOCKED 1
10209 cat >>confdefs.h <<_ACEOF
10210 #define HAVE_DECL_FWRITE_UNLOCKED 0
10217 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10218 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10219 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10220 $as_echo_n "(cached) " >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 $ac_includes_default
10232 #ifndef getc_unlocked
10233 (void) getc_unlocked;
10240 rm -f conftest.$ac_objext
10241 if { (ac_try="$ac_compile"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10247 $as_echo "$ac_try_echo") >&5
10248 (eval "$ac_compile") 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest.$ac_objext; then
10258 ac_cv_have_decl_getc_unlocked=yes
10260 $as_echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_cv_have_decl_getc_unlocked=no
10266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10269 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10270 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_DECL_GETC_UNLOCKED 1
10278 cat >>confdefs.h <<_ACEOF
10279 #define HAVE_DECL_GETC_UNLOCKED 0
10286 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
10287 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
10288 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
10289 $as_echo_n "(cached) " >&6
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_includes_default
10301 #ifndef getchar_unlocked
10302 (void) getchar_unlocked;
10309 rm -f conftest.$ac_objext
10310 if { (ac_try="$ac_compile"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10316 $as_echo "$ac_try_echo") >&5
10317 (eval "$ac_compile") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest.$ac_objext; then
10327 ac_cv_have_decl_getchar_unlocked=yes
10329 $as_echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_cv_have_decl_getchar_unlocked=no
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
10338 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
10339 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
10341 cat >>confdefs.h <<_ACEOF
10342 #define HAVE_DECL_GETCHAR_UNLOCKED 1
10347 cat >>confdefs.h <<_ACEOF
10348 #define HAVE_DECL_GETCHAR_UNLOCKED 0
10355 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10356 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10357 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10370 #ifndef putc_unlocked
10371 (void) putc_unlocked;
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10385 $as_echo "$ac_try_echo") >&5
10386 (eval "$ac_compile") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && {
10393 test -z "$ac_c_werror_flag" ||
10394 test ! -s conftest.err
10395 } && test -s conftest.$ac_objext; then
10396 ac_cv_have_decl_putc_unlocked=yes
10398 $as_echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ac_cv_have_decl_putc_unlocked=no
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10407 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10408 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
10410 cat >>confdefs.h <<_ACEOF
10411 #define HAVE_DECL_PUTC_UNLOCKED 1
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_DECL_PUTC_UNLOCKED 0
10424 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
10425 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
10426 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
10427 $as_echo_n "(cached) " >&6
10429 cat >conftest.$ac_ext <<_ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10439 #ifndef putchar_unlocked
10440 (void) putchar_unlocked;
10447 rm -f conftest.$ac_objext
10448 if { (ac_try="$ac_compile"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10454 $as_echo "$ac_try_echo") >&5
10455 (eval "$ac_compile") 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && {
10462 test -z "$ac_c_werror_flag" ||
10463 test ! -s conftest.err
10464 } && test -s conftest.$ac_objext; then
10465 ac_cv_have_decl_putchar_unlocked=yes
10467 $as_echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 ac_cv_have_decl_putchar_unlocked=no
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
10476 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
10477 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
10479 cat >>confdefs.h <<_ACEOF
10480 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
10497 for ac_func in $ac_func_list
10499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10500 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10501 $as_echo_n "checking for $ac_func... " >&6; }
10502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10503 $as_echo_n "(cached) " >&6
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10513 #define $ac_func innocuous_$ac_func
10515 /* System header to define __stub macros and hopefully few prototypes,
10516 which can conflict with char $ac_func (); below.
10517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10518 <limits.h> exists even on freestanding compilers. */
10521 # include <limits.h>
10523 # include <assert.h>
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10535 /* The GNU C library defines this for functions which it implements
10536 to always fail with ENOSYS. Some functions are actually named
10537 something starting with __ and the normal name is an alias. */
10538 #if defined __stub_$ac_func || defined __stub___$ac_func
10545 return $ac_func ();
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10557 $as_echo "$ac_try_echo") >&5
10558 (eval "$ac_link") 2>conftest.er1
10560 grep -v '^ *+' conftest.er1 >conftest.err
10562 cat conftest.err >&5
10563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } && {
10565 test -z "$ac_c_werror_flag" ||
10566 test ! -s conftest.err
10567 } && test -s conftest$ac_exeext && {
10568 test "$cross_compiling" = yes ||
10569 $as_test_x conftest$ac_exeext
10571 eval "$as_ac_var=yes"
10573 $as_echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 eval "$as_ac_var=no"
10579 rm -rf conftest.dSYM
10580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10581 conftest$ac_exeext conftest.$ac_ext
10583 ac_res=`eval 'as_val=${'$as_ac_var'}
10584 $as_echo "$as_val"'`
10585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10586 $as_echo "$ac_res" >&6; }
10587 as_val=`eval 'as_val=${'$as_ac_var'}
10588 $as_echo "$as_val"'`
10589 if test "x$as_val" = x""yes; then
10590 cat >>confdefs.h <<_ACEOF
10591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10606 XGETTEXT_EXTRA_OPTIONS=
10608 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10609 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
10610 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
10611 $as_echo_n "(cached) " >&6
10613 if test "$cross_compiling" = yes; then
10614 gl_cv_struct_dirent_d_ino=no
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <sys/types.h>
10623 #include <sys/stat.h>
10624 #include <dirent.h>
10629 DIR *dp = opendir (".");
10636 && stat (e->d_name, &st) == 0
10637 && e->d_ino == st.st_ino);
10642 rm -f conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10649 $as_echo "$ac_try_echo") >&5
10650 (eval "$ac_link") 2>&5
10652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10659 $as_echo "$ac_try_echo") >&5
10660 (eval "$ac_try") 2>&5
10662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 gl_cv_struct_dirent_d_ino=yes
10666 $as_echo "$as_me: program exited with status $ac_status" >&5
10667 $as_echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ( exit $ac_status )
10671 gl_cv_struct_dirent_d_ino=no
10673 rm -rf conftest.dSYM
10674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10679 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
10680 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
10681 if test $gl_cv_struct_dirent_d_ino = yes; then
10683 cat >>confdefs.h <<\_ACEOF
10684 #define D_INO_IN_DIRENT 1
10691 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10692 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10693 if test "${ac_cv_win_or_dos+set}" = set; then
10694 $as_echo_n "(cached) " >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10708 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10709 neither MSDOS nor Windows
10715 rm -f conftest.$ac_objext
10716 if { (ac_try="$ac_compile"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722 $as_echo "$ac_try_echo") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest.$ac_objext; then
10733 ac_cv_win_or_dos=yes
10735 $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_win_or_dos=no
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
10745 $as_echo "$ac_cv_win_or_dos" >&6; }
10747 if test x"$ac_cv_win_or_dos" = xyes; then
10748 ac_fs_accepts_drive_letter_prefix=1
10749 ac_fs_backslash_is_file_name_separator=1
10750 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
10751 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
10752 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
10753 $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. */
10767 #if defined __CYGWIN__
10768 drive letters are always absolute
10774 rm -f conftest.$ac_objext
10775 if { (ac_try="$ac_compile"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10781 $as_echo "$ac_try_echo") >&5
10782 (eval "$ac_compile") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest.$ac_objext; then
10792 ac_cv_drive_letter_can_be_relative=yes
10794 $as_echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_cv_drive_letter_can_be_relative=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
10804 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10805 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10806 ac_fs_drive_letter_can_be_relative=1
10808 ac_fs_drive_letter_can_be_relative=0
10811 ac_fs_accepts_drive_letter_prefix=0
10812 ac_fs_backslash_is_file_name_separator=0
10813 ac_fs_drive_letter_can_be_relative=0
10817 cat >>confdefs.h <<_ACEOF
10818 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10826 cat >>confdefs.h <<_ACEOF
10827 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10832 cat >>confdefs.h <<_ACEOF
10833 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10837 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
10838 $as_echo_n "checking for long file names... " >&6; }
10839 if test "${ac_cv_sys_long_file_names+set}" = set; then
10840 $as_echo_n "(cached) " >&6
10842 ac_cv_sys_long_file_names=yes
10843 # Test for long file names in all the places we know might matter:
10844 # . the current directory, where building will happen
10845 # $prefix/lib where we will be installing things
10846 # $exec_prefix/lib likewise
10847 # $TMPDIR if set, where it might want to write temporary files
10848 # /tmp where it might want to write temporary files
10849 # /var/tmp likewise
10850 # /usr/tmp likewise
10851 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10852 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10853 # in the usual case where exec_prefix is '${prefix}'.
10855 . | /* | ?:[\\/]*) ;; #(
10858 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10859 ac_xdir=$ac_dir/cf$$
10860 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10861 ac_tf1=$ac_xdir/conftest9012345
10862 ac_tf2=$ac_xdir/conftest9012346
10863 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10864 ac_cv_sys_long_file_names=no
10865 rm -f -r "$ac_xdir" 2>/dev/null
10866 test $ac_cv_sys_long_file_names = no && break
10869 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10870 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10871 if test $ac_cv_sys_long_file_names = yes; then
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_LONG_FILE_NAMES 1
10887 GNULIB_MBSRTOWCS=0;
10888 GNULIB_MBSNRTOWCS=0;
10890 GNULIB_WCSRTOMBS=0;
10891 GNULIB_WCSNRTOMBS=0;
10903 HAVE_DECL_WCWIDTH=1;
10904 REPLACE_MBSTATE_T=0;
10910 REPLACE_MBSRTOWCS=0;
10911 REPLACE_MBSNRTOWCS=0;
10913 REPLACE_WCSRTOMBS=0;
10914 REPLACE_WCSNRTOMBS=0;
10918 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
10919 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10920 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
10921 $as_echo_n "(cached) " >&6
10923 gl_cv_header_wchar_h_correct_inline=yes
10924 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #define wcstod renamed_wcstod
10933 extern int zero (void);
10934 int main () { return zero(); }
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>&5
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; then
10942 mv conftest.$ac_objext conftest1.$ac_objext
10943 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #define wcstod renamed_wcstod
10952 int zero (void) { return 0; }
10955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>&5
10958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; then
10960 mv conftest.$ac_objext conftest2.$ac_objext
10961 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10964 gl_cv_header_wchar_h_correct_inline=no
10968 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10971 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
10972 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10973 if test $gl_cv_header_wchar_h_correct_inline = no; then
10974 { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10975 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10976 C99 mode. You have four options:
10977 - Add the flag -fgnu89-inline to CC and reconfigure, or
10978 - Fix your include files, using parts of
10979 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10980 - Use a gcc version older than 4.3, or
10981 - Don't use the flags -std=c99 or -std=gnu99.
10982 Configuration aborted." >&5
10983 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10984 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10985 C99 mode. You have four options:
10986 - Add the flag -fgnu89-inline to CC and reconfigure, or
10987 - Fix your include files, using parts of
10988 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10989 - Use a gcc version older than 4.3, or
10990 - Don't use the flags -std=c99 or -std=gnu99.
10991 Configuration aborted." >&2;}
10992 { (exit 1); exit 1; }; }
10998 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10999 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11000 if test "${am_cv_langinfo_codeset+set}" = set; then
11001 $as_echo_n "(cached) " >&6
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 #include <langinfo.h>
11013 char* cs = nl_langinfo(CODESET); return !cs;
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (ac_try="$ac_link"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11025 $as_echo "$ac_try_echo") >&5
11026 (eval "$ac_link") 2>conftest.er1
11028 grep -v '^ *+' conftest.er1 >conftest.err
11030 cat conftest.err >&5
11031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } && {
11033 test -z "$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11035 } && test -s conftest$ac_exeext && {
11036 test "$cross_compiling" = yes ||
11037 $as_test_x conftest$ac_exeext
11039 am_cv_langinfo_codeset=yes
11041 $as_echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 am_cv_langinfo_codeset=no
11047 rm -rf conftest.dSYM
11048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11049 conftest$ac_exeext conftest.$ac_ext
11052 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11053 $as_echo "$am_cv_langinfo_codeset" >&6; }
11054 if test $am_cv_langinfo_codeset = yes; then
11056 cat >>confdefs.h <<\_ACEOF
11057 #define HAVE_LANGINFO_CODESET 1
11065 { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
11066 $as_echo_n "checking for a traditional french locale... " >&6; }
11067 if test "${gt_cv_locale_fr+set}" = set; then
11068 $as_echo_n "(cached) " >&6
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11078 #include <locale.h>
11080 #if HAVE_LANGINFO_CODESET
11081 # include <langinfo.h>
11083 #include <stdlib.h>
11084 #include <string.h>
11088 /* Check whether the given locale name is recognized by the system. */
11089 if (setlocale (LC_ALL, "") == NULL) return 1;
11090 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11091 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11092 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11093 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11094 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11095 some unit tests fail.
11096 On MirBSD 10, when an unsupported locale is specified, setlocale()
11097 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11098 #if HAVE_LANGINFO_CODESET
11100 const char *cs = nl_langinfo (CODESET);
11101 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11102 || strcmp (cs, "UTF-8") == 0)
11107 /* On Cygwin, avoid locale names without encoding suffix, because the
11108 locale_charset() function relies on the encoding suffix. Note that
11109 LC_ALL is set on the command line. */
11110 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11112 /* Check whether in the abbreviation of the second month, the second
11113 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11114 one byte long. This excludes the UTF-8 encoding. */
11115 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11116 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11117 /* Check whether the decimal separator is a comma.
11118 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11119 are nl_langinfo(RADIXCHAR) are both ".". */
11120 if (localeconv () ->decimal_point[0] != ',') return 1;
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && test -s conftest$ac_exeext; then
11130 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11131 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
11132 # configure script would override the LC_ALL setting. Likewise for
11133 # LC_CTYPE, which is also set at the beginning of the configure script.
11134 # Test for the usual locale name.
11135 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11136 gt_cv_locale_fr=fr_FR
11138 # Test for the locale name with explicit encoding suffix.
11139 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11140 gt_cv_locale_fr=fr_FR.ISO-8859-1
11142 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11143 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11144 gt_cv_locale_fr=fr_FR.ISO8859-1
11146 # Test for the HP-UX locale name.
11147 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11148 gt_cv_locale_fr=fr_FR.iso88591
11150 # Test for the Solaris 7 locale name.
11151 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11155 gt_cv_locale_fr=none
11165 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
11166 $as_echo "$gt_cv_locale_fr" >&6; }
11167 LOCALE_FR=$gt_cv_locale_fr
11178 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
11179 $as_echo_n "checking whether // is distinct from /... " >&6; }
11180 if test "${gl_cv_double_slash_root+set}" = set; then
11181 $as_echo_n "(cached) " >&6
11183 if test x"$cross_compiling" = xyes ; then
11184 # When cross-compiling, there is no way to tell whether // is special
11185 # short of a list of hosts. However, the only known hosts to date
11186 # that have a distinct // are Apollo DomainOS (too old to port to),
11187 # Cygwin, and z/OS. If anyone knows of another system for which // has
11188 # special semantics and is distinct from /, please report it to
11189 # <bug-gnulib@gnu.org>.
11191 *-cygwin | i370-ibm-openedition)
11192 gl_cv_double_slash_root=yes ;;
11194 # Be optimistic and assume that / and // are the same when we
11196 gl_cv_double_slash_root='unknown, assuming no' ;;
11199 set x `ls -di / // 2>/dev/null`
11200 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
11201 gl_cv_double_slash_root=no
11203 gl_cv_double_slash_root=yes
11207 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
11208 $as_echo "$gl_cv_double_slash_root" >&6; }
11209 if test "$gl_cv_double_slash_root" = yes; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
11226 { $as_echo "$as_me:$LINENO: checking whether realpath works" >&5
11227 $as_echo_n "checking whether realpath works... " >&6; }
11228 if test "${gl_cv_func_realpath_works+set}" = set; then
11229 $as_echo_n "(cached) " >&6
11233 if test "$cross_compiling" = yes; then
11234 gl_cv_func_realpath_works="guessing no"
11236 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11244 #include <stdlib.h>
11250 char *name1 = realpath ("conftest.a", NULL);
11251 char *name2 = realpath ("conftest.b/../conftest.a", NULL);
11252 char *name3 = realpath ("conftest.a/", NULL);
11253 return !(name1 && *name1 == '/' && !name2 && !name3);
11260 rm -f conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11267 $as_echo "$ac_try_echo") >&5
11268 (eval "$ac_link") 2>&5
11270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11277 $as_echo "$ac_try_echo") >&5
11278 (eval "$ac_try") 2>&5
11280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 gl_cv_func_realpath_works=yes
11284 $as_echo "$as_me: program exited with status $ac_status" >&5
11285 $as_echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ( exit $ac_status )
11289 gl_cv_func_realpath_works=no
11291 rm -rf conftest.dSYM
11292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11298 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_realpath_works" >&5
11299 $as_echo "$gl_cv_func_realpath_works" >&6; }
11300 if test "$gl_cv_func_realpath_works" = yes; then
11302 cat >>confdefs.h <<\_ACEOF
11303 #define FUNC_REALPATH_WORKS 1
11332 GNULIB_CALLOC_POSIX=0;
11333 GNULIB_CANONICALIZE_FILE_NAME=0;
11334 GNULIB_GETLOADAVG=0;
11335 GNULIB_GETSUBOPT=0;
11337 GNULIB_MALLOC_POSIX=0;
11340 GNULIB_MKOSTEMPS=0;
11346 GNULIB_REALLOC_POSIX=0;
11353 GNULIB_SYSTEM_POSIX=0;
11358 HAVE_CANONICALIZE_FILE_NAME=1;
11359 HAVE_DECL_GETLOADAVG=1;
11375 HAVE_STRUCT_RANDOM_DATA=1;
11376 HAVE_SYS_LOADAVG_H=0;
11380 REPLACE_CANONICALIZE_FILE_NAME=0;
11385 REPLACE_REALPATH=0;
11388 REPLACE_UNSETENV=0;
11396 GNULIB_EUIDACCESS=0;
11397 GNULIB_FACCESSAT=0;
11401 GNULIB_FTRUNCATE=0;
11403 GNULIB_GETDOMAINNAME=0;
11404 GNULIB_GETDTABLESIZE=0;
11405 GNULIB_GETGROUPS=0;
11406 GNULIB_GETHOSTNAME=0;
11408 GNULIB_GETLOGIN_R=0;
11409 GNULIB_GETPAGESIZE=0;
11410 GNULIB_GETUSERSHELL=0;
11419 GNULIB_READLINKAT=0;
11423 GNULIB_SYMLINKAT=0;
11424 GNULIB_TTYNAME_R=0;
11425 GNULIB_UNISTD_H_GETOPT=0;
11426 GNULIB_UNISTD_H_SIGPIPE=0;
11440 HAVE_GETDOMAINNAME=1;
11441 HAVE_GETDTABLESIZE=1;
11443 HAVE_GETHOSTNAME=1;
11445 HAVE_GETPAGESIZE=1;
11460 HAVE_DECL_ENVIRON=1;
11461 HAVE_DECL_GETLOGIN_R=1;
11462 HAVE_DECL_GETPAGESIZE=1;
11463 HAVE_DECL_GETUSERSHELL=1;
11465 HAVE_SYS_PARAM_H=0;
11470 REPLACE_FCHOWNAT=0;
11472 REPLACE_GETGROUPS=0;
11473 REPLACE_GETPAGESIZE=0;
11480 REPLACE_READLINK=0;
11484 REPLACE_TTYNAME_R=0;
11486 REPLACE_UNLINKAT=0;
11489 UNISTD_H_HAVE_WINSOCK2_H=0;
11490 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11494 for ac_header in unistd.h
11496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 $as_echo_n "checking for $ac_header... " >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11503 ac_res=`eval 'as_val=${'$as_ac_Header'}
11504 $as_echo "$as_val"'`
11505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11508 # Is the header compilable?
11509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 $as_echo_n "checking $ac_header usability... " >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <$ac_header>
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_header_compiler=yes
11540 $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_compiler=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548 $as_echo "$ac_header_compiler" >&6; }
11550 # Is the header present?
11551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552 $as_echo_n "checking $ac_header presence... " >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 #include <$ac_header>
11561 if { (ac_try="$ac_cpp conftest.$ac_ext"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null && {
11575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11578 ac_header_preproc=yes
11580 $as_echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_header_preproc=no
11586 rm -f conftest.err conftest.$ac_ext
11587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 $as_echo "$ac_header_preproc" >&6; }
11590 # So? What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597 ac_header_preproc=yes
11600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11613 ## ------------------------------ ##
11614 ## Report this to bug-tar@gnu.org ##
11615 ## ------------------------------ ##
11617 ) | sed "s/^/$as_me: WARNING: /" >&2
11620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 $as_echo_n "checking for $ac_header... " >&6; }
11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623 $as_echo_n "(cached) " >&6
11625 eval "$as_ac_Header=\$ac_header_preproc"
11627 ac_res=`eval 'as_val=${'$as_ac_Header'}
11628 $as_echo "$as_val"'`
11629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11630 $as_echo "$ac_res" >&6; }
11633 as_val=`eval 'as_val=${'$as_ac_Header'}
11634 $as_echo "$as_val"'`
11635 if test "x$as_val" = x""yes; then
11636 cat >>confdefs.h <<_ACEOF
11637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
11645 $as_echo_n "checking for working chown... " >&6; }
11646 if test "${ac_cv_func_chown_works+set}" = set; then
11647 $as_echo_n "(cached) " >&6
11649 if test "$cross_compiling" = yes; then
11650 ac_cv_func_chown_works=no
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658 $ac_includes_default
11664 char *f = "conftest.chown";
11665 struct stat before, after;
11667 if (creat (f, 0600) < 0)
11669 if (stat (f, &before) < 0)
11671 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11673 if (stat (f, &after) < 0)
11675 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11681 rm -f conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11688 $as_echo "$ac_try_echo") >&5
11689 (eval "$ac_link") 2>&5
11691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11693 { (case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11698 $as_echo "$ac_try_echo") >&5
11699 (eval "$ac_try") 2>&5
11701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_func_chown_works=yes
11705 $as_echo "$as_me: program exited with status $ac_status" >&5
11706 $as_echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ( exit $ac_status )
11710 ac_cv_func_chown_works=no
11712 rm -rf conftest.dSYM
11713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11717 rm -f conftest.chown
11720 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11721 $as_echo "$ac_cv_func_chown_works" >&6; }
11722 if test $ac_cv_func_chown_works = yes; then
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_CHOWN 1
11731 { $as_echo "$as_me:$LINENO: checking whether chown dereferences symlinks" >&5
11732 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
11733 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
11734 $as_echo_n "(cached) " >&6
11737 if test "$cross_compiling" = yes; then
11738 gl_cv_func_chown_follows_symlink=yes
11741 cat >conftest.$ac_ext <<_ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11748 #include <unistd.h>
11749 #include <stdlib.h>
11755 char const *dangling_symlink = "conftest.dangle";
11757 unlink (dangling_symlink);
11758 if (symlink ("conftest.no-such", dangling_symlink))
11761 /* Exit successfully on a conforming system,
11762 i.e., where chown must fail with ENOENT. */
11763 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
11764 && errno == ENOENT));
11768 rm -f conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11775 $as_echo "$ac_try_echo") >&5
11776 (eval "$ac_link") 2>&5
11778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11785 $as_echo "$ac_try_echo") >&5
11786 (eval "$ac_try") 2>&5
11788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 gl_cv_func_chown_follows_symlink=yes
11792 $as_echo "$as_me: program exited with status $ac_status" >&5
11793 $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ( exit $ac_status )
11797 gl_cv_func_chown_follows_symlink=no
11799 rm -rf conftest.dSYM
11800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11807 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
11808 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
11810 if test $gl_cv_func_chown_follows_symlink = no; then
11812 cat >>confdefs.h <<\_ACEOF
11813 #define CHOWN_MODIFIES_SYMLINK 1
11837 if test $ac_cv_func_chown = no; then
11847 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11850 if test $gl_cv_func_chown_follows_symlink = no; then
11860 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11864 if test $ac_cv_func_chown_works = no; then
11866 cat >>confdefs.h <<\_ACEOF
11867 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
11879 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11883 { $as_echo "$as_me:$LINENO: checking whether chown honors trailing slash" >&5
11884 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
11885 if test "${gl_cv_func_chown_slash_works+set}" = set; then
11886 $as_echo_n "(cached) " >&6
11888 touch conftest.file && rm -f conftest.link
11889 if test "$cross_compiling" = yes; then
11890 gl_cv_func_chown_slash_works="guessing no"
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11899 #include <unistd.h>
11900 #include <stdlib.h>
11906 if (symlink ("conftest.file", "conftest.link")) return 1;
11907 if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
11913 rm -f conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920 $as_echo "$ac_try_echo") >&5
11921 (eval "$ac_link") 2>&5
11923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931 (eval "$ac_try") 2>&5
11933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 gl_cv_func_chown_slash_works=yes
11937 $as_echo "$as_me: program exited with status $ac_status" >&5
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ( exit $ac_status )
11942 gl_cv_func_chown_slash_works=no
11944 rm -rf conftest.dSYM
11945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11949 rm -f conftest.link conftest.file
11951 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_slash_works" >&5
11952 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
11953 if test "$gl_cv_func_chown_slash_works" != yes; then
11955 cat >>confdefs.h <<\_ACEOF
11956 #define CHOWN_TRAILING_SLASH_BUG 1
11968 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11972 { $as_echo "$as_me:$LINENO: checking whether chown always updates ctime" >&5
11973 $as_echo_n "checking whether chown always updates ctime... " >&6; }
11974 if test "${gl_cv_func_chown_ctime_works+set}" = set; then
11975 $as_echo_n "(cached) " >&6
11977 if test "$cross_compiling" = yes; then
11978 gl_cv_func_chown_ctime_works="guessing no"
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 #include <unistd.h>
11988 #include <stdlib.h>
11991 #include <sys/stat.h>
11996 struct stat st1, st2;
11997 if (close (creat ("conftest.file", 0600))) return 1;
11998 if (stat ("conftest.file", &st1)) return 2;
12000 if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
12001 if (stat ("conftest.file", &st2)) return 4;
12002 if (st2.st_ctime <= st1.st_ctime) return 5;
12008 rm -f conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015 $as_echo "$ac_try_echo") >&5
12016 (eval "$ac_link") 2>&5
12018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12020 { (case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12025 $as_echo "$ac_try_echo") >&5
12026 (eval "$ac_try") 2>&5
12028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 gl_cv_func_chown_ctime_works=yes
12032 $as_echo "$as_me: program exited with status $ac_status" >&5
12033 $as_echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 ( exit $ac_status )
12037 gl_cv_func_chown_ctime_works=no
12039 rm -rf conftest.dSYM
12040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12044 rm -f conftest.file
12046 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_ctime_works" >&5
12047 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
12048 if test "$gl_cv_func_chown_ctime_works" != yes; then
12050 cat >>confdefs.h <<\_ACEOF
12051 #define CHOWN_CHANGE_TIME_BUG 1
12063 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
12067 if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
12076 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
12083 GNULIB_FDOPENDIR=0;
12085 GNULIB_ALPHASORT=0;
12087 HAVE_DECL_FDOPENDIR=1;
12091 REPLACE_CLOSEDIR=0;
12093 REPLACE_FDOPENDIR=0;
12098 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12099 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12100 if test "${gl_cv_have_include_next+set}" = set; then
12101 $as_echo_n "(cached) " >&6
12103 rm -rf conftestd1a conftestd1b conftestd2
12104 mkdir conftestd1a conftestd1b conftestd2
12105 cat <<EOF > conftestd1a/conftest.h
12106 #define DEFINED_IN_CONFTESTD1
12107 #include_next <conftest.h>
12108 #ifdef DEFINED_IN_CONFTESTD2
12111 #error "include_next doesn't work"
12114 cat <<EOF > conftestd1b/conftest.h
12115 #define DEFINED_IN_CONFTESTD1
12117 #include_next <conftest.h>
12118 #ifdef DEFINED_IN_CONFTESTD2
12121 #error "include_next doesn't work"
12124 cat <<EOF > conftestd2/conftest.h
12125 #ifndef DEFINED_IN_CONFTESTD1
12126 #error "include_next test doesn't work"
12128 #define DEFINED_IN_CONFTESTD2
12130 gl_save_CPPFLAGS="$CPPFLAGS"
12131 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12132 cat >conftest.$ac_ext <<_ACEOF
12133 #include <conftest.h>
12135 rm -f conftest.$ac_objext
12136 if { (ac_try="$ac_compile"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12142 $as_echo "$ac_try_echo") >&5
12143 (eval "$ac_compile") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest.$ac_objext; then
12153 gl_cv_have_include_next=yes
12155 $as_echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #include <conftest.h>
12162 rm -f conftest.$ac_objext
12163 if { (ac_try="$ac_compile"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12169 $as_echo "$ac_try_echo") >&5
12170 (eval "$ac_compile") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest.$ac_objext; then
12180 gl_cv_have_include_next=buggy
12182 $as_echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 gl_cv_have_include_next=no
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 CPPFLAGS="$gl_save_CPPFLAGS"
12194 rm -rf conftestd1a conftestd1b conftestd2
12197 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12198 $as_echo "$gl_cv_have_include_next" >&6; }
12199 PRAGMA_SYSTEM_HEADER=
12200 if test $gl_cv_have_include_next = yes; then
12201 INCLUDE_NEXT=include_next
12202 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12203 if test -n "$GCC"; then
12204 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12207 if test $gl_cv_have_include_next = buggy; then
12208 INCLUDE_NEXT=include
12209 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12211 INCLUDE_NEXT=include
12212 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12218 { $as_echo "$as_me:$LINENO: checking whether system header files limit the line length" >&5
12219 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12220 if test "${gl_cv_pragma_columns+set}" = set; then
12221 $as_echo_n "(cached) " >&6
12223 cat >conftest.$ac_ext <<_ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12236 $EGREP "choke me" >/dev/null 2>&1; then
12237 gl_cv_pragma_columns=yes
12239 gl_cv_pragma_columns=no
12245 { $as_echo "$as_me:$LINENO: result: $gl_cv_pragma_columns" >&5
12246 $as_echo "$gl_cv_pragma_columns" >&6; }
12247 if test $gl_cv_pragma_columns = yes; then
12248 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
12267 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
12277 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
12287 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
12301 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
12302 $as_echo_n "checking if environ is properly declared... " >&6; }
12303 if test "${gt_cv_var_environ_declaration+set}" = set; then
12304 $as_echo_n "(cached) " >&6
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 #include <unistd.h>
12314 extern struct { int foo; } environ;
12323 rm -f conftest.$ac_objext
12324 if { (ac_try="$ac_compile"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12330 $as_echo "$ac_try_echo") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12341 gt_cv_var_environ_declaration=no
12343 $as_echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 gt_cv_var_environ_declaration=yes
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
12353 $as_echo "$gt_cv_var_environ_declaration" >&6; }
12354 if test $gt_cv_var_environ_declaration = yes; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_ENVIRON_DECL 1
12363 if test $gt_cv_var_environ_declaration != yes; then
12364 HAVE_DECL_ENVIRON=0
12371 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12372 $as_echo_n "checking for complete errno.h... " >&6; }
12373 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12374 $as_echo_n "(cached) " >&6
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12385 #if !defined ENOMSG
12391 #if !defined ENOLINK
12394 #if !defined EPROTO
12397 #if !defined EMULTIHOP
12400 #if !defined EBADMSG
12403 #if !defined EOVERFLOW
12406 #if !defined ENOTSUP
12409 #if !defined ESTALE
12412 #if !defined EDQUOT
12415 #if !defined ECANCELED
12420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12421 $EGREP "booboo" >/dev/null 2>&1; then
12422 gl_cv_header_errno_h_complete=no
12424 gl_cv_header_errno_h_complete=yes
12430 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12431 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12432 if test $gl_cv_header_errno_h_complete = yes; then
12446 if test $gl_cv_have_include_next = yes; then
12447 gl_cv_next_errno_h='<'errno.h'>'
12449 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12450 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12451 if test "${gl_cv_next_errno_h+set}" = set; then
12452 $as_echo_n "(cached) " >&6
12455 if test $ac_cv_header_errno_h = yes; then
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12466 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12467 *) gl_absname_cpp="$ac_cpp" ;;
12469 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12470 sed -n '\#/errno.h#{
12471 s#.*"\(.*/errno.h\)".*#\1#
12477 gl_cv_next_errno_h='<'errno.h'>'
12481 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12482 $as_echo "$gl_cv_next_errno_h" >&6; }
12484 NEXT_ERRNO_H=$gl_cv_next_errno_h
12486 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12487 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12488 gl_next_as_first_directive='<'errno.h'>'
12490 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12491 gl_next_as_first_directive=$gl_cv_next_errno_h
12493 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12501 if test -n "$ERRNO_H"; then
12502 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12503 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12504 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12505 $as_echo_n "(cached) " >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12522 $EGREP "yes" >/dev/null 2>&1; then
12523 gl_cv_header_errno_h_EMULTIHOP=yes
12525 gl_cv_header_errno_h_EMULTIHOP=no
12529 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12530 cat >conftest.$ac_ext <<_ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12537 #define _XOPEN_SOURCE_EXTENDED 1
12544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12545 $EGREP "yes" >/dev/null 2>&1; then
12546 gl_cv_header_errno_h_EMULTIHOP=hidden
12550 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12551 if test "$cross_compiling" = yes; then
12552 # Depending upon the size, compute the lo and hi bounds.
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 #define _XOPEN_SOURCE_EXTENDED 1
12562 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12564 #include <stdlib.h>
12569 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12576 rm -f conftest.$ac_objext
12577 if { (ac_try="$ac_compile"
12578 case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12583 $as_echo "$ac_try_echo") >&5
12584 (eval "$ac_compile") 2>conftest.er1
12586 grep -v '^ *+' conftest.er1 >conftest.err
12588 cat conftest.err >&5
12589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } && {
12591 test -z "$ac_c_werror_flag" ||
12592 test ! -s conftest.err
12593 } && test -s conftest.$ac_objext; then
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12603 #define _XOPEN_SOURCE_EXTENDED 1
12605 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12607 #include <stdlib.h>
12612 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12619 rm -f conftest.$ac_objext
12620 if { (ac_try="$ac_compile"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626 $as_echo "$ac_try_echo") >&5
12627 (eval "$ac_compile") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest.$ac_objext; then
12637 ac_hi=$ac_mid; break
12639 $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_lo=`expr $ac_mid + 1`
12643 if test $ac_lo -le $ac_mid; then
12647 ac_mid=`expr 2 '*' $ac_mid + 1`
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 $as_echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 cat >conftest.$ac_ext <<_ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12663 #define _XOPEN_SOURCE_EXTENDED 1
12665 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12667 #include <stdlib.h>
12672 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
12679 rm -f conftest.$ac_objext
12680 if { (ac_try="$ac_compile"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686 $as_echo "$ac_try_echo") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 #define _XOPEN_SOURCE_EXTENDED 1
12708 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12710 #include <stdlib.h>
12715 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
12722 rm -f conftest.$ac_objext
12723 if { (ac_try="$ac_compile"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12729 $as_echo "$ac_try_echo") >&5
12730 (eval "$ac_compile") 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest.$ac_objext; then
12740 ac_lo=$ac_mid; break
12742 $as_echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_hi=`expr '(' $ac_mid ')' - 1`
12746 if test $ac_mid -le $ac_hi; then
12750 ac_mid=`expr 2 '*' $ac_mid`
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 $as_echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 # Binary search between lo and hi bounds.
12767 while test "x$ac_lo" != "x$ac_hi"; do
12768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12769 cat >conftest.$ac_ext <<_ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12776 #define _XOPEN_SOURCE_EXTENDED 1
12778 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12780 #include <stdlib.h>
12785 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12799 $as_echo "$ac_try_echo") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1 >conftest.err
12804 cat conftest.err >&5
12805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12812 $as_echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_lo=`expr '(' $ac_mid ')' + 1`
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12832 #define _XOPEN_SOURCE_EXTENDED 1
12834 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12836 #include <stdlib.h>
12838 static long int longval () { return EMULTIHOP; }
12839 static unsigned long int ulongval () { return EMULTIHOP; }
12841 #include <stdlib.h>
12846 FILE *f = fopen ("conftest.val", "w");
12849 if ((EMULTIHOP) < 0)
12851 long int i = longval ();
12852 if (i != (EMULTIHOP))
12854 fprintf (f, "%ld", i);
12858 unsigned long int i = ulongval ();
12859 if (i != (EMULTIHOP))
12861 fprintf (f, "%lu", i);
12863 /* Do not output a trailing newline, as this causes \r\n confusion
12864 on some platforms. */
12865 return ferror (f) || fclose (f) != 0;
12871 rm -f conftest$ac_exeext
12872 if { (ac_try="$ac_link"
12873 case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12878 $as_echo "$ac_try_echo") >&5
12879 (eval "$ac_link") 2>&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12883 { (case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12888 $as_echo "$ac_try_echo") >&5
12889 (eval "$ac_try") 2>&5
12891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
12895 $as_echo "$as_me: program exited with status $ac_status" >&5
12896 $as_echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12900 rm -rf conftest.dSYM
12901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12908 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12909 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12910 case $gl_cv_header_errno_h_EMULTIHOP in
12912 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12915 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12923 if test -n "$ERRNO_H"; then
12924 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
12925 $as_echo_n "checking for ENOLINK value... " >&6; }
12926 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
12927 $as_echo_n "(cached) " >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12944 $EGREP "yes" >/dev/null 2>&1; then
12945 gl_cv_header_errno_h_ENOLINK=yes
12947 gl_cv_header_errno_h_ENOLINK=no
12951 if test $gl_cv_header_errno_h_ENOLINK = no; then
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12959 #define _XOPEN_SOURCE_EXTENDED 1
12966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12967 $EGREP "yes" >/dev/null 2>&1; then
12968 gl_cv_header_errno_h_ENOLINK=hidden
12972 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
12973 if test "$cross_compiling" = yes; then
12974 # Depending upon the size, compute the lo and hi bounds.
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12982 #define _XOPEN_SOURCE_EXTENDED 1
12984 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12986 #include <stdlib.h>
12991 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13005 $as_echo "$ac_try_echo") >&5
13006 (eval "$ac_compile") 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } && {
13013 test -z "$ac_c_werror_flag" ||
13014 test ! -s conftest.err
13015 } && test -s conftest.$ac_objext; then
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13025 #define _XOPEN_SOURCE_EXTENDED 1
13027 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13029 #include <stdlib.h>
13034 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049 (eval "$ac_compile") 2>conftest.er1
13051 grep -v '^ *+' conftest.er1 >conftest.err
13053 cat conftest.err >&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
13058 } && test -s conftest.$ac_objext; then
13059 ac_hi=$ac_mid; break
13061 $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_lo=`expr $ac_mid + 1`
13065 if test $ac_lo -le $ac_mid; then
13069 ac_mid=`expr 2 '*' $ac_mid + 1`
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 $as_echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13085 #define _XOPEN_SOURCE_EXTENDED 1
13087 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13089 #include <stdlib.h>
13094 static int test_array [1 - 2 * !((ENOLINK) < 0)];
13101 rm -f conftest.$ac_objext
13102 if { (ac_try="$ac_compile"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13108 $as_echo "$ac_try_echo") >&5
13109 (eval "$ac_compile") 2>conftest.er1
13111 grep -v '^ *+' conftest.er1 >conftest.err
13113 cat conftest.err >&5
13114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } && {
13116 test -z "$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 } && test -s conftest.$ac_objext; then
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13128 #define _XOPEN_SOURCE_EXTENDED 1
13130 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13132 #include <stdlib.h>
13137 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13144 rm -f conftest.$ac_objext
13145 if { (ac_try="$ac_compile"
13146 case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13151 $as_echo "$ac_try_echo") >&5
13152 (eval "$ac_compile") 2>conftest.er1
13154 grep -v '^ *+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } && {
13159 test -z "$ac_c_werror_flag" ||
13160 test ! -s conftest.err
13161 } && test -s conftest.$ac_objext; then
13162 ac_lo=$ac_mid; break
13164 $as_echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_hi=`expr '(' $ac_mid ')' - 1`
13168 if test $ac_mid -le $ac_hi; then
13172 ac_mid=`expr 2 '*' $ac_mid`
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 $as_echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188 # Binary search between lo and hi bounds.
13189 while test "x$ac_lo" != "x$ac_hi"; do
13190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13198 #define _XOPEN_SOURCE_EXTENDED 1
13200 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13202 #include <stdlib.h>
13207 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13214 rm -f conftest.$ac_objext
13215 if { (ac_try="$ac_compile"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222 (eval "$ac_compile") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } && {
13229 test -z "$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13231 } && test -s conftest.$ac_objext; then
13234 $as_echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_lo=`expr '(' $ac_mid ')' + 1`
13240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13243 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13254 #define _XOPEN_SOURCE_EXTENDED 1
13256 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13258 #include <stdlib.h>
13260 static long int longval () { return ENOLINK; }
13261 static unsigned long int ulongval () { return ENOLINK; }
13263 #include <stdlib.h>
13268 FILE *f = fopen ("conftest.val", "w");
13273 long int i = longval ();
13274 if (i != (ENOLINK))
13276 fprintf (f, "%ld", i);
13280 unsigned long int i = ulongval ();
13281 if (i != (ENOLINK))
13283 fprintf (f, "%lu", i);
13285 /* Do not output a trailing newline, as this causes \r\n confusion
13286 on some platforms. */
13287 return ferror (f) || fclose (f) != 0;
13293 rm -f conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13300 $as_echo "$ac_try_echo") >&5
13301 (eval "$ac_link") 2>&5
13303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311 (eval "$ac_try") 2>&5
13313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13317 $as_echo "$as_me: program exited with status $ac_status" >&5
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13322 rm -rf conftest.dSYM
13323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13330 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13331 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13332 case $gl_cv_header_errno_h_ENOLINK in
13334 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13337 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13345 if test -n "$ERRNO_H"; then
13346 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13347 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13348 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13349 $as_echo_n "(cached) " >&6
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13366 $EGREP "yes" >/dev/null 2>&1; then
13367 gl_cv_header_errno_h_EOVERFLOW=yes
13369 gl_cv_header_errno_h_EOVERFLOW=no
13373 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13381 #define _XOPEN_SOURCE_EXTENDED 1
13388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13389 $EGREP "yes" >/dev/null 2>&1; then
13390 gl_cv_header_errno_h_EOVERFLOW=hidden
13394 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13395 if test "$cross_compiling" = yes; then
13396 # Depending upon the size, compute the lo and hi bounds.
13397 cat >conftest.$ac_ext <<_ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13404 #define _XOPEN_SOURCE_EXTENDED 1
13406 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13408 #include <stdlib.h>
13413 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13427 $as_echo "$ac_try_echo") >&5
13428 (eval "$ac_compile") 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } && {
13435 test -z "$ac_c_werror_flag" ||
13436 test ! -s conftest.err
13437 } && test -s conftest.$ac_objext; then
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13447 #define _XOPEN_SOURCE_EXTENDED 1
13449 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13451 #include <stdlib.h>
13456 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13463 rm -f conftest.$ac_objext
13464 if { (ac_try="$ac_compile"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471 (eval "$ac_compile") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } && {
13478 test -z "$ac_c_werror_flag" ||
13479 test ! -s conftest.err
13480 } && test -s conftest.$ac_objext; then
13481 ac_hi=$ac_mid; break
13483 $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_lo=`expr $ac_mid + 1`
13487 if test $ac_lo -le $ac_mid; then
13491 ac_mid=`expr 2 '*' $ac_mid + 1`
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 $as_echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13507 #define _XOPEN_SOURCE_EXTENDED 1
13509 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13511 #include <stdlib.h>
13516 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13523 rm -f conftest.$ac_objext
13524 if { (ac_try="$ac_compile"
13525 case "(($ac_try" in
13526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527 *) ac_try_echo=$ac_try;;
13529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13530 $as_echo "$ac_try_echo") >&5
13531 (eval "$ac_compile") 2>conftest.er1
13533 grep -v '^ *+' conftest.er1 >conftest.err
13535 cat conftest.err >&5
13536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } && {
13538 test -z "$ac_c_werror_flag" ||
13539 test ! -s conftest.err
13540 } && test -s conftest.$ac_objext; then
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13550 #define _XOPEN_SOURCE_EXTENDED 1
13552 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13554 #include <stdlib.h>
13559 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13573 $as_echo "$ac_try_echo") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13584 ac_lo=$ac_mid; break
13586 $as_echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_hi=`expr '(' $ac_mid ')' - 1`
13590 if test $ac_mid -le $ac_hi; then
13594 ac_mid=`expr 2 '*' $ac_mid`
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 $as_echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610 # Binary search between lo and hi bounds.
13611 while test "x$ac_lo" != "x$ac_hi"; do
13612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13620 #define _XOPEN_SOURCE_EXTENDED 1
13622 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13624 #include <stdlib.h>
13629 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13636 rm -f conftest.$ac_objext
13637 if { (ac_try="$ac_compile"
13638 case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest.$ac_objext; then
13656 $as_echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_lo=`expr '(' $ac_mid ')' + 1`
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 #define _XOPEN_SOURCE_EXTENDED 1
13678 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13680 #include <stdlib.h>
13682 static long int longval () { return EOVERFLOW; }
13683 static unsigned long int ulongval () { return EOVERFLOW; }
13685 #include <stdlib.h>
13690 FILE *f = fopen ("conftest.val", "w");
13693 if ((EOVERFLOW) < 0)
13695 long int i = longval ();
13696 if (i != (EOVERFLOW))
13698 fprintf (f, "%ld", i);
13702 unsigned long int i = ulongval ();
13703 if (i != (EOVERFLOW))
13705 fprintf (f, "%lu", i);
13707 /* Do not output a trailing newline, as this causes \r\n confusion
13708 on some platforms. */
13709 return ferror (f) || fclose (f) != 0;
13715 rm -f conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723 (eval "$ac_link") 2>&5
13725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13732 $as_echo "$ac_try_echo") >&5
13733 (eval "$ac_try") 2>&5
13735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
13739 $as_echo "$as_me: program exited with status $ac_status" >&5
13740 $as_echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13744 rm -rf conftest.dSYM
13745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13752 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13753 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13754 case $gl_cv_header_errno_h_EOVERFLOW in
13756 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13759 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13767 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13768 $as_echo_n "checking whether strerror_r is declared... " >&6; }
13769 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13770 $as_echo_n "(cached) " >&6
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13797 $as_echo "$ac_try_echo") >&5
13798 (eval "$ac_compile") 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13802 cat conftest.err >&5
13803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest.$ac_objext; then
13808 ac_cv_have_decl_strerror_r=yes
13810 $as_echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_cv_have_decl_strerror_r=no
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13819 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
13820 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_DECL_STRERROR_R 1
13828 cat >>confdefs.h <<_ACEOF
13829 #define HAVE_DECL_STRERROR_R 0
13837 for ac_func in strerror_r
13839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13841 $as_echo_n "checking for $ac_func... " >&6; }
13842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13843 $as_echo_n "(cached) " >&6
13845 cat >conftest.$ac_ext <<_ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13853 #define $ac_func innocuous_$ac_func
13855 /* System header to define __stub macros and hopefully few prototypes,
13856 which can conflict with char $ac_func (); below.
13857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13858 <limits.h> exists even on freestanding compilers. */
13861 # include <limits.h>
13863 # include <assert.h>
13868 /* Override any GCC internal prototype to avoid an error.
13869 Use char because int might match the return type of a GCC
13870 builtin and then its argument prototype would still apply. */
13875 /* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878 #if defined __stub_$ac_func || defined __stub___$ac_func
13885 return $ac_func ();
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_link") 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest$ac_exeext && {
13908 test "$cross_compiling" = yes ||
13909 $as_test_x conftest$ac_exeext
13911 eval "$as_ac_var=yes"
13913 $as_echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 eval "$as_ac_var=no"
13919 rm -rf conftest.dSYM
13920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13921 conftest$ac_exeext conftest.$ac_ext
13923 ac_res=`eval 'as_val=${'$as_ac_var'}
13924 $as_echo "$as_val"'`
13925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13926 $as_echo "$ac_res" >&6; }
13927 as_val=`eval 'as_val=${'$as_ac_var'}
13928 $as_echo "$as_val"'`
13929 if test "x$as_val" = x""yes; then
13930 cat >>confdefs.h <<_ACEOF
13931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13937 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13938 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13939 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13940 $as_echo_n "(cached) " >&6
13943 ac_cv_func_strerror_r_char_p=no
13944 if test $ac_cv_have_decl_strerror_r = yes; then
13945 cat >conftest.$ac_ext <<_ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13957 char x = *strerror_r (0, buf, sizeof buf);
13958 char *p = strerror_r (0, buf, sizeof buf);
13965 rm -f conftest.$ac_objext
13966 if { (ac_try="$ac_compile"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13972 $as_echo "$ac_try_echo") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
13983 ac_cv_func_strerror_r_char_p=yes
13985 $as_echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 # strerror_r is not declared. Choose between
13994 # systems that have relatively inaccessible declarations for the
13995 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13996 # former has a strerror_r that returns char*, while the latter
13997 # has a strerror_r that returns `int'.
13998 # This test should segfault on the DEC system.
13999 if test "$cross_compiling" = yes; then
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 extern char *strerror_r ();
14014 char x = *strerror_r (0, buf, sizeof buf);
14015 return ! isalpha (x);
14020 rm -f conftest$ac_exeext
14021 if { (ac_try="$ac_link"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14027 $as_echo "$ac_try_echo") >&5
14028 (eval "$ac_link") 2>&5
14030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14037 $as_echo "$ac_try_echo") >&5
14038 (eval "$ac_try") 2>&5
14040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_cv_func_strerror_r_char_p=yes
14044 $as_echo "$as_me: program exited with status $ac_status" >&5
14045 $as_echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14049 rm -rf conftest.dSYM
14050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14057 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14058 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14059 if test $ac_cv_func_strerror_r_char_p = yes; then
14061 cat >>confdefs.h <<\_ACEOF
14062 #define STRERROR_R_CHAR_P 1
14079 GNULIB_UTIMENSAT=0;
14093 REPLACE_FUTIMENS=0;
14099 REPLACE_UTIMENSAT=0;
14115 { $as_echo "$as_me:$LINENO: checking for promoted mode_t type" >&5
14116 $as_echo_n "checking for promoted mode_t type... " >&6; }
14117 if test "${gl_cv_promoted_mode_t+set}" = set; then
14118 $as_echo_n "(cached) " >&6
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <sys/types.h>
14131 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14143 $as_echo "$ac_try_echo") >&5
14144 (eval "$ac_compile") 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } && {
14151 test -z "$ac_c_werror_flag" ||
14152 test ! -s conftest.err
14153 } && test -s conftest.$ac_objext; then
14154 gl_cv_promoted_mode_t='int'
14156 $as_echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 gl_cv_promoted_mode_t='mode_t'
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 { $as_echo "$as_me:$LINENO: result: $gl_cv_promoted_mode_t" >&5
14166 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14168 cat >>confdefs.h <<_ACEOF
14169 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14179 GNULIB_FPRINTF_POSIX=0;
14191 GNULIB_OBSTACK_PRINTF=0;
14192 GNULIB_OBSTACK_PRINTF_POSIX=0;
14196 GNULIB_PRINTF_POSIX=0;
14204 GNULIB_SPRINTF_POSIX=0;
14205 GNULIB_STDIO_H_SIGPIPE=0;
14207 GNULIB_VASPRINTF=0;
14210 GNULIB_VFPRINTF_POSIX=0;
14212 GNULIB_VPRINTF_POSIX=0;
14213 GNULIB_VSNPRINTF=0;
14214 GNULIB_VSPRINTF_POSIX=0;
14215 HAVE_DECL_FPURGE=1;
14216 HAVE_DECL_GETDELIM=1;
14217 HAVE_DECL_GETLINE=1;
14218 HAVE_DECL_OBSTACK_PRINTF=1;
14219 HAVE_DECL_SNPRINTF=1;
14220 HAVE_DECL_VSNPRINTF=1;
14238 REPLACE_GETDELIM=0;
14240 REPLACE_OBSTACK_PRINTF=0;
14246 REPLACE_RENAMEAT=0;
14247 REPLACE_SNPRINTF=0;
14249 REPLACE_STDIO_WRITE_FUNCS=0;
14251 REPLACE_VASPRINTF=0;
14252 REPLACE_VDPRINTF=0;
14253 REPLACE_VFPRINTF=0;
14255 REPLACE_VSNPRINTF=0;
14256 REPLACE_VSPRINTF=0;
14262 { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
14263 $as_echo_n "checking for working fcntl.h... " >&6; }
14264 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
14265 $as_echo_n "(cached) " >&6
14267 if test "$cross_compiling" = yes; then
14268 gl_cv_header_working_fcntl_h=cross-compiling
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #include <sys/types.h>
14277 #include <sys/stat.h>
14278 #include <unistd.h>
14281 #define O_NOATIME 0
14284 #define O_NOFOLLOW 0
14286 static int const constants[] =
14288 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
14289 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
14296 int status = !constants;
14298 static char const sym[] = "conftest.sym";
14299 if (symlink (".", sym) != 0
14300 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
14305 static char const file[] = "confdefs.h";
14306 int fd = open (file, O_RDONLY | O_NOATIME);
14308 struct stat st0, st1;
14310 || fstat (fd, &st0) != 0
14312 || read (fd, &c, 1) != 1
14314 || stat (file, &st1) != 0
14315 || st0.st_atime != st1.st_atime)
14323 rm -f conftest$ac_exeext
14324 if { (ac_try="$ac_link"
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_link") 2>&5
14333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14335 { (case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14340 $as_echo "$ac_try_echo") >&5
14341 (eval "$ac_try") 2>&5
14343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 gl_cv_header_working_fcntl_h=yes
14347 $as_echo "$as_me: program exited with status $ac_status" >&5
14348 $as_echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 ( exit $ac_status )
14353 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
14354 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
14355 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
14356 *) gl_cv_header_working_fcntl_h='no';;
14359 rm -rf conftest.dSYM
14360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14365 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
14366 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
14368 case $gl_cv_header_working_fcntl_h in #(
14369 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_WORKING_O_NOATIME $ac_val
14378 case $gl_cv_header_working_fcntl_h in #(
14379 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
14383 cat >>confdefs.h <<_ACEOF
14384 #define HAVE_WORKING_O_NOFOLLOW $ac_val
14394 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14395 $as_echo_n "checking for mbstate_t... " >&6; }
14396 if test "${ac_cv_type_mbstate_t+set}" = set; then
14397 $as_echo_n "(cached) " >&6
14399 cat >conftest.$ac_ext <<_ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14406 # include <wchar.h>
14410 mbstate_t x; return sizeof x;
14415 rm -f conftest.$ac_objext
14416 if { (ac_try="$ac_compile"
14417 case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14422 $as_echo "$ac_try_echo") >&5
14423 (eval "$ac_compile") 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && {
14430 test -z "$ac_c_werror_flag" ||
14431 test ! -s conftest.err
14432 } && test -s conftest.$ac_objext; then
14433 ac_cv_type_mbstate_t=yes
14435 $as_echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14438 ac_cv_type_mbstate_t=no
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14444 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14445 if test $ac_cv_type_mbstate_t = yes; then
14447 cat >>confdefs.h <<\_ACEOF
14448 #define HAVE_MBSTATE_T 1
14453 cat >>confdefs.h <<\_ACEOF
14454 #define mbstate_t int
14482 { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
14483 $as_echo_n "checking for fseeko... " >&6; }
14484 if test "${gl_cv_func_fseeko+set}" = set; then
14485 $as_echo_n "(cached) " >&6
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14499 fseeko (stdin, 0, 0);
14504 rm -f conftest.$ac_objext conftest$ac_exeext
14505 if { (ac_try="$ac_link"
14506 case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14511 $as_echo "$ac_try_echo") >&5
14512 (eval "$ac_link") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext && {
14522 test "$cross_compiling" = yes ||
14523 $as_test_x conftest$ac_exeext
14525 gl_cv_func_fseeko=yes
14527 $as_echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 gl_cv_func_fseeko=no
14533 rm -rf conftest.dSYM
14534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14535 conftest$ac_exeext conftest.$ac_ext
14538 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
14539 $as_echo "$gl_cv_func_fseeko" >&6; }
14542 { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14543 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14544 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14547 cat >conftest.$ac_ext <<_ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14557 #if defined __SL64 && defined __SCLE /* cygwin */
14558 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14559 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
14560 it is easier to do a version check than building a runtime test. */
14561 # include <cygwin/version.h>
14562 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (ac_try="$ac_link"
14572 case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578 (eval "$ac_link") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest$ac_exeext && {
14588 test "$cross_compiling" = yes ||
14589 $as_test_x conftest$ac_exeext
14591 gl_cv_var_stdin_large_offset=yes
14593 $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 gl_cv_var_stdin_large_offset=no
14599 rm -rf conftest.dSYM
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 conftest$ac_exeext conftest.$ac_ext
14603 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14604 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14609 { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
14610 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
14611 if test "${gl_cv_func_getcwd_null+set}" = set; then
14612 $as_echo_n "(cached) " >&6
14614 if test "$cross_compiling" = yes; then
14617 # Guess yes on glibc systems.
14618 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
14619 # Guess yes on Cygwin.
14620 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
14621 # Guess yes on mingw.
14622 mingw*) gl_cv_func_getcwd_null="guessing yes";;
14623 # If we don't know, assume the worst.
14624 *) gl_cv_func_getcwd_null="guessing no";;
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14635 # include <unistd.h>
14644 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14645 /* mingw cwd does not start with '/', but getcwd does allocate. */
14647 if (chdir ("/") != 0)
14651 char *f = getcwd (NULL, 0);
14652 return ! (f && f[0] == '/' && !f[1]);
14660 rm -f conftest$ac_exeext
14661 if { (ac_try="$ac_link"
14662 case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14667 $as_echo "$ac_try_echo") >&5
14668 (eval "$ac_link") 2>&5
14670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14672 { (case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678 (eval "$ac_try") 2>&5
14680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 gl_cv_func_getcwd_null=yes
14684 $as_echo "$as_me: program exited with status $ac_status" >&5
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ( exit $ac_status )
14689 gl_cv_func_getcwd_null=no
14691 rm -rf conftest.dSYM
14692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14697 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
14698 $as_echo "$gl_cv_func_getcwd_null" >&6; }
14700 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
14701 $as_echo_n "checking whether getcwd is declared... " >&6; }
14702 if test "${ac_cv_have_decl_getcwd+set}" = set; then
14703 $as_echo_n "(cached) " >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 $ac_includes_default
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730 $as_echo "$ac_try_echo") >&5
14731 (eval "$ac_compile") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest.$ac_objext; then
14741 ac_cv_have_decl_getcwd=yes
14743 $as_echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_have_decl_getcwd=no
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
14752 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
14753 if test "x$ac_cv_have_decl_getcwd" = x""yes; then
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_DECL_GETCWD 1
14761 cat >>confdefs.h <<_ACEOF
14762 #define HAVE_DECL_GETCWD 0
14769 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14770 $as_echo_n "checking whether getdelim is declared... " >&6; }
14771 if test "${ac_cv_have_decl_getdelim+set}" = set; then
14772 $as_echo_n "(cached) " >&6
14774 cat >conftest.$ac_ext <<_ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 $ac_includes_default
14792 rm -f conftest.$ac_objext
14793 if { (ac_try="$ac_compile"
14794 case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14799 $as_echo "$ac_try_echo") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14802 grep -v '^ *+' conftest.er1 >conftest.err
14804 cat conftest.err >&5
14805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest.$ac_objext; then
14810 ac_cv_have_decl_getdelim=yes
14812 $as_echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_cv_have_decl_getdelim=no
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14821 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
14822 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14824 cat >>confdefs.h <<_ACEOF
14825 #define HAVE_DECL_GETDELIM 1
14830 cat >>confdefs.h <<_ACEOF
14831 #define HAVE_DECL_GETDELIM 0
14842 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14843 $as_echo_n "checking whether getline is declared... " >&6; }
14844 if test "${ac_cv_have_decl_getline+set}" = set; then
14845 $as_echo_n "(cached) " >&6
14847 cat >conftest.$ac_ext <<_ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 $ac_includes_default
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872 $as_echo "$ac_try_echo") >&5
14873 (eval "$ac_compile") 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14877 cat conftest.err >&5
14878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest.$ac_objext; then
14883 ac_cv_have_decl_getline=yes
14885 $as_echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 ac_cv_have_decl_getline=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14894 $as_echo "$ac_cv_have_decl_getline" >&6; }
14895 if test "x$ac_cv_have_decl_getline" = x""yes; then
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_DECL_GETLINE 1
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE_DECL_GETLINE 0
14928 if test $gl_cv_have_include_next = yes; then
14929 gl_cv_next_getopt_h='<'getopt.h'>'
14931 { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
14932 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14933 if test "${gl_cv_next_getopt_h+set}" = set; then
14934 $as_echo_n "(cached) " >&6
14937 if test $ac_cv_header_getopt_h = yes; then
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <getopt.h>
14948 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14949 *) gl_absname_cpp="$ac_cpp" ;;
14951 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14952 sed -n '\#/getopt.h#{
14953 s#.*"\(.*/getopt.h\)".*#\1#
14959 gl_cv_next_getopt_h='<'getopt.h'>'
14963 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
14964 $as_echo "$gl_cv_next_getopt_h" >&6; }
14966 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14968 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14970 gl_next_as_first_directive='<'getopt.h'>'
14972 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14973 gl_next_as_first_directive=$gl_cv_next_getopt_h
14975 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14985 if test $ac_cv_header_getopt_h = yes; then
14994 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14996 for ac_header in getopt.h
14998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15001 $as_echo_n "checking for $ac_header... " >&6; }
15002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15003 $as_echo_n "(cached) " >&6
15005 ac_res=`eval 'as_val=${'$as_ac_Header'}
15006 $as_echo "$as_val"'`
15007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15008 $as_echo "$ac_res" >&6; }
15010 # Is the header compilable?
15011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15012 $as_echo_n "checking $ac_header usability... " >&6; }
15013 cat >conftest.$ac_ext <<_ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 $ac_includes_default
15020 #include <$ac_header>
15022 rm -f conftest.$ac_objext
15023 if { (ac_try="$ac_compile"
15024 case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15029 $as_echo "$ac_try_echo") >&5
15030 (eval "$ac_compile") 2>conftest.er1
15032 grep -v '^ *+' conftest.er1 >conftest.err
15034 cat conftest.err >&5
15035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } && {
15037 test -z "$ac_c_werror_flag" ||
15038 test ! -s conftest.err
15039 } && test -s conftest.$ac_objext; then
15040 ac_header_compiler=yes
15042 $as_echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 ac_header_compiler=no
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15050 $as_echo "$ac_header_compiler" >&6; }
15052 # Is the header present?
15053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15054 $as_echo_n "checking $ac_header presence... " >&6; }
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061 #include <$ac_header>
15063 if { (ac_try="$ac_cpp conftest.$ac_ext"
15064 case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15069 $as_echo "$ac_try_echo") >&5
15070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15072 grep -v '^ *+' conftest.er1 >conftest.err
15074 cat conftest.err >&5
15075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } >/dev/null && {
15077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15080 ac_header_preproc=yes
15082 $as_echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 ac_header_preproc=no
15088 rm -f conftest.err conftest.$ac_ext
15089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15090 $as_echo "$ac_header_preproc" >&6; }
15092 # So? What about this header?
15093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15099 ac_header_preproc=yes
15102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15115 ## ------------------------------ ##
15116 ## Report this to bug-tar@gnu.org ##
15117 ## ------------------------------ ##
15119 ) | sed "s/^/$as_me: WARNING: /" >&2
15122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15123 $as_echo_n "checking for $ac_header... " >&6; }
15124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15125 $as_echo_n "(cached) " >&6
15127 eval "$as_ac_Header=\$ac_header_preproc"
15129 ac_res=`eval 'as_val=${'$as_ac_Header'}
15130 $as_echo "$as_val"'`
15131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15132 $as_echo "$ac_res" >&6; }
15135 as_val=`eval 'as_val=${'$as_ac_Header'}
15136 $as_echo "$as_val"'`
15137 if test "x$as_val" = x""yes; then
15138 cat >>confdefs.h <<_ACEOF
15139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15143 gl_replace_getopt=yes
15150 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15152 for ac_func in getopt_long_only
15154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15155 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15156 $as_echo_n "checking for $ac_func... " >&6; }
15157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15158 $as_echo_n "(cached) " >&6
15160 cat >conftest.$ac_ext <<_ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15168 #define $ac_func innocuous_$ac_func
15170 /* System header to define __stub macros and hopefully few prototypes,
15171 which can conflict with char $ac_func (); below.
15172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15173 <limits.h> exists even on freestanding compilers. */
15176 # include <limits.h>
15178 # include <assert.h>
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15190 /* The GNU C library defines this for functions which it implements
15191 to always fail with ENOSYS. Some functions are actually named
15192 something starting with __ and the normal name is an alias. */
15193 #if defined __stub_$ac_func || defined __stub___$ac_func
15200 return $ac_func ();
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213 (eval "$ac_link") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext && {
15223 test "$cross_compiling" = yes ||
15224 $as_test_x conftest$ac_exeext
15226 eval "$as_ac_var=yes"
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 eval "$as_ac_var=no"
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15238 ac_res=`eval 'as_val=${'$as_ac_var'}
15239 $as_echo "$as_val"'`
15240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15241 $as_echo "$ac_res" >&6; }
15242 as_val=`eval 'as_val=${'$as_ac_var'}
15243 $as_echo "$as_val"'`
15244 if test "x$as_val" = x""yes; then
15245 cat >>confdefs.h <<_ACEOF
15246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15250 gl_replace_getopt=yes
15256 if test -z "$gl_replace_getopt"; then
15257 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15258 $as_echo_n "checking whether optreset is declared... " >&6; }
15259 if test "${ac_cv_have_decl_optreset+set}" = set; then
15260 $as_echo_n "(cached) " >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 #include <getopt.h>
15281 rm -f conftest.$ac_objext
15282 if { (ac_try="$ac_compile"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15288 $as_echo "$ac_try_echo") >&5
15289 (eval "$ac_compile") 2>conftest.er1
15291 grep -v '^ *+' conftest.er1 >conftest.err
15293 cat conftest.err >&5
15294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest.$ac_objext; then
15299 ac_cv_have_decl_optreset=yes
15301 $as_echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_cv_have_decl_optreset=no
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15310 $as_echo "$ac_cv_have_decl_optreset" >&6; }
15311 if test "x$ac_cv_have_decl_optreset" = x""yes; then
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_DECL_OPTRESET 1
15319 cat >>confdefs.h <<_ACEOF
15320 #define HAVE_DECL_OPTRESET 0
15323 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
15324 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
15325 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
15326 $as_echo_n "(cached) " >&6
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 #include <getopt.h>
15339 #ifndef getopt_clip
15340 (void) getopt_clip;
15347 rm -f conftest.$ac_objext
15348 if { (ac_try="$ac_compile"
15349 case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15354 $as_echo "$ac_try_echo") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest.$ac_objext; then
15365 ac_cv_have_decl_getopt_clip=yes
15367 $as_echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_cv_have_decl_getopt_clip=no
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
15376 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
15377 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_DECL_GETOPT_CLIP 1
15385 cat >>confdefs.h <<_ACEOF
15386 #define HAVE_DECL_GETOPT_CLIP 0
15399 if test -z "$gl_replace_getopt"; then
15400 { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15401 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15402 if test "${gl_cv_func_getopt_posix+set}" = set; then
15403 $as_echo_n "(cached) " >&6
15406 if test "$cross_compiling" = yes; then
15408 mingw*) gl_cv_func_getopt_posix="guessing no";;
15409 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15410 *) gl_cv_func_getopt_posix="guessing yes";;
15414 cat >conftest.$ac_ext <<_ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15421 #include <unistd.h>
15422 #include <stdlib.h>
15423 #include <string.h>
15425 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
15426 # define OPTIND_MIN 0
15428 # define OPTIND_MIN 1
15439 argv[argc++] = "program";
15440 argv[argc++] = "-a";
15441 argv[argc++] = "foo";
15442 argv[argc++] = "bar";
15444 optind = OPTIND_MIN;
15447 c = getopt (argc, argv, "ab");
15450 c = getopt (argc, argv, "ab");
15453 if (!(optind == 2))
15456 /* Some internal state exists at this point. */
15462 argv[argc++] = "program";
15463 argv[argc++] = "donald";
15464 argv[argc++] = "-p";
15465 argv[argc++] = "billy";
15466 argv[argc++] = "duck";
15467 argv[argc++] = "-a";
15468 argv[argc++] = "bar";
15470 optind = OPTIND_MIN;
15473 c = getopt (argc, argv, "+abp:q:");
15476 if (!(strcmp (argv[0], "program") == 0))
15478 if (!(strcmp (argv[1], "donald") == 0))
15480 if (!(strcmp (argv[2], "-p") == 0))
15482 if (!(strcmp (argv[3], "billy") == 0))
15484 if (!(strcmp (argv[4], "duck") == 0))
15486 if (!(strcmp (argv[5], "-a") == 0))
15488 if (!(strcmp (argv[6], "bar") == 0))
15490 if (!(optind == 1))
15493 /* Detect MacOS 10.5, AIX 7.1 bug. */
15495 char *argv[3] = { "program", "-ab", NULL };
15496 optind = OPTIND_MIN;
15498 if (getopt (2, argv, "ab:") != 'a')
15500 if (getopt (2, argv, "ab:") != '?')
15512 rm -f conftest$ac_exeext
15513 if { (ac_try="$ac_link"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520 (eval "$ac_link") 2>&5
15522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15529 $as_echo "$ac_try_echo") >&5
15530 (eval "$ac_try") 2>&5
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 gl_cv_func_getopt_posix=yes
15536 $as_echo "$as_me: program exited with status $ac_status" >&5
15537 $as_echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15540 ( exit $ac_status )
15541 gl_cv_func_getopt_posix=no
15543 rm -rf conftest.dSYM
15544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15550 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15551 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15552 case "$gl_cv_func_getopt_posix" in
15553 *no) gl_replace_getopt=yes ;;
15557 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15558 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15559 $as_echo_n "checking for working GNU getopt function... " >&6; }
15560 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15561 $as_echo_n "(cached) " >&6
15563 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
15564 # optstring is necessary for programs like m4 that have POSIX-mandated
15565 # semantics for supporting options interspersed with files.
15566 # Also, since getopt_long is a GNU extension, we require optind=0.
15567 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
15568 # so take care to revert to the correct (non-)export state.
15569 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
15570 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
15571 xx) gl_had_POSIXLY_CORRECT=exported ;;
15572 x) gl_had_POSIXLY_CORRECT=yes ;;
15573 *) gl_had_POSIXLY_CORRECT= ;;
15576 export POSIXLY_CORRECT
15577 if test "$cross_compiling" = yes; then
15578 case $host_os:$ac_cv_have_decl_optreset in
15579 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
15580 *:yes) gl_cv_func_getopt_gnu=no;;
15581 *) gl_cv_func_getopt_gnu=yes;;
15585 cat >conftest.$ac_ext <<_ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <getopt.h>
15592 #include <stddef.h>
15593 #include <string.h>
15599 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15600 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15601 OSF/1 5.1, Solaris 10. */
15604 myargv[0] = "conftest";
15608 if (getopt (2, myargv, "+a") != '?')
15611 /* This code succeeds on glibc 2.8, mingw,
15612 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15613 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
15615 char *argv[] = { "program", "-p", "foo", "bar", NULL };
15618 if (getopt (4, argv, "p::") != 'p')
15620 if (optarg != NULL)
15622 if (getopt (4, argv, "p::") != -1)
15627 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
15629 char *argv[] = { "program", "foo", "-p", NULL };
15631 if (getopt (3, argv, "-p") != 1)
15633 if (getopt (3, argv, "-p") != 'p')
15636 /* This code fails on glibc 2.11. */
15638 char *argv[] = { "program", "-b", "-a", NULL };
15639 optind = opterr = 0;
15640 if (getopt (3, argv, "+:a:b") != 'b')
15642 if (getopt (3, argv, "+:a:b") != ':')
15651 rm -f conftest$ac_exeext
15652 if { (ac_try="$ac_link"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15658 $as_echo "$ac_try_echo") >&5
15659 (eval "$ac_link") 2>&5
15661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15668 $as_echo "$ac_try_echo") >&5
15669 (eval "$ac_try") 2>&5
15671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 gl_cv_func_getopt_gnu=yes
15675 $as_echo "$as_me: program exited with status $ac_status" >&5
15676 $as_echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ( exit $ac_status )
15680 gl_cv_func_getopt_gnu=no
15682 rm -rf conftest.dSYM
15683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15687 case $gl_had_POSIXLY_CORRECT in
15689 yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
15690 *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
15694 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15695 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15696 if test "$gl_cv_func_getopt_gnu" = "no"; then
15697 gl_replace_getopt=yes
15706 if test -n "$gl_replace_getopt"; then
15712 cat >>confdefs.h <<\_ACEOF
15713 #define __GETOPT_PREFIX rpl_
15718 GNULIB_UNISTD_H_GETOPT=1
15727 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15737 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15759 GNULIB_GETTIMEOFDAY=0;
15760 HAVE_GETTIMEOFDAY=1;
15761 HAVE_STRUCT_TIMEVAL=1;
15763 REPLACE_GETTIMEOFDAY=0;
15785 if test $gl_cv_have_include_next = yes; then
15786 gl_cv_next_sys_time_h='<'sys/time.h'>'
15788 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
15789 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
15790 if test "${gl_cv_next_sys_time_h+set}" = set; then
15791 $as_echo_n "(cached) " >&6
15794 if test $ac_cv_header_sys_time_h = yes; then
15795 cat >conftest.$ac_ext <<_ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #include <sys/time.h>
15805 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15806 *) gl_absname_cpp="$ac_cpp" ;;
15808 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15809 sed -n '\#/sys/time.h#{
15810 s#.*"\(.*/sys/time.h\)".*#\1#
15816 gl_cv_next_sys_time_h='<'sys/time.h'>'
15820 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
15821 $as_echo "$gl_cv_next_sys_time_h" >&6; }
15823 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
15825 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15826 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15827 gl_next_as_first_directive='<'sys/time.h'>'
15829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15830 gl_next_as_first_directive=$gl_cv_next_sys_time_h
15832 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
15837 if test $ac_cv_header_sys_time_h != yes; then
15841 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
15842 $as_echo_n "checking for struct timeval... " >&6; }
15843 if test "${gl_cv_sys_struct_timeval+set}" = set; then
15844 $as_echo_n "(cached) " >&6
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #if HAVE_SYS_TIME_H
15853 #include <sys/time.h>
15860 static struct timeval x; x.tv_sec = x.tv_usec;
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872 $as_echo "$ac_try_echo") >&5
15873 (eval "$ac_compile") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest.$ac_objext; then
15883 gl_cv_sys_struct_timeval=yes
15885 $as_echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 gl_cv_sys_struct_timeval=no
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
15894 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
15895 if test $gl_cv_sys_struct_timeval != yes; then
15896 HAVE_STRUCT_TIMEVAL=0
15901 for gl_func in gettimeofday; do
15902 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15903 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
15904 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15905 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
15906 $as_echo_n "(cached) " >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15915 #if HAVE_SYS_TIME_H
15916 # include <sys/time.h>
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest.$ac_objext; then
15947 eval "$as_gl_Symbol=yes"
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 eval "$as_gl_Symbol=no"
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
15958 $as_echo "$as_val"'`
15959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15960 $as_echo "$ac_res" >&6; }
15961 as_val=`eval 'as_val=${'$as_gl_Symbol'}
15962 $as_echo "$as_val"'`
15963 if test "x$as_val" = x""yes; then
15964 cat >>confdefs.h <<_ACEOF
15965 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15968 eval ac_cv_have_decl_$gl_func=yes
15977 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
15978 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15979 if test "${ac_cv_header_stdbool_h+set}" = set; then
15980 $as_echo_n "(cached) " >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15989 #include <stdbool.h>
15991 "error: bool is not defined"
15994 "error: false is not defined"
15997 "error: false is not 0"
16000 "error: true is not defined"
16003 "error: true is not 1"
16005 #ifndef __bool_true_false_are_defined
16006 "error: __bool_true_false_are_defined is not defined"
16009 struct s { _Bool s: 1; _Bool t; } s;
16011 char a[true == 1 ? 1 : -1];
16012 char b[false == 0 ? 1 : -1];
16013 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16014 char d[(bool) 0.5 == true ? 1 : -1];
16015 /* See body of main program for 'e'. */
16016 char f[(_Bool) 0.0 == false ? 1 : -1];
16018 char h[sizeof (_Bool)];
16019 char i[sizeof s.t];
16020 enum { j = false, k = true, l = false * true, m = true * 256 };
16021 /* The following fails for
16022 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16024 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16025 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16026 /* Catch a bug in an HP-UX C compiler. See
16027 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16028 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16040 /* Refer to every declared value, to avoid compiler optimizations. */
16041 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16042 + !m + !n + !o + !p + !q + !pq);
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest.$ac_objext; then
16066 ac_cv_header_stdbool_h=yes
16068 $as_echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_cv_header_stdbool_h=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16077 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16078 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16079 $as_echo_n "checking for _Bool... " >&6; }
16080 if test "${ac_cv_type__Bool+set}" = set; then
16081 $as_echo_n "(cached) " >&6
16083 ac_cv_type__Bool=no
16084 cat >conftest.$ac_ext <<_ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 $ac_includes_default
16094 if (sizeof (_Bool))
16100 rm -f conftest.$ac_objext
16101 if { (ac_try="$ac_compile"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16107 $as_echo "$ac_try_echo") >&5
16108 (eval "$ac_compile") 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } && {
16115 test -z "$ac_c_werror_flag" ||
16116 test ! -s conftest.err
16117 } && test -s conftest.$ac_objext; then
16118 cat >conftest.$ac_ext <<_ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 $ac_includes_default
16128 if (sizeof ((_Bool)))
16134 rm -f conftest.$ac_objext
16135 if { (ac_try="$ac_compile"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16141 $as_echo "$ac_try_echo") >&5
16142 (eval "$ac_compile") 2>conftest.er1
16144 grep -v '^ *+' conftest.er1 >conftest.err
16146 cat conftest.err >&5
16147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } && {
16149 test -z "$ac_c_werror_flag" ||
16150 test ! -s conftest.err
16151 } && test -s conftest.$ac_objext; then
16154 $as_echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_cv_type__Bool=yes
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 $as_echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16171 $as_echo "$ac_cv_type__Bool" >&6; }
16172 if test "x$ac_cv_type__Bool" = x""yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define HAVE__BOOL 1
16181 if test $ac_cv_header_stdbool_h = yes; then
16183 cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_STDBOOL_H 1
16191 # Define two additional variables used in the Makefile substitution.
16193 if test "$ac_cv_header_stdbool_h" = yes; then
16196 STDBOOL_H='stdbool.h'
16200 if test "$ac_cv_type__Bool" = yes; then
16208 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16209 $as_echo_n "checking for long long int... " >&6; }
16210 if test "${ac_cv_type_long_long_int+set}" = set; then
16211 $as_echo_n "(cached) " >&6
16213 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 /* For now, do not test the preprocessor; as of 2007 there are too many
16221 implementations with broken preprocessors. Perhaps this can
16222 be revisited in 2012. In the meantime, code should not expect
16223 #if to work with literals wider than 32 bits. */
16224 /* Test literals. */
16225 long long int ll = 9223372036854775807ll;
16226 long long int nll = -9223372036854775807LL;
16227 unsigned long long int ull = 18446744073709551615ULL;
16228 /* Test constant expressions. */
16229 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16231 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16237 /* Test availability of runtime routines for shift and division. */
16238 long long int llmax = 9223372036854775807ll;
16239 unsigned long long int ullmax = 18446744073709551615ull;
16240 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16241 | (llmax / ll) | (llmax % ll)
16242 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16243 | (ullmax / ull) | (ullmax % ull));
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257 (eval "$ac_link") 2>conftest.er1
16259 grep -v '^ *+' conftest.er1 >conftest.err
16261 cat conftest.err >&5
16262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } && {
16264 test -z "$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16266 } && test -s conftest$ac_exeext && {
16267 test "$cross_compiling" = yes ||
16268 $as_test_x conftest$ac_exeext
16270 if test "$cross_compiling" = yes; then
16271 ac_cv_type_long_long_int=yes
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 #include <limits.h>
16282 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16283 # define LLONG_MAX (HALF - 1 + HALF)
16288 long long int n = 1;
16292 long long int m = n << i;
16295 if (LLONG_MAX / 2 < m)
16303 rm -f conftest$ac_exeext
16304 if { (ac_try="$ac_link"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16310 $as_echo "$ac_try_echo") >&5
16311 (eval "$ac_link") 2>&5
16313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16320 $as_echo "$ac_try_echo") >&5
16321 (eval "$ac_try") 2>&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_cv_type_long_long_int=yes
16327 $as_echo "$as_me: program exited with status $ac_status" >&5
16328 $as_echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 ( exit $ac_status )
16332 ac_cv_type_long_long_int=no
16334 rm -rf conftest.dSYM
16335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16340 $as_echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_cv_type_long_long_int=no
16346 rm -rf conftest.dSYM
16347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348 conftest$ac_exeext conftest.$ac_ext
16350 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16351 $as_echo "$ac_cv_type_long_long_int" >&6; }
16352 if test $ac_cv_type_long_long_int = yes; then
16354 cat >>confdefs.h <<\_ACEOF
16355 #define HAVE_LONG_LONG_INT 1
16361 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16362 $as_echo_n "checking for unsigned long long int... " >&6; }
16363 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16364 $as_echo_n "(cached) " >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 /* For now, do not test the preprocessor; as of 2007 there are too many
16374 implementations with broken preprocessors. Perhaps this can
16375 be revisited in 2012. In the meantime, code should not expect
16376 #if to work with literals wider than 32 bits. */
16377 /* Test literals. */
16378 long long int ll = 9223372036854775807ll;
16379 long long int nll = -9223372036854775807LL;
16380 unsigned long long int ull = 18446744073709551615ULL;
16381 /* Test constant expressions. */
16382 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16384 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16390 /* Test availability of runtime routines for shift and division. */
16391 long long int llmax = 9223372036854775807ll;
16392 unsigned long long int ullmax = 18446744073709551615ull;
16393 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16394 | (llmax / ll) | (llmax % ll)
16395 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16396 | (ullmax / ull) | (ullmax % ull));
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (ac_try="$ac_link"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16409 $as_echo "$ac_try_echo") >&5
16410 (eval "$ac_link") 2>conftest.er1
16412 grep -v '^ *+' conftest.er1 >conftest.err
16414 cat conftest.err >&5
16415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } && {
16417 test -z "$ac_c_werror_flag" ||
16418 test ! -s conftest.err
16419 } && test -s conftest$ac_exeext && {
16420 test "$cross_compiling" = yes ||
16421 $as_test_x conftest$ac_exeext
16423 ac_cv_type_unsigned_long_long_int=yes
16425 $as_echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_cv_type_unsigned_long_long_int=no
16431 rm -rf conftest.dSYM
16432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433 conftest$ac_exeext conftest.$ac_ext
16435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16436 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16437 if test $ac_cv_type_unsigned_long_long_int = yes; then
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16450 gl_cv_c_multiarch=no
16451 cat >conftest.$ac_ext <<_ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 #ifndef __APPLE_CC__
16458 not a universal capable compiler
16463 rm -f conftest.$ac_objext
16464 if { (ac_try="$ac_compile"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest.$ac_objext; then
16484 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16485 if test -n "$prev"; then
16487 i?86 | x86_64 | ppc | ppc64)
16488 if test -z "$arch" || test "$arch" = "$word"; then
16491 gl_cv_c_multiarch=yes
16497 if test "x$word" = "x-arch"; then
16504 $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 if test $gl_cv_c_multiarch = yes; then
16513 cat >>confdefs.h <<\_ACEOF
16514 #define AA_APPLE_UNIVERSAL_BUILD 1
16517 APPLE_UNIVERSAL_BUILD=1
16519 APPLE_UNIVERSAL_BUILD=0
16527 if test $ac_cv_type_long_long_int = yes; then
16528 HAVE_LONG_LONG_INT=1
16530 HAVE_LONG_LONG_INT=0
16534 if test $ac_cv_type_unsigned_long_long_int = yes; then
16535 HAVE_UNSIGNED_LONG_LONG_INT=1
16537 HAVE_UNSIGNED_LONG_LONG_INT=0
16541 if test $ac_cv_header_inttypes_h = yes; then
16548 if test $ac_cv_header_sys_types_h = yes; then
16566 if test $gl_cv_have_include_next = yes; then
16567 gl_cv_next_stdint_h='<'stdint.h'>'
16569 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16570 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16571 if test "${gl_cv_next_stdint_h+set}" = set; then
16572 $as_echo_n "(cached) " >&6
16575 if test $ac_cv_header_stdint_h = yes; then
16576 cat >conftest.$ac_ext <<_ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16582 #include <stdint.h>
16586 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16587 *) gl_absname_cpp="$ac_cpp" ;;
16589 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16590 sed -n '\#/stdint.h#{
16591 s#.*"\(.*/stdint.h\)".*#\1#
16597 gl_cv_next_stdint_h='<'stdint.h'>'
16601 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16602 $as_echo "$gl_cv_next_stdint_h" >&6; }
16604 NEXT_STDINT_H=$gl_cv_next_stdint_h
16606 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16608 gl_next_as_first_directive='<'stdint.h'>'
16610 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16611 gl_next_as_first_directive=$gl_cv_next_stdint_h
16613 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16617 if test $ac_cv_header_stdint_h = yes; then
16624 if test $ac_cv_header_stdint_h = yes; then
16625 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16626 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16627 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16628 $as_echo_n "(cached) " >&6
16630 gl_cv_header_working_stdint_h=no
16631 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16639 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16640 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16641 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16642 #include <stdint.h>
16643 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16644 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16645 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16649 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16650 included before <wchar.h>. */
16651 #include <stddef.h>
16652 #include <signal.h>
16654 # include <stdio.h>
16656 # include <wchar.h>
16661 int8_t a1 = INT8_MAX;
16662 int8_t a1min = INT8_MIN;
16665 int16_t a2 = INT16_MAX;
16666 int16_t a2min = INT16_MIN;
16669 int32_t a3 = INT32_MAX;
16670 int32_t a3min = INT32_MIN;
16673 int64_t a4 = INT64_MAX;
16674 int64_t a4min = INT64_MIN;
16677 uint8_t b1 = UINT8_MAX;
16679 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16682 uint16_t b2 = UINT16_MAX;
16685 uint32_t b3 = UINT32_MAX;
16688 uint64_t b4 = UINT64_MAX;
16690 int_least8_t c1 = INT8_C (0x7f);
16691 int_least8_t c1max = INT_LEAST8_MAX;
16692 int_least8_t c1min = INT_LEAST8_MIN;
16693 int_least16_t c2 = INT16_C (0x7fff);
16694 int_least16_t c2max = INT_LEAST16_MAX;
16695 int_least16_t c2min = INT_LEAST16_MIN;
16696 int_least32_t c3 = INT32_C (0x7fffffff);
16697 int_least32_t c3max = INT_LEAST32_MAX;
16698 int_least32_t c3min = INT_LEAST32_MIN;
16699 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16700 int_least64_t c4max = INT_LEAST64_MAX;
16701 int_least64_t c4min = INT_LEAST64_MIN;
16702 uint_least8_t d1 = UINT8_C (0xff);
16703 uint_least8_t d1max = UINT_LEAST8_MAX;
16704 uint_least16_t d2 = UINT16_C (0xffff);
16705 uint_least16_t d2max = UINT_LEAST16_MAX;
16706 uint_least32_t d3 = UINT32_C (0xffffffff);
16707 uint_least32_t d3max = UINT_LEAST32_MAX;
16708 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16709 uint_least64_t d4max = UINT_LEAST64_MAX;
16710 int_fast8_t e1 = INT_FAST8_MAX;
16711 int_fast8_t e1min = INT_FAST8_MIN;
16712 int_fast16_t e2 = INT_FAST16_MAX;
16713 int_fast16_t e2min = INT_FAST16_MIN;
16714 int_fast32_t e3 = INT_FAST32_MAX;
16715 int_fast32_t e3min = INT_FAST32_MIN;
16716 int_fast64_t e4 = INT_FAST64_MAX;
16717 int_fast64_t e4min = INT_FAST64_MIN;
16718 uint_fast8_t f1 = UINT_FAST8_MAX;
16719 uint_fast16_t f2 = UINT_FAST16_MAX;
16720 uint_fast32_t f3 = UINT_FAST32_MAX;
16721 uint_fast64_t f4 = UINT_FAST64_MAX;
16723 intptr_t g = INTPTR_MAX;
16724 intptr_t gmin = INTPTR_MIN;
16727 uintptr_t h = UINTPTR_MAX;
16729 intmax_t i = INTMAX_MAX;
16730 uintmax_t j = UINTMAX_MAX;
16732 #include <limits.h> /* for CHAR_BIT */
16733 #define TYPE_MINIMUM(t) \
16734 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16735 #define TYPE_MAXIMUM(t) \
16736 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16739 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16740 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16742 /* Detect bug in FreeBSD 6.0 / ia64. */
16743 int check_SIG_ATOMIC:
16744 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16745 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16747 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16749 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16750 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16752 /* Detect bug in mingw. */
16754 WINT_MIN == TYPE_MINIMUM (wint_t)
16755 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16758 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16760 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16761 int check_UINT16_C:
16762 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16764 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16766 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16769 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16772 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16775 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16777 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16778 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16779 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16780 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16781 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16782 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16783 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16784 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16785 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16786 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16787 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16805 $as_echo "$ac_try_echo") >&5
16806 (eval "$ac_compile") 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } && {
16813 test -z "$ac_c_werror_flag" ||
16814 test ! -s conftest.err
16815 } && test -s conftest.$ac_objext; then
16816 if test "$cross_compiling" = yes; then
16817 gl_cv_header_working_stdint_h=yes
16820 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16828 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16829 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16830 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16831 #include <stdint.h>
16834 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16835 included before <wchar.h>. */
16836 #include <stddef.h>
16837 #include <signal.h>
16839 # include <stdio.h>
16841 # include <wchar.h>
16846 #include <string.h>
16847 #define MVAL(macro) MVAL1(macro)
16848 #define MVAL1(expression) #expression
16849 static const char *macro_values[] =
16883 for (mv = macro_values; *mv != NULL; mv++)
16885 const char *value = *mv;
16886 /* Test whether it looks like a cast expression. */
16887 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16888 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16889 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16890 || strncmp (value, "((int)"/*)*/, 6) == 0
16891 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16892 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16901 rm -f conftest$ac_exeext
16902 if { (ac_try="$ac_link"
16903 case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16908 $as_echo "$ac_try_echo") >&5
16909 (eval "$ac_link") 2>&5
16911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16918 $as_echo "$ac_try_echo") >&5
16919 (eval "$ac_try") 2>&5
16921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 gl_cv_header_working_stdint_h=yes
16925 $as_echo "$as_me: program exited with status $ac_status" >&5
16926 $as_echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16930 rm -rf conftest.dSYM
16931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16937 $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16947 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16949 if test "$gl_cv_header_working_stdint_h" = yes; then
16954 for ac_header in sys/inttypes.h sys/bitypes.h
16956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 $as_echo_n "checking for $ac_header... " >&6; }
16960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16961 $as_echo_n "(cached) " >&6
16963 ac_res=`eval 'as_val=${'$as_ac_Header'}
16964 $as_echo "$as_val"'`
16965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16966 $as_echo "$ac_res" >&6; }
16968 # Is the header compilable?
16969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970 $as_echo_n "checking $ac_header usability... " >&6; }
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 $ac_includes_default
16978 #include <$ac_header>
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16987 $as_echo "$ac_try_echo") >&5
16988 (eval "$ac_compile") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest.$ac_objext; then
16998 ac_header_compiler=yes
17000 $as_echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 ac_header_compiler=no
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17008 $as_echo "$ac_header_compiler" >&6; }
17010 # Is the header present?
17011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17012 $as_echo_n "checking $ac_header presence... " >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 #include <$ac_header>
17021 if { (ac_try="$ac_cpp conftest.$ac_ext"
17022 case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17027 $as_echo "$ac_try_echo") >&5
17028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17030 grep -v '^ *+' conftest.er1 >conftest.err
17032 cat conftest.err >&5
17033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } >/dev/null && {
17035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17036 test ! -s conftest.err
17038 ac_header_preproc=yes
17040 $as_echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 ac_header_preproc=no
17046 rm -f conftest.err conftest.$ac_ext
17047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17048 $as_echo "$ac_header_preproc" >&6; }
17050 # So? What about this header?
17051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17057 ac_header_preproc=yes
17060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17063 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17067 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17073 ## ------------------------------ ##
17074 ## Report this to bug-tar@gnu.org ##
17075 ## ------------------------------ ##
17077 ) | sed "s/^/$as_me: WARNING: /" >&2
17080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17081 $as_echo_n "checking for $ac_header... " >&6; }
17082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17083 $as_echo_n "(cached) " >&6
17085 eval "$as_ac_Header=\$ac_header_preproc"
17087 ac_res=`eval 'as_val=${'$as_ac_Header'}
17088 $as_echo "$as_val"'`
17089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17090 $as_echo "$ac_res" >&6; }
17093 as_val=`eval 'as_val=${'$as_ac_Header'}
17094 $as_echo "$as_val"'`
17095 if test "x$as_val" = x""yes; then
17096 cat >>confdefs.h <<_ACEOF
17097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17104 if test $ac_cv_header_sys_inttypes_h = yes; then
17105 HAVE_SYS_INTTYPES_H=1
17107 HAVE_SYS_INTTYPES_H=0
17110 if test $ac_cv_header_sys_bitypes_h = yes; then
17111 HAVE_SYS_BITYPES_H=1
17113 HAVE_SYS_BITYPES_H=0
17126 if test $APPLE_UNIVERSAL_BUILD = 0; then
17131 for gltype in ptrdiff_t size_t ; do
17132 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17133 $as_echo_n "checking for bit size of $gltype... " >&6; }
17134 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17135 $as_echo_n "(cached) " >&6
17137 if test "$cross_compiling" = yes; then
17138 # Depending upon the size, compute the lo and hi bounds.
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17146 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17147 included before <wchar.h>. */
17148 #include <stddef.h>
17149 #include <signal.h>
17151 # include <stdio.h>
17153 # include <wchar.h>
17156 #include <limits.h>
17160 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17167 rm -f conftest.$ac_objext
17168 if { (ac_try="$ac_compile"
17169 case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17174 $as_echo "$ac_try_echo") >&5
17175 (eval "$ac_compile") 2>conftest.er1
17177 grep -v '^ *+' conftest.er1 >conftest.err
17179 cat conftest.err >&5
17180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest.$ac_objext; then
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17194 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17195 included before <wchar.h>. */
17196 #include <stddef.h>
17197 #include <signal.h>
17199 # include <stdio.h>
17201 # include <wchar.h>
17204 #include <limits.h>
17208 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17215 rm -f conftest.$ac_objext
17216 if { (ac_try="$ac_compile"
17217 case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17222 $as_echo "$ac_try_echo") >&5
17223 (eval "$ac_compile") 2>conftest.er1
17225 grep -v '^ *+' conftest.er1 >conftest.err
17227 cat conftest.err >&5
17228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } && {
17230 test -z "$ac_c_werror_flag" ||
17231 test ! -s conftest.err
17232 } && test -s conftest.$ac_objext; then
17233 ac_hi=$ac_mid; break
17235 $as_echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17238 ac_lo=`expr $ac_mid + 1`
17239 if test $ac_lo -le $ac_mid; then
17243 ac_mid=`expr 2 '*' $ac_mid + 1`
17246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17249 $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17259 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17260 included before <wchar.h>. */
17261 #include <stddef.h>
17262 #include <signal.h>
17264 # include <stdio.h>
17266 # include <wchar.h>
17269 #include <limits.h>
17273 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17280 rm -f conftest.$ac_objext
17281 if { (ac_try="$ac_compile"
17282 case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17287 $as_echo "$ac_try_echo") >&5
17288 (eval "$ac_compile") 2>conftest.er1
17290 grep -v '^ *+' conftest.er1 >conftest.err
17292 cat conftest.err >&5
17293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } && {
17295 test -z "$ac_c_werror_flag" ||
17296 test ! -s conftest.err
17297 } && test -s conftest.$ac_objext; then
17300 cat >conftest.$ac_ext <<_ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17307 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17308 included before <wchar.h>. */
17309 #include <stddef.h>
17310 #include <signal.h>
17312 # include <stdio.h>
17314 # include <wchar.h>
17317 #include <limits.h>
17321 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17328 rm -f conftest.$ac_objext
17329 if { (ac_try="$ac_compile"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17335 $as_echo "$ac_try_echo") >&5
17336 (eval "$ac_compile") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && {
17343 test -z "$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 } && test -s conftest.$ac_objext; then
17346 ac_lo=$ac_mid; break
17348 $as_echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_hi=`expr '(' $ac_mid ')' - 1`
17352 if test $ac_mid -le $ac_hi; then
17356 ac_mid=`expr 2 '*' $ac_mid`
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 $as_echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17372 # Binary search between lo and hi bounds.
17373 while test "x$ac_lo" != "x$ac_hi"; do
17374 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17382 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17383 included before <wchar.h>. */
17384 #include <stddef.h>
17385 #include <signal.h>
17387 # include <stdio.h>
17389 # include <wchar.h>
17392 #include <limits.h>
17396 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17403 rm -f conftest.$ac_objext
17404 if { (ac_try="$ac_compile"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17410 $as_echo "$ac_try_echo") >&5
17411 (eval "$ac_compile") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest.$ac_objext; then
17423 $as_echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_lo=`expr '(' $ac_mid ')' + 1`
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17432 ?*) result=$ac_lo;;
17433 '') result=unknown ;;
17436 cat >conftest.$ac_ext <<_ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17443 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17444 included before <wchar.h>. */
17445 #include <stddef.h>
17446 #include <signal.h>
17448 # include <stdio.h>
17450 # include <wchar.h>
17453 #include <limits.h>
17454 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17455 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17457 #include <stdlib.h>
17462 FILE *f = fopen ("conftest.val", "w");
17465 if ((sizeof ($gltype) * CHAR_BIT) < 0)
17467 long int i = longval ();
17468 if (i != (sizeof ($gltype) * CHAR_BIT))
17470 fprintf (f, "%ld", i);
17474 unsigned long int i = ulongval ();
17475 if (i != (sizeof ($gltype) * CHAR_BIT))
17477 fprintf (f, "%lu", i);
17479 /* Do not output a trailing newline, as this causes \r\n confusion
17480 on some platforms. */
17481 return ferror (f) || fclose (f) != 0;
17487 rm -f conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17494 $as_echo "$ac_try_echo") >&5
17495 (eval "$ac_link") 2>&5
17497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17504 $as_echo "$ac_try_echo") >&5
17505 (eval "$ac_try") 2>&5
17507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 result=`cat conftest.val`
17511 $as_echo "$as_me: program exited with status $ac_status" >&5
17512 $as_echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ( exit $ac_status )
17518 rm -rf conftest.dSYM
17519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17522 eval gl_cv_bitsizeof_${gltype}=\$result
17525 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17526 $as_echo "$as_val"'`
17527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17528 $as_echo "$ac_res" >&6; }
17529 eval result=\$gl_cv_bitsizeof_${gltype}
17530 if test $result = unknown; then
17533 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17534 cat >>confdefs.h <<_ACEOF
17535 #define BITSIZEOF_${GLTYPE} $result
17538 eval BITSIZEOF_${GLTYPE}=\$result
17548 for gltype in sig_atomic_t wchar_t wint_t ; do
17549 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17550 $as_echo_n "checking for bit size of $gltype... " >&6; }
17551 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17552 $as_echo_n "(cached) " >&6
17554 if test "$cross_compiling" = yes; then
17555 # Depending upon the size, compute the lo and hi bounds.
17556 cat >conftest.$ac_ext <<_ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17563 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17564 included before <wchar.h>. */
17565 #include <stddef.h>
17566 #include <signal.h>
17568 # include <stdio.h>
17570 # include <wchar.h>
17573 #include <limits.h>
17577 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17591 $as_echo "$ac_try_echo") >&5
17592 (eval "$ac_compile") 2>conftest.er1
17594 grep -v '^ *+' conftest.er1 >conftest.err
17596 cat conftest.err >&5
17597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } && {
17599 test -z "$ac_c_werror_flag" ||
17600 test ! -s conftest.err
17601 } && test -s conftest.$ac_objext; then
17604 cat >conftest.$ac_ext <<_ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17611 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17612 included before <wchar.h>. */
17613 #include <stddef.h>
17614 #include <signal.h>
17616 # include <stdio.h>
17618 # include <wchar.h>
17621 #include <limits.h>
17625 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640 (eval "$ac_compile") 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest.$ac_objext; then
17650 ac_hi=$ac_mid; break
17652 $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17655 ac_lo=`expr $ac_mid + 1`
17656 if test $ac_lo -le $ac_mid; then
17660 ac_mid=`expr 2 '*' $ac_mid + 1`
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17666 $as_echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17676 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17677 included before <wchar.h>. */
17678 #include <stddef.h>
17679 #include <signal.h>
17681 # include <stdio.h>
17683 # include <wchar.h>
17686 #include <limits.h>
17690 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17697 rm -f conftest.$ac_objext
17698 if { (ac_try="$ac_compile"
17699 case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17704 $as_echo "$ac_try_echo") >&5
17705 (eval "$ac_compile") 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } && {
17712 test -z "$ac_c_werror_flag" ||
17713 test ! -s conftest.err
17714 } && test -s conftest.$ac_objext; then
17717 cat >conftest.$ac_ext <<_ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17724 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17725 included before <wchar.h>. */
17726 #include <stddef.h>
17727 #include <signal.h>
17729 # include <stdio.h>
17731 # include <wchar.h>
17734 #include <limits.h>
17738 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17752 $as_echo "$ac_try_echo") >&5
17753 (eval "$ac_compile") 2>conftest.er1
17755 grep -v '^ *+' conftest.er1 >conftest.err
17757 cat conftest.err >&5
17758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } && {
17760 test -z "$ac_c_werror_flag" ||
17761 test ! -s conftest.err
17762 } && test -s conftest.$ac_objext; then
17763 ac_lo=$ac_mid; break
17765 $as_echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 ac_hi=`expr '(' $ac_mid ')' - 1`
17769 if test $ac_mid -le $ac_hi; then
17773 ac_mid=`expr 2 '*' $ac_mid`
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779 $as_echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789 # Binary search between lo and hi bounds.
17790 while test "x$ac_lo" != "x$ac_hi"; do
17791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17792 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17800 included before <wchar.h>. */
17801 #include <stddef.h>
17802 #include <signal.h>
17804 # include <stdio.h>
17806 # include <wchar.h>
17809 #include <limits.h>
17813 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17820 rm -f conftest.$ac_objext
17821 if { (ac_try="$ac_compile"
17822 case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17827 $as_echo "$ac_try_echo") >&5
17828 (eval "$ac_compile") 2>conftest.er1
17830 grep -v '^ *+' conftest.er1 >conftest.err
17832 cat conftest.err >&5
17833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } && {
17835 test -z "$ac_c_werror_flag" ||
17836 test ! -s conftest.err
17837 } && test -s conftest.$ac_objext; then
17840 $as_echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_lo=`expr '(' $ac_mid ')' + 1`
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 ?*) result=$ac_lo;;
17850 '') result=unknown ;;
17853 cat >conftest.$ac_ext <<_ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17860 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17861 included before <wchar.h>. */
17862 #include <stddef.h>
17863 #include <signal.h>
17865 # include <stdio.h>
17867 # include <wchar.h>
17870 #include <limits.h>
17871 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17872 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17874 #include <stdlib.h>
17879 FILE *f = fopen ("conftest.val", "w");
17882 if ((sizeof ($gltype) * CHAR_BIT) < 0)
17884 long int i = longval ();
17885 if (i != (sizeof ($gltype) * CHAR_BIT))
17887 fprintf (f, "%ld", i);
17891 unsigned long int i = ulongval ();
17892 if (i != (sizeof ($gltype) * CHAR_BIT))
17894 fprintf (f, "%lu", i);
17896 /* Do not output a trailing newline, as this causes \r\n confusion
17897 on some platforms. */
17898 return ferror (f) || fclose (f) != 0;
17904 rm -f conftest$ac_exeext
17905 if { (ac_try="$ac_link"
17906 case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17911 $as_echo "$ac_try_echo") >&5
17912 (eval "$ac_link") 2>&5
17914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921 $as_echo "$ac_try_echo") >&5
17922 (eval "$ac_try") 2>&5
17924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 result=`cat conftest.val`
17928 $as_echo "$as_me: program exited with status $ac_status" >&5
17929 $as_echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ( exit $ac_status )
17935 rm -rf conftest.dSYM
17936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17939 eval gl_cv_bitsizeof_${gltype}=\$result
17942 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17943 $as_echo "$as_val"'`
17944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17945 $as_echo "$ac_res" >&6; }
17946 eval result=\$gl_cv_bitsizeof_${gltype}
17947 if test $result = unknown; then
17950 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17951 cat >>confdefs.h <<_ACEOF
17952 #define BITSIZEOF_${GLTYPE} $result
17955 eval BITSIZEOF_${GLTYPE}=\$result
17964 for gltype in sig_atomic_t wchar_t wint_t ; do
17965 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17966 $as_echo_n "checking whether $gltype is signed... " >&6; }
17967 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17968 $as_echo_n "(cached) " >&6
17970 cat >conftest.$ac_ext <<_ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17977 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17978 included before <wchar.h>. */
17979 #include <stddef.h>
17980 #include <signal.h>
17982 # include <stdio.h>
17984 # include <wchar.h>
17987 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest.$ac_objext; then
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 eval gl_cv_type_${gltype}_signed=\$result
18026 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
18027 $as_echo "$as_val"'`
18028 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18029 $as_echo "$ac_res" >&6; }
18030 eval result=\$gl_cv_type_${gltype}_signed
18031 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18032 if test "$result" = yes; then
18033 cat >>confdefs.h <<_ACEOF
18034 #define HAVE_SIGNED_${GLTYPE} 1
18037 eval HAVE_SIGNED_${GLTYPE}=1
18039 eval HAVE_SIGNED_${GLTYPE}=0
18044 gl_cv_type_ptrdiff_t_signed=yes
18045 gl_cv_type_size_t_signed=no
18046 if test $APPLE_UNIVERSAL_BUILD = 0; then
18051 for gltype in ptrdiff_t size_t ; do
18052 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18053 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18054 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18055 $as_echo_n "(cached) " >&6
18057 eval gl_cv_type_${gltype}_suffix=no
18058 eval result=\$gl_cv_type_${gltype}_signed
18059 if test "$result" = yes; then
18064 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18066 '') gltype1='int';;
18067 l) gltype1='long int';;
18068 ll) gltype1='long long int';;
18069 i64) gltype1='__int64';;
18070 u) gltype1='unsigned int';;
18071 ul) gltype1='unsigned long int';;
18072 ull) gltype1='unsigned long long int';;
18073 ui64)gltype1='unsigned __int64';;
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18082 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18083 included before <wchar.h>. */
18084 #include <stddef.h>
18085 #include <signal.h>
18087 # include <stdio.h>
18089 # include <wchar.h>
18092 extern $gltype foo;
18093 extern $gltype1 foo;
18102 rm -f conftest.$ac_objext
18103 if { (ac_try="$ac_compile"
18104 case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18109 $as_echo "$ac_try_echo") >&5
18110 (eval "$ac_compile") 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } && {
18117 test -z "$ac_c_werror_flag" ||
18118 test ! -s conftest.err
18119 } && test -s conftest.$ac_objext; then
18120 eval gl_cv_type_${gltype}_suffix=\$glsuf
18122 $as_echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 eval result=\$gl_cv_type_${gltype}_suffix
18130 test "$result" != no && break
18133 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18134 $as_echo "$as_val"'`
18135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18136 $as_echo "$ac_res" >&6; }
18137 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18138 eval result=\$gl_cv_type_${gltype}_suffix
18139 test "$result" = no && result=
18140 eval ${GLTYPE}_SUFFIX=\$result
18141 cat >>confdefs.h <<_ACEOF
18142 #define ${GLTYPE}_SUFFIX $result
18154 for gltype in sig_atomic_t wchar_t wint_t ; do
18155 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18156 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18157 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18158 $as_echo_n "(cached) " >&6
18160 eval gl_cv_type_${gltype}_suffix=no
18161 eval result=\$gl_cv_type_${gltype}_signed
18162 if test "$result" = yes; then
18167 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18169 '') gltype1='int';;
18170 l) gltype1='long int';;
18171 ll) gltype1='long long int';;
18172 i64) gltype1='__int64';;
18173 u) gltype1='unsigned int';;
18174 ul) gltype1='unsigned long int';;
18175 ull) gltype1='unsigned long long int';;
18176 ui64)gltype1='unsigned __int64';;
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18185 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18186 included before <wchar.h>. */
18187 #include <stddef.h>
18188 #include <signal.h>
18190 # include <stdio.h>
18192 # include <wchar.h>
18195 extern $gltype foo;
18196 extern $gltype1 foo;
18205 rm -f conftest.$ac_objext
18206 if { (ac_try="$ac_compile"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 eval gl_cv_type_${gltype}_suffix=\$glsuf
18225 $as_echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 eval result=\$gl_cv_type_${gltype}_suffix
18233 test "$result" != no && break
18236 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18237 $as_echo "$as_val"'`
18238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18239 $as_echo "$ac_res" >&6; }
18240 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18241 eval result=\$gl_cv_type_${gltype}_suffix
18242 test "$result" = no && result=
18243 eval ${GLTYPE}_SUFFIX=\$result
18244 cat >>confdefs.h <<_ACEOF
18245 #define ${GLTYPE}_SUFFIX $result
18258 for ac_header in inttypes.h
18260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18263 $as_echo_n "checking for $ac_header... " >&6; }
18264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265 $as_echo_n "(cached) " >&6
18267 ac_res=`eval 'as_val=${'$as_ac_Header'}
18268 $as_echo "$as_val"'`
18269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18270 $as_echo "$ac_res" >&6; }
18272 # Is the header compilable?
18273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18274 $as_echo_n "checking $ac_header usability... " >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <$ac_header>
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291 $as_echo "$ac_try_echo") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest.$ac_objext; then
18302 ac_header_compiler=yes
18304 $as_echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 ac_header_compiler=no
18310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18312 $as_echo "$ac_header_compiler" >&6; }
18314 # Is the header present?
18315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18316 $as_echo_n "checking $ac_header presence... " >&6; }
18317 cat >conftest.$ac_ext <<_ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 #include <$ac_header>
18325 if { (ac_try="$ac_cpp conftest.$ac_ext"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18331 $as_echo "$ac_try_echo") >&5
18332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18334 grep -v '^ *+' conftest.er1 >conftest.err
18336 cat conftest.err >&5
18337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } >/dev/null && {
18339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18342 ac_header_preproc=yes
18344 $as_echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_header_preproc=no
18350 rm -f conftest.err conftest.$ac_ext
18351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18352 $as_echo "$ac_header_preproc" >&6; }
18354 # So? What about this header?
18355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18361 ac_header_preproc=yes
18364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18367 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18371 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18377 ## ------------------------------ ##
18378 ## Report this to bug-tar@gnu.org ##
18379 ## ------------------------------ ##
18381 ) | sed "s/^/$as_me: WARNING: /" >&2
18384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18385 $as_echo_n "checking for $ac_header... " >&6; }
18386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18387 $as_echo_n "(cached) " >&6
18389 eval "$as_ac_Header=\$ac_header_preproc"
18391 ac_res=`eval 'as_val=${'$as_ac_Header'}
18392 $as_echo "$as_val"'`
18393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18394 $as_echo "$ac_res" >&6; }
18397 as_val=`eval 'as_val=${'$as_ac_Header'}
18398 $as_echo "$as_val"'`
18399 if test "x$as_val" = x""yes; then
18400 cat >>confdefs.h <<_ACEOF
18401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18408 if test $ac_cv_header_inttypes_h = yes; then
18409 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18410 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18411 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18412 $as_echo_n "(cached) " >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18422 #include <inttypes.h>
18435 rm -f conftest.$ac_objext
18436 if { (ac_try="$ac_compile"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18442 $as_echo "$ac_try_echo") >&5
18443 (eval "$ac_compile") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest.$ac_objext; then
18453 gt_cv_inttypes_pri_broken=no
18455 $as_echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 gt_cv_inttypes_pri_broken=yes
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18464 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18465 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18467 if test "$gt_cv_inttypes_pri_broken" = yes; then
18469 cat >>confdefs.h <<_ACEOF
18470 #define PRI_MACROS_BROKEN 1
18473 PRI_MACROS_BROKEN=1
18475 PRI_MACROS_BROKEN=0
18481 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
18482 $as_echo_n "checking whether imaxabs is declared... " >&6; }
18483 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
18484 $as_echo_n "(cached) " >&6
18486 cat >conftest.$ac_ext <<_ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 $ac_includes_default
18504 rm -f conftest.$ac_objext
18505 if { (ac_try="$ac_compile"
18506 case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18511 $as_echo "$ac_try_echo") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18514 grep -v '^ *+' conftest.er1 >conftest.err
18516 cat conftest.err >&5
18517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest.$ac_objext; then
18522 ac_cv_have_decl_imaxabs=yes
18524 $as_echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 ac_cv_have_decl_imaxabs=no
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18532 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
18533 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
18534 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then
18536 cat >>confdefs.h <<_ACEOF
18537 #define HAVE_DECL_IMAXABS 1
18542 cat >>confdefs.h <<_ACEOF
18543 #define HAVE_DECL_IMAXABS 0
18550 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
18551 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
18552 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
18553 $as_echo_n "(cached) " >&6
18555 cat >conftest.$ac_ext <<_ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h. */
18561 $ac_includes_default
18573 rm -f conftest.$ac_objext
18574 if { (ac_try="$ac_compile"
18575 case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18580 $as_echo "$ac_try_echo") >&5
18581 (eval "$ac_compile") 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } && {
18588 test -z "$ac_c_werror_flag" ||
18589 test ! -s conftest.err
18590 } && test -s conftest.$ac_objext; then
18591 ac_cv_have_decl_imaxdiv=yes
18593 $as_echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_cv_have_decl_imaxdiv=no
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
18602 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
18603 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then
18605 cat >>confdefs.h <<_ACEOF
18606 #define HAVE_DECL_IMAXDIV 1
18611 cat >>confdefs.h <<_ACEOF
18612 #define HAVE_DECL_IMAXDIV 0
18619 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
18620 $as_echo_n "checking whether strtoimax is declared... " >&6; }
18621 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
18622 $as_echo_n "(cached) " >&6
18624 cat >conftest.$ac_ext <<_ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 $ac_includes_default
18642 rm -f conftest.$ac_objext
18643 if { (ac_try="$ac_compile"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18649 $as_echo "$ac_try_echo") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_cv_have_decl_strtoimax=yes
18662 $as_echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_cv_have_decl_strtoimax=no
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18670 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
18671 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
18672 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then
18674 cat >>confdefs.h <<_ACEOF
18675 #define HAVE_DECL_STRTOIMAX 1
18680 cat >>confdefs.h <<_ACEOF
18681 #define HAVE_DECL_STRTOIMAX 0
18688 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
18689 $as_echo_n "checking whether strtoumax is declared... " >&6; }
18690 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
18691 $as_echo_n "(cached) " >&6
18693 cat >conftest.$ac_ext <<_ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18699 $ac_includes_default
18711 rm -f conftest.$ac_objext
18712 if { (ac_try="$ac_compile"
18713 case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18718 $as_echo "$ac_try_echo") >&5
18719 (eval "$ac_compile") 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } && {
18726 test -z "$ac_c_werror_flag" ||
18727 test ! -s conftest.err
18728 } && test -s conftest.$ac_objext; then
18729 ac_cv_have_decl_strtoumax=yes
18731 $as_echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_cv_have_decl_strtoumax=no
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18739 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
18740 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
18741 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then
18743 cat >>confdefs.h <<_ACEOF
18744 #define HAVE_DECL_STRTOUMAX 1
18749 cat >>confdefs.h <<_ACEOF
18750 #define HAVE_DECL_STRTOUMAX 0
18760 GNULIB_STRTOIMAX=0;
18761 GNULIB_STRTOUMAX=0;
18762 HAVE_DECL_IMAXABS=1;
18763 HAVE_DECL_IMAXDIV=1;
18764 HAVE_DECL_STRTOIMAX=1;
18765 HAVE_DECL_STRTOUMAX=1;
18768 GNULIB_NL_LANGINFO=0;
18769 HAVE_NL_LANGINFO=1;
18770 REPLACE_NL_LANGINFO=0;
18779 { $as_echo "$as_me:$LINENO: checking whether lstat correctly handles trailing slash" >&5
18780 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18781 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
18782 $as_echo_n "(cached) " >&6
18784 rm -f conftest.sym conftest.file
18785 echo >conftest.file
18786 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18787 if test "$cross_compiling" = yes; then
18788 # When cross-compiling, be pessimistic so we will end up using the
18789 # replacement version of lstat that checks for trailing slashes and
18790 # calls lstat a second time when necessary.
18791 ac_cv_func_lstat_dereferences_slashed_symlink=no
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 $ac_includes_default
18805 /* Linux will dereference the symlink and fail, as required by
18806 POSIX. That is better in the sense that it means we will not
18807 have to compile and use the lstat wrapper. */
18808 return lstat ("conftest.sym/", &sbuf) == 0;
18814 rm -f conftest$ac_exeext
18815 if { (ac_try="$ac_link"
18816 case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18821 $as_echo "$ac_try_echo") >&5
18822 (eval "$ac_link") 2>&5
18824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18831 $as_echo "$ac_try_echo") >&5
18832 (eval "$ac_try") 2>&5
18834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_func_lstat_dereferences_slashed_symlink=yes
18838 $as_echo "$as_me: program exited with status $ac_status" >&5
18839 $as_echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ( exit $ac_status )
18843 ac_cv_func_lstat_dereferences_slashed_symlink=no
18845 rm -rf conftest.dSYM
18846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18851 # If the 'ln -s' command failed, then we probably don't even
18852 # have an lstat function.
18853 ac_cv_func_lstat_dereferences_slashed_symlink=no
18855 rm -f conftest.sym conftest.file
18858 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18859 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18860 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18862 cat >>confdefs.h <<_ACEOF
18863 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18866 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
18875 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
18883 { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
18884 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
18885 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
18886 $as_echo_n "(cached) " >&6
18888 touch conftest.file
18889 # Assume that if we have lstat, we can also check symlinks.
18890 if test $ac_cv_func_lstat = yes; then
18891 ln -s conftest.file conftest.lnk
18893 if test "$cross_compiling" = yes; then
18894 gl_cv_func_unlink_honors_slashes="guessing no"
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <unistd.h>
18908 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
18910 if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
18917 rm -f conftest$ac_exeext
18918 if { (ac_try="$ac_link"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18924 $as_echo "$ac_try_echo") >&5
18925 (eval "$ac_link") 2>&5
18927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18929 { (case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18934 $as_echo "$ac_try_echo") >&5
18935 (eval "$ac_try") 2>&5
18937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 gl_cv_func_unlink_honors_slashes=yes
18941 $as_echo "$as_me: program exited with status $ac_status" >&5
18942 $as_echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18945 ( exit $ac_status )
18946 gl_cv_func_unlink_honors_slashes=no
18948 rm -rf conftest.dSYM
18949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18953 rm -f conftest.file conftest.lnk
18955 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
18956 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
18957 { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails is it should" >&5
18958 $as_echo_n "checking whether unlink of a parent directory fails is it should... " >&6; }
18959 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
18960 $as_echo_n "(cached) " >&6
18965 # Use the mktemp program if available. If not available, hide the error
18967 tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
18968 test -n "$tmp" && test -d "$tmp"
18971 # Use a simple mkdir command. It is guaranteed to fail if the directory
18972 # already exists. $RANDOM is bash specific and expands to empty in shells
18973 # other than bash, ksh and zsh. Its use does not increase security;
18974 # rather, it minimizes the probability of failure in a very cluttered /tmp
18976 tmp=/tmp/gt$$-$RANDOM
18977 (umask 077 && mkdir "$tmp")
18979 mkdir "$tmp/subdir"
18980 GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
18981 export GL_SUBDIR_FOR_UNLINK
18982 if test "$cross_compiling" = yes; then
18983 gl_cv_func_unlink_parent_fails="guessing no"
18985 cat >conftest.$ac_ext <<_ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18992 #include <stdlib.h>
18993 #include <unistd.h>
18996 if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
18998 return unlink ("..") == 0;
19002 rm -f conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19009 $as_echo "$ac_try_echo") >&5
19010 (eval "$ac_link") 2>&5
19012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020 (eval "$ac_try") 2>&5
19022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 gl_cv_func_unlink_parent_fails=yes
19026 $as_echo "$as_me: program exited with status $ac_status" >&5
19027 $as_echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19030 ( exit $ac_status )
19031 gl_cv_func_unlink_parent_fails=no
19033 rm -rf conftest.dSYM
19034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19038 unset GL_SUBDIR_FOR_UNLINK
19041 gl_cv_func_unlink_parent_fails="guessing no"
19045 gl_cv_func_unlink_parent_fails="guessing yes"
19050 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
19051 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
19052 case "$gl_cv_func_unlink_parent_fails" in
19055 cat >>confdefs.h <<\_ACEOF
19056 #define UNLINK_PARENT_BUG 1
19061 if test "$gl_cv_func_unlink_honors_slashes" != yes \
19062 || { case "$gl_cv_func_unlink_parent_fails" in
19076 gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
19101 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
19151 for ac_func in fchmodat fstatat mkdirat openat unlinkat
19153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19155 $as_echo_n "checking for $ac_func... " >&6; }
19156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19157 $as_echo_n "(cached) " >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19167 #define $ac_func innocuous_$ac_func
19169 /* System header to define __stub macros and hopefully few prototypes,
19170 which can conflict with char $ac_func (); below.
19171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19172 <limits.h> exists even on freestanding compilers. */
19175 # include <limits.h>
19177 # include <assert.h>
19182 /* Override any GCC internal prototype to avoid an error.
19183 Use char because int might match the return type of a GCC
19184 builtin and then its argument prototype would still apply. */
19189 /* The GNU C library defines this for functions which it implements
19190 to always fail with ENOSYS. Some functions are actually named
19191 something starting with __ and the normal name is an alias. */
19192 #if defined __stub_$ac_func || defined __stub___$ac_func
19199 return $ac_func ();
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19211 $as_echo "$ac_try_echo") >&5
19212 (eval "$ac_link") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest$ac_exeext && {
19222 test "$cross_compiling" = yes ||
19223 $as_test_x conftest$ac_exeext
19225 eval "$as_ac_var=yes"
19227 $as_echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 eval "$as_ac_var=no"
19233 rm -rf conftest.dSYM
19234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235 conftest$ac_exeext conftest.$ac_ext
19237 ac_res=`eval 'as_val=${'$as_ac_var'}
19238 $as_echo "$as_val"'`
19239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19240 $as_echo "$ac_res" >&6; }
19241 as_val=`eval 'as_val=${'$as_ac_var'}
19242 $as_echo "$as_val"'`
19243 if test "x$as_val" = x""yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19250 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19258 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
19260 # GNU/Hurd has unlinkat, but it has the same bug as unlink.
19261 if test $REPLACE_UNLINK = 1; then
19270 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
19275 # Solaris 9 has *at functions, but uniformly mishandles trailing
19276 # slash in all of them.
19285 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
19296 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
19307 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
19313 HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
19314 HAVE_FSTATAT=0 # No known system with fstatat but not openat
19321 if test $ac_cv_func_fchmodat != yes; then
19324 if test $ac_cv_func_mkdirat != yes; then
19329 { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
19330 $as_echo_n "checking for fchownat... " >&6; }
19331 if test "${ac_cv_func_fchownat+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. */
19340 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
19341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19342 #define fchownat innocuous_fchownat
19344 /* System header to define __stub macros and hopefully few prototypes,
19345 which can conflict with char fchownat (); below.
19346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19347 <limits.h> exists even on freestanding compilers. */
19350 # include <limits.h>
19352 # include <assert.h>
19357 /* Override any GCC internal prototype to avoid an error.
19358 Use char because int might match the return type of a GCC
19359 builtin and then its argument prototype would still apply. */
19364 /* The GNU C library defines this for functions which it implements
19365 to always fail with ENOSYS. Some functions are actually named
19366 something starting with __ and the normal name is an alias. */
19367 #if defined __stub_fchownat || defined __stub___fchownat
19374 return fchownat ();
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19386 $as_echo "$ac_try_echo") >&5
19387 (eval "$ac_link") 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest$ac_exeext && {
19397 test "$cross_compiling" = yes ||
19398 $as_test_x conftest$ac_exeext
19400 ac_cv_func_fchownat=yes
19402 $as_echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ac_cv_func_fchownat=no
19408 rm -rf conftest.dSYM
19409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19410 conftest$ac_exeext conftest.$ac_ext
19412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
19413 $as_echo "$ac_cv_func_fchownat" >&6; }
19414 if test "x$ac_cv_func_fchownat" = x""yes; then
19416 { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
19417 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
19418 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
19419 $as_echo_n "(cached) " >&6
19422 gl_dangle=conftest.dangle
19423 # Remove any remnants of a previous test.
19425 # Arrange for deletion of the temporary file this test creates.
19426 ac_clean_files="$ac_clean_files $gl_dangle"
19427 ln -s conftest.no-such $gl_dangle
19428 if test "$cross_compiling" = yes; then
19429 gl_cv_func_fchownat_nofollow_works=no
19431 cat >conftest.$ac_ext <<_ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19439 #include <unistd.h>
19440 #include <stdlib.h>
19442 #include <sys/types.h>
19446 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
19447 AT_SYMLINK_NOFOLLOW) != 0
19448 && errno == ENOENT);
19452 rm -f conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19459 $as_echo "$ac_try_echo") >&5
19460 (eval "$ac_link") 2>&5
19462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19469 $as_echo "$ac_try_echo") >&5
19470 (eval "$ac_try") 2>&5
19472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 gl_cv_func_fchownat_nofollow_works=yes
19476 $as_echo "$as_me: program exited with status $ac_status" >&5
19477 $as_echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ( exit $ac_status )
19481 gl_cv_func_fchownat_nofollow_works=no
19483 rm -rf conftest.dSYM
19484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19490 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
19491 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
19492 if test $gl_cv_func_fchownat_nofollow_works = no; then
19495 cat >>confdefs.h <<\_ACEOF
19496 #define FCHOWNAT_NOFOLLOW_BUG 1
19503 if test $REPLACE_CHOWN = 1; then
19510 if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
19519 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
19529 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
19530 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19531 if test "${ac_cv_gnu_library_2_1+set}" = set; then
19532 $as_echo_n "(cached) " >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 #include <features.h>
19542 #ifdef __GNU_LIBRARY__
19543 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19550 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
19551 ac_cv_gnu_library_2_1=yes
19553 ac_cv_gnu_library_2_1=no
19560 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
19561 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19563 GLIBC21="$ac_cv_gnu_library_2_1"
19569 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19570 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19571 if test "${gl_cv_func_malloc_posix+set}" = set; then
19572 $as_echo_n "(cached) " >&6
19575 cat >conftest.$ac_ext <<_ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19585 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19593 rm -f conftest.$ac_objext
19594 if { (ac_try="$ac_compile"
19595 case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19600 $as_echo "$ac_try_echo") >&5
19601 (eval "$ac_compile") 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest.$ac_objext; then
19611 gl_cv_func_malloc_posix=yes
19613 $as_echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19616 gl_cv_func_malloc_posix=no
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
19623 $as_echo "$gl_cv_func_malloc_posix" >&6; }
19627 for ac_header in stdlib.h
19629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19631 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19632 $as_echo_n "checking for $ac_header... " >&6; }
19633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19634 $as_echo_n "(cached) " >&6
19636 ac_res=`eval 'as_val=${'$as_ac_Header'}
19637 $as_echo "$as_val"'`
19638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19639 $as_echo "$ac_res" >&6; }
19641 # Is the header compilable?
19642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19643 $as_echo_n "checking $ac_header usability... " >&6; }
19644 cat >conftest.$ac_ext <<_ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 $ac_includes_default
19651 #include <$ac_header>
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19660 $as_echo "$ac_try_echo") >&5
19661 (eval "$ac_compile") 2>conftest.er1
19663 grep -v '^ *+' conftest.er1 >conftest.err
19665 cat conftest.err >&5
19666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest.$ac_objext; then
19671 ac_header_compiler=yes
19673 $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_header_compiler=no
19679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19681 $as_echo "$ac_header_compiler" >&6; }
19683 # Is the header present?
19684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19685 $as_echo_n "checking $ac_header presence... " >&6; }
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 #include <$ac_header>
19694 if { (ac_try="$ac_cpp conftest.$ac_ext"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19700 $as_echo "$ac_try_echo") >&5
19701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } >/dev/null && {
19708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19711 ac_header_preproc=yes
19713 $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 ac_header_preproc=no
19719 rm -f conftest.err conftest.$ac_ext
19720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19721 $as_echo "$ac_header_preproc" >&6; }
19723 # So? What about this header?
19724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19730 ac_header_preproc=yes
19733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19736 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19740 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19746 ## ------------------------------ ##
19747 ## Report this to bug-tar@gnu.org ##
19748 ## ------------------------------ ##
19750 ) | sed "s/^/$as_me: WARNING: /" >&2
19753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19754 $as_echo_n "checking for $ac_header... " >&6; }
19755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19756 $as_echo_n "(cached) " >&6
19758 eval "$as_ac_Header=\$ac_header_preproc"
19760 ac_res=`eval 'as_val=${'$as_ac_Header'}
19761 $as_echo "$as_val"'`
19762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19763 $as_echo "$ac_res" >&6; }
19766 as_val=`eval 'as_val=${'$as_ac_Header'}
19767 $as_echo "$as_val"'`
19768 if test "x$as_val" = x""yes; then
19769 cat >>confdefs.h <<_ACEOF
19770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19777 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19778 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19779 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19780 $as_echo_n "(cached) " >&6
19782 if test "$cross_compiling" = yes; then
19783 ac_cv_func_malloc_0_nonnull=no
19785 cat >conftest.$ac_ext <<_ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19792 # include <stdlib.h>
19800 return ! malloc (0);
19805 rm -f conftest$ac_exeext
19806 if { (ac_try="$ac_link"
19807 case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19812 $as_echo "$ac_try_echo") >&5
19813 (eval "$ac_link") 2>&5
19815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19822 $as_echo "$ac_try_echo") >&5
19823 (eval "$ac_try") 2>&5
19825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_func_malloc_0_nonnull=yes
19829 $as_echo "$as_me: program exited with status $ac_status" >&5
19830 $as_echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ( exit $ac_status )
19834 ac_cv_func_malloc_0_nonnull=no
19836 rm -rf conftest.dSYM
19837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19842 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19843 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19844 if test $ac_cv_func_malloc_0_nonnull = yes; then
19845 gl_cv_func_malloc_0_nonnull=1
19847 gl_cv_func_malloc_0_nonnull=0
19852 cat >>confdefs.h <<_ACEOF
19853 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19864 { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
19865 $as_echo_n "checking for a traditional japanese locale... " >&6; }
19866 if test "${gt_cv_locale_ja+set}" = set; then
19867 $as_echo_n "(cached) " >&6
19870 cat >conftest.$ac_ext <<_ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19877 #include <locale.h>
19879 #if HAVE_LANGINFO_CODESET
19880 # include <langinfo.h>
19882 #include <stdlib.h>
19883 #include <string.h>
19889 /* Check whether the given locale name is recognized by the system. */
19890 if (setlocale (LC_ALL, "") == NULL) return 1;
19891 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19892 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19893 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19894 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19895 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19896 some unit tests fail.
19897 On MirBSD 10, when an unsupported locale is specified, setlocale()
19898 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
19899 #if HAVE_LANGINFO_CODESET
19901 const char *cs = nl_langinfo (CODESET);
19902 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
19903 || strcmp (cs, "UTF-8") == 0)
19908 /* On Cygwin, avoid locale names without encoding suffix, because the
19909 locale_charset() function relies on the encoding suffix. Note that
19910 LC_ALL is set on the command line. */
19911 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19913 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
19914 on Cygwin 1.5.x. */
19915 if (MB_CUR_MAX == 1)
19917 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
19918 This excludes the UTF-8 encoding (except on MirBSD). */
19919 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19920 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
19921 for (p = buf; *p != '\0'; p++)
19922 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && test -s conftest$ac_exeext; then
19933 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19934 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19935 # configure script would override the LC_ALL setting. Likewise for
19936 # LC_CTYPE, which is also set at the beginning of the configure script.
19937 # Test for the AIX locale name.
19938 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19939 gt_cv_locale_ja=ja_JP
19941 # Test for the locale name with explicit encoding suffix.
19942 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19943 gt_cv_locale_ja=ja_JP.EUC-JP
19945 # Test for the HP-UX, OSF/1, NetBSD locale name.
19946 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19947 gt_cv_locale_ja=ja_JP.eucJP
19949 # Test for the IRIX, FreeBSD locale name.
19950 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19951 gt_cv_locale_ja=ja_JP.EUC
19953 # Test for the Solaris 7 locale name.
19954 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19957 # Special test for NetBSD 1.6.
19958 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
19959 gt_cv_locale_ja=ja_JP.eucJP
19962 gt_cv_locale_ja=none
19973 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
19974 $as_echo "$gt_cv_locale_ja" >&6; }
19975 LOCALE_JA=$gt_cv_locale_ja
19981 { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
19982 $as_echo_n "checking for a transitional chinese locale... " >&6; }
19983 if test "${gt_cv_locale_zh_CN+set}" = set; then
19984 $as_echo_n "(cached) " >&6
19987 cat >conftest.$ac_ext <<_ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19994 #include <locale.h>
19995 #include <stdlib.h>
19997 #if HAVE_LANGINFO_CODESET
19998 # include <langinfo.h>
20000 #include <stdlib.h>
20001 #include <string.h>
20007 /* Check whether the given locale name is recognized by the system. */
20008 if (setlocale (LC_ALL, "") == NULL) return 1;
20009 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20010 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20011 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20012 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20013 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20014 some unit tests fail.
20015 On MirBSD 10, when an unsupported locale is specified, setlocale()
20016 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
20017 #if HAVE_LANGINFO_CODESET
20019 const char *cs = nl_langinfo (CODESET);
20020 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
20021 || strcmp (cs, "UTF-8") == 0)
20026 /* On Cygwin, avoid locale names without encoding suffix, because the
20027 locale_charset() function relies on the encoding suffix. Note that
20028 LC_ALL is set on the command line. */
20029 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20031 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
20032 This excludes the UTF-8 encoding (except on MirBSD). */
20033 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20034 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
20035 for (p = buf; *p != '\0'; p++)
20036 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
20038 /* Check whether a typical GB18030 multibyte sequence is recognized as a
20039 single wide character. This excludes the GB2312 and GBK encodings. */
20040 if (mblen ("\203\062\332\066", 5) != 4)
20046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20047 (eval $ac_link) 2>&5
20049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && test -s conftest$ac_exeext; then
20051 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20052 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20053 # configure script would override the LC_ALL setting. Likewise for
20054 # LC_CTYPE, which is also set at the beginning of the configure script.
20055 # Test for the locale name without encoding suffix.
20056 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20057 gt_cv_locale_zh_CN=zh_CN
20059 # Test for the locale name with explicit encoding suffix.
20060 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20061 gt_cv_locale_zh_CN=zh_CN.GB18030
20064 gt_cv_locale_zh_CN=none
20068 # If there was a link error, due to mblen(), the system is so old that
20069 # it certainly doesn't have a chinese locale.
20070 gt_cv_locale_zh_CN=none
20075 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
20076 $as_echo "$gt_cv_locale_zh_CN" >&6; }
20077 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
20082 { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
20083 $as_echo_n "checking for a french Unicode locale... " >&6; }
20084 if test "${gt_cv_locale_fr_utf8+set}" = set; then
20085 $as_echo_n "(cached) " >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20095 #include <locale.h>
20097 #if HAVE_LANGINFO_CODESET
20098 # include <langinfo.h>
20100 #include <stdlib.h>
20101 #include <string.h>
20105 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
20106 imitates locale dependent behaviour by looking at the environment
20107 variables, and all locales use the UTF-8 encoding. */
20108 #if !(defined __BEOS__ || defined __HAIKU__)
20109 /* Check whether the given locale name is recognized by the system. */
20110 if (setlocale (LC_ALL, "") == NULL) return 1;
20111 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20112 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20113 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20114 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20115 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20116 some unit tests fail. */
20117 # if HAVE_LANGINFO_CODESET
20119 const char *cs = nl_langinfo (CODESET);
20120 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
20125 /* On Cygwin, avoid locale names without encoding suffix, because the
20126 locale_charset() function relies on the encoding suffix. Note that
20127 LC_ALL is set on the command line. */
20128 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20130 /* Check whether in the abbreviation of the second month, the second
20131 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
20132 two bytes long, with UTF-8 encoding. */
20133 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20134 if (strftime (buf, sizeof (buf), "%b", &t) < 4
20135 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
20138 /* Check whether the decimal separator is a comma.
20139 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
20140 are nl_langinfo(RADIXCHAR) are both ".". */
20141 if (localeconv () ->decimal_point[0] != ',') return 1;
20146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20147 (eval $ac_link) 2>&5
20149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && test -s conftest$ac_exeext; then
20151 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20152 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20153 # configure script would override the LC_ALL setting. Likewise for
20154 # LC_CTYPE, which is also set at the beginning of the configure script.
20155 # Test for the usual locale name.
20156 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20157 gt_cv_locale_fr_utf8=fr_FR
20159 # Test for the locale name with explicit encoding suffix.
20160 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20161 gt_cv_locale_fr_utf8=fr_FR.UTF-8
20163 # Test for the Solaris 7 locale name.
20164 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20165 gt_cv_locale_fr_utf8=fr.UTF-8
20168 gt_cv_locale_fr_utf8=none
20176 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
20177 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
20178 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
20186 GNULIB_RAWMEMCHR=0;
20189 GNULIB_STRCHRNUL=0;
20197 GNULIB_STRCASESTR=0;
20204 GNULIB_MBSCASECMP=0;
20205 GNULIB_MBSNCASECMP=0;
20206 GNULIB_MBSPCASECMP=0;
20207 GNULIB_MBSCASESTR=0;
20214 GNULIB_STRSIGNAL=0;
20215 GNULIB_STRVERSCMP=0;
20218 HAVE_DECL_MEMMEM=1;
20220 HAVE_DECL_MEMRCHR=1;
20225 HAVE_DECL_STRDUP=1;
20226 HAVE_DECL_STRNDUP=1;
20227 HAVE_DECL_STRNLEN=1;
20231 HAVE_DECL_STRTOK_R=1;
20232 HAVE_DECL_STRSIGNAL=1;
20239 REPLACE_STRCASESTR=0;
20240 REPLACE_STRERROR=0;
20244 REPLACE_STRSIGNAL=0;
20245 REPLACE_STRTOK_R=0;
20246 UNDEFINE_STRTOK_R=0;
20249 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
20250 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
20251 if test "${ac_cv_func_mbrtowc+set}" = set; then
20252 $as_echo_n "(cached) " >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20265 char const s[] = "";
20268 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
20273 rm -f conftest.$ac_objext conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20280 $as_echo "$ac_try_echo") >&5
20281 (eval "$ac_link") 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest$ac_exeext && {
20291 test "$cross_compiling" = yes ||
20292 $as_test_x conftest$ac_exeext
20294 ac_cv_func_mbrtowc=yes
20296 $as_echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_cv_func_mbrtowc=no
20302 rm -rf conftest.dSYM
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304 conftest$ac_exeext conftest.$ac_ext
20306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
20307 $as_echo "$ac_cv_func_mbrtowc" >&6; }
20308 if test $ac_cv_func_mbrtowc = yes; then
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE_MBRTOWC 1
20329 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
20330 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
20331 # irrelevant for anonymous mappings.
20332 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
20333 $as_echo_n "checking for mmap... " >&6; }
20334 if test "${ac_cv_func_mmap+set}" = set; then
20335 $as_echo_n "(cached) " >&6
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
20344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20345 #define mmap innocuous_mmap
20347 /* System header to define __stub macros and hopefully few prototypes,
20348 which can conflict with char mmap (); below.
20349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20350 <limits.h> exists even on freestanding compilers. */
20353 # include <limits.h>
20355 # include <assert.h>
20360 /* Override any GCC internal prototype to avoid an error.
20361 Use char because int might match the return type of a GCC
20362 builtin and then its argument prototype would still apply. */
20367 /* The GNU C library defines this for functions which it implements
20368 to always fail with ENOSYS. Some functions are actually named
20369 something starting with __ and the normal name is an alias. */
20370 #if defined __stub_mmap || defined __stub___mmap
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20389 $as_echo "$ac_try_echo") >&5
20390 (eval "$ac_link") 2>conftest.er1
20392 grep -v '^ *+' conftest.er1 >conftest.err
20394 cat conftest.err >&5
20395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } && {
20397 test -z "$ac_c_werror_flag" ||
20398 test ! -s conftest.err
20399 } && test -s conftest$ac_exeext && {
20400 test "$cross_compiling" = yes ||
20401 $as_test_x conftest$ac_exeext
20403 ac_cv_func_mmap=yes
20405 $as_echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20411 rm -rf conftest.dSYM
20412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20413 conftest$ac_exeext conftest.$ac_ext
20415 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
20416 $as_echo "$ac_cv_func_mmap" >&6; }
20417 if test "x$ac_cv_func_mmap" = x""yes; then
20424 # Try to allow MAP_ANONYMOUS.
20425 gl_have_mmap_anonymous=no
20426 if test $gl_have_mmap = yes; then
20427 { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
20428 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
20429 cat >conftest.$ac_ext <<_ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20436 #include <sys/mman.h>
20437 #ifdef MAP_ANONYMOUS
20438 I cant identify this map.
20442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20443 $EGREP "I cant identify this map." >/dev/null 2>&1; then
20444 gl_have_mmap_anonymous=yes
20448 if test $gl_have_mmap_anonymous != yes; then
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 #include <sys/mman.h>
20458 I cant identify this map.
20462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20463 $EGREP "I cant identify this map." >/dev/null 2>&1; then
20465 cat >>confdefs.h <<\_ACEOF
20466 #define MAP_ANONYMOUS MAP_ANON
20469 gl_have_mmap_anonymous=yes
20474 { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
20475 $as_echo "$gl_have_mmap_anonymous" >&6; }
20476 if test $gl_have_mmap_anonymous = yes; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_MAP_ANONYMOUS 1
20505 if test $ac_cv_func_memchr = yes; then
20506 # Detect platform-specific bugs in some versions of glibc:
20507 # memchr should not dereference anything with length 0
20508 # http://bugzilla.redhat.com/499689
20509 # memchr should not dereference overestimated length after a match
20510 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
20511 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
20512 # Assume that memchr works on platforms that lack mprotect.
20513 { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
20514 $as_echo_n "checking whether memchr works... " >&6; }
20515 if test "${gl_cv_func_memchr_works+set}" = set; then
20516 $as_echo_n "(cached) " >&6
20518 if test "$cross_compiling" = yes; then
20519 gl_cv_func_memchr_works="guessing no"
20521 cat >conftest.$ac_ext <<_ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20528 #include <string.h>
20529 #if HAVE_SYS_MMAN_H
20530 # include <fcntl.h>
20531 # include <unistd.h>
20532 # include <sys/types.h>
20533 # include <sys/mman.h>
20535 # define MAP_FILE 0
20543 char *fence = NULL;
20544 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
20545 # if HAVE_MAP_ANONYMOUS
20546 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20548 # else /* !HAVE_MAP_ANONYMOUS */
20549 const int flags = MAP_FILE | MAP_PRIVATE;
20550 int fd = open ("/dev/zero", O_RDONLY, 0666);
20554 int pagesize = getpagesize ();
20556 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20558 if (two_pages != (char *)(-1)
20559 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20560 fence = two_pages + pagesize;
20565 if (memchr (fence, 0, 0))
20567 strcpy (fence - 9, "12345678");
20568 if (memchr (fence - 9, 0, 79) != fence - 1)
20570 if (memchr (fence - 1, 0, 3) != fence - 1)
20579 rm -f conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20586 $as_echo "$ac_try_echo") >&5
20587 (eval "$ac_link") 2>&5
20589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20591 { (case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20596 $as_echo "$ac_try_echo") >&5
20597 (eval "$ac_try") 2>&5
20599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 gl_cv_func_memchr_works=yes
20603 $as_echo "$as_me: program exited with status $ac_status" >&5
20604 $as_echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ( exit $ac_status )
20608 gl_cv_func_memchr_works=no
20610 rm -rf conftest.dSYM
20611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20616 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
20617 $as_echo "$gl_cv_func_memchr_works" >&6; }
20618 if test "$gl_cv_func_memchr_works" != yes; then
20624 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
20633 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20637 for ac_header in bp-sym.h
20639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20642 $as_echo_n "checking for $ac_header... " >&6; }
20643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20644 $as_echo_n "(cached) " >&6
20646 ac_res=`eval 'as_val=${'$as_ac_Header'}
20647 $as_echo "$as_val"'`
20648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20649 $as_echo "$ac_res" >&6; }
20651 # Is the header compilable?
20652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20653 $as_echo_n "checking $ac_header usability... " >&6; }
20654 cat >conftest.$ac_ext <<_ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20660 $ac_includes_default
20661 #include <$ac_header>
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20670 $as_echo "$ac_try_echo") >&5
20671 (eval "$ac_compile") 2>conftest.er1
20673 grep -v '^ *+' conftest.er1 >conftest.err
20675 cat conftest.err >&5
20676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && {
20678 test -z "$ac_c_werror_flag" ||
20679 test ! -s conftest.err
20680 } && test -s conftest.$ac_objext; then
20681 ac_header_compiler=yes
20683 $as_echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_header_compiler=no
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20691 $as_echo "$ac_header_compiler" >&6; }
20693 # Is the header present?
20694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20695 $as_echo_n "checking $ac_header presence... " >&6; }
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20702 #include <$ac_header>
20704 if { (ac_try="$ac_cpp conftest.$ac_ext"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20710 $as_echo "$ac_try_echo") >&5
20711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1 >conftest.err
20715 cat conftest.err >&5
20716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } >/dev/null && {
20718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20721 ac_header_preproc=yes
20723 $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_header_preproc=no
20729 rm -f conftest.err conftest.$ac_ext
20730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20731 $as_echo "$ac_header_preproc" >&6; }
20733 # So? What about this header?
20734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20740 ac_header_preproc=yes
20743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20746 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20750 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20756 ## ------------------------------ ##
20757 ## Report this to bug-tar@gnu.org ##
20758 ## ------------------------------ ##
20760 ) | sed "s/^/$as_me: WARNING: /" >&2
20763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20764 $as_echo_n "checking for $ac_header... " >&6; }
20765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20766 $as_echo_n "(cached) " >&6
20768 eval "$as_ac_Header=\$ac_header_preproc"
20770 ac_res=`eval 'as_val=${'$as_ac_Header'}
20771 $as_echo "$as_val"'`
20772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20773 $as_echo "$ac_res" >&6; }
20776 as_val=`eval 'as_val=${'$as_ac_Header'}
20777 $as_echo "$as_val"'`
20778 if test "x$as_val" = x""yes; then
20779 cat >>confdefs.h <<_ACEOF
20780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20790 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
20791 $as_echo_n "checking whether memrchr is declared... " >&6; }
20792 if test "${ac_cv_have_decl_memrchr+set}" = set; then
20793 $as_echo_n "(cached) " >&6
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 $ac_includes_default
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20820 $as_echo "$ac_try_echo") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest.$ac_objext; then
20831 ac_cv_have_decl_memrchr=yes
20833 $as_echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_have_decl_memrchr=no
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
20842 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
20843 if test "x$ac_cv_have_decl_memrchr" = x""yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define HAVE_DECL_MEMRCHR 1
20851 cat >>confdefs.h <<_ACEOF
20852 #define HAVE_DECL_MEMRCHR 0
20869 GNULIB_NANOSLEEP=0;
20873 HAVE_LOCALTIME_R=1;
20877 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20878 REPLACE_MKTIME=GNULIB_PORTCHECK;
20879 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20880 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20887 # parse-datetime.y works with bison only.
20888 : ${YACC='bison -y'}
20891 { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
20892 $as_echo_n "checking for compound literals... " >&6; }
20893 if test "${gl_cv_compound_literals+set}" = set; then
20894 $as_echo_n "(cached) " >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 struct s { int i, j; };
20906 struct s t = (struct s) { 3, 4 };
20907 if (t.i != 0) return 0;
20912 rm -f conftest.$ac_objext
20913 if { (ac_try="$ac_compile"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20919 $as_echo "$ac_try_echo") >&5
20920 (eval "$ac_compile") 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } && {
20927 test -z "$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20929 } && test -s conftest.$ac_objext; then
20930 gl_cv_compound_literals=yes
20932 $as_echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 gl_cv_compound_literals=no
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
20941 $as_echo "$gl_cv_compound_literals" >&6; }
20942 if test $gl_cv_compound_literals = yes; then
20944 cat >>confdefs.h <<\_ACEOF
20945 #define HAVE_COMPOUND_LITERALS 1
20950 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20951 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20952 if test "${ac_cv_struct_tm+set}" = set; then
20953 $as_echo_n "(cached) " >&6
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <sys/types.h>
20968 int *p = &tm.tm_sec;
20974 rm -f conftest.$ac_objext
20975 if { (ac_try="$ac_compile"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20981 $as_echo "$ac_try_echo") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest.$ac_objext; then
20992 ac_cv_struct_tm=time.h
20994 $as_echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ac_cv_struct_tm=sys/time.h
21000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21003 $as_echo "$ac_cv_struct_tm" >&6; }
21004 if test $ac_cv_struct_tm = sys/time.h; then
21006 cat >>confdefs.h <<\_ACEOF
21007 #define TM_IN_SYS_TIME 1
21013 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21014 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
21015 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21016 $as_echo_n "(cached) " >&6
21018 cat >conftest.$ac_ext <<_ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21029 static struct tm ac_aggr;
21030 if (ac_aggr.tm_gmtoff)
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21043 $as_echo "$ac_try_echo") >&5
21044 (eval "$ac_compile") 2>conftest.er1
21046 grep -v '^ *+' conftest.er1 >conftest.err
21048 cat conftest.err >&5
21049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } && {
21051 test -z "$ac_c_werror_flag" ||
21052 test ! -s conftest.err
21053 } && test -s conftest.$ac_objext; then
21054 ac_cv_member_struct_tm_tm_gmtoff=yes
21056 $as_echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 cat >conftest.$ac_ext <<_ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21070 static struct tm ac_aggr;
21071 if (sizeof ac_aggr.tm_gmtoff)
21077 rm -f conftest.$ac_objext
21078 if { (ac_try="$ac_compile"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21084 $as_echo "$ac_try_echo") >&5
21085 (eval "$ac_compile") 2>conftest.er1
21087 grep -v '^ *+' conftest.er1 >conftest.err
21089 cat conftest.err >&5
21090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } && {
21092 test -z "$ac_c_werror_flag" ||
21093 test ! -s conftest.err
21094 } && test -s conftest.$ac_objext; then
21095 ac_cv_member_struct_tm_tm_gmtoff=yes
21097 $as_echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ac_cv_member_struct_tm_tm_gmtoff=no
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21109 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
21110 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_TM_GMTOFF 1
21137 if test $ac_cv_func_setenv = no; then
21140 { $as_echo "$as_me:$LINENO: checking whether setenv validates arguments" >&5
21141 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21142 if test "${gl_cv_func_setenv_works+set}" = set; then
21143 $as_echo_n "(cached) " >&6
21145 if test "$cross_compiling" = yes; then
21146 gl_cv_func_setenv_works="guessing no"
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21155 #include <stdlib.h>
21157 #include <string.h>
21163 if (setenv ("", "", 0) != -1) return 1;
21164 if (errno != EINVAL) return 2;
21165 if (setenv ("a", "=", 1) != 0) return 3;
21166 if (strcmp (getenv ("a"), "=") != 0) return 4;
21172 rm -f conftest$ac_exeext
21173 if { (ac_try="$ac_link"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21179 $as_echo "$ac_try_echo") >&5
21180 (eval "$ac_link") 2>&5
21182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21184 { (case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21189 $as_echo "$ac_try_echo") >&5
21190 (eval "$ac_try") 2>&5
21192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 gl_cv_func_setenv_works=yes
21196 $as_echo "$as_me: program exited with status $ac_status" >&5
21197 $as_echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ( exit $ac_status )
21201 gl_cv_func_setenv_works=no
21203 rm -rf conftest.dSYM
21204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21209 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_setenv_works" >&5
21210 $as_echo "$gl_cv_func_setenv_works" >&6; }
21211 if test "$gl_cv_func_setenv_works" != yes; then
21221 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21235 for ac_header in search.h
21237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21240 $as_echo_n "checking for $ac_header... " >&6; }
21241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21242 $as_echo_n "(cached) " >&6
21244 ac_res=`eval 'as_val=${'$as_ac_Header'}
21245 $as_echo "$as_val"'`
21246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21247 $as_echo "$ac_res" >&6; }
21249 # Is the header compilable?
21250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21251 $as_echo_n "checking $ac_header usability... " >&6; }
21252 cat >conftest.$ac_ext <<_ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 $ac_includes_default
21259 #include <$ac_header>
21261 rm -f conftest.$ac_objext
21262 if { (ac_try="$ac_compile"
21263 case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21268 $as_echo "$ac_try_echo") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21279 ac_header_compiler=yes
21281 $as_echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 ac_header_compiler=no
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21289 $as_echo "$ac_header_compiler" >&6; }
21291 # Is the header present?
21292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21293 $as_echo_n "checking $ac_header presence... " >&6; }
21294 cat >conftest.$ac_ext <<_ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 #include <$ac_header>
21302 if { (ac_try="$ac_cpp conftest.$ac_ext"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21308 $as_echo "$ac_try_echo") >&5
21309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } >/dev/null && {
21316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21319 ac_header_preproc=yes
21321 $as_echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_header_preproc=no
21327 rm -f conftest.err conftest.$ac_ext
21328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21329 $as_echo "$ac_header_preproc" >&6; }
21331 # So? What about this header?
21332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21338 ac_header_preproc=yes
21341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21344 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21348 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21354 ## ------------------------------ ##
21355 ## Report this to bug-tar@gnu.org ##
21356 ## ------------------------------ ##
21358 ) | sed "s/^/$as_me: WARNING: /" >&2
21361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21362 $as_echo_n "checking for $ac_header... " >&6; }
21363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21364 $as_echo_n "(cached) " >&6
21366 eval "$as_ac_Header=\$ac_header_preproc"
21368 ac_res=`eval 'as_val=${'$as_ac_Header'}
21369 $as_echo "$as_val"'`
21370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21371 $as_echo "$ac_res" >&6; }
21374 as_val=`eval 'as_val=${'$as_ac_Header'}
21375 $as_echo "$as_val"'`
21376 if test "x$as_val" = x""yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21386 for ac_func in tsearch
21388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21390 $as_echo_n "checking for $ac_func... " >&6; }
21391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21392 $as_echo_n "(cached) " >&6
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21402 #define $ac_func innocuous_$ac_func
21404 /* System header to define __stub macros and hopefully few prototypes,
21405 which can conflict with char $ac_func (); below.
21406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21407 <limits.h> exists even on freestanding compilers. */
21410 # include <limits.h>
21412 # include <assert.h>
21417 /* Override any GCC internal prototype to avoid an error.
21418 Use char because int might match the return type of a GCC
21419 builtin and then its argument prototype would still apply. */
21424 /* The GNU C library defines this for functions which it implements
21425 to always fail with ENOSYS. Some functions are actually named
21426 something starting with __ and the normal name is an alias. */
21427 #if defined __stub_$ac_func || defined __stub___$ac_func
21434 return $ac_func ();
21439 rm -f conftest.$ac_objext conftest$ac_exeext
21440 if { (ac_try="$ac_link"
21441 case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21446 $as_echo "$ac_try_echo") >&5
21447 (eval "$ac_link") 2>conftest.er1
21449 grep -v '^ *+' conftest.er1 >conftest.err
21451 cat conftest.err >&5
21452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } && {
21454 test -z "$ac_c_werror_flag" ||
21455 test ! -s conftest.err
21456 } && test -s conftest$ac_exeext && {
21457 test "$cross_compiling" = yes ||
21458 $as_test_x conftest$ac_exeext
21460 eval "$as_ac_var=yes"
21462 $as_echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 eval "$as_ac_var=no"
21468 rm -rf conftest.dSYM
21469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21470 conftest$ac_exeext conftest.$ac_ext
21472 ac_res=`eval 'as_val=${'$as_ac_var'}
21473 $as_echo "$as_val"'`
21474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21475 $as_echo "$ac_res" >&6; }
21476 as_val=`eval 'as_val=${'$as_ac_var'}
21477 $as_echo "$as_val"'`
21478 if test "x$as_val" = x""yes; then
21479 cat >>confdefs.h <<_ACEOF
21480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21490 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21491 $as_echo_n "checking whether snprintf is declared... " >&6; }
21492 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21493 $as_echo_n "(cached) " >&6
21495 cat >conftest.$ac_ext <<_ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 $ac_includes_default
21513 rm -f conftest.$ac_objext
21514 if { (ac_try="$ac_compile"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21520 $as_echo "$ac_try_echo") >&5
21521 (eval "$ac_compile") 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest.$ac_objext; then
21531 ac_cv_have_decl_snprintf=yes
21533 $as_echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ac_cv_have_decl_snprintf=no
21539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21542 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21543 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21545 cat >>confdefs.h <<_ACEOF
21546 #define HAVE_DECL_SNPRINTF 1
21551 cat >>confdefs.h <<_ACEOF
21552 #define HAVE_DECL_SNPRINTF 0
21567 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
21568 $as_echo_n "checking for wchar_t... " >&6; }
21569 if test "${gt_cv_c_wchar_t+set}" = set; then
21570 $as_echo_n "(cached) " >&6
21572 cat >conftest.$ac_ext <<_ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 #include <stddef.h>
21579 wchar_t foo = (wchar_t)'\0';
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21595 $as_echo "$ac_try_echo") >&5
21596 (eval "$ac_compile") 2>conftest.er1
21598 grep -v '^ *+' conftest.er1 >conftest.err
21600 cat conftest.err >&5
21601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } && {
21603 test -z "$ac_c_werror_flag" ||
21604 test ! -s conftest.err
21605 } && test -s conftest.$ac_objext; then
21606 gt_cv_c_wchar_t=yes
21608 $as_echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21617 $as_echo "$gt_cv_c_wchar_t" >&6; }
21618 if test $gt_cv_c_wchar_t = yes; then
21620 cat >>confdefs.h <<\_ACEOF
21621 #define HAVE_WCHAR_T 1
21629 { $as_echo "$as_me:$LINENO: checking whether C symbols are prefixed with underscore at the linker level" >&5
21630 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
21631 if test "${gl_cv_prog_as_underscore+set}" = set; then
21632 $as_echo_n "(cached) " >&6
21634 cat > conftest.c <<EOF
21636 extern "C" int foo (void);
21638 int foo(void) { return 0; }
21640 # Look for the assembly language name in the .s file.
21641 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } >/dev/null 2>&1
21647 if grep _foo conftest.s >/dev/null ; then
21648 gl_cv_prog_as_underscore=yes
21650 gl_cv_prog_as_underscore=no
21655 { $as_echo "$as_me:$LINENO: result: $gl_cv_prog_as_underscore" >&5
21656 $as_echo "$gl_cv_prog_as_underscore" >&6; }
21657 if test $gl_cv_prog_as_underscore = yes; then
21658 USER_LABEL_PREFIX=_
21663 cat >>confdefs.h <<_ACEOF
21664 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
21667 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
21676 HAVE_DECL_STRNCASECMP=1;
21680 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
21681 $as_echo_n "checking whether strdup is declared... " >&6; }
21682 if test "${ac_cv_have_decl_strdup+set}" = set; then
21683 $as_echo_n "(cached) " >&6
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 $ac_includes_default
21703 rm -f conftest.$ac_objext
21704 if { (ac_try="$ac_compile"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21710 $as_echo "$ac_try_echo") >&5
21711 (eval "$ac_compile") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && {
21718 test -z "$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 } && test -s conftest.$ac_objext; then
21721 ac_cv_have_decl_strdup=yes
21723 $as_echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_cv_have_decl_strdup=no
21729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
21732 $as_echo "$ac_cv_have_decl_strdup" >&6; }
21733 if test "x$ac_cv_have_decl_strdup" = x""yes; then
21735 cat >>confdefs.h <<_ACEOF
21736 #define HAVE_DECL_STRDUP 1
21741 cat >>confdefs.h <<_ACEOF
21742 #define HAVE_DECL_STRDUP 0
21754 if test -z "$ERRNO_H"; then
21755 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
21756 $as_echo_n "checking for working strerror function... " >&6; }
21757 if test "${gl_cv_func_working_strerror+set}" = set; then
21758 $as_echo_n "(cached) " >&6
21760 if test "$cross_compiling" = yes; then
21761 cat >conftest.$ac_ext <<_ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767 #include <string.h>
21772 return !*strerror (-2);
21777 rm -f conftest.$ac_objext
21778 if { (ac_try="$ac_compile"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21795 gl_cv_func_working_strerror=yes
21797 $as_echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 gl_cv_func_working_strerror=no
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 cat >conftest.$ac_ext <<_ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21812 #include <string.h>
21817 return !*strerror (-2);
21822 rm -f conftest$ac_exeext
21823 if { (ac_try="$ac_link"
21824 case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21829 $as_echo "$ac_try_echo") >&5
21830 (eval "$ac_link") 2>&5
21832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834 { (case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21839 $as_echo "$ac_try_echo") >&5
21840 (eval "$ac_try") 2>&5
21842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 gl_cv_func_working_strerror=yes
21846 $as_echo "$as_me: program exited with status $ac_status" >&5
21847 $as_echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ( exit $ac_status )
21851 gl_cv_func_working_strerror=no
21853 rm -rf conftest.dSYM
21854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21860 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
21861 $as_echo "$gl_cv_func_working_strerror" >&6; }
21862 if test $gl_cv_func_working_strerror = no; then
21868 if test $REPLACE_STRERROR = 1; then
21870 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
21871 $as_echo_n "checking whether strerror is declared... " >&6; }
21872 if test "${ac_cv_have_decl_strerror+set}" = set; then
21873 $as_echo_n "(cached) " >&6
21875 cat >conftest.$ac_ext <<_ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 $ac_includes_default
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21900 $as_echo "$ac_try_echo") >&5
21901 (eval "$ac_compile") 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest.$ac_objext; then
21911 ac_cv_have_decl_strerror=yes
21913 $as_echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ac_cv_have_decl_strerror=no
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
21922 $as_echo "$ac_cv_have_decl_strerror" >&6; }
21923 if test "x$ac_cv_have_decl_strerror" = x""yes; then
21925 cat >>confdefs.h <<_ACEOF
21926 #define HAVE_DECL_STRERROR 1
21931 cat >>confdefs.h <<_ACEOF
21932 #define HAVE_DECL_STRERROR 0
21945 if test $ac_cv_header_sys_socket_h != yes; then
21947 for ac_header in winsock2.h
21949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21952 $as_echo_n "checking for $ac_header... " >&6; }
21953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21954 $as_echo_n "(cached) " >&6
21956 ac_res=`eval 'as_val=${'$as_ac_Header'}
21957 $as_echo "$as_val"'`
21958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21959 $as_echo "$ac_res" >&6; }
21961 # Is the header compilable?
21962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21963 $as_echo_n "checking $ac_header usability... " >&6; }
21964 cat >conftest.$ac_ext <<_ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 $ac_includes_default
21971 #include <$ac_header>
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21980 $as_echo "$ac_try_echo") >&5
21981 (eval "$ac_compile") 2>conftest.er1
21983 grep -v '^ *+' conftest.er1 >conftest.err
21985 cat conftest.err >&5
21986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } && {
21988 test -z "$ac_c_werror_flag" ||
21989 test ! -s conftest.err
21990 } && test -s conftest.$ac_objext; then
21991 ac_header_compiler=yes
21993 $as_echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21996 ac_header_compiler=no
21999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22001 $as_echo "$ac_header_compiler" >&6; }
22003 # Is the header present?
22004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22005 $as_echo_n "checking $ac_header presence... " >&6; }
22006 cat >conftest.$ac_ext <<_ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 #include <$ac_header>
22014 if { (ac_try="$ac_cpp conftest.$ac_ext"
22015 case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22020 $as_echo "$ac_try_echo") >&5
22021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22023 grep -v '^ *+' conftest.er1 >conftest.err
22025 cat conftest.err >&5
22026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } >/dev/null && {
22028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22031 ac_header_preproc=yes
22033 $as_echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_header_preproc=no
22039 rm -f conftest.err conftest.$ac_ext
22040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22041 $as_echo "$ac_header_preproc" >&6; }
22043 # So? What about this header?
22044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22050 ac_header_preproc=yes
22053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22066 ## ------------------------------ ##
22067 ## Report this to bug-tar@gnu.org ##
22068 ## ------------------------------ ##
22070 ) | sed "s/^/$as_me: WARNING: /" >&2
22073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 $as_echo_n "checking for $ac_header... " >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 $as_echo_n "(cached) " >&6
22078 eval "$as_ac_Header=\$ac_header_preproc"
22080 ac_res=`eval 'as_val=${'$as_ac_Header'}
22081 $as_echo "$as_val"'`
22082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22083 $as_echo "$ac_res" >&6; }
22086 as_val=`eval 'as_val=${'$as_ac_Header'}
22087 $as_echo "$as_val"'`
22088 if test "x$as_val" = x""yes; then
22089 cat >>confdefs.h <<_ACEOF
22090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22115 if test $gl_cv_have_include_next = yes; then
22116 gl_cv_next_string_h='<'string.h'>'
22118 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
22119 $as_echo_n "checking absolute name of <string.h>... " >&6; }
22120 if test "${gl_cv_next_string_h+set}" = set; then
22121 $as_echo_n "(cached) " >&6
22124 if test $ac_cv_header_string_h = yes; then
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 #include <string.h>
22135 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22136 *) gl_absname_cpp="$ac_cpp" ;;
22138 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22139 sed -n '\#/string.h#{
22140 s#.*"\(.*/string.h\)".*#\1#
22146 gl_cv_next_string_h='<'string.h'>'
22150 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
22151 $as_echo "$gl_cv_next_string_h" >&6; }
22153 NEXT_STRING_H=$gl_cv_next_string_h
22155 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22156 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22157 gl_next_as_first_directive='<'string.h'>'
22159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22160 gl_next_as_first_directive=$gl_cv_next_string_h
22162 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
22185 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
22186 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22187 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
22188 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22189 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
22190 $as_echo_n "(cached) " >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 #include <string.h>
22209 rm -f conftest.$ac_objext
22210 if { (ac_try="$ac_compile"
22211 case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22216 $as_echo "$ac_try_echo") >&5
22217 (eval "$ac_compile") 2>conftest.er1
22219 grep -v '^ *+' conftest.er1 >conftest.err
22221 cat conftest.err >&5
22222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest.$ac_objext; then
22227 eval "$as_gl_Symbol=yes"
22229 $as_echo "$as_me: failed program was:" >&5
22230 sed 's/^/| /' conftest.$ac_ext >&5
22232 eval "$as_gl_Symbol=no"
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
22238 $as_echo "$as_val"'`
22239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22240 $as_echo "$ac_res" >&6; }
22241 as_val=`eval 'as_val=${'$as_gl_Symbol'}
22242 $as_echo "$as_val"'`
22243 if test "x$as_val" = x""yes; then
22244 cat >>confdefs.h <<_ACEOF
22245 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22248 eval ac_cv_have_decl_$gl_func=yes
22269 if test $gl_cv_have_include_next = yes; then
22270 gl_cv_next_strings_h='<'strings.h'>'
22272 { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
22273 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
22274 if test "${gl_cv_next_strings_h+set}" = set; then
22275 $as_echo_n "(cached) " >&6
22278 if test $ac_cv_header_strings_h = yes; then
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285 #include <strings.h>
22289 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22290 *) gl_absname_cpp="$ac_cpp" ;;
22292 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22293 sed -n '\#/strings.h#{
22294 s#.*"\(.*/strings.h\)".*#\1#
22300 gl_cv_next_strings_h='<'strings.h'>'
22304 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
22305 $as_echo "$gl_cv_next_strings_h" >&6; }
22307 NEXT_STRINGS_H=$gl_cv_next_strings_h
22309 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22311 gl_next_as_first_directive='<'strings.h'>'
22313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22314 gl_next_as_first_directive=$gl_cv_next_strings_h
22316 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
22324 for gl_func in strcasecmp strncasecmp; do
22325 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22326 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
22327 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22328 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
22329 $as_echo_n "(cached) " >&6
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 #include <strings.h>
22348 rm -f conftest.$ac_objext
22349 if { (ac_try="$ac_compile"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22355 $as_echo "$ac_try_echo") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22366 eval "$as_gl_Symbol=yes"
22368 $as_echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 eval "$as_gl_Symbol=no"
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
22377 $as_echo "$as_val"'`
22378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22379 $as_echo "$ac_res" >&6; }
22380 as_val=`eval 'as_val=${'$as_gl_Symbol'}
22381 $as_echo "$as_val"'`
22382 if test "x$as_val" = x""yes; then
22383 cat >>confdefs.h <<_ACEOF
22384 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22387 eval ac_cv_have_decl_$gl_func=yes
22393 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
22394 $as_echo_n "checking whether strndup is declared... " >&6; }
22395 if test "${ac_cv_have_decl_strndup+set}" = set; then
22396 $as_echo_n "(cached) " >&6
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 $ac_includes_default
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22423 $as_echo "$ac_try_echo") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22426 grep -v '^ *+' conftest.er1 >conftest.err
22428 cat conftest.err >&5
22429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.$ac_objext; then
22434 ac_cv_have_decl_strndup=yes
22436 $as_echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_cv_have_decl_strndup=no
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
22445 $as_echo "$ac_cv_have_decl_strndup" >&6; }
22446 if test "x$ac_cv_have_decl_strndup" = x""yes; then
22448 cat >>confdefs.h <<_ACEOF
22449 #define HAVE_DECL_STRNDUP 1
22454 cat >>confdefs.h <<_ACEOF
22455 #define HAVE_DECL_STRNDUP 0
22464 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
22465 $as_echo_n "checking whether strnlen is declared... " >&6; }
22466 if test "${ac_cv_have_decl_strnlen+set}" = set; then
22467 $as_echo_n "(cached) " >&6
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 $ac_includes_default
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22494 $as_echo "$ac_try_echo") >&5
22495 (eval "$ac_compile") 2>conftest.er1
22497 grep -v '^ *+' conftest.er1 >conftest.err
22499 cat conftest.err >&5
22500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && {
22502 test -z "$ac_c_werror_flag" ||
22503 test ! -s conftest.err
22504 } && test -s conftest.$ac_objext; then
22505 ac_cv_have_decl_strnlen=yes
22507 $as_echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22510 ac_cv_have_decl_strnlen=no
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
22516 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
22517 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
22519 cat >>confdefs.h <<_ACEOF
22520 #define HAVE_DECL_STRNLEN 1
22525 cat >>confdefs.h <<_ACEOF
22526 #define HAVE_DECL_STRNLEN 0
22548 { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
22549 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
22550 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
22551 $as_echo_n "(cached) " >&6
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22564 static struct timespec x; x.tv_sec = x.tv_nsec;
22569 rm -f conftest.$ac_objext
22570 if { (ac_try="$ac_compile"
22571 case "(($ac_try" in
22572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573 *) ac_try_echo=$ac_try;;
22575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22576 $as_echo "$ac_try_echo") >&5
22577 (eval "$ac_compile") 2>conftest.er1
22579 grep -v '^ *+' conftest.er1 >conftest.err
22581 cat conftest.err >&5
22582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); } && {
22584 test -z "$ac_c_werror_flag" ||
22585 test ! -s conftest.err
22586 } && test -s conftest.$ac_objext; then
22587 gl_cv_sys_struct_timespec_in_time_h=yes
22589 $as_echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 gl_cv_sys_struct_timespec_in_time_h=no
22595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22597 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22598 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22600 TIME_H_DEFINES_STRUCT_TIMESPEC=0
22601 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22602 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22603 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22604 TIME_H_DEFINES_STRUCT_TIMESPEC=1
22606 { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
22607 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22608 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
22609 $as_echo_n "(cached) " >&6
22611 cat >conftest.$ac_ext <<_ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 #include <sys/time.h>
22622 static struct timespec x; x.tv_sec = x.tv_nsec;
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22634 $as_echo "$ac_try_echo") >&5
22635 (eval "$ac_compile") 2>conftest.er1
22637 grep -v '^ *+' conftest.er1 >conftest.err
22639 cat conftest.err >&5
22640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest.$ac_objext; then
22645 gl_cv_sys_struct_timespec_in_sys_time_h=yes
22647 $as_echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22650 gl_cv_sys_struct_timespec_in_sys_time_h=no
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22656 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22657 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22658 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22660 { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
22661 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22662 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
22663 $as_echo_n "(cached) " >&6
22665 cat >conftest.$ac_ext <<_ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 #include <pthread.h>
22676 static struct timespec x; x.tv_sec = x.tv_nsec;
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22688 $as_echo "$ac_try_echo") >&5
22689 (eval "$ac_compile") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest.$ac_objext; then
22699 gl_cv_sys_struct_timespec_in_pthread_h=yes
22701 $as_echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 gl_cv_sys_struct_timespec_in_pthread_h=no
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22710 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22711 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22712 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22734 if test $gl_cv_have_include_next = yes; then
22735 gl_cv_next_time_h='<'time.h'>'
22737 { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
22738 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22739 if test "${gl_cv_next_time_h+set}" = set; then
22740 $as_echo_n "(cached) " >&6
22743 if test $ac_cv_header_time_h = yes; then
22744 cat >conftest.$ac_ext <<_ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h. */
22754 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22755 *) gl_absname_cpp="$ac_cpp" ;;
22757 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22758 sed -n '\#/time.h#{
22759 s#.*"\(.*/time.h\)".*#\1#
22765 gl_cv_next_time_h='<'time.h'>'
22769 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
22770 $as_echo "$gl_cv_next_time_h" >&6; }
22772 NEXT_TIME_H=$gl_cv_next_time_h
22774 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22775 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22776 gl_next_as_first_directive='<'time.h'>'
22778 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22779 gl_next_as_first_directive=$gl_cv_next_time_h
22781 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22797 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
22802 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
22807 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
22814 if test "$HAVE_LIBUNISTRING" = yes; then
22815 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
22816 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
22817 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
22821 { $as_echo "$as_me:$LINENO: checking whether the utimes function works" >&5
22822 $as_echo_n "checking whether the utimes function works... " >&6; }
22823 if test "${gl_cv_func_working_utimes+set}" = set; then
22824 $as_echo_n "(cached) " >&6
22827 if test "$cross_compiling" = yes; then
22828 gl_cv_func_working_utimes=no
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22837 #include <sys/types.h>
22838 #include <sys/stat.h>
22840 #include <sys/time.h>
22842 #include <unistd.h>
22843 #include <stdlib.h>
22850 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22852 char const *file = "conftest.utimes";
22857 int ok = ((f = fopen (file, "w"))
22859 && utimes (file, timeval) == 0
22860 && lstat (file, &sbuf) == 0
22861 && sbuf.st_atime == timeval[0].tv_sec
22862 && sbuf.st_mtime == timeval[1].tv_sec);
22868 ((f = fopen (file, "w"))
22870 && time (&now) != (time_t)-1
22871 && utimes (file, NULL) == 0
22872 && lstat (file, &sbuf) == 0
22873 && now - sbuf.st_atime <= 2
22874 && now - sbuf.st_mtime <= 2);
22879 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
22881 && utimes (file, NULL) == 0);
22888 rm -f conftest$ac_exeext
22889 if { (ac_try="$ac_link"
22890 case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22895 $as_echo "$ac_try_echo") >&5
22896 (eval "$ac_link") 2>&5
22898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22900 { (case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22905 $as_echo "$ac_try_echo") >&5
22906 (eval "$ac_try") 2>&5
22908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 gl_cv_func_working_utimes=yes
22912 $as_echo "$as_me: program exited with status $ac_status" >&5
22913 $as_echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22916 ( exit $ac_status )
22917 gl_cv_func_working_utimes=no
22919 rm -rf conftest.dSYM
22920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22925 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
22926 $as_echo "$gl_cv_func_working_utimes" >&6; }
22928 if test $gl_cv_func_working_utimes = yes; then
22930 cat >>confdefs.h <<\_ACEOF
22931 #define HAVE_WORKING_UTIMES 1
22947 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
22948 $as_echo_n "checking for struct utimbuf... " >&6; }
22949 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
22950 $as_echo_n "(cached) " >&6
22952 cat >conftest.$ac_ext <<_ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 #if HAVE_SYS_TIME_H
22959 #include <sys/time.h>
22962 #ifdef HAVE_UTIME_H
22969 static struct utimbuf x; x.actime = x.modtime;
22974 rm -f conftest.$ac_objext
22975 if { (ac_try="$ac_compile"
22976 case "(($ac_try" in
22977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978 *) ac_try_echo=$ac_try;;
22980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22981 $as_echo "$ac_try_echo") >&5
22982 (eval "$ac_compile") 2>conftest.er1
22984 grep -v '^ *+' conftest.er1 >conftest.err
22986 cat conftest.err >&5
22987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); } && {
22989 test -z "$ac_c_werror_flag" ||
22990 test ! -s conftest.err
22991 } && test -s conftest.$ac_objext; then
22992 gl_cv_sys_struct_utimbuf=yes
22994 $as_echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22997 gl_cv_sys_struct_utimbuf=no
23000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
23003 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
23005 if test $gl_cv_sys_struct_utimbuf = yes; then
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_STRUCT_UTIMBUF 1
23024 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
23025 $as_echo_n "checking for wint_t... " >&6; }
23026 if test "${gt_cv_c_wint_t+set}" = set; then
23027 $as_echo_n "(cached) " >&6
23029 cat >conftest.$ac_ext <<_ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h. */
23036 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23038 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23039 before <wchar.h>. */
23040 #include <stddef.h>
23044 wint_t foo = (wchar_t)'\0';
23053 rm -f conftest.$ac_objext
23054 if { (ac_try="$ac_compile"
23055 case "(($ac_try" in
23056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057 *) ac_try_echo=$ac_try;;
23059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23060 $as_echo "$ac_try_echo") >&5
23061 (eval "$ac_compile") 2>conftest.er1
23063 grep -v '^ *+' conftest.er1 >conftest.err
23065 cat conftest.err >&5
23066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } && {
23068 test -z "$ac_c_werror_flag" ||
23069 test ! -s conftest.err
23070 } && test -s conftest.$ac_objext; then
23073 $as_echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
23082 $as_echo "$gt_cv_c_wint_t" >&6; }
23083 if test $gt_cv_c_wint_t = yes; then
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_WINT_T 1
23092 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
23093 $as_echo_n "checking for inttypes.h... " >&6; }
23094 if test "${gl_cv_header_inttypes_h+set}" = set; then
23095 $as_echo_n "(cached) " >&6
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23104 #include <sys/types.h>
23105 #include <inttypes.h>
23110 uintmax_t i = (uintmax_t) -1; return !i;
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23122 $as_echo "$ac_try_echo") >&5
23123 (eval "$ac_compile") 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } && {
23130 test -z "$ac_c_werror_flag" ||
23131 test ! -s conftest.err
23132 } && test -s conftest.$ac_objext; then
23133 gl_cv_header_inttypes_h=yes
23135 $as_echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23138 gl_cv_header_inttypes_h=no
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
23144 $as_echo "$gl_cv_header_inttypes_h" >&6; }
23145 if test $gl_cv_header_inttypes_h = yes; then
23147 cat >>confdefs.h <<_ACEOF
23148 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
23154 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
23155 $as_echo_n "checking for stdint.h... " >&6; }
23156 if test "${gl_cv_header_stdint_h+set}" = set; then
23157 $as_echo_n "(cached) " >&6
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 #include <sys/types.h>
23166 #include <stdint.h>
23170 uintmax_t i = (uintmax_t) -1; return !i;
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23182 $as_echo "$ac_try_echo") >&5
23183 (eval "$ac_compile") 2>conftest.er1
23185 grep -v '^ *+' conftest.er1 >conftest.err
23187 cat conftest.err >&5
23188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } && {
23190 test -z "$ac_c_werror_flag" ||
23191 test ! -s conftest.err
23192 } && test -s conftest.$ac_objext; then
23193 gl_cv_header_stdint_h=yes
23195 $as_echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 gl_cv_header_stdint_h=no
23201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23203 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
23204 $as_echo "$gl_cv_header_stdint_h" >&6; }
23205 if test $gl_cv_header_stdint_h = yes; then
23207 cat >>confdefs.h <<_ACEOF
23208 #define HAVE_STDINT_H_WITH_UINTMAX 1
23216 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
23217 $as_echo_n "checking for intmax_t... " >&6; }
23218 if test "${gt_cv_c_intmax_t+set}" = set; then
23219 $as_echo_n "(cached) " >&6
23221 cat >conftest.$ac_ext <<_ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23228 #include <stddef.h>
23229 #include <stdlib.h>
23230 #if HAVE_STDINT_H_WITH_UINTMAX
23231 #include <stdint.h>
23233 #if HAVE_INTTYPES_H_WITH_UINTMAX
23234 #include <inttypes.h>
23240 intmax_t x = -1; return !x;
23245 rm -f conftest.$ac_objext
23246 if { (ac_try="$ac_compile"
23247 case "(($ac_try" in
23248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249 *) ac_try_echo=$ac_try;;
23251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23252 $as_echo "$ac_try_echo") >&5
23253 (eval "$ac_compile") 2>conftest.er1
23255 grep -v '^ *+' conftest.er1 >conftest.err
23257 cat conftest.err >&5
23258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } && {
23260 test -z "$ac_c_werror_flag" ||
23261 test ! -s conftest.err
23262 } && test -s conftest.$ac_objext; then
23263 gt_cv_c_intmax_t=yes
23265 $as_echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23268 gt_cv_c_intmax_t=no
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23274 $as_echo "$gt_cv_c_intmax_t" >&6; }
23275 if test $gt_cv_c_intmax_t = yes; then
23277 cat >>confdefs.h <<\_ACEOF
23278 #define HAVE_INTMAX_T 1
23283 test $ac_cv_type_long_long_int = yes \
23284 && ac_type='long long' \
23287 cat >>confdefs.h <<_ACEOF
23288 #define intmax_t $ac_type
23295 { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
23296 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
23297 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
23298 $as_echo_n "(cached) " >&6
23301 if test "$cross_compiling" = yes; then
23304 # Guess yes on glibc systems.
23305 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23306 # Guess yes on FreeBSD >= 5.
23307 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
23308 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23309 # Guess yes on MacOS X >= 10.3.
23310 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
23311 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23312 # Guess yes on OpenBSD >= 3.9.
23313 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
23314 gl_cv_func_snprintf_retval_c99="guessing no";;
23315 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23316 # Guess yes on Solaris >= 2.6.
23317 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
23318 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23319 # Guess yes on AIX >= 4.
23320 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
23321 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23322 # Guess yes on NetBSD >= 3.
23323 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
23324 gl_cv_func_snprintf_retval_c99="guessing no";;
23325 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23326 # Guess yes on BeOS.
23327 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23328 # If we don't know, assume the worst.
23329 *) gl_cv_func_snprintf_retval_c99="guessing no";;
23333 cat >conftest.$ac_ext <<_ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23341 #include <string.h>
23342 static char buf[100];
23345 strcpy (buf, "ABCDEF");
23346 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
23351 rm -f conftest$ac_exeext
23352 if { (ac_try="$ac_link"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358 $as_echo "$ac_try_echo") >&5
23359 (eval "$ac_link") 2>&5
23361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23363 { (case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_try") 2>&5
23371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 gl_cv_func_snprintf_retval_c99=yes
23375 $as_echo "$as_me: program exited with status $ac_status" >&5
23376 $as_echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ( exit $ac_status )
23380 gl_cv_func_snprintf_retval_c99=no
23382 rm -rf conftest.dSYM
23383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23389 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
23390 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
23405 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
23407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23409 $as_echo_n "checking for $ac_func... " >&6; }
23410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23411 $as_echo_n "(cached) " >&6
23413 cat >conftest.$ac_ext <<_ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23421 #define $ac_func innocuous_$ac_func
23423 /* System header to define __stub macros and hopefully few prototypes,
23424 which can conflict with char $ac_func (); below.
23425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23426 <limits.h> exists even on freestanding compilers. */
23429 # include <limits.h>
23431 # include <assert.h>
23436 /* Override any GCC internal prototype to avoid an error.
23437 Use char because int might match the return type of a GCC
23438 builtin and then its argument prototype would still apply. */
23443 /* The GNU C library defines this for functions which it implements
23444 to always fail with ENOSYS. Some functions are actually named
23445 something starting with __ and the normal name is an alias. */
23446 #if defined __stub_$ac_func || defined __stub___$ac_func
23453 return $ac_func ();
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (ac_try="$ac_link"
23460 case "(($ac_try" in
23461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462 *) ac_try_echo=$ac_try;;
23464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23465 $as_echo "$ac_try_echo") >&5
23466 (eval "$ac_link") 2>conftest.er1
23468 grep -v '^ *+' conftest.er1 >conftest.err
23470 cat conftest.err >&5
23471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } && {
23473 test -z "$ac_c_werror_flag" ||
23474 test ! -s conftest.err
23475 } && test -s conftest$ac_exeext && {
23476 test "$cross_compiling" = yes ||
23477 $as_test_x conftest$ac_exeext
23479 eval "$as_ac_var=yes"
23481 $as_echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23484 eval "$as_ac_var=no"
23487 rm -rf conftest.dSYM
23488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23489 conftest$ac_exeext conftest.$ac_ext
23491 ac_res=`eval 'as_val=${'$as_ac_var'}
23492 $as_echo "$as_val"'`
23493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23495 as_val=`eval 'as_val=${'$as_ac_var'}
23496 $as_echo "$as_val"'`
23497 if test "x$as_val" = x""yes; then
23498 cat >>confdefs.h <<_ACEOF
23499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23505 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
23506 $as_echo_n "checking whether _snprintf is declared... " >&6; }
23507 if test "${ac_cv_have_decl__snprintf+set}" = set; then
23508 $as_echo_n "(cached) " >&6
23510 cat >conftest.$ac_ext <<_ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h. */
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23539 grep -v '^ *+' conftest.er1 >conftest.err
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_cv_have_decl__snprintf=yes
23549 $as_echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ac_cv_have_decl__snprintf=no
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
23558 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
23559 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
23561 cat >>confdefs.h <<_ACEOF
23562 #define HAVE_DECL__SNPRINTF 1
23567 cat >>confdefs.h <<_ACEOF
23568 #define HAVE_DECL__SNPRINTF 0
23576 case "$gl_cv_func_snprintf_retval_c99" in
23579 cat >>confdefs.h <<\_ACEOF
23580 #define HAVE_SNPRINTF_RETVAL_C99 1
23586 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
23587 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
23588 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
23589 $as_echo_n "(cached) " >&6
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 $ac_includes_default
23609 rm -f conftest.$ac_objext
23610 if { (ac_try="$ac_compile"
23611 case "(($ac_try" in
23612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613 *) ac_try_echo=$ac_try;;
23615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23616 $as_echo "$ac_try_echo") >&5
23617 (eval "$ac_compile") 2>conftest.er1
23619 grep -v '^ *+' conftest.er1 >conftest.err
23621 cat conftest.err >&5
23622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } && {
23624 test -z "$ac_c_werror_flag" ||
23625 test ! -s conftest.err
23626 } && test -s conftest.$ac_objext; then
23627 ac_cv_have_decl_vsnprintf=yes
23629 $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632 ac_cv_have_decl_vsnprintf=no
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23637 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
23638 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
23639 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
23641 cat >>confdefs.h <<_ACEOF
23642 #define HAVE_DECL_VSNPRINTF 1
23647 cat >>confdefs.h <<_ACEOF
23648 #define HAVE_DECL_VSNPRINTF 0
23661 { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
23662 $as_echo_n "checking whether iswblank is declared... " >&6; }
23663 if test "${ac_cv_have_decl_iswblank+set}" = set; then
23664 $as_echo_n "(cached) " >&6
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 $ac_includes_default
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_cv_have_decl_iswblank=yes
23704 $as_echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_cv_have_decl_iswblank=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
23713 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
23714 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
23716 cat >>confdefs.h <<_ACEOF
23717 #define HAVE_DECL_ISWBLANK 1
23722 cat >>confdefs.h <<_ACEOF
23723 #define HAVE_DECL_ISWBLANK 0
23734 GL_COND_LIBTOOL_TRUE=
23735 GL_COND_LIBTOOL_FALSE='#'
23737 GL_COND_LIBTOOL_TRUE='#'
23738 GL_COND_LIBTOOL_FALSE=
23741 gl_cond_libtool=false
23754 gl_source_base='gnu'
23755 # Code from module alloca:
23756 # Code from module alloca-opt:
23762 if test $ac_cv_func_alloca_works = no; then
23766 # Define an additional variable used in the Makefile substitution.
23767 if test $ac_cv_working_alloca_h = yes; then
23768 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
23769 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23770 if test "${gl_cv_rpl_alloca+set}" = set; then
23771 $as_echo_n "(cached) " >&6
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23781 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23787 $EGREP "Need own alloca" >/dev/null 2>&1; then
23788 gl_cv_rpl_alloca=yes
23790 gl_cv_rpl_alloca=no
23796 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
23797 $as_echo "$gl_cv_rpl_alloca" >&6; }
23798 if test $gl_cv_rpl_alloca = yes; then
23800 cat >>confdefs.h <<\_ACEOF
23801 #define HAVE_ALLOCA 1
23813 # Code from module areadlink:
23814 # Code from module areadlinkat:
23817 cat >>confdefs.h <<_ACEOF
23818 #define GNULIB_AREADLINKAT 1
23822 # Code from module arg-nonnull:
23823 # Code from module argmatch:
23833 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
23836 # Code from module argp:
23845 cat >>confdefs.h <<\_ACEOF
23846 #define __GETOPT_PREFIX rpl_
23851 GNULIB_UNISTD_H_GETOPT=1
23860 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23870 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23880 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
23881 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
23882 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
23883 $as_echo_n "(cached) " >&6
23885 cat >conftest.$ac_ext <<_ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23896 #ifndef program_invocation_name
23897 (void) program_invocation_name;
23904 rm -f conftest.$ac_objext
23905 if { (ac_try="$ac_compile"
23906 case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912 (eval "$ac_compile") 2>conftest.er1
23914 grep -v '^ *+' conftest.er1 >conftest.err
23916 cat conftest.err >&5
23917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } && {
23919 test -z "$ac_c_werror_flag" ||
23920 test ! -s conftest.err
23921 } && test -s conftest.$ac_objext; then
23922 ac_cv_have_decl_program_invocation_name=yes
23924 $as_echo "$as_me: failed program was:" >&5
23925 sed 's/^/| /' conftest.$ac_ext >&5
23927 ac_cv_have_decl_program_invocation_name=no
23930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23932 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
23933 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
23934 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
23936 cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
23942 cat >>confdefs.h <<\_ACEOF
23943 #define GNULIB_PROGRAM_INVOCATION_NAME 1
23948 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
23949 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
23950 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
23951 $as_echo_n "(cached) " >&6
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23964 #ifndef program_invocation_short_name
23965 (void) program_invocation_short_name;
23972 rm -f conftest.$ac_objext
23973 if { (ac_try="$ac_compile"
23974 case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23979 $as_echo "$ac_try_echo") >&5
23980 (eval "$ac_compile") 2>conftest.er1
23982 grep -v '^ *+' conftest.er1 >conftest.err
23984 cat conftest.err >&5
23985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && {
23987 test -z "$ac_c_werror_flag" ||
23988 test ! -s conftest.err
23989 } && test -s conftest.$ac_objext; then
23990 ac_cv_have_decl_program_invocation_short_name=yes
23992 $as_echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ac_cv_have_decl_program_invocation_short_name=no
23998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24000 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
24001 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
24002 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
24004 cat >>confdefs.h <<\_ACEOF
24005 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
24010 cat >>confdefs.h <<\_ACEOF
24011 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
24017 # Check if program_invocation_name and program_invocation_short_name
24018 # are defined elsewhere. It is improbable that only one of them will
24019 # be defined and other not, I prefer to stay on the safe side and to
24020 # test each one separately.
24021 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
24022 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
24023 cat >conftest.$ac_ext <<_ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24033 program_invocation_name = "test";
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (ac_try="$ac_link"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046 (eval "$ac_link") 2>conftest.er1
24048 grep -v '^ *+' conftest.er1 >conftest.err
24050 cat conftest.err >&5
24051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest$ac_exeext && {
24056 test "$cross_compiling" = yes ||
24057 $as_test_x conftest$ac_exeext
24060 cat >>confdefs.h <<\_ACEOF
24061 #define HAVE_PROGRAM_INVOCATION_NAME 1
24064 { $as_echo "$as_me:$LINENO: result: yes" >&5
24065 $as_echo "yes" >&6; }
24067 $as_echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 { $as_echo "$as_me:$LINENO: result: no" >&5
24071 $as_echo "no" >&6; }
24074 rm -rf conftest.dSYM
24075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24076 conftest$ac_exeext conftest.$ac_ext
24078 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
24079 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24090 program_invocation_short_name = "test";
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (ac_try="$ac_link"
24097 case "(($ac_try" in
24098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099 *) ac_try_echo=$ac_try;;
24101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24102 $as_echo "$ac_try_echo") >&5
24103 (eval "$ac_link") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest$ac_exeext && {
24113 test "$cross_compiling" = yes ||
24114 $as_test_x conftest$ac_exeext
24117 cat >>confdefs.h <<\_ACEOF
24118 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
24121 { $as_echo "$as_me:$LINENO: result: yes" >&5
24122 $as_echo "yes" >&6; }
24124 $as_echo "$as_me: failed program was:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24127 { $as_echo "$as_me:$LINENO: result: no" >&5
24128 $as_echo "no" >&6; }
24131 rm -rf conftest.dSYM
24132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24133 conftest$ac_exeext conftest.$ac_ext
24206 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
24210 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
24212 # Code from module argp-version-etc:
24213 # Code from module backupfile:
24223 gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
24236 # Code from module bitrotate:
24238 # Code from module btowc:
24250 if test $ac_cv_func_btowc = no; then
24257 { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
24258 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
24259 if test "${gl_cv_func_btowc_nul+set}" = set; then
24260 $as_echo_n "(cached) " >&6
24263 if test "$cross_compiling" = yes; then
24266 # Guess no on Cygwin.
24267 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
24268 # Guess yes otherwise.
24269 *) gl_cv_func_btowc_nul="guessing yes" ;;
24273 cat >conftest.$ac_ext <<_ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h. */
24281 #include <string.h>
24285 if (btowc ('\0') != 0)
24290 rm -f conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24297 $as_echo "$ac_try_echo") >&5
24298 (eval "$ac_link") 2>&5
24300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24302 { (case "(($ac_try" in
24303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304 *) ac_try_echo=$ac_try;;
24306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24307 $as_echo "$ac_try_echo") >&5
24308 (eval "$ac_try") 2>&5
24310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312 gl_cv_func_btowc_nul=yes
24314 $as_echo "$as_me: program exited with status $ac_status" >&5
24315 $as_echo "$as_me: failed program was:" >&5
24316 sed 's/^/| /' conftest.$ac_ext >&5
24318 ( exit $ac_status )
24319 gl_cv_func_btowc_nul=no
24321 rm -rf conftest.dSYM
24322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24328 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
24329 $as_echo "$gl_cv_func_btowc_nul" >&6; }
24331 { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
24332 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
24333 if test "${gl_cv_func_btowc_eof+set}" = set; then
24334 $as_echo_n "(cached) " >&6
24338 # Guess no on IRIX.
24339 irix*) gl_cv_func_btowc_eof="guessing no" ;;
24340 # Guess yes otherwise.
24341 *) gl_cv_func_btowc_eof="guessing yes" ;;
24343 if test $LOCALE_FR != none; then
24344 if test "$cross_compiling" = yes; then
24347 cat >conftest.$ac_ext <<_ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24354 #include <locale.h>
24356 #include <string.h>
24360 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24362 if (btowc (EOF) != WEOF)
24368 rm -f conftest$ac_exeext
24369 if { (ac_try="$ac_link"
24370 case "(($ac_try" in
24371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24372 *) ac_try_echo=$ac_try;;
24374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24375 $as_echo "$ac_try_echo") >&5
24376 (eval "$ac_link") 2>&5
24378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24380 { (case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24385 $as_echo "$ac_try_echo") >&5
24386 (eval "$ac_try") 2>&5
24388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); }; }; then
24390 gl_cv_func_btowc_eof=yes
24392 $as_echo "$as_me: program exited with status $ac_status" >&5
24393 $as_echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 ( exit $ac_status )
24397 gl_cv_func_btowc_eof=no
24399 rm -rf conftest.dSYM
24400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24407 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
24408 $as_echo "$gl_cv_func_btowc_eof" >&6; }
24410 case "$gl_cv_func_btowc_nul" in
24412 *) REPLACE_BTOWC=1 ;;
24414 case "$gl_cv_func_btowc_eof" in
24416 *) REPLACE_BTOWC=1 ;;
24419 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
24431 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
24445 cat >>confdefs.h <<\_ACEOF
24446 #define GNULIB_TEST_BTOWC 1
24451 # Code from module c++defs:
24452 # Code from module c-ctype:
24453 # Code from module canonicalize-lgpl:
24456 if test $ac_cv_func_canonicalize_file_name = no; then
24457 HAVE_CANONICALIZE_FILE_NAME=0
24466 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
24468 if test $ac_cv_func_realpath = no; then
24470 elif test "$gl_cv_func_realpath_works" != yes; then
24473 elif test "$gl_cv_func_realpath_works" != yes; then
24482 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
24485 REPLACE_CANONICALIZE_FILE_NAME=1
24490 cat >>confdefs.h <<_ACEOF
24491 #define GNULIB_CANONICALIZE_LGPL 1
24498 GNULIB_CANONICALIZE_FILE_NAME=1
24502 cat >>confdefs.h <<\_ACEOF
24503 #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
24515 cat >>confdefs.h <<\_ACEOF
24516 #define GNULIB_TEST_REALPATH 1
24521 # Code from module chdir-long:
24523 { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
24524 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
24525 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
24526 $as_echo_n "(cached) " >&6
24528 cat >conftest.$ac_ext <<_ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h. */
24534 #include <unistd.h>
24535 #include <limits.h>
24536 #if defined PATH_MAX || defined MAXPATHLEN
24537 have_arbitrary_file_name_length_limit
24540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24541 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
24542 gl_cv_have_arbitrary_file_name_length_limit=yes
24544 gl_cv_have_arbitrary_file_name_length_limit=no
24549 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
24550 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
24552 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
24561 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
24569 # Code from module chown:
24578 cat >>confdefs.h <<\_ACEOF
24579 #define GNULIB_TEST_CHOWN 1
24584 # Code from module clock-time:
24588 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
24589 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
24591 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
24592 # programs in the package would end up linked with that potentially-shared
24593 # library, inducing unnecessary run-time overhead.
24596 gl_saved_libs=$LIBS
24597 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
24598 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24599 if test "${ac_cv_search_clock_gettime+set}" = set; then
24600 $as_echo_n "(cached) " >&6
24602 ac_func_search_save_LIBS=$LIBS
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24610 /* Override any GCC internal prototype to avoid an error.
24611 Use char because int might match the return type of a GCC
24612 builtin and then its argument prototype would still apply. */
24616 char clock_gettime ();
24620 return clock_gettime ();
24625 for ac_lib in '' rt posix4; do
24626 if test -z "$ac_lib"; then
24627 ac_res="none required"
24630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24639 $as_echo "$ac_try_echo") >&5
24640 (eval "$ac_link") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext && {
24650 test "$cross_compiling" = yes ||
24651 $as_test_x conftest$ac_exeext
24653 ac_cv_search_clock_gettime=$ac_res
24655 $as_echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24661 rm -rf conftest.dSYM
24662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664 if test "${ac_cv_search_clock_gettime+set}" = set; then
24668 if test "${ac_cv_search_clock_gettime+set}" = set; then
24671 ac_cv_search_clock_gettime=no
24673 rm conftest.$ac_ext
24674 LIBS=$ac_func_search_save_LIBS
24676 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
24677 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24678 ac_res=$ac_cv_search_clock_gettime
24679 if test "$ac_res" != no; then
24680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24681 test "$ac_cv_search_clock_gettime" = "none required" ||
24682 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
24687 for ac_func in clock_gettime clock_settime
24689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24690 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24691 $as_echo_n "checking for $ac_func... " >&6; }
24692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24693 $as_echo_n "(cached) " >&6
24695 cat >conftest.$ac_ext <<_ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24703 #define $ac_func innocuous_$ac_func
24705 /* System header to define __stub macros and hopefully few prototypes,
24706 which can conflict with char $ac_func (); below.
24707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24708 <limits.h> exists even on freestanding compilers. */
24711 # include <limits.h>
24713 # include <assert.h>
24718 /* Override any GCC internal prototype to avoid an error.
24719 Use char because int might match the return type of a GCC
24720 builtin and then its argument prototype would still apply. */
24725 /* The GNU C library defines this for functions which it implements
24726 to always fail with ENOSYS. Some functions are actually named
24727 something starting with __ and the normal name is an alias. */
24728 #if defined __stub_$ac_func || defined __stub___$ac_func
24735 return $ac_func ();
24740 rm -f conftest.$ac_objext conftest$ac_exeext
24741 if { (ac_try="$ac_link"
24742 case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24747 $as_echo "$ac_try_echo") >&5
24748 (eval "$ac_link") 2>conftest.er1
24750 grep -v '^ *+' conftest.er1 >conftest.err
24752 cat conftest.err >&5
24753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest$ac_exeext && {
24758 test "$cross_compiling" = yes ||
24759 $as_test_x conftest$ac_exeext
24761 eval "$as_ac_var=yes"
24763 $as_echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 eval "$as_ac_var=no"
24769 rm -rf conftest.dSYM
24770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24771 conftest$ac_exeext conftest.$ac_ext
24773 ac_res=`eval 'as_val=${'$as_ac_var'}
24774 $as_echo "$as_val"'`
24775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24776 $as_echo "$ac_res" >&6; }
24777 as_val=`eval 'as_val=${'$as_ac_var'}
24778 $as_echo "$as_val"'`
24779 if test "x$as_val" = x""yes; then
24780 cat >>confdefs.h <<_ACEOF
24781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24787 LIBS=$gl_saved_libs
24789 # Code from module cloexec:
24799 gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
24804 cat >>confdefs.h <<\_ACEOF
24805 #define GNULIB_TEST_CLOEXEC 1
24809 # Code from module close:
24820 cat >>confdefs.h <<\_ACEOF
24821 #define GNULIB_TEST_CLOSE 1
24826 # Code from module close-hook:
24827 # Code from module close-stream:
24837 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
24844 cat >>confdefs.h <<_ACEOF
24845 #define GNULIB_CLOSE_STREAM 1
24849 # Code from module closeout:
24859 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
24864 # Code from module configmake:
24865 # Code from module d-ino:
24866 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
24867 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
24868 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
24869 $as_echo_n "(cached) " >&6
24871 if test "$cross_compiling" = yes; then
24872 gl_cv_struct_dirent_d_ino=no
24874 cat >conftest.$ac_ext <<_ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 #include <sys/types.h>
24881 #include <sys/stat.h>
24882 #include <dirent.h>
24887 DIR *dp = opendir (".");
24894 && stat (e->d_name, &st) == 0
24895 && e->d_ino == st.st_ino);
24900 rm -f conftest$ac_exeext
24901 if { (ac_try="$ac_link"
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_link") 2>&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24912 { (case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24917 $as_echo "$ac_try_echo") >&5
24918 (eval "$ac_try") 2>&5
24920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
24922 gl_cv_struct_dirent_d_ino=yes
24924 $as_echo "$as_me: program exited with status $ac_status" >&5
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 ( exit $ac_status )
24929 gl_cv_struct_dirent_d_ino=no
24931 rm -rf conftest.dSYM
24932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24937 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
24938 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
24939 if test $gl_cv_struct_dirent_d_ino = yes; then
24941 cat >>confdefs.h <<\_ACEOF
24942 #define D_INO_IN_DIRENT 1
24948 # Code from module dirent:
24963 if test $gl_cv_have_include_next = yes; then
24964 gl_cv_next_dirent_h='<'dirent.h'>'
24966 { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
24967 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
24968 if test "${gl_cv_next_dirent_h+set}" = set; then
24969 $as_echo_n "(cached) " >&6
24972 if test $ac_cv_header_dirent_h = yes; then
24973 cat >conftest.$ac_ext <<_ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 #include <dirent.h>
24983 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24984 *) gl_absname_cpp="$ac_cpp" ;;
24986 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24987 sed -n '\#/dirent.h#{
24988 s#.*"\(.*/dirent.h\)".*#\1#
24994 gl_cv_next_dirent_h='<'dirent.h'>'
24998 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
24999 $as_echo "$gl_cv_next_dirent_h" >&6; }
25001 NEXT_DIRENT_H=$gl_cv_next_dirent_h
25003 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25004 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25005 gl_next_as_first_directive='<'dirent.h'>'
25007 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25008 gl_next_as_first_directive=$gl_cv_next_dirent_h
25010 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
25020 for gl_func in alphasort dirfd fdopendir scandir; do
25021 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25022 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25023 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25024 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25025 $as_echo_n "(cached) " >&6
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25033 #include <dirent.h>
25044 rm -f conftest.$ac_objext
25045 if { (ac_try="$ac_compile"
25046 case "(($ac_try" in
25047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25048 *) ac_try_echo=$ac_try;;
25050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25051 $as_echo "$ac_try_echo") >&5
25052 (eval "$ac_compile") 2>conftest.er1
25054 grep -v '^ *+' conftest.er1 >conftest.err
25056 cat conftest.err >&5
25057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } && {
25059 test -z "$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 } && test -s conftest.$ac_objext; then
25062 eval "$as_gl_Symbol=yes"
25064 $as_echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25067 eval "$as_gl_Symbol=no"
25070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25072 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25073 $as_echo "$as_val"'`
25074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25075 $as_echo "$ac_res" >&6; }
25076 as_val=`eval 'as_val=${'$as_gl_Symbol'}
25077 $as_echo "$as_val"'`
25078 if test "x$as_val" = x""yes; then
25079 cat >>confdefs.h <<_ACEOF
25080 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25083 eval ac_cv_have_decl_$gl_func=yes
25089 # Code from module dirent-safer:
25105 gl_LIBOBJS="$gl_LIBOBJS opendir-safer.$ac_objext"
25110 cat >>confdefs.h <<_ACEOF
25111 #define GNULIB_DIRENT_SAFER 1
25115 # Code from module dirfd:
25128 for ac_func in dirfd
25130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25132 $as_echo_n "checking for $ac_func... " >&6; }
25133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25134 $as_echo_n "(cached) " >&6
25136 cat >conftest.$ac_ext <<_ACEOF
25139 cat confdefs.h >>conftest.$ac_ext
25140 cat >>conftest.$ac_ext <<_ACEOF
25141 /* end confdefs.h. */
25142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25144 #define $ac_func innocuous_$ac_func
25146 /* System header to define __stub macros and hopefully few prototypes,
25147 which can conflict with char $ac_func (); below.
25148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25149 <limits.h> exists even on freestanding compilers. */
25152 # include <limits.h>
25154 # include <assert.h>
25159 /* Override any GCC internal prototype to avoid an error.
25160 Use char because int might match the return type of a GCC
25161 builtin and then its argument prototype would still apply. */
25166 /* The GNU C library defines this for functions which it implements
25167 to always fail with ENOSYS. Some functions are actually named
25168 something starting with __ and the normal name is an alias. */
25169 #if defined __stub_$ac_func || defined __stub___$ac_func
25176 return $ac_func ();
25181 rm -f conftest.$ac_objext conftest$ac_exeext
25182 if { (ac_try="$ac_link"
25183 case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25188 $as_echo "$ac_try_echo") >&5
25189 (eval "$ac_link") 2>conftest.er1
25191 grep -v '^ *+' conftest.er1 >conftest.err
25193 cat conftest.err >&5
25194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } && {
25196 test -z "$ac_c_werror_flag" ||
25197 test ! -s conftest.err
25198 } && test -s conftest$ac_exeext && {
25199 test "$cross_compiling" = yes ||
25200 $as_test_x conftest$ac_exeext
25202 eval "$as_ac_var=yes"
25204 $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 eval "$as_ac_var=no"
25210 rm -rf conftest.dSYM
25211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25212 conftest$ac_exeext conftest.$ac_ext
25214 ac_res=`eval 'as_val=${'$as_ac_var'}
25215 $as_echo "$as_val"'`
25216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25217 $as_echo "$ac_res" >&6; }
25218 as_val=`eval 'as_val=${'$as_ac_var'}
25219 $as_echo "$as_val"'`
25220 if test "x$as_val" = x""yes; then
25221 cat >>confdefs.h <<_ACEOF
25222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25228 { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
25229 $as_echo_n "checking whether dirfd is declared... " >&6; }
25230 if test "${ac_cv_have_decl_dirfd+set}" = set; then
25231 $as_echo_n "(cached) " >&6
25233 cat >conftest.$ac_ext <<_ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h. */
25239 #include <sys/types.h>
25240 #include <dirent.h>
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257 *) ac_try_echo=$ac_try;;
25259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25260 $as_echo "$ac_try_echo") >&5
25261 (eval "$ac_compile") 2>conftest.er1
25263 grep -v '^ *+' conftest.er1 >conftest.err
25265 cat conftest.err >&5
25266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); } && {
25268 test -z "$ac_c_werror_flag" ||
25269 test ! -s conftest.err
25270 } && test -s conftest.$ac_objext; then
25271 ac_cv_have_decl_dirfd=yes
25273 $as_echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25276 ac_cv_have_decl_dirfd=no
25279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
25282 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
25283 if test "x$ac_cv_have_decl_dirfd" = x""yes; then
25285 cat >>confdefs.h <<_ACEOF
25286 #define HAVE_DECL_DIRFD 1
25291 cat >>confdefs.h <<_ACEOF
25292 #define HAVE_DECL_DIRFD 0
25299 if test $ac_cv_have_decl_dirfd = no; then
25303 { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
25304 $as_echo_n "checking whether dirfd is a macro... " >&6; }
25305 if test "${gl_cv_func_dirfd_macro+set}" = set; then
25306 $as_echo_n "(cached) " >&6
25308 cat >conftest.$ac_ext <<_ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25315 #include <sys/types.h>
25316 #include <dirent.h>
25318 dirent_header_defines_dirfd
25321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25322 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
25323 gl_cv_func_dirfd_macro=yes
25325 gl_cv_func_dirfd_macro=no
25330 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
25331 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
25333 # Use the replacement only if we have no function or macro with that name.
25334 if test $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro = no,no; then
25335 if test $ac_cv_have_decl_dirfd = yes; then
25336 # If the system declares dirfd already, let's declare rpl_dirfd instead.
25347 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
25349 { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
25350 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
25351 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
25352 $as_echo_n "(cached) " >&6
25355 dirfd_save_CFLAGS=$CFLAGS
25356 for ac_expr in d_fd dd_fd; do
25358 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25366 #include <sys/types.h>
25367 #include <dirent.h>
25371 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
25376 rm -f conftest.$ac_objext
25377 if { (ac_try="$ac_compile"
25378 case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383 $as_echo "$ac_try_echo") >&5
25384 (eval "$ac_compile") 2>conftest.er1
25386 grep -v '^ *+' conftest.er1 >conftest.err
25388 cat conftest.err >&5
25389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } && {
25391 test -z "$ac_c_werror_flag" ||
25392 test ! -s conftest.err
25393 } && test -s conftest.$ac_objext; then
25397 $as_echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25404 CFLAGS=$dirfd_save_CFLAGS
25405 test "$dir_fd_found" = yes && break
25407 test "$dir_fd_found" = yes || ac_expr=no_such_member
25409 gl_cv_sys_dir_fd_member_name=$ac_expr
25413 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
25414 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
25415 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
25417 cat >>confdefs.h <<_ACEOF
25418 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
25433 cat >>confdefs.h <<\_ACEOF
25434 #define GNULIB_TEST_DIRFD 1
25439 # Code from module dirname:
25450 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
25460 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
25465 cat >>confdefs.h <<_ACEOF
25466 #define GNULIB_DIRNAME 1
25470 # Code from module dirname-lgpl:
25480 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
25490 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
25500 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
25507 # Code from module double-slash-root:
25510 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
25511 $as_echo_n "checking whether // is distinct from /... " >&6; }
25512 if test "${gl_cv_double_slash_root+set}" = set; then
25513 $as_echo_n "(cached) " >&6
25515 if test x"$cross_compiling" = xyes ; then
25516 # When cross-compiling, there is no way to tell whether // is special
25517 # short of a list of hosts. However, the only known hosts to date
25518 # that have a distinct // are Apollo DomainOS (too old to port to),
25519 # Cygwin, and z/OS. If anyone knows of another system for which // has
25520 # special semantics and is distinct from /, please report it to
25521 # <bug-gnulib@gnu.org>.
25523 *-cygwin | i370-ibm-openedition)
25524 gl_cv_double_slash_root=yes ;;
25526 # Be optimistic and assume that / and // are the same when we
25528 gl_cv_double_slash_root='unknown, assuming no' ;;
25531 set x `ls -di / // 2>/dev/null`
25532 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
25533 gl_cv_double_slash_root=no
25535 gl_cv_double_slash_root=yes
25539 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
25540 $as_echo "$gl_cv_double_slash_root" >&6; }
25541 if test "$gl_cv_double_slash_root" = yes; then
25543 cat >>confdefs.h <<\_ACEOF
25544 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
25549 # Code from module dup2:
25559 if test $ac_cv_func_dup2 = no; then
25569 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
25572 { $as_echo "$as_me:$LINENO: checking whether dup2 works" >&5
25573 $as_echo_n "checking whether dup2 works... " >&6; }
25574 if test "${gl_cv_func_dup2_works+set}" = set; then
25575 $as_echo_n "(cached) " >&6
25577 if test "$cross_compiling" = yes; then
25579 mingw*) # on this platform, dup2 always returns 0 for success
25580 gl_cv_func_dup2_works=no;;
25581 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
25582 gl_cv_func_dup2_works=no;;
25583 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
25584 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
25585 gl_cv_func_dup2_works=no;;
25586 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
25587 gl_cv_func_dup2_works=no;;
25588 *) gl_cv_func_dup2_works=yes;;
25591 cat >conftest.$ac_ext <<_ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25598 #include <unistd.h>
25603 if (dup2 (1, 1) == 0)
25606 if (dup2 (0, 0) != -1)
25608 /* Many gnulib modules require POSIX conformance of EBADF. */
25609 if (dup2 (1, 1000000) == -1 && errno != EBADF)
25618 rm -f conftest$ac_exeext
25619 if { (ac_try="$ac_link"
25620 case "(($ac_try" in
25621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25625 $as_echo "$ac_try_echo") >&5
25626 (eval "$ac_link") 2>&5
25628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25630 { (case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25635 $as_echo "$ac_try_echo") >&5
25636 (eval "$ac_try") 2>&5
25638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; }; then
25640 gl_cv_func_dup2_works=yes
25642 $as_echo "$as_me: program exited with status $ac_status" >&5
25643 $as_echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25646 ( exit $ac_status )
25647 gl_cv_func_dup2_works=no
25649 rm -rf conftest.dSYM
25650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25656 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dup2_works" >&5
25657 $as_echo "$gl_cv_func_dup2_works" >&6; }
25658 if test "$gl_cv_func_dup2_works" = no; then
25661 if test $ac_cv_func_dup2 = yes; then
25672 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
25685 cat >>confdefs.h <<\_ACEOF
25686 #define GNULIB_TEST_DUP2 1
25691 # Code from module environ:
25700 cat >>confdefs.h <<\_ACEOF
25701 #define GNULIB_TEST_ENVIRON 1
25706 # Code from module errno:
25708 # Code from module error:
25723 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
25724 $as_echo_n "checking for error_at_line... " >&6; }
25725 if test "${ac_cv_lib_error_at_line+set}" = set; then
25726 $as_echo_n "(cached) " >&6
25728 cat >conftest.$ac_ext <<_ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h. */
25738 error_at_line (0, 0, "", 0, "an error occurred");
25743 rm -f conftest.$ac_objext conftest$ac_exeext
25744 if { (ac_try="$ac_link"
25745 case "(($ac_try" in
25746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25747 *) ac_try_echo=$ac_try;;
25749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25750 $as_echo "$ac_try_echo") >&5
25751 (eval "$ac_link") 2>conftest.er1
25753 grep -v '^ *+' conftest.er1 >conftest.err
25755 cat conftest.err >&5
25756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } && {
25758 test -z "$ac_c_werror_flag" ||
25759 test ! -s conftest.err
25760 } && test -s conftest$ac_exeext && {
25761 test "$cross_compiling" = yes ||
25762 $as_test_x conftest$ac_exeext
25764 ac_cv_lib_error_at_line=yes
25766 $as_echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ac_cv_lib_error_at_line=no
25772 rm -rf conftest.dSYM
25773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774 conftest$ac_exeext conftest.$ac_ext
25776 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25777 $as_echo "$ac_cv_lib_error_at_line" >&6; }
25778 if test $ac_cv_lib_error_at_line = no; then
25787 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
25799 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
25803 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
25805 # Code from module exclude:
25815 gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
25818 # Code from module exitfail:
25819 # Code from module extensions:
25820 # Code from module fchdir:
25831 if test $ac_cv_func_fchdir = no; then
25841 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
25845 cat >>confdefs.h <<\_ACEOF
25846 #define REPLACE_FCHDIR 1
25863 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
25882 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
25895 gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
25901 if test $ac_cv_func_dup2 = yes; then
25912 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
25923 if test $ac_cv_func_fcntl = no; then
25936 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
25942 { $as_echo "$as_me:$LINENO: checking whether open can visit directories" >&5
25943 $as_echo_n "checking whether open can visit directories... " >&6; }
25944 if test "${gl_cv_func_open_directory_works+set}" = set; then
25945 $as_echo_n "(cached) " >&6
25947 if test "$cross_compiling" = yes; then
25948 gl_cv_func_open_directory_works="guessing no"
25950 cat >conftest.$ac_ext <<_ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h. */
25961 return open(".", O_RDONLY) < 0;
25966 rm -f conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25973 $as_echo "$ac_try_echo") >&5
25974 (eval "$ac_link") 2>&5
25976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25978 { (case "(($ac_try" in
25979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980 *) ac_try_echo=$ac_try;;
25982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25983 $as_echo "$ac_try_echo") >&5
25984 (eval "$ac_try") 2>&5
25986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); }; }; then
25988 gl_cv_func_open_directory_works=yes
25990 $as_echo "$as_me: program exited with status $ac_status" >&5
25991 $as_echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25994 ( exit $ac_status )
25995 gl_cv_func_open_directory_works=no
25997 rm -rf conftest.dSYM
25998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26003 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_directory_works" >&5
26004 $as_echo "$gl_cv_func_open_directory_works" >&6; }
26005 if test "$gl_cv_func_open_directory_works" != yes; then
26007 cat >>confdefs.h <<\_ACEOF
26008 #define REPLACE_OPEN_DIRECTORY 1
26022 cat >>confdefs.h <<\_ACEOF
26023 #define GNULIB_TEST_FCHDIR 1
26028 # Code from module fclose:
26038 cat >>confdefs.h <<\_ACEOF
26039 #define GNULIB_TEST_FCLOSE 1
26044 # Code from module fcntl:
26055 if test $ac_cv_func_fcntl = no; then
26064 if test $ac_cv_func_fcntl = no; then
26077 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26081 { $as_echo "$as_me:$LINENO: checking whether fcntl handles F_DUPFD correctly" >&5
26082 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
26083 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then
26084 $as_echo_n "(cached) " >&6
26086 if test "$cross_compiling" = yes; then
26087 # Guess that it works on glibc systems
26088 case $host_os in #((
26089 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
26090 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
26093 cat >conftest.$ac_ext <<_ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h. */
26105 return fcntl (0, F_DUPFD, -1) != -1;
26111 rm -f conftest$ac_exeext
26112 if { (ac_try="$ac_link"
26113 case "(($ac_try" in
26114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26115 *) ac_try_echo=$ac_try;;
26117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26118 $as_echo "$ac_try_echo") >&5
26119 (eval "$ac_link") 2>&5
26121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26123 { (case "(($ac_try" in
26124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26128 $as_echo "$ac_try_echo") >&5
26129 (eval "$ac_try") 2>&5
26131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); }; }; then
26133 gl_cv_func_fcntl_f_dupfd_works=yes
26135 $as_echo "$as_me: program exited with status $ac_status" >&5
26136 $as_echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26139 ( exit $ac_status )
26140 gl_cv_func_fcntl_f_dupfd_works=no
26142 rm -rf conftest.dSYM
26143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26148 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
26149 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
26150 case $gl_cv_func_fcntl_f_dupfd_works in
26160 if test $ac_cv_func_fcntl = no; then
26173 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26177 cat >>confdefs.h <<\_ACEOF
26178 #define FCNTL_DUPFD_BUGGY 1
26183 { $as_echo "$as_me:$LINENO: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
26184 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
26185 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then
26186 $as_echo_n "(cached) " >&6
26188 cat >conftest.$ac_ext <<_ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26196 #ifndef F_DUPFD_CLOEXEC
26208 rm -f conftest.$ac_objext
26209 if { (ac_try="$ac_compile"
26210 case "(($ac_try" in
26211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212 *) ac_try_echo=$ac_try;;
26214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26215 $as_echo "$ac_try_echo") >&5
26216 (eval "$ac_compile") 2>conftest.er1
26218 grep -v '^ *+' conftest.er1 >conftest.err
26220 cat conftest.err >&5
26221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); } && {
26223 test -z "$ac_c_werror_flag" ||
26224 test ! -s conftest.err
26225 } && test -s conftest.$ac_objext; then
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26234 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
26235 it to support the semantics on older kernels that failed with EINVAL. */
26247 rm -f conftest.$ac_objext
26248 if { (ac_try="$ac_compile"
26249 case "(($ac_try" in
26250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251 *) ac_try_echo=$ac_try;;
26253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26254 $as_echo "$ac_try_echo") >&5
26255 (eval "$ac_compile") 2>conftest.er1
26257 grep -v '^ *+' conftest.er1 >conftest.err
26259 cat conftest.err >&5
26260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); } && {
26262 test -z "$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 } && test -s conftest.$ac_objext; then
26265 gl_cv_func_fcntl_f_dupfd_cloexec=yes
26267 $as_echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26275 $as_echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26278 gl_cv_func_fcntl_f_dupfd_cloexec=no
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
26284 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
26285 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
26294 if test $ac_cv_func_fcntl = no; then
26307 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26320 cat >>confdefs.h <<\_ACEOF
26321 #define GNULIB_TEST_FCNTL 1
26326 # Code from module fcntl-h:
26341 if test $gl_cv_have_include_next = yes; then
26342 gl_cv_next_fcntl_h='<'fcntl.h'>'
26344 { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
26345 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
26346 if test "${gl_cv_next_fcntl_h+set}" = set; then
26347 $as_echo_n "(cached) " >&6
26350 if test $ac_cv_header_fcntl_h = yes; then
26351 cat >conftest.$ac_ext <<_ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h. */
26361 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26362 *) gl_absname_cpp="$ac_cpp" ;;
26364 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26365 sed -n '\#/fcntl.h#{
26366 s#.*"\(.*/fcntl.h\)".*#\1#
26372 gl_cv_next_fcntl_h='<'fcntl.h'>'
26376 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
26377 $as_echo "$gl_cv_next_fcntl_h" >&6; }
26379 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
26381 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26383 gl_next_as_first_directive='<'fcntl.h'>'
26385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26386 gl_next_as_first_directive=$gl_cv_next_fcntl_h
26388 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
26396 for gl_func in fcntl openat; do
26397 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26398 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
26399 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26400 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
26401 $as_echo_n "(cached) " >&6
26403 cat >conftest.$ac_ext <<_ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h. */
26420 rm -f conftest.$ac_objext
26421 if { (ac_try="$ac_compile"
26422 case "(($ac_try" in
26423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424 *) ac_try_echo=$ac_try;;
26426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26427 $as_echo "$ac_try_echo") >&5
26428 (eval "$ac_compile") 2>conftest.er1
26430 grep -v '^ *+' conftest.er1 >conftest.err
26432 cat conftest.err >&5
26433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } && {
26435 test -z "$ac_c_werror_flag" ||
26436 test ! -s conftest.err
26437 } && test -s conftest.$ac_objext; then
26438 eval "$as_gl_Symbol=yes"
26440 $as_echo "$as_me: failed program was:" >&5
26441 sed 's/^/| /' conftest.$ac_ext >&5
26443 eval "$as_gl_Symbol=no"
26446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26448 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
26449 $as_echo "$as_val"'`
26450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26451 $as_echo "$ac_res" >&6; }
26452 as_val=`eval 'as_val=${'$as_gl_Symbol'}
26453 $as_echo "$as_val"'`
26454 if test "x$as_val" = x""yes; then
26455 cat >>confdefs.h <<_ACEOF
26456 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26459 eval ac_cv_have_decl_$gl_func=yes
26465 # Code from module fdopendir:
26468 { $as_echo "$as_me:$LINENO: checking whether fdopendir is declared" >&5
26469 $as_echo_n "checking whether fdopendir is declared... " >&6; }
26470 if test "${ac_cv_have_decl_fdopendir+set}" = set; then
26471 $as_echo_n "(cached) " >&6
26473 cat >conftest.$ac_ext <<_ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h. */
26480 #include <dirent.h>
26494 rm -f conftest.$ac_objext
26495 if { (ac_try="$ac_compile"
26496 case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26501 $as_echo "$ac_try_echo") >&5
26502 (eval "$ac_compile") 2>conftest.er1
26504 grep -v '^ *+' conftest.er1 >conftest.err
26506 cat conftest.err >&5
26507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } && {
26509 test -z "$ac_c_werror_flag" ||
26510 test ! -s conftest.err
26511 } && test -s conftest.$ac_objext; then
26512 ac_cv_have_decl_fdopendir=yes
26514 $as_echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26517 ac_cv_have_decl_fdopendir=no
26520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26522 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdopendir" >&5
26523 $as_echo "$ac_cv_have_decl_fdopendir" >&6; }
26524 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then
26526 cat >>confdefs.h <<_ACEOF
26527 #define HAVE_DECL_FDOPENDIR 1
26532 cat >>confdefs.h <<_ACEOF
26533 #define HAVE_DECL_FDOPENDIR 0
26536 HAVE_DECL_FDOPENDIR=0
26546 if test $ac_cv_func_fdopendir = no; then
26555 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
26565 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
26572 { $as_echo "$as_me:$LINENO: checking whether fdopendir works" >&5
26573 $as_echo_n "checking whether fdopendir works... " >&6; }
26574 if test "${gl_cv_func_fdopendir_works+set}" = set; then
26575 $as_echo_n "(cached) " >&6
26577 if test "$cross_compiling" = yes; then
26578 gl_cv_func_fdopendir_works="guessing no"
26580 cat >conftest.$ac_ext <<_ACEOF
26583 cat confdefs.h >>conftest.$ac_ext
26584 cat >>conftest.$ac_ext <<_ACEOF
26585 /* end confdefs.h. */
26587 #include <dirent.h>
26589 #if !HAVE_DECL_FDOPENDIR
26590 extern DIR *fdopendir (int);
26596 int fd = open ("conftest.c", O_RDONLY);
26597 if (fd < 0) return 2;
26598 return !!fdopendir (fd);
26603 rm -f conftest$ac_exeext
26604 if { (ac_try="$ac_link"
26605 case "(($ac_try" in
26606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26607 *) ac_try_echo=$ac_try;;
26609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26610 $as_echo "$ac_try_echo") >&5
26611 (eval "$ac_link") 2>&5
26613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26615 { (case "(($ac_try" in
26616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617 *) ac_try_echo=$ac_try;;
26619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26620 $as_echo "$ac_try_echo") >&5
26621 (eval "$ac_try") 2>&5
26623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; }; then
26625 gl_cv_func_fdopendir_works=yes
26627 $as_echo "$as_me: program exited with status $ac_status" >&5
26628 $as_echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26631 ( exit $ac_status )
26632 gl_cv_func_fdopendir_works=no
26634 rm -rf conftest.dSYM
26635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26640 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fdopendir_works" >&5
26641 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
26642 if test "$gl_cv_func_fdopendir_works" != yes; then
26643 REPLACE_FDOPENDIR=1
26655 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
26667 cat >>confdefs.h <<\_ACEOF
26668 #define GNULIB_TEST_FDOPENDIR 1
26675 cat >>confdefs.h <<_ACEOF
26676 #define GNULIB_FDOPENDIR 1
26680 # Code from module fdutimensat:
26683 cat >>confdefs.h <<_ACEOF
26684 #define GNULIB_FDUTIMENSAT 1
26688 # Code from module fileblocks:
26690 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
26691 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
26692 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
26693 $as_echo_n "(cached) " >&6
26695 cat >conftest.$ac_ext <<_ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h. */
26701 $ac_includes_default
26705 static struct stat ac_aggr;
26706 if (ac_aggr.st_blocks)
26712 rm -f conftest.$ac_objext
26713 if { (ac_try="$ac_compile"
26714 case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26719 $as_echo "$ac_try_echo") >&5
26720 (eval "$ac_compile") 2>conftest.er1
26722 grep -v '^ *+' conftest.er1 >conftest.err
26724 cat conftest.err >&5
26725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } && {
26727 test -z "$ac_c_werror_flag" ||
26728 test ! -s conftest.err
26729 } && test -s conftest.$ac_objext; then
26730 ac_cv_member_struct_stat_st_blocks=yes
26732 $as_echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26735 cat >conftest.$ac_ext <<_ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26741 $ac_includes_default
26745 static struct stat ac_aggr;
26746 if (sizeof ac_aggr.st_blocks)
26752 rm -f conftest.$ac_objext
26753 if { (ac_try="$ac_compile"
26754 case "(($ac_try" in
26755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756 *) ac_try_echo=$ac_try;;
26758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26759 $as_echo "$ac_try_echo") >&5
26760 (eval "$ac_compile") 2>conftest.er1
26762 grep -v '^ *+' conftest.er1 >conftest.err
26764 cat conftest.err >&5
26765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } && {
26767 test -z "$ac_c_werror_flag" ||
26768 test ! -s conftest.err
26769 } && test -s conftest.$ac_objext; then
26770 ac_cv_member_struct_stat_st_blocks=yes
26772 $as_echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26775 ac_cv_member_struct_stat_st_blocks=no
26778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26783 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
26784 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
26785 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
26787 cat >>confdefs.h <<_ACEOF
26788 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26792 cat >>confdefs.h <<\_ACEOF
26793 #define HAVE_ST_BLOCKS 1
26805 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
26810 if test $ac_cv_member_struct_stat_st_blocks = no; then
26822 # Code from module filenamecat-lgpl:
26832 gl_LIBOBJS="$gl_LIBOBJS filenamecat-lgpl.$ac_objext"
26842 # Code from module float:
26848 beos* | openbsd* | mirbsd*)
26861 if test $gl_cv_have_include_next = yes; then
26862 gl_cv_next_float_h='<'float.h'>'
26864 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
26865 $as_echo_n "checking absolute name of <float.h>... " >&6; }
26866 if test "${gl_cv_next_float_h+set}" = set; then
26867 $as_echo_n "(cached) " >&6
26870 if test $ac_cv_header_float_h = yes; then
26871 cat >conftest.$ac_ext <<_ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26881 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26882 *) gl_absname_cpp="$ac_cpp" ;;
26884 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26885 sed -n '\#/float.h#{
26886 s#.*"\(.*/float.h\)".*#\1#
26892 gl_cv_next_float_h='<'float.h'>'
26896 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
26897 $as_echo "$gl_cv_next_float_h" >&6; }
26899 NEXT_FLOAT_H=$gl_cv_next_float_h
26901 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26903 gl_next_as_first_directive='<'float.h'>'
26905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26906 gl_next_as_first_directive=$gl_cv_next_float_h
26908 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
26916 # Code from module fnmatch:
26923 gl_fnmatch_required_lowercase=`
26924 echo $gl_fnmatch_required | tr '[A-Z]' '[a-z]'
26926 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
26927 { $as_echo "$as_me:$LINENO: checking for working $gl_fnmatch_required fnmatch" >&5
26928 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
26929 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then
26930 $as_echo_n "(cached) " >&6
26932 if test $gl_fnmatch_required = GNU; then
26933 gl_fnmatch_gnu_start=
26934 gl_fnmatch_gnu_end=
26936 gl_fnmatch_gnu_start='#if 0'
26937 gl_fnmatch_gnu_end='#endif'
26939 if test "$cross_compiling" = yes; then
26940 eval "$gl_fnmatch_cache_var=\"guessing no\""
26942 cat >conftest.$ac_ext <<_ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h. */
26948 #include <fnmatch.h>
26950 y (char const *pattern, char const *string, int flags)
26952 return fnmatch (pattern, string, flags) == 0;
26955 n (char const *pattern, char const *string, int flags)
26957 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
26963 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
26964 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
26965 static char const A_1[] = { 'A' - 1, 0 };
26966 static char const A01[] = { 'A' + 1, 0 };
26967 static char const a_1[] = { 'a' - 1, 0 };
26968 static char const a01[] = { 'a' + 1, 0 };
26969 static char const bs_1[] = { '\\\\' - 1, 0 };
26970 static char const bs01[] = { '\\\\' + 1, 0 };
26973 && y ("a*", "abc", 0)
26974 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
26975 && y ("a\\\\bc", "abc", 0)
26976 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
26977 && y ("*x", ".x", 0)
26978 && n ("*x", ".x", FNM_PERIOD)
26979 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
26980 && y (apat, "\\\\", 0) && y (apat, "a", 0)
26981 && n (Apat, A_1, 0) == ('A' < '\\\\')
26982 && n (apat, a_1, 0) == ('a' < '\\\\')
26983 && y (Apat, A01, 0) == ('A' < '\\\\')
26984 && y (apat, a01, 0) == ('a' < '\\\\')
26985 && y (Apat, bs_1, 0) == ('A' < '\\\\')
26986 && y (apat, bs_1, 0) == ('a' < '\\\\')
26987 && n (Apat, bs01, 0) == ('A' < '\\\\')
26988 && n (apat, bs01, 0) == ('a' < '\\\\')
26989 $gl_fnmatch_gnu_start
26990 && y ("xxXX", "xXxX", FNM_CASEFOLD)
26991 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
26992 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
26993 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
26994 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
26995 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
26996 $gl_fnmatch_gnu_end
27003 rm -f conftest$ac_exeext
27004 if { (ac_try="$ac_link"
27005 case "(($ac_try" in
27006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007 *) ac_try_echo=$ac_try;;
27009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27010 $as_echo "$ac_try_echo") >&5
27011 (eval "$ac_link") 2>&5
27013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27015 { (case "(($ac_try" in
27016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017 *) ac_try_echo=$ac_try;;
27019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27020 $as_echo "$ac_try_echo") >&5
27021 (eval "$ac_try") 2>&5
27023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
27025 eval "$gl_fnmatch_cache_var=yes"
27027 $as_echo "$as_me: program exited with status $ac_status" >&5
27028 $as_echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27031 ( exit $ac_status )
27032 eval "$gl_fnmatch_cache_var=no"
27034 rm -rf conftest.dSYM
27035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27041 ac_res=`eval 'as_val=${'$gl_fnmatch_cache_var'}
27042 $as_echo "$as_val"'`
27043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27044 $as_echo "$ac_res" >&6; }
27045 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
27046 if test "$gl_fnmatch_result" = yes; then
27047 rm -f "$gl_source_base/fnmatch.h"
27049 FNMATCH_H=fnmatch.h
27058 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
27061 cat >>confdefs.h <<_ACEOF
27062 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
27066 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
27067 $as_echo_n "checking whether isblank is declared... " >&6; }
27068 if test "${ac_cv_have_decl_isblank+set}" = set; then
27069 $as_echo_n "(cached) " >&6
27071 cat >conftest.$ac_ext <<_ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h. */
27090 rm -f conftest.$ac_objext
27091 if { (ac_try="$ac_compile"
27092 case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27097 $as_echo "$ac_try_echo") >&5
27098 (eval "$ac_compile") 2>conftest.er1
27100 grep -v '^ *+' conftest.er1 >conftest.err
27102 cat conftest.err >&5
27103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } && {
27105 test -z "$ac_c_werror_flag" ||
27106 test ! -s conftest.err
27107 } && test -s conftest.$ac_objext; then
27108 ac_cv_have_decl_isblank=yes
27110 $as_echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27113 ac_cv_have_decl_isblank=no
27116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27118 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
27119 $as_echo "$ac_cv_have_decl_isblank" >&6; }
27120 if test "x$ac_cv_have_decl_isblank" = x""yes; then
27122 cat >>confdefs.h <<_ACEOF
27123 #define HAVE_DECL_ISBLANK 1
27128 cat >>confdefs.h <<_ACEOF
27129 #define HAVE_DECL_ISBLANK 0
27165 # Code from module fnmatch-gnu:
27171 # Code from module fpending:
27186 # include <stdio.h>
27187 # if HAVE_STDIO_EXT_H
27188 # include <stdio_ext.h>
27191 { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
27192 $as_echo_n "checking whether __fpending is declared... " >&6; }
27193 if test "${ac_cv_have_decl___fpending+set}" = set; then
27194 $as_echo_n "(cached) " >&6
27196 cat >conftest.$ac_ext <<_ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27215 rm -f conftest.$ac_objext
27216 if { (ac_try="$ac_compile"
27217 case "(($ac_try" in
27218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27219 *) ac_try_echo=$ac_try;;
27221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27222 $as_echo "$ac_try_echo") >&5
27223 (eval "$ac_compile") 2>conftest.er1
27225 grep -v '^ *+' conftest.er1 >conftest.err
27227 cat conftest.err >&5
27228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); } && {
27230 test -z "$ac_c_werror_flag" ||
27231 test ! -s conftest.err
27232 } && test -s conftest.$ac_objext; then
27233 ac_cv_have_decl___fpending=yes
27235 $as_echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27238 ac_cv_have_decl___fpending=no
27241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27243 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
27244 $as_echo "$ac_cv_have_decl___fpending" >&6; }
27245 if test "x$ac_cv_have_decl___fpending" = x""yes; then
27247 cat >>confdefs.h <<_ACEOF
27248 #define HAVE_DECL___FPENDING 1
27253 cat >>confdefs.h <<_ACEOF
27254 #define HAVE_DECL___FPENDING 0
27261 if test $ac_cv_func___fpending = no; then
27262 { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
27263 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
27264 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
27265 $as_echo_n "(cached) " >&6
27271 'fp->_IO_write_ptr - fp->_IO_write_base' \
27273 '# traditional Unix' \
27274 'fp->_ptr - fp->_base' \
27277 'fp->_p - fp->_bf._base' \
27279 '# SCO, Unixware' \
27280 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
27283 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
27286 'fp->__bufp - fp->__buffer' \
27288 '# old glibc iostream?' \
27289 'fp->_pptr - fp->_pbase' \
27292 'fp->_ptr - fp->_buffer' \
27295 '(*fp)->_ptr - (*fp)->_base' \
27297 '# e.g., DGUX R4.11; the info is not available' \
27301 # Skip each embedded comment.
27302 case "$ac_expr" in '#'*) continue;; esac
27304 cat >conftest.$ac_ext <<_ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27314 FILE *fp = stdin; (void) ($ac_expr);
27319 rm -f conftest.$ac_objext
27320 if { (ac_try="$ac_compile"
27321 case "(($ac_try" in
27322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323 *) ac_try_echo=$ac_try;;
27325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27326 $as_echo "$ac_try_echo") >&5
27327 (eval "$ac_compile") 2>conftest.er1
27329 grep -v '^ *+' conftest.er1 >conftest.err
27331 cat conftest.err >&5
27332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } && {
27334 test -z "$ac_c_werror_flag" ||
27335 test ! -s conftest.err
27336 } && test -s conftest.$ac_objext; then
27340 $as_echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347 test "$fp_done" = yes && break
27350 ac_cv_sys_pending_output_n_bytes=$ac_expr
27354 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
27355 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
27357 cat >>confdefs.h <<_ACEOF
27358 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
27369 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
27373 # Code from module fseeko:
27379 if test $gl_cv_func_fseeko = no; then
27384 if test $gl_cv_func_fseeko = yes; then
27395 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
27400 if test $gl_cv_var_stdin_large_offset = no; then
27404 if test $gl_cv_func_fseeko = yes; then
27415 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
27429 cat >>confdefs.h <<\_ACEOF
27430 #define GNULIB_TEST_FSEEKO 1
27435 # Code from module full-write:
27436 # Code from module futimens:
27446 if test $ac_cv_func_futimens = no; then
27456 gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
27459 { $as_echo "$as_me:$LINENO: checking whether futimens works" >&5
27460 $as_echo_n "checking whether futimens works... " >&6; }
27461 if test "${gl_cv_func_futimens_works+set}" = set; then
27462 $as_echo_n "(cached) " >&6
27464 if test "$cross_compiling" = yes; then
27465 gl_cv_func_futimens_works="guessing no"
27467 cat >conftest.$ac_ext <<_ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h. */
27475 #include <sys/stat.h>
27476 #include <unistd.h>
27482 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
27483 int fd = creat ("conftest.file", 0600);
27485 if (fd < 0) return 1;
27487 if (futimens (AT_FDCWD, NULL) == 0) return 2;
27488 if (errno != EBADF) return 3;
27489 if (futimens (fd, ts)) return 4;
27491 ts[0].tv_nsec = UTIME_NOW;
27492 ts[1].tv_nsec = UTIME_OMIT;
27493 if (futimens (fd, ts)) return 5;
27494 if (fstat (fd, &st)) return 6;
27495 if (st.st_ctime < st.st_atime) return 7;
27501 rm -f conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27508 $as_echo "$ac_try_echo") >&5
27509 (eval "$ac_link") 2>&5
27511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27513 { (case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27518 $as_echo "$ac_try_echo") >&5
27519 (eval "$ac_try") 2>&5
27521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; }; then
27523 cat >conftest.$ac_ext <<_ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27531 /* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
27532 in several file systems as recently as 2.6.32. Always replace futimens
27533 to support older kernels. */
27545 rm -f conftest.$ac_objext
27546 if { (ac_try="$ac_compile"
27547 case "(($ac_try" in
27548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549 *) ac_try_echo=$ac_try;;
27551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27552 $as_echo "$ac_try_echo") >&5
27553 (eval "$ac_compile") 2>conftest.er1
27555 grep -v '^ *+' conftest.er1 >conftest.err
27557 cat conftest.err >&5
27558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } && {
27560 test -z "$ac_c_werror_flag" ||
27561 test ! -s conftest.err
27562 } && test -s conftest.$ac_objext; then
27563 gl_cv_func_futimens_works=yes
27565 $as_echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27568 gl_cv_func_futimens_works="needs runtime check"
27571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27573 $as_echo "$as_me: program exited with status $ac_status" >&5
27574 $as_echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27577 ( exit $ac_status )
27578 gl_cv_func_futimens_works=no
27580 rm -rf conftest.dSYM
27581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27585 rm -f conftest.file
27587 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimens_works" >&5
27588 $as_echo "$gl_cv_func_futimens_works" >&6; }
27589 if test "$gl_cv_func_futimens_works" != yes; then
27599 gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
27611 cat >>confdefs.h <<\_ACEOF
27612 #define GNULIB_TEST_FUTIMENS 1
27617 # Code from module getcwd:
27623 case $gl_cv_func_getcwd_null,$host_os in
27625 gl_cv_func_getcwd_path_max=yes;;
27633 { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
27634 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
27635 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
27636 $as_echo_n "(cached) " >&6
27638 # Arrange for deletion of the temporary directory this test creates.
27639 ac_clean_files="$ac_clean_files confdir3"
27640 if test "$cross_compiling" = yes; then
27641 gl_cv_func_getcwd_path_max=no
27643 cat >conftest.$ac_ext <<_ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h. */
27651 #include <stdlib.h>
27652 #include <unistd.h>
27653 #include <string.h>
27654 #include <limits.h>
27655 #include <sys/stat.h>
27656 #include <sys/types.h>
27660 # define AT_FDCWD 0
27662 #ifdef ENAMETOOLONG
27663 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
27665 # define is_ENAMETOOLONG(x) 0
27668 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
27672 # define S_IRWXU 0700
27675 /* The length of this name must be 8. */
27676 #define DIR_NAME "confdir3"
27677 #define DIR_NAME_LEN 8
27678 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
27680 /* The length of "../". */
27681 #define DOTDOTSLASH_LEN 3
27683 /* Leftover bytes in the buffer, to work around library or OS bugs. */
27684 #define BUF_SLOP 20
27690 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
27691 at least not on a local file system. And if we were to start worrying
27692 about remote file systems, we'd have to enable the wrapper function
27693 all of the time, just to be safe. That's not worth the cost. */
27695 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
27696 - DIR_NAME_SIZE - BUF_SLOP) \
27698 /* FIXME: Assuming there's a system for which this is true,
27699 this should be done in a compile test. */
27702 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
27703 + DIR_NAME_SIZE + BUF_SLOP];
27704 char *cwd = getcwd (buf, PATH_MAX);
27705 size_t initial_cwd_len;
27708 size_t n_chdirs = 0;
27713 cwd_len = initial_cwd_len = strlen (cwd);
27717 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
27720 cwd_len += DIR_NAME_SIZE;
27721 /* If mkdir or chdir fails, it could be that this system cannot create
27722 any file with an absolute name longer than PATH_MAX, such as cygwin.
27723 If so, leave fail as 0, because the current working directory can't
27724 be too long for getcwd if it can't even be created. For other
27725 errors, be pessimistic and consider that as a failure, too. */
27726 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
27728 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
27733 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
27735 c = getcwd (buf, PATH_MAX);
27736 if (!c && errno == ENOENT)
27741 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
27748 if (dotdot_max <= cwd_len - initial_cwd_len)
27750 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
27752 c = getcwd (buf, cwd_len + 1);
27755 if (! (errno == ERANGE || errno == ENOENT
27756 || is_ENAMETOOLONG (errno)))
27761 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
27769 if (c && strlen (c) != cwd_len)
27777 /* Leaving behind such a deep directory is not polite.
27778 So clean up here, right away, even though the driving
27779 shell script would also clean up. */
27783 /* Try rmdir first, in case the chdir failed. */
27785 for (i = 0; i <= n_chdirs; i++)
27787 if (chdir ("..") < 0)
27789 if (rmdir (DIR_NAME) != 0)
27799 rm -f conftest$ac_exeext
27800 if { (ac_try="$ac_link"
27801 case "(($ac_try" in
27802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803 *) ac_try_echo=$ac_try;;
27805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27806 $as_echo "$ac_try_echo") >&5
27807 (eval "$ac_link") 2>&5
27809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27811 { (case "(($ac_try" in
27812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27813 *) ac_try_echo=$ac_try;;
27815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27816 $as_echo "$ac_try_echo") >&5
27817 (eval "$ac_try") 2>&5
27819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; }; then
27821 gl_cv_func_getcwd_path_max=yes
27823 $as_echo "$as_me: program exited with status $ac_status" >&5
27824 $as_echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 ( exit $ac_status )
27829 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
27830 *) gl_cv_func_getcwd_path_max=no;;
27833 rm -rf conftest.dSYM
27834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27840 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
27841 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
27842 case $gl_cv_func_getcwd_path_max in
27845 cat >>confdefs.h <<\_ACEOF
27846 #define HAVE_PARTLY_WORKING_GETCWD 1
27857 for ac_func in getpagesize
27859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27861 $as_echo_n "checking for $ac_func... " >&6; }
27862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27863 $as_echo_n "(cached) " >&6
27865 cat >conftest.$ac_ext <<_ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h. */
27871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27873 #define $ac_func innocuous_$ac_func
27875 /* System header to define __stub macros and hopefully few prototypes,
27876 which can conflict with char $ac_func (); below.
27877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27878 <limits.h> exists even on freestanding compilers. */
27881 # include <limits.h>
27883 # include <assert.h>
27888 /* Override any GCC internal prototype to avoid an error.
27889 Use char because int might match the return type of a GCC
27890 builtin and then its argument prototype would still apply. */
27895 /* The GNU C library defines this for functions which it implements
27896 to always fail with ENOSYS. Some functions are actually named
27897 something starting with __ and the normal name is an alias. */
27898 #if defined __stub_$ac_func || defined __stub___$ac_func
27905 return $ac_func ();
27910 rm -f conftest.$ac_objext conftest$ac_exeext
27911 if { (ac_try="$ac_link"
27912 case "(($ac_try" in
27913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27917 $as_echo "$ac_try_echo") >&5
27918 (eval "$ac_link") 2>conftest.er1
27920 grep -v '^ *+' conftest.er1 >conftest.err
27922 cat conftest.err >&5
27923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } && {
27925 test -z "$ac_c_werror_flag" ||
27926 test ! -s conftest.err
27927 } && test -s conftest$ac_exeext && {
27928 test "$cross_compiling" = yes ||
27929 $as_test_x conftest$ac_exeext
27931 eval "$as_ac_var=yes"
27933 $as_echo "$as_me: failed program was:" >&5
27934 sed 's/^/| /' conftest.$ac_ext >&5
27936 eval "$as_ac_var=no"
27939 rm -rf conftest.dSYM
27940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27941 conftest$ac_exeext conftest.$ac_ext
27943 ac_res=`eval 'as_val=${'$as_ac_var'}
27944 $as_echo "$as_val"'`
27945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27946 $as_echo "$ac_res" >&6; }
27947 as_val=`eval 'as_val=${'$as_ac_var'}
27948 $as_echo "$as_val"'`
27949 if test "x$as_val" = x""yes; then
27950 cat >>confdefs.h <<_ACEOF
27951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27957 { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
27958 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
27959 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
27960 $as_echo_n "(cached) " >&6
27962 # Remove any remnants of a previous test.
27963 rm -rf confdir-14B---
27964 # Arrange for deletion of the temporary directory this test creates.
27965 ac_clean_files="$ac_clean_files confdir-14B---"
27966 if test "$cross_compiling" = yes; then
27967 gl_cv_func_getcwd_abort_bug=yes
27969 cat >conftest.$ac_ext <<_ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27976 #include <stdlib.h>
27977 #include <unistd.h>
27978 #include <limits.h>
27979 #include <string.h>
27980 #include <sys/stat.h>
27982 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
27986 # define S_IRWXU 0700
27989 /* FIXME: skip the run-test altogether on systems without getpagesize. */
27990 #if ! HAVE_GETPAGESIZE
27991 # define getpagesize() 0
27994 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
27995 the 16kB pagesize on ia64 linux. Those conditions make the code below
27996 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
27997 #define TARGET_LEN (5 * 1024)
28002 char const *dir_name = "confdir-14B---";
28004 size_t initial_cwd_len;
28006 size_t desired_depth;
28009 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
28010 this relative expensive and invasive test if that's not true. */
28011 if (getpagesize () <= PATH_MAX)
28014 cwd = getcwd (NULL, 0);
28018 initial_cwd_len = strlen (cwd);
28020 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
28021 / (1 + strlen (dir_name)));
28022 for (d = 0; d < desired_depth; d++)
28024 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
28026 fail = 3; /* Unable to construct deep hierarchy. */
28031 /* If libc has the bug in question, this invocation of getcwd
28032 results in a failed assertion. */
28033 cwd = getcwd (NULL, 0);
28035 fail = 4; /* getcwd failed. This is ok, and expected. */
28038 /* Call rmdir first, in case the above chdir failed. */
28042 if (chdir ("..") < 0)
28051 rm -f conftest$ac_exeext
28052 if { (ac_try="$ac_link"
28053 case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28058 $as_echo "$ac_try_echo") >&5
28059 (eval "$ac_link") 2>&5
28061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28063 { (case "(($ac_try" in
28064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 *) ac_try_echo=$ac_try;;
28067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068 $as_echo "$ac_try_echo") >&5
28069 (eval "$ac_try") 2>&5
28071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; }; then
28073 gl_cv_func_getcwd_abort_bug=no
28075 $as_echo "$as_me: program exited with status $ac_status" >&5
28076 $as_echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28079 ( exit $ac_status )
28080 gl_cv_func_getcwd_abort_bug=yes
28082 rm -rf conftest.dSYM
28083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28089 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
28090 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
28091 if test $gl_cv_func_getcwd_abort_bug = yes; then
28098 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
28110 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
28126 cat >>confdefs.h <<\_ACEOF
28127 #define GNULIB_TEST_GETCWD 1
28132 # Code from module getdelim:
28149 if test $ac_cv_func_getdelim = yes; then
28150 { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
28151 $as_echo_n "checking for working getdelim function... " >&6; }
28152 if test "${gl_cv_func_working_getdelim+set}" = set; then
28153 $as_echo_n "(cached) " >&6
28155 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
28156 if test "$cross_compiling" = yes; then
28157 cat >conftest.$ac_ext <<_ACEOF
28160 cat confdefs.h >>conftest.$ac_ext
28161 cat >>conftest.$ac_ext <<_ACEOF
28162 /* end confdefs.h. */
28164 #include <features.h>
28165 #ifdef __GNU_LIBRARY__
28166 #if (__GLIBC__ >= 2)
28172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28173 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28174 gl_cv_func_working_getdelim=yes
28176 gl_cv_func_working_getdelim=no
28182 cat >conftest.$ac_ext <<_ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h. */
28189 # include <stdio.h>
28190 # include <stdlib.h>
28191 # include <string.h>
28194 FILE *in = fopen ("./conftest.data", "r");
28198 /* Test result for a NULL buffer and a zero size.
28199 Based on a test program from Karl Heuer. */
28202 int len = getdelim (&line, &siz, '\n', in);
28203 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
28207 /* Test result for a NULL buffer and a non-zero size.
28208 This crashes on FreeBSD 8.0. */
28210 size_t siz = (size_t)(~0) / 4;
28211 if (getdelim (&line, &siz, '\n', in) == -1)
28218 rm -f conftest$ac_exeext
28219 if { (ac_try="$ac_link"
28220 case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28225 $as_echo "$ac_try_echo") >&5
28226 (eval "$ac_link") 2>&5
28228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28230 { (case "(($ac_try" in
28231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232 *) ac_try_echo=$ac_try;;
28234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28235 $as_echo "$ac_try_echo") >&5
28236 (eval "$ac_try") 2>&5
28238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; }; then
28240 gl_cv_func_working_getdelim=yes
28242 $as_echo "$as_me: program exited with status $ac_status" >&5
28243 $as_echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28246 ( exit $ac_status )
28247 gl_cv_func_working_getdelim=no
28249 rm -rf conftest.dSYM
28250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28255 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
28256 $as_echo "$gl_cv_func_working_getdelim" >&6; }
28258 gl_cv_func_working_getdelim=no
28261 if test $ac_cv_have_decl_getdelim = no; then
28262 HAVE_DECL_GETDELIM=0
28265 if test $gl_cv_func_working_getdelim = no; then
28266 if test $ac_cv_func_getdelim = yes; then
28277 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
28282 for ac_func in flockfile funlockfile
28284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28285 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28286 $as_echo_n "checking for $ac_func... " >&6; }
28287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28288 $as_echo_n "(cached) " >&6
28290 cat >conftest.$ac_ext <<_ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h. */
28296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28298 #define $ac_func innocuous_$ac_func
28300 /* System header to define __stub macros and hopefully few prototypes,
28301 which can conflict with char $ac_func (); below.
28302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28303 <limits.h> exists even on freestanding compilers. */
28306 # include <limits.h>
28308 # include <assert.h>
28313 /* Override any GCC internal prototype to avoid an error.
28314 Use char because int might match the return type of a GCC
28315 builtin and then its argument prototype would still apply. */
28320 /* The GNU C library defines this for functions which it implements
28321 to always fail with ENOSYS. Some functions are actually named
28322 something starting with __ and the normal name is an alias. */
28323 #if defined __stub_$ac_func || defined __stub___$ac_func
28330 return $ac_func ();
28335 rm -f conftest.$ac_objext conftest$ac_exeext
28336 if { (ac_try="$ac_link"
28337 case "(($ac_try" in
28338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339 *) ac_try_echo=$ac_try;;
28341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28342 $as_echo "$ac_try_echo") >&5
28343 (eval "$ac_link") 2>conftest.er1
28345 grep -v '^ *+' conftest.er1 >conftest.err
28347 cat conftest.err >&5
28348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } && {
28350 test -z "$ac_c_werror_flag" ||
28351 test ! -s conftest.err
28352 } && test -s conftest$ac_exeext && {
28353 test "$cross_compiling" = yes ||
28354 $as_test_x conftest$ac_exeext
28356 eval "$as_ac_var=yes"
28358 $as_echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28361 eval "$as_ac_var=no"
28364 rm -rf conftest.dSYM
28365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28366 conftest$ac_exeext conftest.$ac_ext
28368 ac_res=`eval 'as_val=${'$as_ac_var'}
28369 $as_echo "$as_val"'`
28370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28371 $as_echo "$ac_res" >&6; }
28372 as_val=`eval 'as_val=${'$as_ac_var'}
28373 $as_echo "$as_val"'`
28374 if test "x$as_val" = x""yes; then
28375 cat >>confdefs.h <<_ACEOF
28376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28382 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28383 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
28384 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28385 $as_echo_n "(cached) " >&6
28387 cat >conftest.$ac_ext <<_ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h. */
28393 $ac_includes_default
28397 #ifndef getc_unlocked
28398 (void) getc_unlocked;
28405 rm -f conftest.$ac_objext
28406 if { (ac_try="$ac_compile"
28407 case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28412 $as_echo "$ac_try_echo") >&5
28413 (eval "$ac_compile") 2>conftest.er1
28415 grep -v '^ *+' conftest.er1 >conftest.err
28417 cat conftest.err >&5
28418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && {
28420 test -z "$ac_c_werror_flag" ||
28421 test ! -s conftest.err
28422 } && test -s conftest.$ac_objext; then
28423 ac_cv_have_decl_getc_unlocked=yes
28425 $as_echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 ac_cv_have_decl_getc_unlocked=no
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28434 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
28435 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
28437 cat >>confdefs.h <<_ACEOF
28438 #define HAVE_DECL_GETC_UNLOCKED 1
28443 cat >>confdefs.h <<_ACEOF
28444 #define HAVE_DECL_GETC_UNLOCKED 0
28461 cat >>confdefs.h <<\_ACEOF
28462 #define GNULIB_TEST_GETDELIM 1
28467 # Code from module getdtablesize:
28476 if test $ac_cv_func_getdtablesize != yes; then
28477 HAVE_GETDTABLESIZE=0
28486 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28493 GNULIB_GETDTABLESIZE=1
28497 cat >>confdefs.h <<\_ACEOF
28498 #define GNULIB_TEST_GETDTABLESIZE 1
28503 # Code from module getline:
28514 gl_getline_needs_run_time_check=no
28515 { $as_echo "$as_me:$LINENO: checking for getline" >&5
28516 $as_echo_n "checking for getline... " >&6; }
28517 if test "${ac_cv_func_getline+set}" = set; then
28518 $as_echo_n "(cached) " >&6
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
28527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28528 #define getline innocuous_getline
28530 /* System header to define __stub macros and hopefully few prototypes,
28531 which can conflict with char getline (); below.
28532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533 <limits.h> exists even on freestanding compilers. */
28536 # include <limits.h>
28538 # include <assert.h>
28543 /* Override any GCC internal prototype to avoid an error.
28544 Use char because int might match the return type of a GCC
28545 builtin and then its argument prototype would still apply. */
28550 /* The GNU C library defines this for functions which it implements
28551 to always fail with ENOSYS. Some functions are actually named
28552 something starting with __ and the normal name is an alias. */
28553 #if defined __stub_getline || defined __stub___getline
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (ac_try="$ac_link"
28567 case "(($ac_try" in
28568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569 *) ac_try_echo=$ac_try;;
28571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28572 $as_echo "$ac_try_echo") >&5
28573 (eval "$ac_link") 2>conftest.er1
28575 grep -v '^ *+' conftest.er1 >conftest.err
28577 cat conftest.err >&5
28578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); } && {
28580 test -z "$ac_c_werror_flag" ||
28581 test ! -s conftest.err
28582 } && test -s conftest$ac_exeext && {
28583 test "$cross_compiling" = yes ||
28584 $as_test_x conftest$ac_exeext
28586 ac_cv_func_getline=yes
28588 $as_echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28591 ac_cv_func_getline=no
28594 rm -rf conftest.dSYM
28595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28596 conftest$ac_exeext conftest.$ac_ext
28598 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
28599 $as_echo "$ac_cv_func_getline" >&6; }
28600 if test "x$ac_cv_func_getline" = x""yes; then
28601 gl_getline_needs_run_time_check=yes
28603 am_cv_func_working_getline=no
28606 if test $gl_getline_needs_run_time_check = yes; then
28607 { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
28608 $as_echo_n "checking for working getline function... " >&6; }
28609 if test "${am_cv_func_working_getline+set}" = set; then
28610 $as_echo_n "(cached) " >&6
28612 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
28613 if test "$cross_compiling" = yes; then
28614 cat >conftest.$ac_ext <<_ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h. */
28621 #include <features.h>
28622 #ifdef __GNU_LIBRARY__
28623 #if (__GLIBC__ >= 2)
28629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28630 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28631 am_cv_func_working_getline=yes
28633 am_cv_func_working_getline=no
28639 cat >conftest.$ac_ext <<_ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h. */
28646 # include <stdio.h>
28647 # include <stdlib.h>
28648 # include <string.h>
28651 FILE *in = fopen ("./conftest.data", "r");
28655 /* Test result for a NULL buffer and a zero size.
28656 Based on a test program from Karl Heuer. */
28659 int len = getline (&line, &siz, in);
28660 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
28664 /* Test result for a NULL buffer and a non-zero size.
28665 This crashes on FreeBSD 8.0. */
28667 size_t siz = (size_t)(~0) / 4;
28668 if (getline (&line, &siz, in) == -1)
28675 rm -f conftest$ac_exeext
28676 if { (ac_try="$ac_link"
28677 case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28682 $as_echo "$ac_try_echo") >&5
28683 (eval "$ac_link") 2>&5
28685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28687 { (case "(($ac_try" in
28688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28689 *) ac_try_echo=$ac_try;;
28691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28692 $as_echo "$ac_try_echo") >&5
28693 (eval "$ac_try") 2>&5
28695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; }; then
28697 am_cv_func_working_getline=yes
28699 $as_echo "$as_me: program exited with status $ac_status" >&5
28700 $as_echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28703 ( exit $ac_status )
28704 am_cv_func_working_getline=no
28706 rm -rf conftest.dSYM
28707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28712 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
28713 $as_echo "$am_cv_func_working_getline" >&6; }
28716 if test $ac_cv_have_decl_getline = no; then
28717 HAVE_DECL_GETLINE=0
28720 if test $am_cv_func_working_getline = no; then
28730 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
28750 if test $ac_cv_func_getdelim = yes; then
28751 { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
28752 $as_echo_n "checking for working getdelim function... " >&6; }
28753 if test "${gl_cv_func_working_getdelim+set}" = set; then
28754 $as_echo_n "(cached) " >&6
28756 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
28757 if test "$cross_compiling" = yes; then
28758 cat >conftest.$ac_ext <<_ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28765 #include <features.h>
28766 #ifdef __GNU_LIBRARY__
28767 #if (__GLIBC__ >= 2)
28773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28774 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28775 gl_cv_func_working_getdelim=yes
28777 gl_cv_func_working_getdelim=no
28783 cat >conftest.$ac_ext <<_ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h. */
28790 # include <stdio.h>
28791 # include <stdlib.h>
28792 # include <string.h>
28795 FILE *in = fopen ("./conftest.data", "r");
28799 /* Test result for a NULL buffer and a zero size.
28800 Based on a test program from Karl Heuer. */
28803 int len = getdelim (&line, &siz, '\n', in);
28804 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
28808 /* Test result for a NULL buffer and a non-zero size.
28809 This crashes on FreeBSD 8.0. */
28811 size_t siz = (size_t)(~0) / 4;
28812 if (getdelim (&line, &siz, '\n', in) == -1)
28819 rm -f conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28826 $as_echo "$ac_try_echo") >&5
28827 (eval "$ac_link") 2>&5
28829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28831 { (case "(($ac_try" in
28832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833 *) ac_try_echo=$ac_try;;
28835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28836 $as_echo "$ac_try_echo") >&5
28837 (eval "$ac_try") 2>&5
28839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; }; then
28841 gl_cv_func_working_getdelim=yes
28843 $as_echo "$as_me: program exited with status $ac_status" >&5
28844 $as_echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28847 ( exit $ac_status )
28848 gl_cv_func_working_getdelim=no
28850 rm -rf conftest.dSYM
28851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28856 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
28857 $as_echo "$gl_cv_func_working_getdelim" >&6; }
28859 gl_cv_func_working_getdelim=no
28862 if test $ac_cv_have_decl_getdelim = no; then
28863 HAVE_DECL_GETDELIM=0
28866 if test $gl_cv_func_working_getdelim = no; then
28867 if test $ac_cv_func_getdelim = yes; then
28878 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
28883 for ac_func in flockfile funlockfile
28885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28887 $as_echo_n "checking for $ac_func... " >&6; }
28888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28889 $as_echo_n "(cached) " >&6
28891 cat >conftest.$ac_ext <<_ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28899 #define $ac_func innocuous_$ac_func
28901 /* System header to define __stub macros and hopefully few prototypes,
28902 which can conflict with char $ac_func (); below.
28903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28904 <limits.h> exists even on freestanding compilers. */
28907 # include <limits.h>
28909 # include <assert.h>
28914 /* Override any GCC internal prototype to avoid an error.
28915 Use char because int might match the return type of a GCC
28916 builtin and then its argument prototype would still apply. */
28921 /* The GNU C library defines this for functions which it implements
28922 to always fail with ENOSYS. Some functions are actually named
28923 something starting with __ and the normal name is an alias. */
28924 #if defined __stub_$ac_func || defined __stub___$ac_func
28931 return $ac_func ();
28936 rm -f conftest.$ac_objext conftest$ac_exeext
28937 if { (ac_try="$ac_link"
28938 case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28943 $as_echo "$ac_try_echo") >&5
28944 (eval "$ac_link") 2>conftest.er1
28946 grep -v '^ *+' conftest.er1 >conftest.err
28948 cat conftest.err >&5
28949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } && {
28951 test -z "$ac_c_werror_flag" ||
28952 test ! -s conftest.err
28953 } && test -s conftest$ac_exeext && {
28954 test "$cross_compiling" = yes ||
28955 $as_test_x conftest$ac_exeext
28957 eval "$as_ac_var=yes"
28959 $as_echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 eval "$as_ac_var=no"
28965 rm -rf conftest.dSYM
28966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28967 conftest$ac_exeext conftest.$ac_ext
28969 ac_res=`eval 'as_val=${'$as_ac_var'}
28970 $as_echo "$as_val"'`
28971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28972 $as_echo "$ac_res" >&6; }
28973 as_val=`eval 'as_val=${'$as_ac_var'}
28974 $as_echo "$as_val"'`
28975 if test "x$as_val" = x""yes; then
28976 cat >>confdefs.h <<_ACEOF
28977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28983 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28984 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
28985 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28986 $as_echo_n "(cached) " >&6
28988 cat >conftest.$ac_ext <<_ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h. */
28994 $ac_includes_default
28998 #ifndef getc_unlocked
28999 (void) getc_unlocked;
29006 rm -f conftest.$ac_objext
29007 if { (ac_try="$ac_compile"
29008 case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29013 $as_echo "$ac_try_echo") >&5
29014 (eval "$ac_compile") 2>conftest.er1
29016 grep -v '^ *+' conftest.er1 >conftest.err
29018 cat conftest.err >&5
29019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); } && {
29021 test -z "$ac_c_werror_flag" ||
29022 test ! -s conftest.err
29023 } && test -s conftest.$ac_objext; then
29024 ac_cv_have_decl_getc_unlocked=yes
29026 $as_echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 ac_cv_have_decl_getc_unlocked=no
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29035 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
29036 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
29038 cat >>confdefs.h <<_ACEOF
29039 #define HAVE_DECL_GETC_UNLOCKED 1
29044 cat >>confdefs.h <<_ACEOF
29045 #define HAVE_DECL_GETC_UNLOCKED 0
29065 cat >>confdefs.h <<\_ACEOF
29066 #define GNULIB_TEST_GETLINE 1
29071 # Code from module getopt-gnu:
29079 cat >>confdefs.h <<\_ACEOF
29080 #define GNULIB_TEST_GETOPT_GNU 1
29084 # Code from module getopt-posix:
29090 if test -n "$gl_replace_getopt"; then
29096 cat >>confdefs.h <<\_ACEOF
29097 #define __GETOPT_PREFIX rpl_
29102 GNULIB_UNISTD_H_GETOPT=1
29111 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
29121 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
29135 # Code from module getpagesize:
29140 for ac_func in getpagesize
29142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29144 $as_echo_n "checking for $ac_func... " >&6; }
29145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29146 $as_echo_n "(cached) " >&6
29148 cat >conftest.$ac_ext <<_ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29156 #define $ac_func innocuous_$ac_func
29158 /* System header to define __stub macros and hopefully few prototypes,
29159 which can conflict with char $ac_func (); below.
29160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29161 <limits.h> exists even on freestanding compilers. */
29164 # include <limits.h>
29166 # include <assert.h>
29171 /* Override any GCC internal prototype to avoid an error.
29172 Use char because int might match the return type of a GCC
29173 builtin and then its argument prototype would still apply. */
29178 /* The GNU C library defines this for functions which it implements
29179 to always fail with ENOSYS. Some functions are actually named
29180 something starting with __ and the normal name is an alias. */
29181 #if defined __stub_$ac_func || defined __stub___$ac_func
29188 return $ac_func ();
29193 rm -f conftest.$ac_objext conftest$ac_exeext
29194 if { (ac_try="$ac_link"
29195 case "(($ac_try" in
29196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197 *) ac_try_echo=$ac_try;;
29199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29200 $as_echo "$ac_try_echo") >&5
29201 (eval "$ac_link") 2>conftest.er1
29203 grep -v '^ *+' conftest.er1 >conftest.err
29205 cat conftest.err >&5
29206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } && {
29208 test -z "$ac_c_werror_flag" ||
29209 test ! -s conftest.err
29210 } && test -s conftest$ac_exeext && {
29211 test "$cross_compiling" = yes ||
29212 $as_test_x conftest$ac_exeext
29214 eval "$as_ac_var=yes"
29216 $as_echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29219 eval "$as_ac_var=no"
29222 rm -rf conftest.dSYM
29223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29224 conftest$ac_exeext conftest.$ac_ext
29226 ac_res=`eval 'as_val=${'$as_ac_var'}
29227 $as_echo "$as_val"'`
29228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29229 $as_echo "$ac_res" >&6; }
29230 as_val=`eval 'as_val=${'$as_ac_var'}
29231 $as_echo "$as_val"'`
29232 if test "x$as_val" = x""yes; then
29233 cat >>confdefs.h <<_ACEOF
29234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29240 if test $ac_cv_func_getpagesize = no; then
29243 for ac_header in OS.h
29245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29248 $as_echo_n "checking for $ac_header... " >&6; }
29249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29250 $as_echo_n "(cached) " >&6
29252 ac_res=`eval 'as_val=${'$as_ac_Header'}
29253 $as_echo "$as_val"'`
29254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29255 $as_echo "$ac_res" >&6; }
29257 # Is the header compilable?
29258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29259 $as_echo_n "checking $ac_header usability... " >&6; }
29260 cat >conftest.$ac_ext <<_ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266 $ac_includes_default
29267 #include <$ac_header>
29269 rm -f conftest.$ac_objext
29270 if { (ac_try="$ac_compile"
29271 case "(($ac_try" in
29272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273 *) ac_try_echo=$ac_try;;
29275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29276 $as_echo "$ac_try_echo") >&5
29277 (eval "$ac_compile") 2>conftest.er1
29279 grep -v '^ *+' conftest.er1 >conftest.err
29281 cat conftest.err >&5
29282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); } && {
29284 test -z "$ac_c_werror_flag" ||
29285 test ! -s conftest.err
29286 } && test -s conftest.$ac_objext; then
29287 ac_header_compiler=yes
29289 $as_echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29292 ac_header_compiler=no
29295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29297 $as_echo "$ac_header_compiler" >&6; }
29299 # Is the header present?
29300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29301 $as_echo_n "checking $ac_header presence... " >&6; }
29302 cat >conftest.$ac_ext <<_ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h. */
29308 #include <$ac_header>
29310 if { (ac_try="$ac_cpp conftest.$ac_ext"
29311 case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29316 $as_echo "$ac_try_echo") >&5
29317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29319 grep -v '^ *+' conftest.er1 >conftest.err
29321 cat conftest.err >&5
29322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } >/dev/null && {
29324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29325 test ! -s conftest.err
29327 ac_header_preproc=yes
29329 $as_echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29332 ac_header_preproc=no
29335 rm -f conftest.err conftest.$ac_ext
29336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29337 $as_echo "$ac_header_preproc" >&6; }
29339 # So? What about this header?
29340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29346 ac_header_preproc=yes
29349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29352 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29356 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29362 ## ------------------------------ ##
29363 ## Report this to bug-tar@gnu.org ##
29364 ## ------------------------------ ##
29366 ) | sed "s/^/$as_me: WARNING: /" >&2
29369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29370 $as_echo_n "checking for $ac_header... " >&6; }
29371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29372 $as_echo_n "(cached) " >&6
29374 eval "$as_ac_Header=\$ac_header_preproc"
29376 ac_res=`eval 'as_val=${'$as_ac_Header'}
29377 $as_echo "$as_val"'`
29378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29379 $as_echo "$ac_res" >&6; }
29382 as_val=`eval 'as_val=${'$as_ac_Header'}
29383 $as_echo "$as_val"'`
29384 if test "x$as_val" = x""yes; then
29385 cat >>confdefs.h <<_ACEOF
29386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29393 if test $ac_cv_header_OS_h = yes; then
29397 for ac_header in sys/param.h
29399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29402 $as_echo_n "checking for $ac_header... " >&6; }
29403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29404 $as_echo_n "(cached) " >&6
29406 ac_res=`eval 'as_val=${'$as_ac_Header'}
29407 $as_echo "$as_val"'`
29408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29409 $as_echo "$ac_res" >&6; }
29411 # Is the header compilable?
29412 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29413 $as_echo_n "checking $ac_header usability... " >&6; }
29414 cat >conftest.$ac_ext <<_ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 $ac_includes_default
29421 #include <$ac_header>
29423 rm -f conftest.$ac_objext
29424 if { (ac_try="$ac_compile"
29425 case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29430 $as_echo "$ac_try_echo") >&5
29431 (eval "$ac_compile") 2>conftest.er1
29433 grep -v '^ *+' conftest.er1 >conftest.err
29435 cat conftest.err >&5
29436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); } && {
29438 test -z "$ac_c_werror_flag" ||
29439 test ! -s conftest.err
29440 } && test -s conftest.$ac_objext; then
29441 ac_header_compiler=yes
29443 $as_echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29446 ac_header_compiler=no
29449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29451 $as_echo "$ac_header_compiler" >&6; }
29453 # Is the header present?
29454 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29455 $as_echo_n "checking $ac_header presence... " >&6; }
29456 cat >conftest.$ac_ext <<_ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h. */
29462 #include <$ac_header>
29464 if { (ac_try="$ac_cpp conftest.$ac_ext"
29465 case "(($ac_try" in
29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467 *) ac_try_echo=$ac_try;;
29469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29470 $as_echo "$ac_try_echo") >&5
29471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29473 grep -v '^ *+' conftest.er1 >conftest.err
29475 cat conftest.err >&5
29476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); } >/dev/null && {
29478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29479 test ! -s conftest.err
29481 ac_header_preproc=yes
29483 $as_echo "$as_me: failed program was:" >&5
29484 sed 's/^/| /' conftest.$ac_ext >&5
29486 ac_header_preproc=no
29489 rm -f conftest.err conftest.$ac_ext
29490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29491 $as_echo "$ac_header_preproc" >&6; }
29493 # So? What about this header?
29494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29497 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29500 ac_header_preproc=yes
29503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29504 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29506 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29508 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29510 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29512 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29514 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29516 ## ------------------------------ ##
29517 ## Report this to bug-tar@gnu.org ##
29518 ## ------------------------------ ##
29520 ) | sed "s/^/$as_me: WARNING: /" >&2
29523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29524 $as_echo_n "checking for $ac_header... " >&6; }
29525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29526 $as_echo_n "(cached) " >&6
29528 eval "$as_ac_Header=\$ac_header_preproc"
29530 ac_res=`eval 'as_val=${'$as_ac_Header'}
29531 $as_echo "$as_val"'`
29532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29533 $as_echo "$ac_res" >&6; }
29536 as_val=`eval 'as_val=${'$as_ac_Header'}
29537 $as_echo "$as_val"'`
29538 if test "x$as_val" = x""yes; then
29539 cat >>confdefs.h <<_ACEOF
29540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29547 if test $ac_cv_header_sys_param_h = yes; then
29553 REPLACE_GETPAGESIZE=1
29562 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
29566 { $as_echo "$as_me:$LINENO: checking whether getpagesize is declared" >&5
29567 $as_echo_n "checking whether getpagesize is declared... " >&6; }
29568 if test "${ac_cv_have_decl_getpagesize+set}" = set; then
29569 $as_echo_n "(cached) " >&6
29571 cat >conftest.$ac_ext <<_ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h. */
29577 $ac_includes_default
29581 #ifndef getpagesize
29582 (void) getpagesize;
29589 rm -f conftest.$ac_objext
29590 if { (ac_try="$ac_compile"
29591 case "(($ac_try" in
29592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593 *) ac_try_echo=$ac_try;;
29595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29596 $as_echo "$ac_try_echo") >&5
29597 (eval "$ac_compile") 2>conftest.er1
29599 grep -v '^ *+' conftest.er1 >conftest.err
29601 cat conftest.err >&5
29602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } && {
29604 test -z "$ac_c_werror_flag" ||
29605 test ! -s conftest.err
29606 } && test -s conftest.$ac_objext; then
29607 ac_cv_have_decl_getpagesize=yes
29609 $as_echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29612 ac_cv_have_decl_getpagesize=no
29615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29617 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpagesize" >&5
29618 $as_echo "$ac_cv_have_decl_getpagesize" >&6; }
29619 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then
29622 HAVE_DECL_GETPAGESIZE=0
29629 GNULIB_GETPAGESIZE=1
29633 cat >>confdefs.h <<\_ACEOF
29634 #define GNULIB_TEST_GETPAGESIZE 1
29639 # Code from module gettext:
29641 # Code from module gettext-h:
29644 # Code from module gettime:
29654 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
29668 # Code from module gettimeofday:
29680 gl_gettimeofday_timezone=void
29681 if test $ac_cv_func_gettimeofday != yes; then
29682 HAVE_GETTIMEOFDAY=0
29691 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
29695 for ac_header in sys/timeb.h
29697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29699 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29700 $as_echo_n "checking for $ac_header... " >&6; }
29701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29702 $as_echo_n "(cached) " >&6
29704 ac_res=`eval 'as_val=${'$as_ac_Header'}
29705 $as_echo "$as_val"'`
29706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29707 $as_echo "$ac_res" >&6; }
29709 # Is the header compilable?
29710 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29711 $as_echo_n "checking $ac_header usability... " >&6; }
29712 cat >conftest.$ac_ext <<_ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h. */
29718 $ac_includes_default
29719 #include <$ac_header>
29721 rm -f conftest.$ac_objext
29722 if { (ac_try="$ac_compile"
29723 case "(($ac_try" in
29724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725 *) ac_try_echo=$ac_try;;
29727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29728 $as_echo "$ac_try_echo") >&5
29729 (eval "$ac_compile") 2>conftest.er1
29731 grep -v '^ *+' conftest.er1 >conftest.err
29733 cat conftest.err >&5
29734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); } && {
29736 test -z "$ac_c_werror_flag" ||
29737 test ! -s conftest.err
29738 } && test -s conftest.$ac_objext; then
29739 ac_header_compiler=yes
29741 $as_echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29744 ac_header_compiler=no
29747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29749 $as_echo "$ac_header_compiler" >&6; }
29751 # Is the header present?
29752 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29753 $as_echo_n "checking $ac_header presence... " >&6; }
29754 cat >conftest.$ac_ext <<_ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29760 #include <$ac_header>
29762 if { (ac_try="$ac_cpp conftest.$ac_ext"
29763 case "(($ac_try" in
29764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29768 $as_echo "$ac_try_echo") >&5
29769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29771 grep -v '^ *+' conftest.er1 >conftest.err
29773 cat conftest.err >&5
29774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); } >/dev/null && {
29776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29777 test ! -s conftest.err
29779 ac_header_preproc=yes
29781 $as_echo "$as_me: failed program was:" >&5
29782 sed 's/^/| /' conftest.$ac_ext >&5
29784 ac_header_preproc=no
29787 rm -f conftest.err conftest.$ac_ext
29788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29789 $as_echo "$ac_header_preproc" >&6; }
29791 # So? What about this header?
29792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29795 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29798 ac_header_preproc=yes
29801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29802 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29804 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29806 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29808 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29810 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29812 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29814 ## ------------------------------ ##
29815 ## Report this to bug-tar@gnu.org ##
29816 ## ------------------------------ ##
29818 ) | sed "s/^/$as_me: WARNING: /" >&2
29821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29822 $as_echo_n "checking for $ac_header... " >&6; }
29823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29824 $as_echo_n "(cached) " >&6
29826 eval "$as_ac_Header=\$ac_header_preproc"
29828 ac_res=`eval 'as_val=${'$as_ac_Header'}
29829 $as_echo "$as_val"'`
29830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29831 $as_echo "$ac_res" >&6; }
29834 as_val=`eval 'as_val=${'$as_ac_Header'}
29835 $as_echo "$as_val"'`
29836 if test "x$as_val" = x""yes; then
29837 cat >>confdefs.h <<_ACEOF
29838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29846 for ac_func in _ftime
29848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29849 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29850 $as_echo_n "checking for $ac_func... " >&6; }
29851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29852 $as_echo_n "(cached) " >&6
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29862 #define $ac_func innocuous_$ac_func
29864 /* System header to define __stub macros and hopefully few prototypes,
29865 which can conflict with char $ac_func (); below.
29866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29867 <limits.h> exists even on freestanding compilers. */
29870 # include <limits.h>
29872 # include <assert.h>
29877 /* Override any GCC internal prototype to avoid an error.
29878 Use char because int might match the return type of a GCC
29879 builtin and then its argument prototype would still apply. */
29884 /* The GNU C library defines this for functions which it implements
29885 to always fail with ENOSYS. Some functions are actually named
29886 something starting with __ and the normal name is an alias. */
29887 #if defined __stub_$ac_func || defined __stub___$ac_func
29894 return $ac_func ();
29899 rm -f conftest.$ac_objext conftest$ac_exeext
29900 if { (ac_try="$ac_link"
29901 case "(($ac_try" in
29902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29903 *) ac_try_echo=$ac_try;;
29905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29906 $as_echo "$ac_try_echo") >&5
29907 (eval "$ac_link") 2>conftest.er1
29909 grep -v '^ *+' conftest.er1 >conftest.err
29911 cat conftest.err >&5
29912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } && {
29914 test -z "$ac_c_werror_flag" ||
29915 test ! -s conftest.err
29916 } && test -s conftest$ac_exeext && {
29917 test "$cross_compiling" = yes ||
29918 $as_test_x conftest$ac_exeext
29920 eval "$as_ac_var=yes"
29922 $as_echo "$as_me: failed program was:" >&5
29923 sed 's/^/| /' conftest.$ac_ext >&5
29925 eval "$as_ac_var=no"
29928 rm -rf conftest.dSYM
29929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29930 conftest$ac_exeext conftest.$ac_ext
29932 ac_res=`eval 'as_val=${'$as_ac_var'}
29933 $as_echo "$as_val"'`
29934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29935 $as_echo "$ac_res" >&6; }
29936 as_val=`eval 'as_val=${'$as_ac_var'}
29937 $as_echo "$as_val"'`
29938 if test "x$as_val" = x""yes; then
29939 cat >>confdefs.h <<_ACEOF
29940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29951 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
29952 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
29953 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
29954 $as_echo_n "(cached) " >&6
29956 if test "$cross_compiling" = yes; then
29957 gl_cv_func_gettimeofday_clobber=yes
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 <string.h>
29966 #include <sys/time.h>
29968 #include <stdlib.h>
29976 struct tm saved_lt;
29978 lt = localtime (&t);
29980 gettimeofday (&tv, NULL);
29981 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
29987 rm -f conftest$ac_exeext
29988 if { (ac_try="$ac_link"
29989 case "(($ac_try" in
29990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29991 *) ac_try_echo=$ac_try;;
29993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29994 $as_echo "$ac_try_echo") >&5
29995 (eval "$ac_link") 2>&5
29997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999 { (case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30004 $as_echo "$ac_try_echo") >&5
30005 (eval "$ac_try") 2>&5
30007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; }; then
30009 gl_cv_func_gettimeofday_clobber=no
30011 $as_echo "$as_me: program exited with status $ac_status" >&5
30012 $as_echo "$as_me: failed program was:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30015 ( exit $ac_status )
30016 gl_cv_func_gettimeofday_clobber=yes
30018 rm -rf conftest.dSYM
30019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30024 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
30025 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
30027 if test $gl_cv_func_gettimeofday_clobber = yes; then
30028 REPLACE_GETTIMEOFDAY=1
30038 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
30042 for ac_header in sys/timeb.h
30044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30046 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30047 $as_echo_n "checking for $ac_header... " >&6; }
30048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30049 $as_echo_n "(cached) " >&6
30051 ac_res=`eval 'as_val=${'$as_ac_Header'}
30052 $as_echo "$as_val"'`
30053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30054 $as_echo "$ac_res" >&6; }
30056 # Is the header compilable?
30057 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30058 $as_echo_n "checking $ac_header usability... " >&6; }
30059 cat >conftest.$ac_ext <<_ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h. */
30065 $ac_includes_default
30066 #include <$ac_header>
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30075 $as_echo "$ac_try_echo") >&5
30076 (eval "$ac_compile") 2>conftest.er1
30078 grep -v '^ *+' conftest.er1 >conftest.err
30080 cat conftest.err >&5
30081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } && {
30083 test -z "$ac_c_werror_flag" ||
30084 test ! -s conftest.err
30085 } && test -s conftest.$ac_objext; then
30086 ac_header_compiler=yes
30088 $as_echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30091 ac_header_compiler=no
30094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30095 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30096 $as_echo "$ac_header_compiler" >&6; }
30098 # Is the header present?
30099 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30100 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
30109 if { (ac_try="$ac_cpp conftest.$ac_ext"
30110 case "(($ac_try" in
30111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112 *) ac_try_echo=$ac_try;;
30114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30115 $as_echo "$ac_try_echo") >&5
30116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30118 grep -v '^ *+' conftest.er1 >conftest.err
30120 cat conftest.err >&5
30121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } >/dev/null && {
30123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30124 test ! -s conftest.err
30126 ac_header_preproc=yes
30128 $as_echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30131 ac_header_preproc=no
30134 rm -f conftest.err conftest.$ac_ext
30135 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30136 $as_echo "$ac_header_preproc" >&6; }
30138 # So? What about this header?
30139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30142 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30145 ac_header_preproc=yes
30148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30149 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30151 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30153 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30155 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30157 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30159 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30161 ## ------------------------------ ##
30162 ## Report this to bug-tar@gnu.org ##
30163 ## ------------------------------ ##
30165 ) | sed "s/^/$as_me: WARNING: /" >&2
30168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30169 $as_echo_n "checking for $ac_header... " >&6; }
30170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30171 $as_echo_n "(cached) " >&6
30173 eval "$as_ac_Header=\$ac_header_preproc"
30175 ac_res=`eval 'as_val=${'$as_ac_Header'}
30176 $as_echo "$as_val"'`
30177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30178 $as_echo "$ac_res" >&6; }
30181 as_val=`eval 'as_val=${'$as_ac_Header'}
30182 $as_echo "$as_val"'`
30183 if test "x$as_val" = x""yes; then
30184 cat >>confdefs.h <<_ACEOF
30185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30193 for ac_func in _ftime
30195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30197 $as_echo_n "checking for $ac_func... " >&6; }
30198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30199 $as_echo_n "(cached) " >&6
30201 cat >conftest.$ac_ext <<_ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30209 #define $ac_func innocuous_$ac_func
30211 /* System header to define __stub macros and hopefully few prototypes,
30212 which can conflict with char $ac_func (); below.
30213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214 <limits.h> exists even on freestanding compilers. */
30217 # include <limits.h>
30219 # include <assert.h>
30224 /* Override any GCC internal prototype to avoid an error.
30225 Use char because int might match the return type of a GCC
30226 builtin and then its argument prototype would still apply. */
30231 /* The GNU C library defines this for functions which it implements
30232 to always fail with ENOSYS. Some functions are actually named
30233 something starting with __ and the normal name is an alias. */
30234 #if defined __stub_$ac_func || defined __stub___$ac_func
30241 return $ac_func ();
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (ac_try="$ac_link"
30248 case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30253 $as_echo "$ac_try_echo") >&5
30254 (eval "$ac_link") 2>conftest.er1
30256 grep -v '^ *+' conftest.er1 >conftest.err
30258 cat conftest.err >&5
30259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); } && {
30261 test -z "$ac_c_werror_flag" ||
30262 test ! -s conftest.err
30263 } && test -s conftest$ac_exeext && {
30264 test "$cross_compiling" = yes ||
30265 $as_test_x conftest$ac_exeext
30267 eval "$as_ac_var=yes"
30269 $as_echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30272 eval "$as_ac_var=no"
30275 rm -rf conftest.dSYM
30276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30277 conftest$ac_exeext conftest.$ac_ext
30279 ac_res=`eval 'as_val=${'$as_ac_var'}
30280 $as_echo "$as_val"'`
30281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30282 $as_echo "$ac_res" >&6; }
30283 as_val=`eval 'as_val=${'$as_ac_var'}
30284 $as_echo "$as_val"'`
30285 if test "x$as_val" = x""yes; then
30286 cat >>confdefs.h <<_ACEOF
30287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30295 cat >>confdefs.h <<\_ACEOF
30296 #define gmtime rpl_gmtime
30300 cat >>confdefs.h <<\_ACEOF
30301 #define localtime rpl_localtime
30306 cat >>confdefs.h <<\_ACEOF
30307 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
30312 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
30313 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
30314 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
30315 $as_echo_n "(cached) " >&6
30317 cat >conftest.$ac_ext <<_ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h. */
30323 #include <sys/time.h>
30325 int gettimeofday (struct timeval *restrict, void *restrict);
30330 /* glibc uses struct timezone * rather than the POSIX void *
30331 if _GNU_SOURCE is defined. However, since the only portable
30332 use of gettimeofday uses NULL as the second parameter, and
30333 since the glibc definition is actually more typesafe, it is
30334 not worth wrapping this to get a compliant signature. */
30335 int (*f) (struct timeval *restrict, void *restrict)
30338 return !(x | c.tv_sec | c.tv_usec);
30344 rm -f conftest.$ac_objext
30345 if { (ac_try="$ac_compile"
30346 case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30351 $as_echo "$ac_try_echo") >&5
30352 (eval "$ac_compile") 2>conftest.er1
30354 grep -v '^ *+' conftest.er1 >conftest.err
30356 cat conftest.err >&5
30357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); } && {
30359 test -z "$ac_c_werror_flag" ||
30360 test ! -s conftest.err
30361 } && test -s conftest.$ac_objext; then
30362 gl_cv_func_gettimeofday_posix_signature=yes
30364 $as_echo "$as_me: failed program was:" >&5
30365 sed 's/^/| /' conftest.$ac_ext >&5
30367 cat >conftest.$ac_ext <<_ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h. */
30373 #include <sys/time.h>
30374 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
30384 rm -f conftest.$ac_objext
30385 if { (ac_try="$ac_compile"
30386 case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30391 $as_echo "$ac_try_echo") >&5
30392 (eval "$ac_compile") 2>conftest.er1
30394 grep -v '^ *+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } && {
30399 test -z "$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30401 } && test -s conftest.$ac_objext; then
30402 gl_cv_func_gettimeofday_posix_signature=almost
30404 $as_echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 gl_cv_func_gettimeofday_posix_signature=no
30410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30415 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
30416 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
30417 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
30418 gl_gettimeofday_timezone='struct timezone'
30419 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
30420 REPLACE_GETTIMEOFDAY=1
30429 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
30433 for ac_header in sys/timeb.h
30435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30438 $as_echo_n "checking for $ac_header... " >&6; }
30439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30440 $as_echo_n "(cached) " >&6
30442 ac_res=`eval 'as_val=${'$as_ac_Header'}
30443 $as_echo "$as_val"'`
30444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30445 $as_echo "$ac_res" >&6; }
30447 # Is the header compilable?
30448 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30449 $as_echo_n "checking $ac_header usability... " >&6; }
30450 cat >conftest.$ac_ext <<_ACEOF
30453 cat confdefs.h >>conftest.$ac_ext
30454 cat >>conftest.$ac_ext <<_ACEOF
30455 /* end confdefs.h. */
30456 $ac_includes_default
30457 #include <$ac_header>
30459 rm -f conftest.$ac_objext
30460 if { (ac_try="$ac_compile"
30461 case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30466 $as_echo "$ac_try_echo") >&5
30467 (eval "$ac_compile") 2>conftest.er1
30469 grep -v '^ *+' conftest.er1 >conftest.err
30471 cat conftest.err >&5
30472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473 (exit $ac_status); } && {
30474 test -z "$ac_c_werror_flag" ||
30475 test ! -s conftest.err
30476 } && test -s conftest.$ac_objext; then
30477 ac_header_compiler=yes
30479 $as_echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30482 ac_header_compiler=no
30485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30487 $as_echo "$ac_header_compiler" >&6; }
30489 # Is the header present?
30490 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30491 $as_echo_n "checking $ac_header presence... " >&6; }
30492 cat >conftest.$ac_ext <<_ACEOF
30495 cat confdefs.h >>conftest.$ac_ext
30496 cat >>conftest.$ac_ext <<_ACEOF
30497 /* end confdefs.h. */
30498 #include <$ac_header>
30500 if { (ac_try="$ac_cpp conftest.$ac_ext"
30501 case "(($ac_try" in
30502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503 *) ac_try_echo=$ac_try;;
30505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30506 $as_echo "$ac_try_echo") >&5
30507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30509 grep -v '^ *+' conftest.er1 >conftest.err
30511 cat conftest.err >&5
30512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); } >/dev/null && {
30514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30515 test ! -s conftest.err
30517 ac_header_preproc=yes
30519 $as_echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30522 ac_header_preproc=no
30525 rm -f conftest.err conftest.$ac_ext
30526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30527 $as_echo "$ac_header_preproc" >&6; }
30529 # So? What about this header?
30530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30533 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30536 ac_header_preproc=yes
30539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30540 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30542 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30544 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30546 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30548 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30550 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30552 ## ------------------------------ ##
30553 ## Report this to bug-tar@gnu.org ##
30554 ## ------------------------------ ##
30556 ) | sed "s/^/$as_me: WARNING: /" >&2
30559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30560 $as_echo_n "checking for $ac_header... " >&6; }
30561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30562 $as_echo_n "(cached) " >&6
30564 eval "$as_ac_Header=\$ac_header_preproc"
30566 ac_res=`eval 'as_val=${'$as_ac_Header'}
30567 $as_echo "$as_val"'`
30568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30569 $as_echo "$ac_res" >&6; }
30572 as_val=`eval 'as_val=${'$as_ac_Header'}
30573 $as_echo "$as_val"'`
30574 if test "x$as_val" = x""yes; then
30575 cat >>confdefs.h <<_ACEOF
30576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30584 for ac_func in _ftime
30586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30588 $as_echo_n "checking for $ac_func... " >&6; }
30589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30590 $as_echo_n "(cached) " >&6
30592 cat >conftest.$ac_ext <<_ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h. */
30598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30600 #define $ac_func innocuous_$ac_func
30602 /* System header to define __stub macros and hopefully few prototypes,
30603 which can conflict with char $ac_func (); below.
30604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30605 <limits.h> exists even on freestanding compilers. */
30608 # include <limits.h>
30610 # include <assert.h>
30615 /* Override any GCC internal prototype to avoid an error.
30616 Use char because int might match the return type of a GCC
30617 builtin and then its argument prototype would still apply. */
30622 /* The GNU C library defines this for functions which it implements
30623 to always fail with ENOSYS. Some functions are actually named
30624 something starting with __ and the normal name is an alias. */
30625 #if defined __stub_$ac_func || defined __stub___$ac_func
30632 return $ac_func ();
30637 rm -f conftest.$ac_objext conftest$ac_exeext
30638 if { (ac_try="$ac_link"
30639 case "(($ac_try" in
30640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30641 *) ac_try_echo=$ac_try;;
30643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30644 $as_echo "$ac_try_echo") >&5
30645 (eval "$ac_link") 2>conftest.er1
30647 grep -v '^ *+' conftest.er1 >conftest.err
30649 cat conftest.err >&5
30650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } && {
30652 test -z "$ac_c_werror_flag" ||
30653 test ! -s conftest.err
30654 } && test -s conftest$ac_exeext && {
30655 test "$cross_compiling" = yes ||
30656 $as_test_x conftest$ac_exeext
30658 eval "$as_ac_var=yes"
30660 $as_echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30663 eval "$as_ac_var=no"
30666 rm -rf conftest.dSYM
30667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30668 conftest$ac_exeext conftest.$ac_ext
30670 ac_res=`eval 'as_val=${'$as_ac_var'}
30671 $as_echo "$as_val"'`
30672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30673 $as_echo "$ac_res" >&6; }
30674 as_val=`eval 'as_val=${'$as_ac_var'}
30675 $as_echo "$as_val"'`
30676 if test "x$as_val" = x""yes; then
30677 cat >>confdefs.h <<_ACEOF
30678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30688 cat >>confdefs.h <<_ACEOF
30689 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
30696 GNULIB_GETTIMEOFDAY=1
30700 cat >>confdefs.h <<\_ACEOF
30701 #define GNULIB_TEST_GETTIMEOFDAY 1
30706 # Code from module gitlog-to-changelog:
30707 # Code from module hash:
30717 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
30722 # Code from module havelib:
30723 # Code from module human:
30733 gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
30738 # Code from module include_next:
30739 # Code from module inline:
30742 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
30743 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
30744 if test "${gl_cv_c_inline_effective+set}" = set; then
30745 $as_echo_n "(cached) " >&6
30747 if test $ac_cv_c_inline = no; then
30748 gl_cv_c_inline_effective=no
30750 cat >conftest.$ac_ext <<_ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h. */
30760 #ifdef __NO_INLINE__
30761 #error "inline is not effective"
30767 rm -f conftest.$ac_objext
30768 if { (ac_try="$ac_compile"
30769 case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30774 $as_echo "$ac_try_echo") >&5
30775 (eval "$ac_compile") 2>conftest.er1
30777 grep -v '^ *+' conftest.er1 >conftest.err
30779 cat conftest.err >&5
30780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); } && {
30782 test -z "$ac_c_werror_flag" ||
30783 test ! -s conftest.err
30784 } && test -s conftest.$ac_objext; then
30785 gl_cv_c_inline_effective=yes
30787 $as_echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30790 gl_cv_c_inline_effective=no
30793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30797 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
30798 $as_echo "$gl_cv_c_inline_effective" >&6; }
30799 if test $gl_cv_c_inline_effective = yes; then
30801 cat >>confdefs.h <<\_ACEOF
30802 #define HAVE_INLINE 1
30807 # Code from module intprops:
30808 # Code from module inttostr:
30819 # Code from module inttypes:
30846 { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
30847 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
30848 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
30849 $as_echo_n "(cached) " >&6
30851 gl_cv_header_working_inttypes_h=no
30852 if test "$gl_cv_header_working_stdint_h" = yes \
30853 && test $ac_cv_header_inttypes_h = yes \
30854 && test "$ac_cv_have_decl_imaxabs" = yes \
30855 && test "$ac_cv_have_decl_imaxdiv" = yes \
30856 && test "$ac_cv_have_decl_strtoimax" = yes \
30857 && test "$ac_cv_have_decl_strtoumax" = yes; then
30858 cat >conftest.$ac_ext <<_ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30866 #include <stddef.h>
30867 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
30868 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
30869 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
30870 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
30871 #include <inttypes.h>
30873 /* No need to duplicate the tests of stdint.m4; they are subsumed by
30874 $gl_cv_header_working_stdint_h = yes. */
30876 /* Tests for macros supposed to be defined in inttypes.h. */
30878 const char *k = /* implicit string concatenation */
30883 PRIo8 PRIu8 PRIx8 PRIX8
30889 PRIo16 PRIu16 PRIx16 PRIX16
30895 PRIo32 PRIu32 PRIx32 PRIX32
30901 PRIo64 PRIu64 PRIx64 PRIX64
30903 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
30904 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
30905 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
30906 PRIdLEAST64 PRIiLEAST64
30907 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
30908 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
30909 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
30910 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
30911 PRIdFAST64 PRIiFAST64
30912 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
30913 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
30918 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
30921 const char *l = /* implicit string concatenation */
30932 SCNo16 SCNu16 SCNx16
30938 SCNo32 SCNu32 SCNx32
30944 SCNo64 SCNu64 SCNx64
30946 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
30947 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
30948 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
30949 SCNdLEAST64 SCNiLEAST64
30950 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
30951 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
30952 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
30953 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
30954 SCNdFAST64 SCNiFAST64
30955 SCNoFAST64 SCNuFAST64 SCNxFAST64
30956 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
30961 SCNoPTR SCNuPTR SCNxPTR
30973 rm -f conftest.$ac_objext
30974 if { (ac_try="$ac_compile"
30975 case "(($ac_try" in
30976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977 *) ac_try_echo=$ac_try;;
30979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30980 $as_echo "$ac_try_echo") >&5
30981 (eval "$ac_compile") 2>conftest.er1
30983 grep -v '^ *+' conftest.er1 >conftest.err
30985 cat conftest.err >&5
30986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } && {
30988 test -z "$ac_c_werror_flag" ||
30989 test ! -s conftest.err
30990 } && test -s conftest.$ac_objext; then
30991 gl_cv_header_working_inttypes_h=yes
30993 $as_echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31002 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
31003 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
31017 if test $gl_cv_have_include_next = yes; then
31018 gl_cv_next_inttypes_h='<'inttypes.h'>'
31020 { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
31021 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
31022 if test "${gl_cv_next_inttypes_h+set}" = set; then
31023 $as_echo_n "(cached) " >&6
31026 if test $ac_cv_header_inttypes_h = yes; then
31027 cat >conftest.$ac_ext <<_ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h. */
31033 #include <inttypes.h>
31037 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31038 *) gl_absname_cpp="$ac_cpp" ;;
31040 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31041 sed -n '\#/inttypes.h#{
31042 s#.*"\(.*/inttypes.h\)".*#\1#
31048 gl_cv_next_inttypes_h='<'inttypes.h'>'
31052 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
31053 $as_echo "$gl_cv_next_inttypes_h" >&6; }
31055 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
31057 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31059 gl_next_as_first_directive='<'inttypes.h'>'
31061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31062 gl_next_as_first_directive=$gl_cv_next_inttypes_h
31064 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
31072 cat >>confdefs.h <<\_ACEOF
31073 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
31080 if test -n "$STDINT_H"; then
31081 PRIPTR_PREFIX='"l"'
31083 for glpfx in '' l ll I64; do
31085 '') gltype1='int';;
31086 l) gltype1='long int';;
31087 ll) gltype1='long long int';;
31088 I64) gltype1='__int64';;
31090 cat >conftest.$ac_ext <<_ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h. */
31096 #include <stdint.h>
31097 extern intptr_t foo;
31098 extern $gltype1 foo;
31107 rm -f conftest.$ac_objext
31108 if { (ac_try="$ac_compile"
31109 case "(($ac_try" in
31110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111 *) ac_try_echo=$ac_try;;
31113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31114 $as_echo "$ac_try_echo") >&5
31115 (eval "$ac_compile") 2>conftest.er1
31117 grep -v '^ *+' conftest.er1 >conftest.err
31119 cat conftest.err >&5
31120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); } && {
31122 test -z "$ac_c_werror_flag" ||
31123 test ! -s conftest.err
31124 } && test -s conftest.$ac_objext; then
31125 PRIPTR_PREFIX='"'$glpfx'"'
31127 $as_echo "$as_me: failed program was:" >&5
31128 sed 's/^/| /' conftest.$ac_ext >&5
31133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31134 test -n "$PRIPTR_PREFIX" && break
31139 if test "$ac_cv_have_decl_imaxabs" = yes; then
31140 HAVE_DECL_IMAXABS=1
31142 HAVE_DECL_IMAXABS=0
31145 if test "$ac_cv_have_decl_imaxdiv" = yes; then
31146 HAVE_DECL_IMAXDIV=1
31148 HAVE_DECL_IMAXDIV=0
31151 if test "$ac_cv_have_decl_strtoimax" = yes; then
31152 HAVE_DECL_STRTOIMAX=1
31154 HAVE_DECL_STRTOIMAX=0
31157 if test "$ac_cv_have_decl_strtoumax" = yes; then
31158 HAVE_DECL_STRTOUMAX=1
31160 HAVE_DECL_STRTOUMAX=0
31164 { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
31165 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
31166 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
31167 $as_echo_n "(cached) " >&6
31169 cat >conftest.$ac_ext <<_ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h. */
31175 /* Work also in C++ mode. */
31176 #define __STDC_LIMIT_MACROS 1
31178 /* Work if build is not clean. */
31179 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31181 #include <limits.h>
31183 #include <stdint.h>
31186 #if defined INT32_MAX && defined INTMAX_MAX
31187 #define CONDITION (INT32_MAX < INTMAX_MAX)
31188 #elif HAVE_LONG_LONG_INT
31189 #define CONDITION (sizeof (int) < sizeof (long long int))
31191 #define CONDITION 0
31193 int test[CONDITION ? 1 : -1];
31202 rm -f conftest.$ac_objext
31203 if { (ac_try="$ac_compile"
31204 case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31209 $as_echo "$ac_try_echo") >&5
31210 (eval "$ac_compile") 2>conftest.er1
31212 grep -v '^ *+' conftest.er1 >conftest.err
31214 cat conftest.err >&5
31215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } && {
31217 test -z "$ac_c_werror_flag" ||
31218 test ! -s conftest.err
31219 } && test -s conftest.$ac_objext; then
31220 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
31222 $as_echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31225 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
31228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31230 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
31231 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
31232 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
31233 INT32_MAX_LT_INTMAX_MAX=1;
31235 INT32_MAX_LT_INTMAX_MAX=0;
31239 if test $APPLE_UNIVERSAL_BUILD = 0; then
31241 { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
31242 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
31243 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
31244 $as_echo_n "(cached) " >&6
31246 cat >conftest.$ac_ext <<_ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h. */
31252 /* Work also in C++ mode. */
31253 #define __STDC_LIMIT_MACROS 1
31255 /* Work if build is not clean. */
31256 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31258 #include <limits.h>
31260 #include <stdint.h>
31263 #if defined INT64_MAX
31264 #define CONDITION (INT64_MAX == LONG_MAX)
31265 #elif HAVE_LONG_LONG_INT
31266 #define CONDITION (sizeof (long long int) == sizeof (long int))
31268 #define CONDITION 0
31270 int test[CONDITION ? 1 : -1];
31279 rm -f conftest.$ac_objext
31280 if { (ac_try="$ac_compile"
31281 case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31286 $as_echo "$ac_try_echo") >&5
31287 (eval "$ac_compile") 2>conftest.er1
31289 grep -v '^ *+' conftest.er1 >conftest.err
31291 cat conftest.err >&5
31292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); } && {
31294 test -z "$ac_c_werror_flag" ||
31295 test ! -s conftest.err
31296 } && test -s conftest.$ac_objext; then
31297 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
31299 $as_echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31302 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
31305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31307 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
31308 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
31309 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
31310 INT64_MAX_EQ_LONG_MAX=1;
31312 INT64_MAX_EQ_LONG_MAX=0;
31317 INT64_MAX_EQ_LONG_MAX=-1
31320 { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
31321 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
31322 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
31323 $as_echo_n "(cached) " >&6
31325 cat >conftest.$ac_ext <<_ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h. */
31331 /* Work also in C++ mode. */
31332 #define __STDC_LIMIT_MACROS 1
31334 /* Work if build is not clean. */
31335 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31337 #include <limits.h>
31339 #include <stdint.h>
31342 #if defined UINT32_MAX && defined UINTMAX_MAX
31343 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
31344 #elif HAVE_LONG_LONG_INT
31345 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
31347 #define CONDITION 0
31349 int test[CONDITION ? 1 : -1];
31358 rm -f conftest.$ac_objext
31359 if { (ac_try="$ac_compile"
31360 case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31365 $as_echo "$ac_try_echo") >&5
31366 (eval "$ac_compile") 2>conftest.er1
31368 grep -v '^ *+' conftest.er1 >conftest.err
31370 cat conftest.err >&5
31371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } && {
31373 test -z "$ac_c_werror_flag" ||
31374 test ! -s conftest.err
31375 } && test -s conftest.$ac_objext; then
31376 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
31378 $as_echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31386 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
31387 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
31388 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
31389 UINT32_MAX_LT_UINTMAX_MAX=1;
31391 UINT32_MAX_LT_UINTMAX_MAX=0;
31395 if test $APPLE_UNIVERSAL_BUILD = 0; then
31397 { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
31398 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
31399 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
31400 $as_echo_n "(cached) " >&6
31402 cat >conftest.$ac_ext <<_ACEOF
31405 cat confdefs.h >>conftest.$ac_ext
31406 cat >>conftest.$ac_ext <<_ACEOF
31407 /* end confdefs.h. */
31408 /* Work also in C++ mode. */
31409 #define __STDC_LIMIT_MACROS 1
31411 /* Work if build is not clean. */
31412 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31414 #include <limits.h>
31416 #include <stdint.h>
31419 #if defined UINT64_MAX
31420 #define CONDITION (UINT64_MAX == ULONG_MAX)
31421 #elif HAVE_LONG_LONG_INT
31422 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
31424 #define CONDITION 0
31426 int test[CONDITION ? 1 : -1];
31435 rm -f conftest.$ac_objext
31436 if { (ac_try="$ac_compile"
31437 case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31442 $as_echo "$ac_try_echo") >&5
31443 (eval "$ac_compile") 2>conftest.er1
31445 grep -v '^ *+' conftest.er1 >conftest.err
31447 cat conftest.err >&5
31448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); } && {
31450 test -z "$ac_c_werror_flag" ||
31451 test ! -s conftest.err
31452 } && test -s conftest.$ac_objext; then
31453 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
31455 $as_echo "$as_me: failed program was:" >&5
31456 sed 's/^/| /' conftest.$ac_ext >&5
31458 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
31461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31463 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
31464 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
31465 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
31466 UINT64_MAX_EQ_ULONG_MAX=1;
31468 UINT64_MAX_EQ_ULONG_MAX=0;
31473 UINT64_MAX_EQ_ULONG_MAX=-1
31481 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
31482 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31483 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31484 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31485 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31486 $as_echo_n "(cached) " >&6
31488 cat >conftest.$ac_ext <<_ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h. */
31494 #include <inttypes.h>
31505 rm -f conftest.$ac_objext
31506 if { (ac_try="$ac_compile"
31507 case "(($ac_try" in
31508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509 *) ac_try_echo=$ac_try;;
31511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31512 $as_echo "$ac_try_echo") >&5
31513 (eval "$ac_compile") 2>conftest.er1
31515 grep -v '^ *+' conftest.er1 >conftest.err
31517 cat conftest.err >&5
31518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); } && {
31520 test -z "$ac_c_werror_flag" ||
31521 test ! -s conftest.err
31522 } && test -s conftest.$ac_objext; then
31523 eval "$as_gl_Symbol=yes"
31525 $as_echo "$as_me: failed program was:" >&5
31526 sed 's/^/| /' conftest.$ac_ext >&5
31528 eval "$as_gl_Symbol=no"
31531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31533 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31534 $as_echo "$as_val"'`
31535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31536 $as_echo "$ac_res" >&6; }
31537 as_val=`eval 'as_val=${'$as_gl_Symbol'}
31538 $as_echo "$as_val"'`
31539 if test "x$as_val" = x""yes; then
31540 cat >>confdefs.h <<_ACEOF
31541 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31544 eval ac_cv_have_decl_$gl_func=yes
31550 # Code from module langinfo:
31567 if test $gl_cv_have_include_next = yes; then
31568 gl_cv_next_langinfo_h='<'langinfo.h'>'
31570 { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
31571 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
31572 if test "${gl_cv_next_langinfo_h+set}" = set; then
31573 $as_echo_n "(cached) " >&6
31576 if test $ac_cv_header_langinfo_h = yes; then
31577 cat >conftest.$ac_ext <<_ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31583 #include <langinfo.h>
31587 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31588 *) gl_absname_cpp="$ac_cpp" ;;
31590 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31591 sed -n '\#/langinfo.h#{
31592 s#.*"\(.*/langinfo.h\)".*#\1#
31598 gl_cv_next_langinfo_h='<'langinfo.h'>'
31602 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
31603 $as_echo "$gl_cv_next_langinfo_h" >&6; }
31605 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
31607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31609 gl_next_as_first_directive='<'langinfo.h'>'
31611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31612 gl_next_as_first_directive=$gl_cv_next_langinfo_h
31614 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
31619 HAVE_LANGINFO_CODESET=0
31620 HAVE_LANGINFO_T_FMT_AMPM=0
31621 HAVE_LANGINFO_ERA=0
31622 HAVE_LANGINFO_YESEXPR=0
31629 if test $ac_cv_header_langinfo_h = yes; then
31631 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
31632 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
31633 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
31634 $as_echo_n "(cached) " >&6
31636 cat >conftest.$ac_ext <<_ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h. */
31642 #include <langinfo.h>
31653 rm -f conftest.$ac_objext
31654 if { (ac_try="$ac_compile"
31655 case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31660 $as_echo "$ac_try_echo") >&5
31661 (eval "$ac_compile") 2>conftest.er1
31663 grep -v '^ *+' conftest.er1 >conftest.err
31665 cat conftest.err >&5
31666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); } && {
31668 test -z "$ac_c_werror_flag" ||
31669 test ! -s conftest.err
31670 } && test -s conftest.$ac_objext; then
31671 gl_cv_header_langinfo_codeset=yes
31673 $as_echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31676 gl_cv_header_langinfo_codeset=no
31679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31682 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
31683 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
31684 if test $gl_cv_header_langinfo_codeset = yes; then
31685 HAVE_LANGINFO_CODESET=1
31687 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines T_FMT_AMPM" >&5
31688 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
31689 if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then
31690 $as_echo_n "(cached) " >&6
31692 cat >conftest.$ac_ext <<_ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h. */
31698 #include <langinfo.h>
31699 int a = T_FMT_AMPM;
31709 rm -f conftest.$ac_objext
31710 if { (ac_try="$ac_compile"
31711 case "(($ac_try" in
31712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31716 $as_echo "$ac_try_echo") >&5
31717 (eval "$ac_compile") 2>conftest.er1
31719 grep -v '^ *+' conftest.er1 >conftest.err
31721 cat conftest.err >&5
31722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); } && {
31724 test -z "$ac_c_werror_flag" ||
31725 test ! -s conftest.err
31726 } && test -s conftest.$ac_objext; then
31727 gl_cv_header_langinfo_t_fmt_ampm=yes
31729 $as_echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31732 gl_cv_header_langinfo_t_fmt_ampm=no
31735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31738 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
31739 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
31740 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
31741 HAVE_LANGINFO_T_FMT_AMPM=1
31743 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
31744 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
31745 if test "${gl_cv_header_langinfo_era+set}" = set; then
31746 $as_echo_n "(cached) " >&6
31748 cat >conftest.$ac_ext <<_ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h. */
31754 #include <langinfo.h>
31765 rm -f conftest.$ac_objext
31766 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31775 grep -v '^ *+' conftest.er1 >conftest.err
31777 cat conftest.err >&5
31778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); } && {
31780 test -z "$ac_c_werror_flag" ||
31781 test ! -s conftest.err
31782 } && test -s conftest.$ac_objext; then
31783 gl_cv_header_langinfo_era=yes
31785 $as_echo "$as_me: failed program was:" >&5
31786 sed 's/^/| /' conftest.$ac_ext >&5
31788 gl_cv_header_langinfo_era=no
31791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31794 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
31795 $as_echo "$gl_cv_header_langinfo_era" >&6; }
31796 if test $gl_cv_header_langinfo_era = yes; then
31797 HAVE_LANGINFO_ERA=1
31799 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines YESEXPR" >&5
31800 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
31801 if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then
31802 $as_echo_n "(cached) " >&6
31804 cat >conftest.$ac_ext <<_ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h. */
31810 #include <langinfo.h>
31821 rm -f conftest.$ac_objext
31822 if { (ac_try="$ac_compile"
31823 case "(($ac_try" in
31824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825 *) ac_try_echo=$ac_try;;
31827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31828 $as_echo "$ac_try_echo") >&5
31829 (eval "$ac_compile") 2>conftest.er1
31831 grep -v '^ *+' conftest.er1 >conftest.err
31833 cat conftest.err >&5
31834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835 (exit $ac_status); } && {
31836 test -z "$ac_c_werror_flag" ||
31837 test ! -s conftest.err
31838 } && test -s conftest.$ac_objext; then
31839 gl_cv_header_langinfo_yesexpr=yes
31841 $as_echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31844 gl_cv_header_langinfo_yesexpr=no
31847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31850 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_yesexpr" >&5
31851 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
31852 if test $gl_cv_header_langinfo_yesexpr = yes; then
31853 HAVE_LANGINFO_YESEXPR=1
31866 for gl_func in nl_langinfo; do
31867 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31868 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31869 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31870 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31871 $as_echo_n "(cached) " >&6
31873 cat >conftest.$ac_ext <<_ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h. */
31879 #include <langinfo.h>
31890 rm -f conftest.$ac_objext
31891 if { (ac_try="$ac_compile"
31892 case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31897 $as_echo "$ac_try_echo") >&5
31898 (eval "$ac_compile") 2>conftest.er1
31900 grep -v '^ *+' conftest.er1 >conftest.err
31902 cat conftest.err >&5
31903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } && {
31905 test -z "$ac_c_werror_flag" ||
31906 test ! -s conftest.err
31907 } && test -s conftest.$ac_objext; then
31908 eval "$as_gl_Symbol=yes"
31910 $as_echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31913 eval "$as_gl_Symbol=no"
31916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31918 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31919 $as_echo "$as_val"'`
31920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31921 $as_echo "$ac_res" >&6; }
31922 as_val=`eval 'as_val=${'$as_gl_Symbol'}
31923 $as_echo "$as_val"'`
31924 if test "x$as_val" = x""yes; then
31925 cat >>confdefs.h <<_ACEOF
31926 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31929 eval ac_cv_have_decl_$gl_func=yes
31935 # Code from module lchown:
31954 for ac_func in lchown
31956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31958 $as_echo_n "checking for $ac_func... " >&6; }
31959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31960 $as_echo_n "(cached) " >&6
31962 cat >conftest.$ac_ext <<_ACEOF
31965 cat confdefs.h >>conftest.$ac_ext
31966 cat >>conftest.$ac_ext <<_ACEOF
31967 /* end confdefs.h. */
31968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31970 #define $ac_func innocuous_$ac_func
31972 /* System header to define __stub macros and hopefully few prototypes,
31973 which can conflict with char $ac_func (); below.
31974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31975 <limits.h> exists even on freestanding compilers. */
31978 # include <limits.h>
31980 # include <assert.h>
31985 /* Override any GCC internal prototype to avoid an error.
31986 Use char because int might match the return type of a GCC
31987 builtin and then its argument prototype would still apply. */
31992 /* The GNU C library defines this for functions which it implements
31993 to always fail with ENOSYS. Some functions are actually named
31994 something starting with __ and the normal name is an alias. */
31995 #if defined __stub_$ac_func || defined __stub___$ac_func
32002 return $ac_func ();
32007 rm -f conftest.$ac_objext conftest$ac_exeext
32008 if { (ac_try="$ac_link"
32009 case "(($ac_try" in
32010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011 *) ac_try_echo=$ac_try;;
32013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32014 $as_echo "$ac_try_echo") >&5
32015 (eval "$ac_link") 2>conftest.er1
32017 grep -v '^ *+' conftest.er1 >conftest.err
32019 cat conftest.err >&5
32020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } && {
32022 test -z "$ac_c_werror_flag" ||
32023 test ! -s conftest.err
32024 } && test -s conftest$ac_exeext && {
32025 test "$cross_compiling" = yes ||
32026 $as_test_x conftest$ac_exeext
32028 eval "$as_ac_var=yes"
32030 $as_echo "$as_me: failed program was:" >&5
32031 sed 's/^/| /' conftest.$ac_ext >&5
32033 eval "$as_ac_var=no"
32036 rm -rf conftest.dSYM
32037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32038 conftest$ac_exeext conftest.$ac_ext
32040 ac_res=`eval 'as_val=${'$as_ac_var'}
32041 $as_echo "$as_val"'`
32042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32043 $as_echo "$ac_res" >&6; }
32044 as_val=`eval 'as_val=${'$as_ac_var'}
32045 $as_echo "$as_val"'`
32046 if test "x$as_val" = x""yes; then
32047 cat >>confdefs.h <<_ACEOF
32048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32053 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32059 if test $ac_cv_func_lchown = no; then
32061 elif test "$gl_cv_func_chown_slash_works" != yes \
32062 || test "$gl_cv_func_chown_ctime_works" != yes; then
32071 gl_LIBOBJS="$gl_LIBOBJS lchown.$ac_objext"
32083 cat >>confdefs.h <<\_ACEOF
32084 #define GNULIB_TEST_LCHOWN 1
32089 # Code from module link:
32098 if test $ac_cv_func_link = no; then
32108 gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
32111 { $as_echo "$as_me:$LINENO: checking whether link handles trailing slash correctly" >&5
32112 $as_echo_n "checking whether link handles trailing slash correctly... " >&6; }
32113 if test "${gl_cv_func_link_works+set}" = set; then
32114 $as_echo_n "(cached) " >&6
32117 # Assume that if we have lstat, we can also check symlinks.
32118 if test $ac_cv_func_lstat = yes; then
32119 ln -s conftest.a conftest.lnk
32121 if test "$cross_compiling" = yes; then
32122 gl_cv_func_link_works="guessing no"
32124 cat >conftest.$ac_ext <<_ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h. */
32130 #include <unistd.h>
32135 if (!link ("conftest.a", "conftest.b/")) return 1;
32137 if (!link ("conftest.lnk/", "conftest.b")) return 2;
32144 rm -f conftest$ac_exeext
32145 if { (ac_try="$ac_link"
32146 case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32151 $as_echo "$ac_try_echo") >&5
32152 (eval "$ac_link") 2>&5
32154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32156 { (case "(($ac_try" in
32157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32158 *) ac_try_echo=$ac_try;;
32160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32161 $as_echo "$ac_try_echo") >&5
32162 (eval "$ac_try") 2>&5
32164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); }; }; then
32166 gl_cv_func_link_works=yes
32168 $as_echo "$as_me: program exited with status $ac_status" >&5
32169 $as_echo "$as_me: failed program was:" >&5
32170 sed 's/^/| /' conftest.$ac_ext >&5
32172 ( exit $ac_status )
32173 gl_cv_func_link_works=no
32175 rm -rf conftest.dSYM
32176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32180 rm -f conftest.a conftest.b conftest.lnk
32182 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_works" >&5
32183 $as_echo "$gl_cv_func_link_works" >&6; }
32184 if test "$gl_cv_func_link_works" != yes; then
32194 gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
32206 cat >>confdefs.h <<\_ACEOF
32207 #define GNULIB_TEST_LINK 1
32212 # Code from module link-follow:
32219 gl_link_follows_symlinks=0 # assume GNU behavior
32220 if test $ac_cv_func_readlink = yes; then
32221 { $as_echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink" >&5
32222 $as_echo_n "checking whether link(2) dereferences a symlink... " >&6; }
32223 if test "${gl_cv_func_link_follows_symlink+set}" = set; then
32224 $as_echo_n "(cached) " >&6
32227 # Create a regular file.
32228 echo > conftest.file
32229 if test "$cross_compiling" = yes; then
32230 gl_cv_func_link_follows_symlink=unknown
32232 cat >conftest.$ac_ext <<_ACEOF
32235 cat confdefs.h >>conftest.$ac_ext
32236 cat >>conftest.$ac_ext <<_ACEOF
32237 /* end confdefs.h. */
32239 # include <sys/types.h>
32240 # include <sys/stat.h>
32241 # include <unistd.h>
32242 # include <stdlib.h>
32244 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
32245 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
32246 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
32251 const char *file = "conftest.file";
32252 const char *sym = "conftest.sym";
32253 const char *hard = "conftest.hard";
32254 struct stat sb_file, sb_hard;
32256 /* Create a symlink to the regular file. */
32257 if (symlink (file, sym))
32260 /* Create a hard link to that symlink. */
32261 if (link (sym, hard))
32264 if (lstat (hard, &sb_hard))
32266 if (lstat (file, &sb_file))
32269 /* If the dev/inode of hard and file are the same, then
32270 the link call followed the symlink. */
32271 return SAME_INODE (sb_hard, sb_file) ? 1 : 0;
32275 rm -f conftest$ac_exeext
32276 if { (ac_try="$ac_link"
32277 case "(($ac_try" in
32278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279 *) ac_try_echo=$ac_try;;
32281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32282 $as_echo "$ac_try_echo") >&5
32283 (eval "$ac_link") 2>&5
32285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32287 { (case "(($ac_try" in
32288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289 *) ac_try_echo=$ac_try;;
32291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32292 $as_echo "$ac_try_echo") >&5
32293 (eval "$ac_try") 2>&5
32295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; }; then
32297 gl_cv_func_link_follows_symlink=no
32299 $as_echo "$as_me: program exited with status $ac_status" >&5
32300 $as_echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32303 ( exit $ac_status )
32304 gl_cv_func_link_follows_symlink=yes
32306 rm -rf conftest.dSYM
32307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32311 rm -f conftest.file conftest.sym conftest.hard
32314 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_follows_symlink" >&5
32315 $as_echo "$gl_cv_func_link_follows_symlink" >&6; }
32316 case $gl_cv_func_link_follows_symlink in
32317 yes) gl_link_follows_symlinks=1 ;;
32318 no) ;; # already defaulted to 0
32319 *) gl_link_follows_symlinks=-1 ;;
32323 cat >>confdefs.h <<_ACEOF
32324 #define LINK_FOLLOWS_SYMLINKS $gl_link_follows_symlinks
32328 # Code from module linkat:
32349 if test $ac_cv_func_linkat = no; then
32359 gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
32369 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
32372 { $as_echo "$as_me:$LINENO: checking whether linkat(,AT_SYMLINK_FOLLOW) works" >&5
32373 $as_echo_n "checking whether linkat(,AT_SYMLINK_FOLLOW) works... " >&6; }
32374 if test "${gl_cv_func_linkat_follow+set}" = set; then
32375 $as_echo_n "(cached) " >&6
32377 rm -rf conftest.f1 conftest.f2
32379 cat >conftest.$ac_ext <<_ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h. */
32387 #include <unistd.h>
32389 /* Linux added linkat in 2.6.16, but did not add AT_SYMLINK_FOLLOW
32390 until 2.6.18. Always replace linkat to support older kernels. */
32397 return linkat (AT_FDCWD, "conftest.f1", AT_FDCWD, "conftest.f2",
32398 AT_SYMLINK_FOLLOW);
32403 rm -f conftest.$ac_objext
32404 if { (ac_try="$ac_compile"
32405 case "(($ac_try" in
32406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407 *) ac_try_echo=$ac_try;;
32409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32410 $as_echo "$ac_try_echo") >&5
32411 (eval "$ac_compile") 2>conftest.er1
32413 grep -v '^ *+' conftest.er1 >conftest.err
32415 cat conftest.err >&5
32416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); } && {
32418 test -z "$ac_c_werror_flag" ||
32419 test ! -s conftest.err
32420 } && test -s conftest.$ac_objext; then
32421 gl_cv_func_linkat_follow=yes
32423 $as_echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32426 gl_cv_func_linkat_follow="need runtime check"
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430 rm -rf conftest.f1 conftest.f2
32432 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_follow" >&5
32433 $as_echo "$gl_cv_func_linkat_follow" >&6; }
32434 { $as_echo "$as_me:$LINENO: checking whether linkat handles trailing slash correctly" >&5
32435 $as_echo_n "checking whether linkat handles trailing slash correctly... " >&6; }
32436 if test "${gl_cv_func_linkat_slash+set}" = set; then
32437 $as_echo_n "(cached) " >&6
32439 rm -rf conftest.a conftest.b conftest.c conftest.d
32440 if test "$cross_compiling" = yes; then
32441 # Guess yes on glibc systems, no otherwise.
32443 *-gnu*) gl_cv_func_linkat_slash="guessing yes";;
32444 *) gl_cv_func_linkat_slash="guessing no";;
32448 cat >conftest.$ac_ext <<_ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h. */
32454 #include <unistd.h>
32465 /* Create a regular file. */
32466 fd = open ("conftest.a", O_CREAT | O_EXCL | O_WRONLY, 0600);
32469 if (write (fd, "hello", 5) < 5)
32471 if (close (fd) < 0)
32473 /* Test whether hard links are supported on the current
32475 if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.b",
32476 AT_SYMLINK_FOLLOW) < 0)
32478 /* Test whether a trailing "/" is treated like "/.". */
32479 if (linkat (AT_FDCWD, "conftest.a/", AT_FDCWD, "conftest.c",
32480 AT_SYMLINK_FOLLOW) == 0)
32482 if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.d/",
32483 AT_SYMLINK_FOLLOW) == 0)
32491 rm -f conftest$ac_exeext
32492 if { (ac_try="$ac_link"
32493 case "(($ac_try" in
32494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495 *) ac_try_echo=$ac_try;;
32497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32498 $as_echo "$ac_try_echo") >&5
32499 (eval "$ac_link") 2>&5
32501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32503 { (case "(($ac_try" in
32504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505 *) ac_try_echo=$ac_try;;
32507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32508 $as_echo "$ac_try_echo") >&5
32509 (eval "$ac_try") 2>&5
32511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; }; then
32513 gl_cv_func_linkat_slash=yes
32515 $as_echo "$as_me: program exited with status $ac_status" >&5
32516 $as_echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32519 ( exit $ac_status )
32520 gl_cv_func_linkat_slash=no
32522 rm -rf conftest.dSYM
32523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32527 rm -rf conftest.a conftest.b conftest.c conftest.d
32529 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_slash" >&5
32530 $as_echo "$gl_cv_func_linkat_slash" >&6; }
32531 case "$gl_cv_func_linkat_slash" in
32532 *yes) gl_linkat_slash_bug=0 ;;
32533 *) gl_linkat_slash_bug=1 ;;
32535 if test "$gl_cv_func_linkat_follow" != yes \
32536 || test $gl_linkat_slash_bug = 1; then
32546 gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
32549 cat >>confdefs.h <<_ACEOF
32550 #define LINKAT_TRAILING_SLASH_BUG $gl_linkat_slash_bug
32563 cat >>confdefs.h <<\_ACEOF
32564 #define GNULIB_TEST_LINKAT 1
32569 # Code from module localcharset:
32581 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
32583 # Code from module lseek:
32587 { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
32588 $as_echo_n "checking whether lseek detects pipes... " >&6; }
32589 if test "${gl_cv_func_lseek_pipe+set}" = set; then
32590 $as_echo_n "(cached) " >&6
32592 if test $cross_compiling = no; then
32593 cat >conftest.$ac_ext <<_ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h. */
32600 #include <sys/types.h> /* for off_t */
32601 #include <stdio.h> /* for SEEK_CUR */
32602 #include <unistd.h>
32607 /* Exit with success only if stdin is seekable. */
32608 return lseek (0, (off_t)0, SEEK_CUR) < 0;
32614 rm -f conftest.$ac_objext conftest$ac_exeext
32615 if { (ac_try="$ac_link"
32616 case "(($ac_try" in
32617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618 *) ac_try_echo=$ac_try;;
32620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32621 $as_echo "$ac_try_echo") >&5
32622 (eval "$ac_link") 2>conftest.er1
32624 grep -v '^ *+' conftest.er1 >conftest.err
32626 cat conftest.err >&5
32627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); } && {
32629 test -z "$ac_c_werror_flag" ||
32630 test ! -s conftest.err
32631 } && test -s conftest$ac_exeext && {
32632 test "$cross_compiling" = yes ||
32633 $as_test_x conftest$ac_exeext
32635 if test -s conftest$ac_exeext \
32636 && ./conftest$ac_exeext < conftest.$ac_ext \
32637 && test 1 = "`echo hi \
32638 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
32639 gl_cv_func_lseek_pipe=yes
32641 gl_cv_func_lseek_pipe=no
32644 $as_echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32647 gl_cv_func_lseek_pipe=no
32650 rm -rf conftest.dSYM
32651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32652 conftest$ac_exeext conftest.$ac_ext
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32661 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
32662 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
32666 rm -f conftest.$ac_objext
32667 if { (ac_try="$ac_compile"
32668 case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32673 $as_echo "$ac_try_echo") >&5
32674 (eval "$ac_compile") 2>conftest.er1
32676 grep -v '^ *+' conftest.er1 >conftest.err
32678 cat conftest.err >&5
32679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); } && {
32681 test -z "$ac_c_werror_flag" ||
32682 test ! -s conftest.err
32683 } && test -s conftest.$ac_objext; then
32684 gl_cv_func_lseek_pipe=yes
32686 $as_echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32689 gl_cv_func_lseek_pipe=no
32692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32695 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
32696 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
32697 if test $gl_cv_func_lseek_pipe = no; then
32707 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
32712 cat >>confdefs.h <<\_ACEOF
32713 #define LSEEK_PIPE_BROKEN 1
32726 cat >>confdefs.h <<\_ACEOF
32727 #define GNULIB_TEST_LSEEK 1
32732 # Code from module lstat:
32741 if test $ac_cv_func_lstat = yes; then
32743 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
32746 # Prerequisites of lib/lstat.c.
32759 cat >>confdefs.h <<\_ACEOF
32760 #define GNULIB_TEST_LSTAT 1
32765 # Code from module malloc-gnu:
32769 for ac_header in stdlib.h
32771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32774 $as_echo_n "checking for $ac_header... " >&6; }
32775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32776 $as_echo_n "(cached) " >&6
32778 ac_res=`eval 'as_val=${'$as_ac_Header'}
32779 $as_echo "$as_val"'`
32780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32781 $as_echo "$ac_res" >&6; }
32783 # Is the header compilable?
32784 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32785 $as_echo_n "checking $ac_header usability... " >&6; }
32786 cat >conftest.$ac_ext <<_ACEOF
32789 cat confdefs.h >>conftest.$ac_ext
32790 cat >>conftest.$ac_ext <<_ACEOF
32791 /* end confdefs.h. */
32792 $ac_includes_default
32793 #include <$ac_header>
32795 rm -f conftest.$ac_objext
32796 if { (ac_try="$ac_compile"
32797 case "(($ac_try" in
32798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799 *) ac_try_echo=$ac_try;;
32801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32802 $as_echo "$ac_try_echo") >&5
32803 (eval "$ac_compile") 2>conftest.er1
32805 grep -v '^ *+' conftest.er1 >conftest.err
32807 cat conftest.err >&5
32808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); } && {
32810 test -z "$ac_c_werror_flag" ||
32811 test ! -s conftest.err
32812 } && test -s conftest.$ac_objext; then
32813 ac_header_compiler=yes
32815 $as_echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32818 ac_header_compiler=no
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32823 $as_echo "$ac_header_compiler" >&6; }
32825 # Is the header present?
32826 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32827 $as_echo_n "checking $ac_header presence... " >&6; }
32828 cat >conftest.$ac_ext <<_ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h. */
32834 #include <$ac_header>
32836 if { (ac_try="$ac_cpp conftest.$ac_ext"
32837 case "(($ac_try" in
32838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839 *) ac_try_echo=$ac_try;;
32841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32842 $as_echo "$ac_try_echo") >&5
32843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32845 grep -v '^ *+' conftest.er1 >conftest.err
32847 cat conftest.err >&5
32848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); } >/dev/null && {
32850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32851 test ! -s conftest.err
32853 ac_header_preproc=yes
32855 $as_echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32858 ac_header_preproc=no
32861 rm -f conftest.err conftest.$ac_ext
32862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32863 $as_echo "$ac_header_preproc" >&6; }
32865 # So? What about this header?
32866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32869 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32872 ac_header_preproc=yes
32875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32876 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32878 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32880 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32882 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32884 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32886 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32888 ## ------------------------------ ##
32889 ## Report this to bug-tar@gnu.org ##
32890 ## ------------------------------ ##
32892 ) | sed "s/^/$as_me: WARNING: /" >&2
32895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32896 $as_echo_n "checking for $ac_header... " >&6; }
32897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32898 $as_echo_n "(cached) " >&6
32900 eval "$as_ac_Header=\$ac_header_preproc"
32902 ac_res=`eval 'as_val=${'$as_ac_Header'}
32903 $as_echo "$as_val"'`
32904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32905 $as_echo "$ac_res" >&6; }
32908 as_val=`eval 'as_val=${'$as_ac_Header'}
32909 $as_echo "$as_val"'`
32910 if test "x$as_val" = x""yes; then
32911 cat >>confdefs.h <<_ACEOF
32912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32919 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
32920 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
32921 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
32922 $as_echo_n "(cached) " >&6
32924 if test "$cross_compiling" = yes; then
32925 ac_cv_func_malloc_0_nonnull=no
32927 cat >conftest.$ac_ext <<_ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h. */
32933 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
32934 # include <stdlib.h>
32942 return ! malloc (0);
32947 rm -f conftest$ac_exeext
32948 if { (ac_try="$ac_link"
32949 case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32954 $as_echo "$ac_try_echo") >&5
32955 (eval "$ac_link") 2>&5
32957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32959 { (case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32964 $as_echo "$ac_try_echo") >&5
32965 (eval "$ac_try") 2>&5
32967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); }; }; then
32969 ac_cv_func_malloc_0_nonnull=yes
32971 $as_echo "$as_me: program exited with status $ac_status" >&5
32972 $as_echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32975 ( exit $ac_status )
32976 ac_cv_func_malloc_0_nonnull=no
32978 rm -rf conftest.dSYM
32979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
32985 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
32986 if test $ac_cv_func_malloc_0_nonnull = yes; then
32988 cat >>confdefs.h <<\_ACEOF
32989 #define HAVE_MALLOC_GNU 1
32993 cat >>confdefs.h <<\_ACEOF
32994 #define HAVE_MALLOC_GNU 0
33006 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
33017 cat >>confdefs.h <<_ACEOF
33018 #define GNULIB_MALLOC_GNU 1
33022 # Code from module malloc-posix:
33026 if test $gl_cv_func_malloc_posix = yes; then
33028 cat >>confdefs.h <<\_ACEOF
33029 #define HAVE_MALLOC_POSIX 1
33042 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
33051 GNULIB_MALLOC_POSIX=1
33055 cat >>confdefs.h <<\_ACEOF
33056 #define GNULIB_TEST_MALLOC_POSIX 1
33061 # Code from module malloca:
33066 # Code from module mbchar:
33071 # Code from module mbrtowc:
33092 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
33096 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
33097 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
33098 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
33099 $as_echo_n "(cached) " >&6
33103 # Guess no on AIX and OSF/1.
33104 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
33105 # Guess yes otherwise.
33106 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
33108 if test $LOCALE_JA != none; then
33109 if test "$cross_compiling" = yes; then
33112 cat >conftest.$ac_ext <<_ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h. */
33119 #include <locale.h>
33120 #include <string.h>
33124 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33126 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33130 memset (&state, '\0', sizeof (mbstate_t));
33131 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33132 if (mbsinit (&state))
33138 rm -f conftest$ac_exeext
33139 if { (ac_try="$ac_link"
33140 case "(($ac_try" in
33141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142 *) ac_try_echo=$ac_try;;
33144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33145 $as_echo "$ac_try_echo") >&5
33146 (eval "$ac_link") 2>&5
33148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33150 { (case "(($ac_try" in
33151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152 *) ac_try_echo=$ac_try;;
33154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33155 $as_echo "$ac_try_echo") >&5
33156 (eval "$ac_try") 2>&5
33158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); }; }; then
33160 gl_cv_func_mbrtowc_incomplete_state=yes
33162 $as_echo "$as_me: program exited with status $ac_status" >&5
33163 $as_echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33166 ( exit $ac_status )
33167 gl_cv_func_mbrtowc_incomplete_state=no
33169 rm -rf conftest.dSYM
33170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33177 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
33178 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
33183 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
33184 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
33185 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
33186 $as_echo_n "(cached) " >&6
33190 # Guess no on Solaris 8.
33191 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
33192 # Guess yes otherwise.
33193 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
33195 if test $LOCALE_ZH_CN != none; then
33196 if test "$cross_compiling" = yes; then
33199 cat >conftest.$ac_ext <<_ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h. */
33206 #include <locale.h>
33207 #include <stdlib.h>
33208 #include <string.h>
33212 /* This fails on Solaris 8:
33213 mbrtowc returns 2, and sets wc to 0x00F0.
33214 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
33215 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
33217 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
33221 memset (&state, '\0', sizeof (mbstate_t));
33222 if (mbrtowc (&wc, input + 3, 6, &state) != 4
33223 && mbtowc (&wc, input + 3, 6) == 4)
33229 rm -f conftest$ac_exeext
33230 if { (ac_try="$ac_link"
33231 case "(($ac_try" in
33232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33233 *) ac_try_echo=$ac_try;;
33235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33236 $as_echo "$ac_try_echo") >&5
33237 (eval "$ac_link") 2>&5
33239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33241 { (case "(($ac_try" in
33242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243 *) ac_try_echo=$ac_try;;
33245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33246 $as_echo "$ac_try_echo") >&5
33247 (eval "$ac_try") 2>&5
33249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33251 gl_cv_func_mbrtowc_sanitycheck=yes
33253 $as_echo "$as_me: program exited with status $ac_status" >&5
33254 $as_echo "$as_me: failed program was:" >&5
33255 sed 's/^/| /' conftest.$ac_ext >&5
33257 ( exit $ac_status )
33258 gl_cv_func_mbrtowc_sanitycheck=no
33260 rm -rf conftest.dSYM
33261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33268 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
33269 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
33271 REPLACE_MBSTATE_T=0
33272 case "$gl_cv_func_mbrtowc_incomplete_state" in
33274 *) REPLACE_MBSTATE_T=1 ;;
33276 case "$gl_cv_func_mbrtowc_sanitycheck" in
33278 *) REPLACE_MBSTATE_T=1 ;;
33281 REPLACE_MBSTATE_T=1
33283 if test $REPLACE_MBSTATE_T = 1; then
33296 if test $ac_cv_func_mbrtowc = no; then
33299 if test $REPLACE_MBSTATE_T = 1; then
33305 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
33306 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
33307 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
33308 $as_echo_n "(cached) " >&6
33312 # Guess no on OSF/1.
33313 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
33314 # Guess yes otherwise.
33315 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
33317 if test $LOCALE_FR_UTF8 != none; then
33318 if test "$cross_compiling" = yes; then
33321 cat >conftest.$ac_ext <<_ACEOF
33324 cat confdefs.h >>conftest.$ac_ext
33325 cat >>conftest.$ac_ext <<_ACEOF
33326 /* end confdefs.h. */
33328 #include <locale.h>
33329 #include <string.h>
33333 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
33339 memset (&state, '\0', sizeof (mbstate_t));
33340 wc = (wchar_t) 0xBADFACE;
33341 mbrtowc (&wc, NULL, 5, &state);
33342 /* Check that wc was not modified. */
33343 if (wc != (wchar_t) 0xBADFACE)
33349 rm -f conftest$ac_exeext
33350 if { (ac_try="$ac_link"
33351 case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33356 $as_echo "$ac_try_echo") >&5
33357 (eval "$ac_link") 2>&5
33359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33361 { (case "(($ac_try" in
33362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363 *) ac_try_echo=$ac_try;;
33365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33366 $as_echo "$ac_try_echo") >&5
33367 (eval "$ac_try") 2>&5
33369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; }; then
33371 gl_cv_func_mbrtowc_null_arg=yes
33373 $as_echo "$as_me: program exited with status $ac_status" >&5
33374 $as_echo "$as_me: failed program was:" >&5
33375 sed 's/^/| /' conftest.$ac_ext >&5
33377 ( exit $ac_status )
33378 gl_cv_func_mbrtowc_null_arg=no
33380 rm -rf conftest.dSYM
33381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33388 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
33389 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
33395 { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
33396 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
33397 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
33398 $as_echo_n "(cached) " >&6
33402 # Guess no on HP-UX and Solaris.
33403 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
33404 # Guess yes otherwise.
33405 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
33407 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
33408 if test "$cross_compiling" = yes; then
33411 cat >conftest.$ac_ext <<_ACEOF
33414 cat confdefs.h >>conftest.$ac_ext
33415 cat >>conftest.$ac_ext <<_ACEOF
33416 /* end confdefs.h. */
33418 #include <locale.h>
33419 #include <string.h>
33423 /* This fails on Solaris. */
33424 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
33426 char input[] = "B\303\274\303\237er"; /* "Büßer" */
33430 memset (&state, '\0', sizeof (mbstate_t));
33431 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33434 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
33438 /* This fails on HP-UX 11.11. */
33439 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33441 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33445 memset (&state, '\0', sizeof (mbstate_t));
33446 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33449 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
33456 rm -f conftest$ac_exeext
33457 if { (ac_try="$ac_link"
33458 case "(($ac_try" in
33459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460 *) ac_try_echo=$ac_try;;
33462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33463 $as_echo "$ac_try_echo") >&5
33464 (eval "$ac_link") 2>&5
33466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33468 { (case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33473 $as_echo "$ac_try_echo") >&5
33474 (eval "$ac_try") 2>&5
33476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; }; then
33478 gl_cv_func_mbrtowc_retval=yes
33480 $as_echo "$as_me: program exited with status $ac_status" >&5
33481 $as_echo "$as_me: failed program was:" >&5
33482 sed 's/^/| /' conftest.$ac_ext >&5
33484 ( exit $ac_status )
33485 gl_cv_func_mbrtowc_retval=no
33487 rm -rf conftest.dSYM
33488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33495 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
33496 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
33501 { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
33502 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
33503 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
33504 $as_echo_n "(cached) " >&6
33508 # Guess no on Solaris 8 and 9.
33509 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
33510 # Guess yes otherwise.
33511 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
33513 if test $LOCALE_ZH_CN != none; then
33514 if test "$cross_compiling" = yes; then
33517 cat >conftest.$ac_ext <<_ACEOF
33520 cat confdefs.h >>conftest.$ac_ext
33521 cat >>conftest.$ac_ext <<_ACEOF
33522 /* end confdefs.h. */
33524 #include <locale.h>
33525 #include <string.h>
33529 /* This fails on Solaris 8 and 9. */
33530 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
33535 memset (&state, '\0', sizeof (mbstate_t));
33536 if (mbrtowc (&wc, "", 1, &state) != 0)
33542 rm -f conftest$ac_exeext
33543 if { (ac_try="$ac_link"
33544 case "(($ac_try" in
33545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546 *) ac_try_echo=$ac_try;;
33548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33549 $as_echo "$ac_try_echo") >&5
33550 (eval "$ac_link") 2>&5
33552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33554 { (case "(($ac_try" in
33555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33556 *) ac_try_echo=$ac_try;;
33558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33559 $as_echo "$ac_try_echo") >&5
33560 (eval "$ac_try") 2>&5
33562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563 (exit $ac_status); }; }; then
33564 gl_cv_func_mbrtowc_nul_retval=yes
33566 $as_echo "$as_me: program exited with status $ac_status" >&5
33567 $as_echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33570 ( exit $ac_status )
33571 gl_cv_func_mbrtowc_nul_retval=no
33573 rm -rf conftest.dSYM
33574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33581 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
33582 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
33584 case "$gl_cv_func_mbrtowc_null_arg" in
33587 cat >>confdefs.h <<\_ACEOF
33588 #define MBRTOWC_NULL_ARG_BUG 1
33594 case "$gl_cv_func_mbrtowc_retval" in
33597 cat >>confdefs.h <<\_ACEOF
33598 #define MBRTOWC_RETVAL_BUG 1
33604 case "$gl_cv_func_mbrtowc_nul_retval" in
33607 cat >>confdefs.h <<\_ACEOF
33608 #define MBRTOWC_NUL_RETVAL_BUG 1
33616 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
33628 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
33642 cat >>confdefs.h <<\_ACEOF
33643 #define GNULIB_TEST_MBRTOWC 1
33648 # Code from module mbscasecmp:
33652 GNULIB_MBSCASECMP=1
33656 cat >>confdefs.h <<\_ACEOF
33657 #define GNULIB_TEST_MBSCASECMP 1
33662 # Code from module mbsinit:
33683 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
33687 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
33688 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
33689 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
33690 $as_echo_n "(cached) " >&6
33694 # Guess no on AIX and OSF/1.
33695 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
33696 # Guess yes otherwise.
33697 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
33699 if test $LOCALE_JA != none; then
33700 if test "$cross_compiling" = yes; then
33703 cat >conftest.$ac_ext <<_ACEOF
33706 cat confdefs.h >>conftest.$ac_ext
33707 cat >>conftest.$ac_ext <<_ACEOF
33708 /* end confdefs.h. */
33710 #include <locale.h>
33711 #include <string.h>
33715 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33717 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33721 memset (&state, '\0', sizeof (mbstate_t));
33722 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33723 if (mbsinit (&state))
33729 rm -f conftest$ac_exeext
33730 if { (ac_try="$ac_link"
33731 case "(($ac_try" in
33732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733 *) ac_try_echo=$ac_try;;
33735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33736 $as_echo "$ac_try_echo") >&5
33737 (eval "$ac_link") 2>&5
33739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33741 { (case "(($ac_try" in
33742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743 *) ac_try_echo=$ac_try;;
33745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33746 $as_echo "$ac_try_echo") >&5
33747 (eval "$ac_try") 2>&5
33749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; }; then
33751 gl_cv_func_mbrtowc_incomplete_state=yes
33753 $as_echo "$as_me: program exited with status $ac_status" >&5
33754 $as_echo "$as_me: failed program was:" >&5
33755 sed 's/^/| /' conftest.$ac_ext >&5
33757 ( exit $ac_status )
33758 gl_cv_func_mbrtowc_incomplete_state=no
33760 rm -rf conftest.dSYM
33761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33768 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
33769 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
33774 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
33775 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
33776 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
33777 $as_echo_n "(cached) " >&6
33781 # Guess no on Solaris 8.
33782 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
33783 # Guess yes otherwise.
33784 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
33786 if test $LOCALE_ZH_CN != none; then
33787 if test "$cross_compiling" = yes; then
33790 cat >conftest.$ac_ext <<_ACEOF
33793 cat confdefs.h >>conftest.$ac_ext
33794 cat >>conftest.$ac_ext <<_ACEOF
33795 /* end confdefs.h. */
33797 #include <locale.h>
33798 #include <stdlib.h>
33799 #include <string.h>
33803 /* This fails on Solaris 8:
33804 mbrtowc returns 2, and sets wc to 0x00F0.
33805 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
33806 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
33808 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
33812 memset (&state, '\0', sizeof (mbstate_t));
33813 if (mbrtowc (&wc, input + 3, 6, &state) != 4
33814 && mbtowc (&wc, input + 3, 6) == 4)
33820 rm -f conftest$ac_exeext
33821 if { (ac_try="$ac_link"
33822 case "(($ac_try" in
33823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824 *) ac_try_echo=$ac_try;;
33826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33827 $as_echo "$ac_try_echo") >&5
33828 (eval "$ac_link") 2>&5
33830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33832 { (case "(($ac_try" in
33833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33834 *) ac_try_echo=$ac_try;;
33836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33837 $as_echo "$ac_try_echo") >&5
33838 (eval "$ac_try") 2>&5
33840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); }; }; then
33842 gl_cv_func_mbrtowc_sanitycheck=yes
33844 $as_echo "$as_me: program exited with status $ac_status" >&5
33845 $as_echo "$as_me: failed program was:" >&5
33846 sed 's/^/| /' conftest.$ac_ext >&5
33848 ( exit $ac_status )
33849 gl_cv_func_mbrtowc_sanitycheck=no
33851 rm -rf conftest.dSYM
33852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33859 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
33860 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
33862 REPLACE_MBSTATE_T=0
33863 case "$gl_cv_func_mbrtowc_incomplete_state" in
33865 *) REPLACE_MBSTATE_T=1 ;;
33867 case "$gl_cv_func_mbrtowc_sanitycheck" in
33869 *) REPLACE_MBSTATE_T=1 ;;
33872 REPLACE_MBSTATE_T=1
33874 if test $REPLACE_MBSTATE_T = 1; then
33887 if test $ac_cv_func_mbsinit = no; then
33890 if test $REPLACE_MBSTATE_T = 1; then
33894 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
33906 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
33920 cat >>confdefs.h <<\_ACEOF
33921 #define GNULIB_TEST_MBSINIT 1
33926 # Code from module mbsrtowcs:
33947 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
33951 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
33952 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
33953 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
33954 $as_echo_n "(cached) " >&6
33958 # Guess no on AIX and OSF/1.
33959 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
33960 # Guess yes otherwise.
33961 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
33963 if test $LOCALE_JA != none; then
33964 if test "$cross_compiling" = yes; then
33967 cat >conftest.$ac_ext <<_ACEOF
33970 cat confdefs.h >>conftest.$ac_ext
33971 cat >>conftest.$ac_ext <<_ACEOF
33972 /* end confdefs.h. */
33974 #include <locale.h>
33975 #include <string.h>
33979 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33981 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33985 memset (&state, '\0', sizeof (mbstate_t));
33986 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33987 if (mbsinit (&state))
33993 rm -f conftest$ac_exeext
33994 if { (ac_try="$ac_link"
33995 case "(($ac_try" in
33996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33997 *) ac_try_echo=$ac_try;;
33999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34000 $as_echo "$ac_try_echo") >&5
34001 (eval "$ac_link") 2>&5
34003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34005 { (case "(($ac_try" in
34006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34007 *) ac_try_echo=$ac_try;;
34009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34010 $as_echo "$ac_try_echo") >&5
34011 (eval "$ac_try") 2>&5
34013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); }; }; then
34015 gl_cv_func_mbrtowc_incomplete_state=yes
34017 $as_echo "$as_me: program exited with status $ac_status" >&5
34018 $as_echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34021 ( exit $ac_status )
34022 gl_cv_func_mbrtowc_incomplete_state=no
34024 rm -rf conftest.dSYM
34025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34032 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
34033 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
34038 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
34039 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
34040 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
34041 $as_echo_n "(cached) " >&6
34045 # Guess no on Solaris 8.
34046 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
34047 # Guess yes otherwise.
34048 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
34050 if test $LOCALE_ZH_CN != none; then
34051 if test "$cross_compiling" = yes; then
34054 cat >conftest.$ac_ext <<_ACEOF
34057 cat confdefs.h >>conftest.$ac_ext
34058 cat >>conftest.$ac_ext <<_ACEOF
34059 /* end confdefs.h. */
34061 #include <locale.h>
34062 #include <stdlib.h>
34063 #include <string.h>
34067 /* This fails on Solaris 8:
34068 mbrtowc returns 2, and sets wc to 0x00F0.
34069 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
34070 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34072 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
34076 memset (&state, '\0', sizeof (mbstate_t));
34077 if (mbrtowc (&wc, input + 3, 6, &state) != 4
34078 && mbtowc (&wc, input + 3, 6) == 4)
34084 rm -f conftest$ac_exeext
34085 if { (ac_try="$ac_link"
34086 case "(($ac_try" in
34087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34088 *) ac_try_echo=$ac_try;;
34090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34091 $as_echo "$ac_try_echo") >&5
34092 (eval "$ac_link") 2>&5
34094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34096 { (case "(($ac_try" in
34097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098 *) ac_try_echo=$ac_try;;
34100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34101 $as_echo "$ac_try_echo") >&5
34102 (eval "$ac_try") 2>&5
34104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; }; then
34106 gl_cv_func_mbrtowc_sanitycheck=yes
34108 $as_echo "$as_me: program exited with status $ac_status" >&5
34109 $as_echo "$as_me: failed program was:" >&5
34110 sed 's/^/| /' conftest.$ac_ext >&5
34112 ( exit $ac_status )
34113 gl_cv_func_mbrtowc_sanitycheck=no
34115 rm -rf conftest.dSYM
34116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34123 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
34124 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
34126 REPLACE_MBSTATE_T=0
34127 case "$gl_cv_func_mbrtowc_incomplete_state" in
34129 *) REPLACE_MBSTATE_T=1 ;;
34131 case "$gl_cv_func_mbrtowc_sanitycheck" in
34133 *) REPLACE_MBSTATE_T=1 ;;
34136 REPLACE_MBSTATE_T=1
34138 if test $REPLACE_MBSTATE_T = 1; then
34151 if test $ac_cv_func_mbsrtowcs = no; then
34154 if test $REPLACE_MBSTATE_T = 1; then
34155 REPLACE_MBSRTOWCS=1
34162 { $as_echo "$as_me:$LINENO: checking whether mbsrtowcs works" >&5
34163 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
34164 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then
34165 $as_echo_n "(cached) " >&6
34169 # Guess no on HP-UX and Solaris.
34170 hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
34171 # Guess yes otherwise.
34172 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
34174 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
34175 if test "$cross_compiling" = yes; then
34178 cat >conftest.$ac_ext <<_ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h. */
34185 #include <locale.h>
34186 #include <string.h>
34190 /* Test whether the function works when started with a conversion state
34191 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
34192 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34194 const char input[] = "B\303\274\303\237er";
34197 memset (&state, '\0', sizeof (mbstate_t));
34198 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
34199 if (!mbsinit (&state))
34201 const char *src = input + 2;
34202 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
34206 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34208 const char input[] = "<\306\374\313\334\270\354>";
34211 memset (&state, '\0', sizeof (mbstate_t));
34212 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
34213 if (!mbsinit (&state))
34215 const char *src = input + 4;
34216 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
34220 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34222 const char input[] = "B\250\271\201\060\211\070er";
34225 memset (&state, '\0', sizeof (mbstate_t));
34226 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
34227 if (!mbsinit (&state))
34229 const char *src = input + 2;
34230 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
34237 rm -f conftest$ac_exeext
34238 if { (ac_try="$ac_link"
34239 case "(($ac_try" in
34240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34241 *) ac_try_echo=$ac_try;;
34243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34244 $as_echo "$ac_try_echo") >&5
34245 (eval "$ac_link") 2>&5
34247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34249 { (case "(($ac_try" in
34250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34251 *) ac_try_echo=$ac_try;;
34253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34254 $as_echo "$ac_try_echo") >&5
34255 (eval "$ac_try") 2>&5
34257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
34259 gl_cv_func_mbsrtowcs_works=yes
34261 $as_echo "$as_me: program exited with status $ac_status" >&5
34262 $as_echo "$as_me: failed program was:" >&5
34263 sed 's/^/| /' conftest.$ac_ext >&5
34265 ( exit $ac_status )
34266 gl_cv_func_mbsrtowcs_works=no
34268 rm -rf conftest.dSYM
34269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34276 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbsrtowcs_works" >&5
34277 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
34279 case "$gl_cv_func_mbsrtowcs_works" in
34281 *) REPLACE_MBSRTOWCS=1 ;;
34285 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
34297 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
34307 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
34321 cat >>confdefs.h <<\_ACEOF
34322 #define GNULIB_TEST_MBSRTOWCS 1
34327 # Code from module mbuiter:
34334 # Code from module memchr:
34343 cat >>confdefs.h <<\_ACEOF
34344 #define GNULIB_TEST_MEMCHR 1
34349 # Code from module mempcpy:
34365 for ac_func in mempcpy
34367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34368 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34369 $as_echo_n "checking for $ac_func... " >&6; }
34370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34371 $as_echo_n "(cached) " >&6
34373 cat >conftest.$ac_ext <<_ACEOF
34376 cat confdefs.h >>conftest.$ac_ext
34377 cat >>conftest.$ac_ext <<_ACEOF
34378 /* end confdefs.h. */
34379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34381 #define $ac_func innocuous_$ac_func
34383 /* System header to define __stub macros and hopefully few prototypes,
34384 which can conflict with char $ac_func (); below.
34385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34386 <limits.h> exists even on freestanding compilers. */
34389 # include <limits.h>
34391 # include <assert.h>
34396 /* Override any GCC internal prototype to avoid an error.
34397 Use char because int might match the return type of a GCC
34398 builtin and then its argument prototype would still apply. */
34403 /* The GNU C library defines this for functions which it implements
34404 to always fail with ENOSYS. Some functions are actually named
34405 something starting with __ and the normal name is an alias. */
34406 #if defined __stub_$ac_func || defined __stub___$ac_func
34413 return $ac_func ();
34418 rm -f conftest.$ac_objext conftest$ac_exeext
34419 if { (ac_try="$ac_link"
34420 case "(($ac_try" in
34421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34422 *) ac_try_echo=$ac_try;;
34424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34425 $as_echo "$ac_try_echo") >&5
34426 (eval "$ac_link") 2>conftest.er1
34428 grep -v '^ *+' conftest.er1 >conftest.err
34430 cat conftest.err >&5
34431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); } && {
34433 test -z "$ac_c_werror_flag" ||
34434 test ! -s conftest.err
34435 } && test -s conftest$ac_exeext && {
34436 test "$cross_compiling" = yes ||
34437 $as_test_x conftest$ac_exeext
34439 eval "$as_ac_var=yes"
34441 $as_echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34444 eval "$as_ac_var=no"
34447 rm -rf conftest.dSYM
34448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34449 conftest$ac_exeext conftest.$ac_ext
34451 ac_res=`eval 'as_val=${'$as_ac_var'}
34452 $as_echo "$as_val"'`
34453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34454 $as_echo "$ac_res" >&6; }
34455 as_val=`eval 'as_val=${'$as_ac_var'}
34456 $as_echo "$as_val"'`
34457 if test "x$as_val" = x""yes; then
34458 cat >>confdefs.h <<_ACEOF
34459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34464 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34470 if test $ac_cv_func_mempcpy = no; then
34484 cat >>confdefs.h <<\_ACEOF
34485 #define GNULIB_TEST_MEMPCPY 1
34490 # Code from module memrchr:
34499 if test $ac_cv_have_decl_memrchr = no; then
34500 HAVE_DECL_MEMRCHR=0
34512 for ac_func in memrchr
34514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34516 $as_echo_n "checking for $ac_func... " >&6; }
34517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34518 $as_echo_n "(cached) " >&6
34520 cat >conftest.$ac_ext <<_ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h. */
34526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34528 #define $ac_func innocuous_$ac_func
34530 /* System header to define __stub macros and hopefully few prototypes,
34531 which can conflict with char $ac_func (); below.
34532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34533 <limits.h> exists even on freestanding compilers. */
34536 # include <limits.h>
34538 # include <assert.h>
34543 /* Override any GCC internal prototype to avoid an error.
34544 Use char because int might match the return type of a GCC
34545 builtin and then its argument prototype would still apply. */
34550 /* The GNU C library defines this for functions which it implements
34551 to always fail with ENOSYS. Some functions are actually named
34552 something starting with __ and the normal name is an alias. */
34553 #if defined __stub_$ac_func || defined __stub___$ac_func
34560 return $ac_func ();
34565 rm -f conftest.$ac_objext conftest$ac_exeext
34566 if { (ac_try="$ac_link"
34567 case "(($ac_try" in
34568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34569 *) ac_try_echo=$ac_try;;
34571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34572 $as_echo "$ac_try_echo") >&5
34573 (eval "$ac_link") 2>conftest.er1
34575 grep -v '^ *+' conftest.er1 >conftest.err
34577 cat conftest.err >&5
34578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); } && {
34580 test -z "$ac_c_werror_flag" ||
34581 test ! -s conftest.err
34582 } && test -s conftest$ac_exeext && {
34583 test "$cross_compiling" = yes ||
34584 $as_test_x conftest$ac_exeext
34586 eval "$as_ac_var=yes"
34588 $as_echo "$as_me: failed program was:" >&5
34589 sed 's/^/| /' conftest.$ac_ext >&5
34591 eval "$as_ac_var=no"
34594 rm -rf conftest.dSYM
34595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34596 conftest$ac_exeext conftest.$ac_ext
34598 ac_res=`eval 'as_val=${'$as_ac_var'}
34599 $as_echo "$as_val"'`
34600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34601 $as_echo "$ac_res" >&6; }
34602 as_val=`eval 'as_val=${'$as_ac_var'}
34603 $as_echo "$as_val"'`
34604 if test "x$as_val" = x""yes; then
34605 cat >>confdefs.h <<_ACEOF
34606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34611 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34617 if test $ac_cv_func_memrchr = no; then
34628 cat >>confdefs.h <<\_ACEOF
34629 #define GNULIB_TEST_MEMRCHR 1
34634 # Code from module mkdir:
34642 { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing slash" >&5
34643 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
34644 if test "${gl_cv_func_mkdir_trailing_slash_works+set}" = set; then
34645 $as_echo_n "(cached) " >&6
34647 rm -rf conftest.dir
34648 if test "$cross_compiling" = yes; then
34649 gl_cv_func_mkdir_trailing_slash_works="guessing no"
34651 cat >conftest.$ac_ext <<_ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h. */
34658 # include <sys/types.h>
34659 # include <sys/stat.h>
34664 return mkdir ("conftest.dir/", 0700);
34669 rm -f conftest$ac_exeext
34670 if { (ac_try="$ac_link"
34671 case "(($ac_try" in
34672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34673 *) ac_try_echo=$ac_try;;
34675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34676 $as_echo "$ac_try_echo") >&5
34677 (eval "$ac_link") 2>&5
34679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34681 { (case "(($ac_try" in
34682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683 *) ac_try_echo=$ac_try;;
34685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34686 $as_echo "$ac_try_echo") >&5
34687 (eval "$ac_try") 2>&5
34689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690 (exit $ac_status); }; }; then
34691 gl_cv_func_mkdir_trailing_slash_works=yes
34693 $as_echo "$as_me: program exited with status $ac_status" >&5
34694 $as_echo "$as_me: failed program was:" >&5
34695 sed 's/^/| /' conftest.$ac_ext >&5
34697 ( exit $ac_status )
34698 gl_cv_func_mkdir_trailing_slash_works=no
34700 rm -rf conftest.dSYM
34701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34705 rm -rf conftest.dir
34709 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
34710 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
34711 if test "$gl_cv_func_mkdir_trailing_slash_works" != yes; then
34721 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
34725 { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing dot" >&5
34726 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
34727 if test "${gl_cv_func_mkdir_trailing_dot_works+set}" = set; then
34728 $as_echo_n "(cached) " >&6
34730 rm -rf conftest.dir
34731 if test "$cross_compiling" = yes; then
34732 gl_cv_func_mkdir_trailing_dot_works="guessing no"
34734 cat >conftest.$ac_ext <<_ACEOF
34737 cat confdefs.h >>conftest.$ac_ext
34738 cat >>conftest.$ac_ext <<_ACEOF
34739 /* end confdefs.h. */
34741 # include <sys/types.h>
34742 # include <sys/stat.h>
34747 return !mkdir ("conftest.dir/./", 0700);
34752 rm -f conftest$ac_exeext
34753 if { (ac_try="$ac_link"
34754 case "(($ac_try" in
34755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34756 *) ac_try_echo=$ac_try;;
34758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34759 $as_echo "$ac_try_echo") >&5
34760 (eval "$ac_link") 2>&5
34762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34764 { (case "(($ac_try" in
34765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766 *) ac_try_echo=$ac_try;;
34768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34769 $as_echo "$ac_try_echo") >&5
34770 (eval "$ac_try") 2>&5
34772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); }; }; then
34774 gl_cv_func_mkdir_trailing_dot_works=yes
34776 $as_echo "$as_me: program exited with status $ac_status" >&5
34777 $as_echo "$as_me: failed program was:" >&5
34778 sed 's/^/| /' conftest.$ac_ext >&5
34780 ( exit $ac_status )
34781 gl_cv_func_mkdir_trailing_dot_works=no
34783 rm -rf conftest.dSYM
34784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34788 rm -rf conftest.dir
34792 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
34793 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
34794 if test "$gl_cv_func_mkdir_trailing_dot_works" != yes; then
34804 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
34807 cat >>confdefs.h <<\_ACEOF
34808 #define FUNC_MKDIR_DOT_BUG 1
34813 # Code from module mkdtemp:
34825 for ac_func in mkdtemp
34827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34828 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34829 $as_echo_n "checking for $ac_func... " >&6; }
34830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34831 $as_echo_n "(cached) " >&6
34833 cat >conftest.$ac_ext <<_ACEOF
34836 cat confdefs.h >>conftest.$ac_ext
34837 cat >>conftest.$ac_ext <<_ACEOF
34838 /* end confdefs.h. */
34839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34841 #define $ac_func innocuous_$ac_func
34843 /* System header to define __stub macros and hopefully few prototypes,
34844 which can conflict with char $ac_func (); below.
34845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34846 <limits.h> exists even on freestanding compilers. */
34849 # include <limits.h>
34851 # include <assert.h>
34856 /* Override any GCC internal prototype to avoid an error.
34857 Use char because int might match the return type of a GCC
34858 builtin and then its argument prototype would still apply. */
34863 /* The GNU C library defines this for functions which it implements
34864 to always fail with ENOSYS. Some functions are actually named
34865 something starting with __ and the normal name is an alias. */
34866 #if defined __stub_$ac_func || defined __stub___$ac_func
34873 return $ac_func ();
34878 rm -f conftest.$ac_objext conftest$ac_exeext
34879 if { (ac_try="$ac_link"
34880 case "(($ac_try" in
34881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34882 *) ac_try_echo=$ac_try;;
34884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34885 $as_echo "$ac_try_echo") >&5
34886 (eval "$ac_link") 2>conftest.er1
34888 grep -v '^ *+' conftest.er1 >conftest.err
34890 cat conftest.err >&5
34891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); } && {
34893 test -z "$ac_c_werror_flag" ||
34894 test ! -s conftest.err
34895 } && test -s conftest$ac_exeext && {
34896 test "$cross_compiling" = yes ||
34897 $as_test_x conftest$ac_exeext
34899 eval "$as_ac_var=yes"
34901 $as_echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34904 eval "$as_ac_var=no"
34907 rm -rf conftest.dSYM
34908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34909 conftest$ac_exeext conftest.$ac_ext
34911 ac_res=`eval 'as_val=${'$as_ac_var'}
34912 $as_echo "$as_val"'`
34913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34914 $as_echo "$ac_res" >&6; }
34915 as_val=`eval 'as_val=${'$as_ac_var'}
34916 $as_echo "$as_val"'`
34917 if test "x$as_val" = x""yes; then
34918 cat >>confdefs.h <<_ACEOF
34919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34924 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34930 if test $ac_cv_func_mkdtemp = no; then
34943 cat >>confdefs.h <<\_ACEOF
34944 #define GNULIB_TEST_MKDTEMP 1
34949 # Code from module mkfifo:
34958 if test $ac_cv_func_mkfifo = no; then
34968 gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
34977 { $as_echo "$as_me:$LINENO: checking whether mkfifo rejects trailing slashes" >&5
34978 $as_echo_n "checking whether mkfifo rejects trailing slashes... " >&6; }
34979 if test "${gl_cv_func_mkfifo_works+set}" = set; then
34980 $as_echo_n "(cached) " >&6
34982 # Assume that if we have lstat, we can also check symlinks.
34983 if test $ac_cv_func_lstat = yes; then
34984 ln -s conftest.tmp conftest.lnk
34986 if test "$cross_compiling" = yes; then
34987 gl_cv_func_mkfifo_works="guessing no"
34989 cat >conftest.$ac_ext <<_ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h. */
34995 #include <sys/stat.h>
35000 if (!mkfifo ("conftest.tmp/", 0600)) return 1;
35002 if (!mkfifo ("conftest.lnk/", 0600)) return 2;
35009 rm -f conftest$ac_exeext
35010 if { (ac_try="$ac_link"
35011 case "(($ac_try" in
35012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35013 *) ac_try_echo=$ac_try;;
35015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35016 $as_echo "$ac_try_echo") >&5
35017 (eval "$ac_link") 2>&5
35019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35021 { (case "(($ac_try" in
35022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023 *) ac_try_echo=$ac_try;;
35025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35026 $as_echo "$ac_try_echo") >&5
35027 (eval "$ac_try") 2>&5
35029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); }; }; then
35031 gl_cv_func_mkfifo_works=yes
35033 $as_echo "$as_me: program exited with status $ac_status" >&5
35034 $as_echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35037 ( exit $ac_status )
35038 gl_cv_func_mkfifo_works=no
35040 rm -rf conftest.dSYM
35041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35045 rm -f conftest.tmp conftest.lnk
35047 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkfifo_works" >&5
35048 $as_echo "$gl_cv_func_mkfifo_works" >&6; }
35049 if test "$gl_cv_func_mkfifo_works" != yes; then
35051 cat >>confdefs.h <<\_ACEOF
35052 #define MKFIFO_TRAILING_SLASH_BUG 1
35064 gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
35076 cat >>confdefs.h <<\_ACEOF
35077 #define GNULIB_TEST_MKFIFO 1
35082 # Code from module mkfifoat:
35095 if test $ac_cv_func_mkfifoat = no; then
35096 # No known system has mkfifoat but not mknodat
35107 gl_LIBOBJS="$gl_LIBOBJS mkfifoat.$ac_objext"
35117 gl_LIBOBJS="$gl_LIBOBJS mknodat.$ac_objext"
35128 cat >>confdefs.h <<\_ACEOF
35129 #define GNULIB_TEST_MKFIFOAT 1
35141 cat >>confdefs.h <<\_ACEOF
35142 #define GNULIB_TEST_MKNODAT 1
35147 # Code from module mknod:
35158 if test $ac_cv_func_mknod = no; then
35168 gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
35171 { $as_echo "$as_me:$LINENO: checking whether mknod can create fifo without root privileges" >&5
35172 $as_echo_n "checking whether mknod can create fifo without root privileges... " >&6; }
35173 if test "${gl_cv_func_mknod_works+set}" = set; then
35174 $as_echo_n "(cached) " >&6
35176 if test "$cross_compiling" = yes; then
35177 gl_cv_func_mknod_works="guessing no"
35179 cat >conftest.$ac_ext <<_ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h. */
35185 #include <sys/stat.h>
35186 #include <unistd.h>
35191 /* Indeterminate for super-user, assume no. Why are you running
35192 configure as root, anyway? */
35193 if (!geteuid ()) return 99;
35194 if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;
35199 rm -f conftest$ac_exeext
35200 if { (ac_try="$ac_link"
35201 case "(($ac_try" in
35202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203 *) ac_try_echo=$ac_try;;
35205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35206 $as_echo "$ac_try_echo") >&5
35207 (eval "$ac_link") 2>&5
35209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35211 { (case "(($ac_try" in
35212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35213 *) ac_try_echo=$ac_try;;
35215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35216 $as_echo "$ac_try_echo") >&5
35217 (eval "$ac_try") 2>&5
35219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220 (exit $ac_status); }; }; then
35221 gl_cv_func_mknod_works=yes
35223 $as_echo "$as_me: program exited with status $ac_status" >&5
35224 $as_echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35227 ( exit $ac_status )
35228 if test $? == 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
35229 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35231 { { $as_echo "$as_me:$LINENO: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
35232 See \`config.log' for more details." >&5
35233 $as_echo "$as_me: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
35234 See \`config.log' for more details." >&2;}
35235 { (exit 1); exit 1; }; }; }
35237 gl_cv_func_mknod_works=no
35239 rm -rf conftest.dSYM
35240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35244 rm -f conftest.fifo
35246 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mknod_works" >&5
35247 $as_echo "$gl_cv_func_mknod_works" >&6; }
35248 if test "$gl_cv_func_mknod_works" != yes; then
35250 cat >>confdefs.h <<\_ACEOF
35251 #define MKNOD_FIFO_BUG 1
35255 if test $REPLACE_MKFIFO = 1 || test "$gl_cv_func_mknod_works" != yes; then
35265 gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
35277 cat >>confdefs.h <<\_ACEOF
35278 #define GNULIB_TEST_MKNOD 1
35283 # Code from module mktime:
35299 if test $APPLE_UNIVERSAL_BUILD = 1; then
35300 # A universal build on Apple MacOS X platforms.
35301 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
35302 # But we need a configuration result that is valid in both modes.
35303 ac_cv_func_working_mktime=no
35305 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
35306 $as_echo_n "checking for working mktime... " >&6; }
35307 if test "${ac_cv_func_working_mktime+set}" = set; then
35308 $as_echo_n "(cached) " >&6
35310 if test "$cross_compiling" = yes; then
35311 ac_cv_func_working_mktime=no
35313 cat >conftest.$ac_ext <<_ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h. */
35319 /* Test program from Paul Eggert and Tony Leneis. */
35320 #include <limits.h>
35321 #include <stdlib.h>
35324 #ifdef HAVE_UNISTD_H
35325 # include <unistd.h>
35329 # define alarm(X) /* empty */
35332 /* Work around redefinition to rpl_putenv by other config tests. */
35335 static time_t time_t_max;
35336 static time_t time_t_min;
35338 /* Values we'll use to set the TZ environment variable. */
35339 static char *tz_strings[] = {
35340 (char *) 0, "TZ=GMT0", "TZ=JST-9",
35341 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
35343 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
35345 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
35346 Based on a problem report from Andreas Jaeger. */
35348 spring_forward_gap ()
35350 /* glibc (up to about 1998-10-07) failed this test. */
35353 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
35354 instead of "TZ=America/Vancouver" in order to detect the bug even
35355 on systems that don't support the Olson extension, or don't have the
35356 full zoneinfo tables installed. */
35357 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
35366 return mktime (&tm) != (time_t) -1;
35370 mktime_test1 (time_t now)
35373 return ! (lt = localtime (&now)) || mktime (lt) == now;
35377 mktime_test (time_t now)
35379 return (mktime_test1 (now)
35380 && mktime_test1 ((time_t) (time_t_max - now))
35381 && mktime_test1 ((time_t) (time_t_min + now)));
35387 /* Based on code from Ariel Faigon. */
35397 return tm.tm_mon == 2 && tm.tm_mday == 31;
35401 bigtime_test (int j)
35405 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
35406 now = mktime (&tm);
35407 if (now != (time_t) -1)
35409 struct tm *lt = localtime (&now);
35411 && lt->tm_year == tm.tm_year
35412 && lt->tm_mon == tm.tm_mon
35413 && lt->tm_mday == tm.tm_mday
35414 && lt->tm_hour == tm.tm_hour
35415 && lt->tm_min == tm.tm_min
35416 && lt->tm_sec == tm.tm_sec
35417 && lt->tm_yday == tm.tm_yday
35418 && lt->tm_wday == tm.tm_wday
35419 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
35420 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
35429 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
35430 ignoring leap seconds. */
35431 unsigned long int answer = 2527315200UL;
35435 tm.tm_year = 2050 - 1900;
35438 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
35441 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
35442 instead of "TZ=America/Vancouver" in order to detect the bug even
35443 on systems that don't support the Olson extension, or don't have the
35444 full zoneinfo tables installed. */
35445 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
35449 /* Check that the result is either a failure, or close enough
35450 to the correct answer that we can assume the discrepancy is
35451 due to leap seconds. */
35452 return (t == (time_t) -1
35453 || (0 < t && answer - 120 <= t && t <= answer + 120));
35462 /* This test makes some buggy mktime implementations loop.
35463 Give up after 60 seconds; a mktime slower than that
35464 isn't worth using anyway. */
35469 t = (time_t_max << 1) + 1;
35470 if (t <= time_t_max)
35474 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
35476 delta = time_t_max / 997; /* a suitable prime number */
35477 for (i = 0; i < N_STRINGS; i++)
35480 putenv (tz_strings[i]);
35482 for (t = 0; t <= time_t_max - delta; t += delta)
35483 if (! mktime_test (t))
35485 if (! (mktime_test ((time_t) 1)
35486 && mktime_test ((time_t) (60 * 60))
35487 && mktime_test ((time_t) (60 * 60 * 24))))
35490 for (j = 1; ; j <<= 1)
35491 if (! bigtime_test (j))
35493 else if (INT_MAX / 2 < j)
35495 if (! bigtime_test (INT_MAX))
35498 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
35501 rm -f conftest$ac_exeext
35502 if { (ac_try="$ac_link"
35503 case "(($ac_try" in
35504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35505 *) ac_try_echo=$ac_try;;
35507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35508 $as_echo "$ac_try_echo") >&5
35509 (eval "$ac_link") 2>&5
35511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35513 { (case "(($ac_try" in
35514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35515 *) ac_try_echo=$ac_try;;
35517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35518 $as_echo "$ac_try_echo") >&5
35519 (eval "$ac_try") 2>&5
35521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; }; then
35523 ac_cv_func_working_mktime=yes
35525 $as_echo "$as_me: program exited with status $ac_status" >&5
35526 $as_echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35529 ( exit $ac_status )
35530 ac_cv_func_working_mktime=no
35532 rm -rf conftest.dSYM
35533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
35539 $as_echo "$ac_cv_func_working_mktime" >&6; }
35540 if test $ac_cv_func_working_mktime = no; then
35549 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
35553 if test $ac_cv_func_working_mktime = no; then
35569 cat >>confdefs.h <<\_ACEOF
35570 #define GNULIB_TEST_MKTIME 1
35575 # Code from module modechange:
35585 gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
35588 # Code from module multiarch:
35590 # Code from module nl_langinfo:
35600 if test $ac_cv_func_nl_langinfo = yes; then
35601 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
35604 REPLACE_NL_LANGINFO=1
35606 cat >>confdefs.h <<\_ACEOF
35607 #define REPLACE_NL_LANGINFO 1
35618 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
35631 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
35638 GNULIB_NL_LANGINFO=1
35642 cat >>confdefs.h <<\_ACEOF
35643 #define GNULIB_TEST_NL_LANGINFO 1
35648 # Code from module obstack:
35661 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
35662 $as_echo_n "checking for obstacks... " >&6; }
35663 if test "${ac_cv_func_obstack+set}" = set; then
35664 $as_echo_n "(cached) " >&6
35666 cat >conftest.$ac_ext <<_ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35672 $ac_includes_default
35673 #include "obstack.h"
35677 struct obstack mem;
35678 #define obstack_chunk_alloc malloc
35679 #define obstack_chunk_free free
35680 obstack_init (&mem);
35681 obstack_free (&mem, 0);
35686 rm -f conftest.$ac_objext conftest$ac_exeext
35687 if { (ac_try="$ac_link"
35688 case "(($ac_try" in
35689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35690 *) ac_try_echo=$ac_try;;
35692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35693 $as_echo "$ac_try_echo") >&5
35694 (eval "$ac_link") 2>conftest.er1
35696 grep -v '^ *+' conftest.er1 >conftest.err
35698 cat conftest.err >&5
35699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } && {
35701 test -z "$ac_c_werror_flag" ||
35702 test ! -s conftest.err
35703 } && test -s conftest$ac_exeext && {
35704 test "$cross_compiling" = yes ||
35705 $as_test_x conftest$ac_exeext
35707 ac_cv_func_obstack=yes
35709 $as_echo "$as_me: failed program was:" >&5
35710 sed 's/^/| /' conftest.$ac_ext >&5
35712 ac_cv_func_obstack=no
35715 rm -rf conftest.dSYM
35716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35717 conftest$ac_exeext conftest.$ac_ext
35719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35720 $as_echo "$ac_cv_func_obstack" >&6; }
35721 if test $ac_cv_func_obstack = yes; then
35723 cat >>confdefs.h <<\_ACEOF
35724 #define HAVE_OBSTACK 1
35736 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
35740 # Code from module open:
35756 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
35772 { $as_echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
35773 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
35774 if test "${gl_cv_func_open_slash+set}" = set; then
35775 $as_echo_n "(cached) " >&6
35777 # Assume that if we have lstat, we can also check symlinks.
35778 if test $ac_cv_func_lstat = yes; then
35780 ln -s conftest.tmp conftest.lnk
35782 if test "$cross_compiling" = yes; then
35785 freebsd* | aix* | hpux* | solaris2.[0-9]*)
35786 gl_cv_func_open_slash="guessing no" ;;
35788 gl_cv_func_open_slash="guessing yes" ;;
35792 cat >conftest.$ac_ext <<_ACEOF
35795 cat confdefs.h >>conftest.$ac_ext
35796 cat >>conftest.$ac_ext <<_ACEOF
35797 /* end confdefs.h. */
35801 # include <unistd.h>
35806 if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
35808 return open ("conftest.sl/", O_CREAT, 0600) >= 0;
35811 rm -f conftest$ac_exeext
35812 if { (ac_try="$ac_link"
35813 case "(($ac_try" in
35814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35815 *) ac_try_echo=$ac_try;;
35817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35818 $as_echo "$ac_try_echo") >&5
35819 (eval "$ac_link") 2>&5
35821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35823 { (case "(($ac_try" in
35824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35825 *) ac_try_echo=$ac_try;;
35827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35828 $as_echo "$ac_try_echo") >&5
35829 (eval "$ac_try") 2>&5
35831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); }; }; then
35833 gl_cv_func_open_slash=yes
35835 $as_echo "$as_me: program exited with status $ac_status" >&5
35836 $as_echo "$as_me: failed program was:" >&5
35837 sed 's/^/| /' conftest.$ac_ext >&5
35839 ( exit $ac_status )
35840 gl_cv_func_open_slash=no
35842 rm -rf conftest.dSYM
35843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35847 rm -f conftest.sl conftest.tmp conftest.lnk
35850 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
35851 $as_echo "$gl_cv_func_open_slash" >&6; }
35852 case "$gl_cv_func_open_slash" in
35855 cat >>confdefs.h <<\_ACEOF
35856 #define OPEN_TRAILING_SLASH_BUG 1
35870 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
35890 cat >>confdefs.h <<\_ACEOF
35891 #define GNULIB_TEST_OPEN 1
35896 # Code from module openat:
35918 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
35968 for ac_func in fchmodat fstatat mkdirat openat unlinkat
35970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35971 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35972 $as_echo_n "checking for $ac_func... " >&6; }
35973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35974 $as_echo_n "(cached) " >&6
35976 cat >conftest.$ac_ext <<_ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h. */
35982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35984 #define $ac_func innocuous_$ac_func
35986 /* System header to define __stub macros and hopefully few prototypes,
35987 which can conflict with char $ac_func (); below.
35988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35989 <limits.h> exists even on freestanding compilers. */
35992 # include <limits.h>
35994 # include <assert.h>
35999 /* Override any GCC internal prototype to avoid an error.
36000 Use char because int might match the return type of a GCC
36001 builtin and then its argument prototype would still apply. */
36006 /* The GNU C library defines this for functions which it implements
36007 to always fail with ENOSYS. Some functions are actually named
36008 something starting with __ and the normal name is an alias. */
36009 #if defined __stub_$ac_func || defined __stub___$ac_func
36016 return $ac_func ();
36021 rm -f conftest.$ac_objext conftest$ac_exeext
36022 if { (ac_try="$ac_link"
36023 case "(($ac_try" in
36024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025 *) ac_try_echo=$ac_try;;
36027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36028 $as_echo "$ac_try_echo") >&5
36029 (eval "$ac_link") 2>conftest.er1
36031 grep -v '^ *+' conftest.er1 >conftest.err
36033 cat conftest.err >&5
36034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); } && {
36036 test -z "$ac_c_werror_flag" ||
36037 test ! -s conftest.err
36038 } && test -s conftest$ac_exeext && {
36039 test "$cross_compiling" = yes ||
36040 $as_test_x conftest$ac_exeext
36042 eval "$as_ac_var=yes"
36044 $as_echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36047 eval "$as_ac_var=no"
36050 rm -rf conftest.dSYM
36051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36052 conftest$ac_exeext conftest.$ac_ext
36054 ac_res=`eval 'as_val=${'$as_ac_var'}
36055 $as_echo "$as_val"'`
36056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36057 $as_echo "$ac_res" >&6; }
36058 as_val=`eval 'as_val=${'$as_ac_var'}
36059 $as_echo "$as_val"'`
36060 if test "x$as_val" = x""yes; then
36061 cat >>confdefs.h <<_ACEOF
36062 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36075 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
36077 # GNU/Hurd has unlinkat, but it has the same bug as unlink.
36078 if test $REPLACE_UNLINK = 1; then
36087 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
36092 # Solaris 9 has *at functions, but uniformly mishandles trailing
36093 # slash in all of them.
36102 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
36113 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
36124 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
36130 HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
36131 HAVE_FSTATAT=0 # No known system with fstatat but not openat
36138 if test $ac_cv_func_fchmodat != yes; then
36141 if test $ac_cv_func_mkdirat != yes; then
36146 { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
36147 $as_echo_n "checking for fchownat... " >&6; }
36148 if test "${ac_cv_func_fchownat+set}" = set; then
36149 $as_echo_n "(cached) " >&6
36151 cat >conftest.$ac_ext <<_ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h. */
36157 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
36158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36159 #define fchownat innocuous_fchownat
36161 /* System header to define __stub macros and hopefully few prototypes,
36162 which can conflict with char fchownat (); below.
36163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36164 <limits.h> exists even on freestanding compilers. */
36167 # include <limits.h>
36169 # include <assert.h>
36174 /* Override any GCC internal prototype to avoid an error.
36175 Use char because int might match the return type of a GCC
36176 builtin and then its argument prototype would still apply. */
36181 /* The GNU C library defines this for functions which it implements
36182 to always fail with ENOSYS. Some functions are actually named
36183 something starting with __ and the normal name is an alias. */
36184 #if defined __stub_fchownat || defined __stub___fchownat
36191 return fchownat ();
36196 rm -f conftest.$ac_objext conftest$ac_exeext
36197 if { (ac_try="$ac_link"
36198 case "(($ac_try" in
36199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36200 *) ac_try_echo=$ac_try;;
36202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36203 $as_echo "$ac_try_echo") >&5
36204 (eval "$ac_link") 2>conftest.er1
36206 grep -v '^ *+' conftest.er1 >conftest.err
36208 cat conftest.err >&5
36209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); } && {
36211 test -z "$ac_c_werror_flag" ||
36212 test ! -s conftest.err
36213 } && test -s conftest$ac_exeext && {
36214 test "$cross_compiling" = yes ||
36215 $as_test_x conftest$ac_exeext
36217 ac_cv_func_fchownat=yes
36219 $as_echo "$as_me: failed program was:" >&5
36220 sed 's/^/| /' conftest.$ac_ext >&5
36222 ac_cv_func_fchownat=no
36225 rm -rf conftest.dSYM
36226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36227 conftest$ac_exeext conftest.$ac_ext
36229 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
36230 $as_echo "$ac_cv_func_fchownat" >&6; }
36231 if test "x$ac_cv_func_fchownat" = x""yes; then
36233 { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
36234 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
36235 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
36236 $as_echo_n "(cached) " >&6
36239 gl_dangle=conftest.dangle
36240 # Remove any remnants of a previous test.
36242 # Arrange for deletion of the temporary file this test creates.
36243 ac_clean_files="$ac_clean_files $gl_dangle"
36244 ln -s conftest.no-such $gl_dangle
36245 if test "$cross_compiling" = yes; then
36246 gl_cv_func_fchownat_nofollow_works=no
36248 cat >conftest.$ac_ext <<_ACEOF
36251 cat confdefs.h >>conftest.$ac_ext
36252 cat >>conftest.$ac_ext <<_ACEOF
36253 /* end confdefs.h. */
36256 #include <unistd.h>
36257 #include <stdlib.h>
36259 #include <sys/types.h>
36263 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
36264 AT_SYMLINK_NOFOLLOW) != 0
36265 && errno == ENOENT);
36269 rm -f conftest$ac_exeext
36270 if { (ac_try="$ac_link"
36271 case "(($ac_try" in
36272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36273 *) ac_try_echo=$ac_try;;
36275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36276 $as_echo "$ac_try_echo") >&5
36277 (eval "$ac_link") 2>&5
36279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36281 { (case "(($ac_try" in
36282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36283 *) ac_try_echo=$ac_try;;
36285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36286 $as_echo "$ac_try_echo") >&5
36287 (eval "$ac_try") 2>&5
36289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); }; }; then
36291 gl_cv_func_fchownat_nofollow_works=yes
36293 $as_echo "$as_me: program exited with status $ac_status" >&5
36294 $as_echo "$as_me: failed program was:" >&5
36295 sed 's/^/| /' conftest.$ac_ext >&5
36297 ( exit $ac_status )
36298 gl_cv_func_fchownat_nofollow_works=no
36300 rm -rf conftest.dSYM
36301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36307 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
36308 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
36309 if test $gl_cv_func_fchownat_nofollow_works = no; then
36312 cat >>confdefs.h <<\_ACEOF
36313 #define FCHOWNAT_NOFOLLOW_BUG 1
36320 if test $REPLACE_CHOWN = 1; then
36327 if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
36336 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
36341 # Code from module openat-die:
36342 # Code from module parse-datetime:
36349 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
36350 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
36351 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
36352 $as_echo_n "(cached) " >&6
36354 cat >conftest.$ac_ext <<_ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h. */
36360 #include <sys/types.h>
36361 #include <$ac_cv_struct_tm>
36367 static struct tm ac_aggr;
36368 if (ac_aggr.tm_zone)
36374 rm -f conftest.$ac_objext
36375 if { (ac_try="$ac_compile"
36376 case "(($ac_try" in
36377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378 *) ac_try_echo=$ac_try;;
36380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36381 $as_echo "$ac_try_echo") >&5
36382 (eval "$ac_compile") 2>conftest.er1
36384 grep -v '^ *+' conftest.er1 >conftest.err
36386 cat conftest.err >&5
36387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); } && {
36389 test -z "$ac_c_werror_flag" ||
36390 test ! -s conftest.err
36391 } && test -s conftest.$ac_objext; then
36392 ac_cv_member_struct_tm_tm_zone=yes
36394 $as_echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36397 cat >conftest.$ac_ext <<_ACEOF
36400 cat confdefs.h >>conftest.$ac_ext
36401 cat >>conftest.$ac_ext <<_ACEOF
36402 /* end confdefs.h. */
36403 #include <sys/types.h>
36404 #include <$ac_cv_struct_tm>
36410 static struct tm ac_aggr;
36411 if (sizeof ac_aggr.tm_zone)
36417 rm -f conftest.$ac_objext
36418 if { (ac_try="$ac_compile"
36419 case "(($ac_try" in
36420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36421 *) ac_try_echo=$ac_try;;
36423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36424 $as_echo "$ac_try_echo") >&5
36425 (eval "$ac_compile") 2>conftest.er1
36427 grep -v '^ *+' conftest.er1 >conftest.err
36429 cat conftest.err >&5
36430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431 (exit $ac_status); } && {
36432 test -z "$ac_c_werror_flag" ||
36433 test ! -s conftest.err
36434 } && test -s conftest.$ac_objext; then
36435 ac_cv_member_struct_tm_tm_zone=yes
36437 $as_echo "$as_me: failed program was:" >&5
36438 sed 's/^/| /' conftest.$ac_ext >&5
36440 ac_cv_member_struct_tm_tm_zone=no
36443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36448 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
36449 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
36450 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
36452 cat >>confdefs.h <<_ACEOF
36453 #define HAVE_STRUCT_TM_TM_ZONE 1
36459 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
36461 cat >>confdefs.h <<\_ACEOF
36462 #define HAVE_TM_ZONE 1
36466 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
36467 $as_echo_n "checking whether tzname is declared... " >&6; }
36468 if test "${ac_cv_have_decl_tzname+set}" = set; then
36469 $as_echo_n "(cached) " >&6
36471 cat >conftest.$ac_ext <<_ACEOF
36474 cat confdefs.h >>conftest.$ac_ext
36475 cat >>conftest.$ac_ext <<_ACEOF
36476 /* end confdefs.h. */
36490 rm -f conftest.$ac_objext
36491 if { (ac_try="$ac_compile"
36492 case "(($ac_try" in
36493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36494 *) ac_try_echo=$ac_try;;
36496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36497 $as_echo "$ac_try_echo") >&5
36498 (eval "$ac_compile") 2>conftest.er1
36500 grep -v '^ *+' conftest.er1 >conftest.err
36502 cat conftest.err >&5
36503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); } && {
36505 test -z "$ac_c_werror_flag" ||
36506 test ! -s conftest.err
36507 } && test -s conftest.$ac_objext; then
36508 ac_cv_have_decl_tzname=yes
36510 $as_echo "$as_me: failed program was:" >&5
36511 sed 's/^/| /' conftest.$ac_ext >&5
36513 ac_cv_have_decl_tzname=no
36516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36518 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
36519 $as_echo "$ac_cv_have_decl_tzname" >&6; }
36520 if test "x$ac_cv_have_decl_tzname" = x""yes; then
36522 cat >>confdefs.h <<_ACEOF
36523 #define HAVE_DECL_TZNAME 1
36528 cat >>confdefs.h <<_ACEOF
36529 #define HAVE_DECL_TZNAME 0
36536 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
36537 $as_echo_n "checking for tzname... " >&6; }
36538 if test "${ac_cv_var_tzname+set}" = set; then
36539 $as_echo_n "(cached) " >&6
36541 cat >conftest.$ac_ext <<_ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h. */
36548 #if !HAVE_DECL_TZNAME
36549 extern char *tzname[];
36555 return tzname[0][0];
36560 rm -f conftest.$ac_objext conftest$ac_exeext
36561 if { (ac_try="$ac_link"
36562 case "(($ac_try" in
36563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36564 *) ac_try_echo=$ac_try;;
36566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36567 $as_echo "$ac_try_echo") >&5
36568 (eval "$ac_link") 2>conftest.er1
36570 grep -v '^ *+' conftest.er1 >conftest.err
36572 cat conftest.err >&5
36573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); } && {
36575 test -z "$ac_c_werror_flag" ||
36576 test ! -s conftest.err
36577 } && test -s conftest$ac_exeext && {
36578 test "$cross_compiling" = yes ||
36579 $as_test_x conftest$ac_exeext
36581 ac_cv_var_tzname=yes
36583 $as_echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36586 ac_cv_var_tzname=no
36589 rm -rf conftest.dSYM
36590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36591 conftest$ac_exeext conftest.$ac_ext
36593 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
36594 $as_echo "$ac_cv_var_tzname" >&6; }
36595 if test $ac_cv_var_tzname = yes; then
36597 cat >>confdefs.h <<\_ACEOF
36598 #define HAVE_TZNAME 1
36606 cat >conftest.$ac_ext <<_ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h. */
36613 #include <time.h> /* for time_t */
36614 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
36615 #define TYPE_MINIMUM(t) \
36616 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
36617 #define TYPE_MAXIMUM(t) \
36618 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
36619 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
36620 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
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
36642 cat >>confdefs.h <<\_ACEOF
36643 #define TIME_T_FITS_IN_LONG_INT 1
36648 $as_echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36656 # Code from module pathmax:
36671 # Code from module priv-set:
36675 for ac_func in getppriv
36677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36678 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36679 $as_echo_n "checking for $ac_func... " >&6; }
36680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36681 $as_echo_n "(cached) " >&6
36683 cat >conftest.$ac_ext <<_ACEOF
36686 cat confdefs.h >>conftest.$ac_ext
36687 cat >>conftest.$ac_ext <<_ACEOF
36688 /* end confdefs.h. */
36689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36691 #define $ac_func innocuous_$ac_func
36693 /* System header to define __stub macros and hopefully few prototypes,
36694 which can conflict with char $ac_func (); below.
36695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36696 <limits.h> exists even on freestanding compilers. */
36699 # include <limits.h>
36701 # include <assert.h>
36706 /* Override any GCC internal prototype to avoid an error.
36707 Use char because int might match the return type of a GCC
36708 builtin and then its argument prototype would still apply. */
36713 /* The GNU C library defines this for functions which it implements
36714 to always fail with ENOSYS. Some functions are actually named
36715 something starting with __ and the normal name is an alias. */
36716 #if defined __stub_$ac_func || defined __stub___$ac_func
36723 return $ac_func ();
36728 rm -f conftest.$ac_objext conftest$ac_exeext
36729 if { (ac_try="$ac_link"
36730 case "(($ac_try" in
36731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36732 *) ac_try_echo=$ac_try;;
36734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36735 $as_echo "$ac_try_echo") >&5
36736 (eval "$ac_link") 2>conftest.er1
36738 grep -v '^ *+' conftest.er1 >conftest.err
36740 cat conftest.err >&5
36741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742 (exit $ac_status); } && {
36743 test -z "$ac_c_werror_flag" ||
36744 test ! -s conftest.err
36745 } && test -s conftest$ac_exeext && {
36746 test "$cross_compiling" = yes ||
36747 $as_test_x conftest$ac_exeext
36749 eval "$as_ac_var=yes"
36751 $as_echo "$as_me: failed program was:" >&5
36752 sed 's/^/| /' conftest.$ac_ext >&5
36754 eval "$as_ac_var=no"
36757 rm -rf conftest.dSYM
36758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36759 conftest$ac_exeext conftest.$ac_ext
36761 ac_res=`eval 'as_val=${'$as_ac_var'}
36762 $as_echo "$as_val"'`
36763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36764 $as_echo "$ac_res" >&6; }
36765 as_val=`eval 'as_val=${'$as_ac_var'}
36766 $as_echo "$as_val"'`
36767 if test "x$as_val" = x""yes; then
36768 cat >>confdefs.h <<_ACEOF
36769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36782 # Code from module progname:
36783 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
36784 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
36785 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
36786 $as_echo_n "(cached) " >&6
36788 cat >conftest.$ac_ext <<_ACEOF
36791 cat confdefs.h >>conftest.$ac_ext
36792 cat >>conftest.$ac_ext <<_ACEOF
36793 /* end confdefs.h. */
36799 #ifndef program_invocation_name
36800 (void) program_invocation_name;
36807 rm -f conftest.$ac_objext
36808 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
36817 grep -v '^ *+' conftest.er1 >conftest.err
36819 cat conftest.err >&5
36820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); } && {
36822 test -z "$ac_c_werror_flag" ||
36823 test ! -s conftest.err
36824 } && test -s conftest.$ac_objext; then
36825 ac_cv_have_decl_program_invocation_name=yes
36827 $as_echo "$as_me: failed program was:" >&5
36828 sed 's/^/| /' conftest.$ac_ext >&5
36830 ac_cv_have_decl_program_invocation_name=no
36833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36835 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
36836 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
36837 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
36839 cat >>confdefs.h <<_ACEOF
36840 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
36845 cat >>confdefs.h <<_ACEOF
36846 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
36853 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
36854 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
36855 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
36856 $as_echo_n "(cached) " >&6
36858 cat >conftest.$ac_ext <<_ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h. */
36869 #ifndef program_invocation_short_name
36870 (void) program_invocation_short_name;
36877 rm -f conftest.$ac_objext
36878 if { (ac_try="$ac_compile"
36879 case "(($ac_try" in
36880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36881 *) ac_try_echo=$ac_try;;
36883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36884 $as_echo "$ac_try_echo") >&5
36885 (eval "$ac_compile") 2>conftest.er1
36887 grep -v '^ *+' conftest.er1 >conftest.err
36889 cat conftest.err >&5
36890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); } && {
36892 test -z "$ac_c_werror_flag" ||
36893 test ! -s conftest.err
36894 } && test -s conftest.$ac_objext; then
36895 ac_cv_have_decl_program_invocation_short_name=yes
36897 $as_echo "$as_me: failed program was:" >&5
36898 sed 's/^/| /' conftest.$ac_ext >&5
36900 ac_cv_have_decl_program_invocation_short_name=no
36903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36905 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
36906 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
36907 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
36909 cat >>confdefs.h <<_ACEOF
36910 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
36915 cat >>confdefs.h <<_ACEOF
36916 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
36923 # Code from module quote:
36933 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
36937 # Code from module quotearg:
36947 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
36950 # Code from module quotearg-simple:
36951 # Code from module rawmemchr:
36965 for ac_func in rawmemchr
36967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36968 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36969 $as_echo_n "checking for $ac_func... " >&6; }
36970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36971 $as_echo_n "(cached) " >&6
36973 cat >conftest.$ac_ext <<_ACEOF
36976 cat confdefs.h >>conftest.$ac_ext
36977 cat >>conftest.$ac_ext <<_ACEOF
36978 /* end confdefs.h. */
36979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36981 #define $ac_func innocuous_$ac_func
36983 /* System header to define __stub macros and hopefully few prototypes,
36984 which can conflict with char $ac_func (); below.
36985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36986 <limits.h> exists even on freestanding compilers. */
36989 # include <limits.h>
36991 # include <assert.h>
36996 /* Override any GCC internal prototype to avoid an error.
36997 Use char because int might match the return type of a GCC
36998 builtin and then its argument prototype would still apply. */
37003 /* The GNU C library defines this for functions which it implements
37004 to always fail with ENOSYS. Some functions are actually named
37005 something starting with __ and the normal name is an alias. */
37006 #if defined __stub_$ac_func || defined __stub___$ac_func
37013 return $ac_func ();
37018 rm -f conftest.$ac_objext conftest$ac_exeext
37019 if { (ac_try="$ac_link"
37020 case "(($ac_try" in
37021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37022 *) ac_try_echo=$ac_try;;
37024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37025 $as_echo "$ac_try_echo") >&5
37026 (eval "$ac_link") 2>conftest.er1
37028 grep -v '^ *+' conftest.er1 >conftest.err
37030 cat conftest.err >&5
37031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); } && {
37033 test -z "$ac_c_werror_flag" ||
37034 test ! -s conftest.err
37035 } && test -s conftest$ac_exeext && {
37036 test "$cross_compiling" = yes ||
37037 $as_test_x conftest$ac_exeext
37039 eval "$as_ac_var=yes"
37041 $as_echo "$as_me: failed program was:" >&5
37042 sed 's/^/| /' conftest.$ac_ext >&5
37044 eval "$as_ac_var=no"
37047 rm -rf conftest.dSYM
37048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37049 conftest$ac_exeext conftest.$ac_ext
37051 ac_res=`eval 'as_val=${'$as_ac_var'}
37052 $as_echo "$as_val"'`
37053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37054 $as_echo "$ac_res" >&6; }
37055 as_val=`eval 'as_val=${'$as_ac_var'}
37056 $as_echo "$as_val"'`
37057 if test "x$as_val" = x""yes; then
37058 cat >>confdefs.h <<_ACEOF
37059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37064 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37070 if test $ac_cv_func_rawmemchr = no; then
37082 cat >>confdefs.h <<\_ACEOF
37083 #define GNULIB_TEST_RAWMEMCHR 1
37088 # Code from module readlink:
37097 if test $ac_cv_func_readlink = no; then
37107 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37113 { $as_echo "$as_me:$LINENO: checking whether readlink signature is correct" >&5
37114 $as_echo_n "checking whether readlink signature is correct... " >&6; }
37115 if test "${gl_cv_decl_readlink_works+set}" = set; then
37116 $as_echo_n "(cached) " >&6
37118 cat >conftest.$ac_ext <<_ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h. */
37124 #include <unistd.h>
37125 /* Cause compilation failure if original declaration has wrong type. */
37126 ssize_t readlink (const char *, char *, size_t);
37135 rm -f conftest.$ac_objext
37136 if { (ac_try="$ac_compile"
37137 case "(($ac_try" in
37138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37139 *) ac_try_echo=$ac_try;;
37141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37142 $as_echo "$ac_try_echo") >&5
37143 (eval "$ac_compile") 2>conftest.er1
37145 grep -v '^ *+' conftest.er1 >conftest.err
37147 cat conftest.err >&5
37148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); } && {
37150 test -z "$ac_c_werror_flag" ||
37151 test ! -s conftest.err
37152 } && test -s conftest.$ac_objext; then
37153 gl_cv_decl_readlink_works=yes
37155 $as_echo "$as_me: failed program was:" >&5
37156 sed 's/^/| /' conftest.$ac_ext >&5
37158 gl_cv_decl_readlink_works=no
37161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37163 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_readlink_works" >&5
37164 $as_echo "$gl_cv_decl_readlink_works" >&6; }
37165 { $as_echo "$as_me:$LINENO: checking whether readlink handles trailing slash correctly" >&5
37166 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
37167 if test "${gl_cv_func_readlink_works+set}" = set; then
37168 $as_echo_n "(cached) " >&6
37170 # We have readlink, so assume ln -s works.
37171 ln -s conftest.no-such conftest.link
37172 ln -s conftest.link conftest.lnk2
37173 if test "$cross_compiling" = yes; then
37174 gl_cv_func_readlink_works="guessing no"
37176 cat >conftest.$ac_ext <<_ACEOF
37179 cat confdefs.h >>conftest.$ac_ext
37180 cat >>conftest.$ac_ext <<_ACEOF
37181 /* end confdefs.h. */
37182 #include <unistd.h>
37188 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
37193 rm -f conftest$ac_exeext
37194 if { (ac_try="$ac_link"
37195 case "(($ac_try" in
37196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197 *) ac_try_echo=$ac_try;;
37199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37200 $as_echo "$ac_try_echo") >&5
37201 (eval "$ac_link") 2>&5
37203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37205 { (case "(($ac_try" in
37206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37207 *) ac_try_echo=$ac_try;;
37209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37210 $as_echo "$ac_try_echo") >&5
37211 (eval "$ac_try") 2>&5
37213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214 (exit $ac_status); }; }; then
37215 gl_cv_func_readlink_works=yes
37217 $as_echo "$as_me: program exited with status $ac_status" >&5
37218 $as_echo "$as_me: failed program was:" >&5
37219 sed 's/^/| /' conftest.$ac_ext >&5
37221 ( exit $ac_status )
37222 gl_cv_func_readlink_works=no
37224 rm -rf conftest.dSYM
37225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37229 rm -f conftest.link conftest.lnk2
37231 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_readlink_works" >&5
37232 $as_echo "$gl_cv_func_readlink_works" >&6; }
37233 if test "$gl_cv_func_readlink_works" != yes; then
37235 cat >>confdefs.h <<\_ACEOF
37236 #define READLINK_TRAILING_SLASH_BUG 1
37248 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37250 elif test "$gl_cv_decl_readlink_works" != yes; then
37260 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37272 cat >>confdefs.h <<\_ACEOF
37273 #define GNULIB_TEST_READLINK 1
37278 # Code from module readlinkat:
37289 if test $ac_cv_func_readlinkat = no; then
37299 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
37306 GNULIB_READLINKAT=1
37310 cat >>confdefs.h <<\_ACEOF
37311 #define GNULIB_TEST_READLINKAT 1
37316 # Code from module realloc-posix:
37320 if test $gl_cv_func_malloc_posix = yes; then
37322 cat >>confdefs.h <<\_ACEOF
37323 #define HAVE_REALLOC_POSIX 1
37336 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37345 GNULIB_REALLOC_POSIX=1
37349 cat >>confdefs.h <<\_ACEOF
37350 #define GNULIB_TEST_REALLOC_POSIX 1
37355 # Code from module regex:
37365 # Check whether --with-included-regex was given.
37366 if test "${with_included_regex+set}" = set; then
37367 withval=$with_included_regex;
37371 case $with_included_regex in #(
37372 yes|no) ac_use_included_regex=$with_included_regex
37375 # If the system regex support is good enough that it passes the
37376 # following run test, then default to *not* using the included regex.c.
37377 # If cross compiling, assume the test would fail and use the included
37379 { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
37380 $as_echo_n "checking for working re_compile_pattern... " >&6; }
37381 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
37382 $as_echo_n "(cached) " >&6
37384 if test "$cross_compiling" = yes; then
37385 gl_cv_func_re_compile_pattern_working=no
37387 cat >conftest.$ac_ext <<_ACEOF
37390 cat confdefs.h >>conftest.$ac_ext
37391 cat >>conftest.$ac_ext <<_ACEOF
37392 /* end confdefs.h. */
37393 $ac_includes_default
37395 #include <locale.h>
37397 #include <limits.h>
37403 static struct re_pattern_buffer regex;
37404 unsigned char folded_chars[UCHAR_MAX + 1];
37407 struct re_registers regs;
37410 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
37411 This test needs valgrind to catch the bug on Debian
37412 GNU/Linux 3.1 x86, but it might catch the bug better
37413 on other platforms and it shouldn't hurt to try the
37415 if (setlocale (LC_ALL, "en_US.UTF-8"))
37417 static char const pat[] = "insert into";
37418 static char const data[] =
37419 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
37420 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
37422 memset (®ex, 0, sizeof regex);
37423 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
37426 if (re_search (®ex, data, sizeof data - 1,
37427 0, sizeof data - 1, ®s)
37430 if (! setlocale (LC_ALL, "C"))
37435 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
37436 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
37437 memset (®ex, 0, sizeof regex);
37438 s = re_compile_pattern ("a[^x]b", 6, ®ex);
37442 /* This should fail, but succeeds for glibc-2.5. */
37443 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
37446 /* This regular expression is from Spencer ere test number 75
37448 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
37449 memset (®ex, 0, sizeof regex);
37450 for (i = 0; i <= UCHAR_MAX; i++)
37451 folded_chars[i] = i;
37452 regex.translate = folded_chars;
37453 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
37454 /* This should fail with _Invalid character class name_ error. */
37458 /* Ensure that [b-a] is diagnosed as invalid, when
37459 using RE_NO_EMPTY_RANGES. */
37460 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
37461 memset (®ex, 0, sizeof regex);
37462 s = re_compile_pattern ("a[b-a]", 6, ®ex);
37466 /* This should succeed, but does not for glibc-2.1.3. */
37467 memset (®ex, 0, sizeof regex);
37468 s = re_compile_pattern ("{1", 2, ®ex);
37473 /* The following example is derived from a problem report
37474 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
37475 memset (®ex, 0, sizeof regex);
37476 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
37480 /* This should match, but does not for glibc-2.2.1. */
37481 if (re_match (®ex, "an", 2, 0, ®s) != 2)
37484 memset (®ex, 0, sizeof regex);
37485 s = re_compile_pattern ("x", 1, ®ex);
37489 /* glibc-2.2.93 does not work with a negative RANGE argument. */
37490 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
37493 /* The version of regex.c in older versions of gnulib
37494 ignored RE_ICASE. Detect that problem too. */
37495 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
37496 memset (®ex, 0, sizeof regex);
37497 s = re_compile_pattern ("x", 1, ®ex);
37501 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
37504 /* Catch a bug reported by Vin Shelton in
37505 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
37507 re_set_syntax (RE_SYNTAX_POSIX_BASIC
37508 & ~RE_CONTEXT_INVALID_DUP
37509 & ~RE_NO_EMPTY_RANGES);
37510 memset (®ex, 0, sizeof regex);
37511 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
37515 /* REG_STARTEND was added to glibc on 2004-01-15.
37516 Reject older versions. */
37517 if (! REG_STARTEND)
37521 /* It would be nice to reject hosts whose regoff_t values are too
37522 narrow (including glibc on hosts with 64-bit ptrdiff_t and
37523 32-bit int), but we should wait until glibc implements this
37524 feature. Otherwise, support for equivalence classes and
37525 multibyte collation symbols would always be broken except
37526 when compiling --without-included-regex. */
37527 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
37528 || sizeof (regoff_t) < sizeof (ssize_t))
37537 rm -f conftest$ac_exeext
37538 if { (ac_try="$ac_link"
37539 case "(($ac_try" in
37540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541 *) ac_try_echo=$ac_try;;
37543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37544 $as_echo "$ac_try_echo") >&5
37545 (eval "$ac_link") 2>&5
37547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37549 { (case "(($ac_try" in
37550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37551 *) ac_try_echo=$ac_try;;
37553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37554 $as_echo "$ac_try_echo") >&5
37555 (eval "$ac_try") 2>&5
37557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); }; }; then
37559 gl_cv_func_re_compile_pattern_working=yes
37561 $as_echo "$as_me: program exited with status $ac_status" >&5
37562 $as_echo "$as_me: failed program was:" >&5
37563 sed 's/^/| /' conftest.$ac_ext >&5
37565 ( exit $ac_status )
37566 gl_cv_func_re_compile_pattern_working=no
37568 rm -rf conftest.dSYM
37569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37574 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
37575 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
37576 case $gl_cv_func_re_compile_pattern_working in #(
37577 yes) ac_use_included_regex=no;; #(
37578 no) ac_use_included_regex=yes;;
37581 *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
37582 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
37583 { (exit 1); exit 1; }; }
37587 if test $ac_use_included_regex = yes; then
37589 cat >>confdefs.h <<\_ACEOF
37590 #define _REGEX_LARGE_OFFSETS 1
37594 cat >>confdefs.h <<\_ACEOF
37595 #define re_syntax_options rpl_re_syntax_options
37599 cat >>confdefs.h <<\_ACEOF
37600 #define re_set_syntax rpl_re_set_syntax
37604 cat >>confdefs.h <<\_ACEOF
37605 #define re_compile_pattern rpl_re_compile_pattern
37609 cat >>confdefs.h <<\_ACEOF
37610 #define re_compile_fastmap rpl_re_compile_fastmap
37614 cat >>confdefs.h <<\_ACEOF
37615 #define re_search rpl_re_search
37619 cat >>confdefs.h <<\_ACEOF
37620 #define re_search_2 rpl_re_search_2
37624 cat >>confdefs.h <<\_ACEOF
37625 #define re_match rpl_re_match
37629 cat >>confdefs.h <<\_ACEOF
37630 #define re_match_2 rpl_re_match_2
37634 cat >>confdefs.h <<\_ACEOF
37635 #define re_set_registers rpl_re_set_registers
37639 cat >>confdefs.h <<\_ACEOF
37640 #define re_comp rpl_re_comp
37644 cat >>confdefs.h <<\_ACEOF
37645 #define re_exec rpl_re_exec
37649 cat >>confdefs.h <<\_ACEOF
37650 #define regcomp rpl_regcomp
37654 cat >>confdefs.h <<\_ACEOF
37655 #define regexec rpl_regexec
37659 cat >>confdefs.h <<\_ACEOF
37660 #define regerror rpl_regerror
37664 cat >>confdefs.h <<\_ACEOF
37665 #define regfree rpl_regfree
37676 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
37684 for ac_header in libintl.h
37686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37689 $as_echo_n "checking for $ac_header... " >&6; }
37690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37691 $as_echo_n "(cached) " >&6
37693 ac_res=`eval 'as_val=${'$as_ac_Header'}
37694 $as_echo "$as_val"'`
37695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37696 $as_echo "$ac_res" >&6; }
37698 # Is the header compilable?
37699 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37700 $as_echo_n "checking $ac_header usability... " >&6; }
37701 cat >conftest.$ac_ext <<_ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h. */
37707 $ac_includes_default
37708 #include <$ac_header>
37710 rm -f conftest.$ac_objext
37711 if { (ac_try="$ac_compile"
37712 case "(($ac_try" in
37713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37714 *) ac_try_echo=$ac_try;;
37716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37717 $as_echo "$ac_try_echo") >&5
37718 (eval "$ac_compile") 2>conftest.er1
37720 grep -v '^ *+' conftest.er1 >conftest.err
37722 cat conftest.err >&5
37723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); } && {
37725 test -z "$ac_c_werror_flag" ||
37726 test ! -s conftest.err
37727 } && test -s conftest.$ac_objext; then
37728 ac_header_compiler=yes
37730 $as_echo "$as_me: failed program was:" >&5
37731 sed 's/^/| /' conftest.$ac_ext >&5
37733 ac_header_compiler=no
37736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37738 $as_echo "$ac_header_compiler" >&6; }
37740 # Is the header present?
37741 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37742 $as_echo_n "checking $ac_header presence... " >&6; }
37743 cat >conftest.$ac_ext <<_ACEOF
37746 cat confdefs.h >>conftest.$ac_ext
37747 cat >>conftest.$ac_ext <<_ACEOF
37748 /* end confdefs.h. */
37749 #include <$ac_header>
37751 if { (ac_try="$ac_cpp conftest.$ac_ext"
37752 case "(($ac_try" in
37753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37754 *) ac_try_echo=$ac_try;;
37756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37757 $as_echo "$ac_try_echo") >&5
37758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37760 grep -v '^ *+' conftest.er1 >conftest.err
37762 cat conftest.err >&5
37763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); } >/dev/null && {
37765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37766 test ! -s conftest.err
37768 ac_header_preproc=yes
37770 $as_echo "$as_me: failed program was:" >&5
37771 sed 's/^/| /' conftest.$ac_ext >&5
37773 ac_header_preproc=no
37776 rm -f conftest.err conftest.$ac_ext
37777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37778 $as_echo "$ac_header_preproc" >&6; }
37780 # So? What about this header?
37781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37784 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37787 ac_header_preproc=yes
37790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37791 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37793 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37795 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37797 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37801 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37803 ## ------------------------------ ##
37804 ## Report this to bug-tar@gnu.org ##
37805 ## ------------------------------ ##
37807 ) | sed "s/^/$as_me: WARNING: /" >&2
37810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37811 $as_echo_n "checking for $ac_header... " >&6; }
37812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37813 $as_echo_n "(cached) " >&6
37815 eval "$as_ac_Header=\$ac_header_preproc"
37817 ac_res=`eval 'as_val=${'$as_ac_Header'}
37818 $as_echo "$as_val"'`
37819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37820 $as_echo "$ac_res" >&6; }
37823 as_val=`eval 'as_val=${'$as_ac_Header'}
37824 $as_echo "$as_val"'`
37825 if test "x$as_val" = x""yes; then
37826 cat >>confdefs.h <<_ACEOF
37827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37844 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
37845 $as_echo_n "checking whether isblank is declared... " >&6; }
37846 if test "${ac_cv_have_decl_isblank+set}" = set; then
37847 $as_echo_n "(cached) " >&6
37849 cat >conftest.$ac_ext <<_ACEOF
37852 cat confdefs.h >>conftest.$ac_ext
37853 cat >>conftest.$ac_ext <<_ACEOF
37854 /* end confdefs.h. */
37868 rm -f conftest.$ac_objext
37869 if { (ac_try="$ac_compile"
37870 case "(($ac_try" in
37871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37872 *) ac_try_echo=$ac_try;;
37874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37875 $as_echo "$ac_try_echo") >&5
37876 (eval "$ac_compile") 2>conftest.er1
37878 grep -v '^ *+' conftest.er1 >conftest.err
37880 cat conftest.err >&5
37881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); } && {
37883 test -z "$ac_c_werror_flag" ||
37884 test ! -s conftest.err
37885 } && test -s conftest.$ac_objext; then
37886 ac_cv_have_decl_isblank=yes
37888 $as_echo "$as_me: failed program was:" >&5
37889 sed 's/^/| /' conftest.$ac_ext >&5
37891 ac_cv_have_decl_isblank=no
37894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37896 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
37897 $as_echo "$ac_cv_have_decl_isblank" >&6; }
37898 if test "x$ac_cv_have_decl_isblank" = x""yes; then
37900 cat >>confdefs.h <<_ACEOF
37901 #define HAVE_DECL_ISBLANK 1
37906 cat >>confdefs.h <<_ACEOF
37907 #define HAVE_DECL_ISBLANK 0
37917 # Code from module rename:
37928 { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on destination" >&5
37929 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
37930 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then
37931 $as_echo_n "(cached) " >&6
37933 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.lnk
37934 touch conftest.f && mkdir conftest.d1 ||
37935 { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
37936 $as_echo "$as_me: error: cannot create temporary files" >&2;}
37937 { (exit 1); exit 1; }; }
37938 # Assume that if we have lstat, we can also check symlinks.
37939 if test $ac_cv_func_lstat = yes; then
37940 ln -s conftest.f conftest.lnk
37942 if test "$cross_compiling" = yes; then
37943 gl_cv_func_rename_slash_dst_works="guessing no"
37945 cat >conftest.$ac_ext <<_ACEOF
37948 cat confdefs.h >>conftest.$ac_ext
37949 cat >>conftest.$ac_ext <<_ACEOF
37950 /* end confdefs.h. */
37952 # include <stdio.h>
37953 # include <stdlib.h>
37958 if (rename ("conftest.f", "conftest.f1/") == 0) return 1;
37959 if (rename ("conftest.d1", "conftest.d2/") != 0) return 2;
37961 if (rename ("conftest.f", "conftest.lnk/") == 0) return 3;
37968 rm -f conftest$ac_exeext
37969 if { (ac_try="$ac_link"
37970 case "(($ac_try" in
37971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37972 *) ac_try_echo=$ac_try;;
37974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37975 $as_echo "$ac_try_echo") >&5
37976 (eval "$ac_link") 2>&5
37978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37980 { (case "(($ac_try" in
37981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37982 *) ac_try_echo=$ac_try;;
37984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37985 $as_echo "$ac_try_echo") >&5
37986 (eval "$ac_try") 2>&5
37988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); }; }; then
37990 gl_cv_func_rename_slash_dst_works=yes
37992 $as_echo "$as_me: program exited with status $ac_status" >&5
37993 $as_echo "$as_me: failed program was:" >&5
37994 sed 's/^/| /' conftest.$ac_ext >&5
37996 ( exit $ac_status )
37997 gl_cv_func_rename_slash_dst_works=no
37999 rm -rf conftest.dSYM
38000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38004 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.lnk
38007 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_dst_works" >&5
38008 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
38009 if test "x$gl_cv_func_rename_slash_dst_works" != xyes; then
38018 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38022 cat >>confdefs.h <<\_ACEOF
38023 #define RENAME_TRAILING_SLASH_DEST_BUG 1
38028 { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on source" >&5
38029 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
38030 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then
38031 $as_echo_n "(cached) " >&6
38033 rm -rf conftest.f conftest.d1 conftest.d2 conftest.lnk
38034 touch conftest.f && mkdir conftest.d1 ||
38035 { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
38036 $as_echo "$as_me: error: cannot create temporary files" >&2;}
38037 { (exit 1); exit 1; }; }
38038 # Assume that if we have lstat, we can also check symlinks.
38039 if test $ac_cv_func_lstat = yes; then
38040 ln -s conftest.f conftest.lnk
38042 if test "$cross_compiling" = yes; then
38043 gl_cv_func_rename_slash_src_works="guessing no"
38045 cat >conftest.$ac_ext <<_ACEOF
38048 cat confdefs.h >>conftest.$ac_ext
38049 cat >>conftest.$ac_ext <<_ACEOF
38050 /* end confdefs.h. */
38052 # include <stdio.h>
38053 # include <stdlib.h>
38058 if (rename ("conftest.f/", "conftest.d2") == 0) return 1;
38059 if (rename ("conftest.d1/", "conftest.d2") != 0) return 2;
38061 if (rename ("conftest.lnk/", "conftest.f") == 0) return 3;
38068 rm -f conftest$ac_exeext
38069 if { (ac_try="$ac_link"
38070 case "(($ac_try" in
38071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38072 *) ac_try_echo=$ac_try;;
38074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38075 $as_echo "$ac_try_echo") >&5
38076 (eval "$ac_link") 2>&5
38078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38080 { (case "(($ac_try" in
38081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38082 *) ac_try_echo=$ac_try;;
38084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38085 $as_echo "$ac_try_echo") >&5
38086 (eval "$ac_try") 2>&5
38088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38089 (exit $ac_status); }; }; then
38090 gl_cv_func_rename_slash_src_works=yes
38092 $as_echo "$as_me: program exited with status $ac_status" >&5
38093 $as_echo "$as_me: failed program was:" >&5
38094 sed 's/^/| /' conftest.$ac_ext >&5
38096 ( exit $ac_status )
38097 gl_cv_func_rename_slash_src_works=no
38099 rm -rf conftest.dSYM
38100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38104 rm -rf conftest.f conftest.d1 conftest.d2 conftest.lnk
38107 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_src_works" >&5
38108 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
38109 if test "x$gl_cv_func_rename_slash_src_works" != xyes; then
38118 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38122 cat >>confdefs.h <<\_ACEOF
38123 #define RENAME_TRAILING_SLASH_SOURCE_BUG 1
38128 { $as_echo "$as_me:$LINENO: checking whether rename manages hard links correctly" >&5
38129 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
38130 if test "${gl_cv_func_rename_link_works+set}" = set; then
38131 $as_echo_n "(cached) " >&6
38133 rm -rf conftest.f conftest.f1
38134 if touch conftest.f && ln conftest.f conftest.f1 &&
38135 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
38136 if test "$cross_compiling" = yes; then
38137 gl_cv_func_rename_link_works="guessing no"
38139 cat >conftest.$ac_ext <<_ACEOF
38142 cat confdefs.h >>conftest.$ac_ext
38143 cat >>conftest.$ac_ext <<_ACEOF
38144 /* end confdefs.h. */
38146 # include <stdio.h>
38147 # include <stdlib.h>
38148 # include <unistd.h>
38153 if (rename ("conftest.f", "conftest.f1")) return 1;
38154 if (unlink ("conftest.f1")) return 2;
38155 if (rename ("conftest.f", "conftest.f")) return 3;
38156 if (rename ("conftest.f1", "conftest.f1") == 0) return 4;
38161 rm -f conftest$ac_exeext
38162 if { (ac_try="$ac_link"
38163 case "(($ac_try" in
38164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38165 *) ac_try_echo=$ac_try;;
38167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38168 $as_echo "$ac_try_echo") >&5
38169 (eval "$ac_link") 2>&5
38171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38173 { (case "(($ac_try" in
38174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38175 *) ac_try_echo=$ac_try;;
38177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38178 $as_echo "$ac_try_echo") >&5
38179 (eval "$ac_try") 2>&5
38181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); }; }; then
38183 gl_cv_func_rename_link_works=yes
38185 $as_echo "$as_me: program exited with status $ac_status" >&5
38186 $as_echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38189 ( exit $ac_status )
38190 gl_cv_func_rename_link_works=no
38192 rm -rf conftest.dSYM
38193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38198 gl_cv_func_rename_link_works="guessing no"
38200 rm -rf conftest.f conftest.f1
38203 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_link_works" >&5
38204 $as_echo "$gl_cv_func_rename_link_works" >&6; }
38205 if test "x$gl_cv_func_rename_link_works" != xyes; then
38214 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38218 cat >>confdefs.h <<\_ACEOF
38219 #define RENAME_HARD_LINK_BUG 1
38224 { $as_echo "$as_me:$LINENO: checking whether rename manages existing destinations correctly" >&5
38225 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
38226 if test "${gl_cv_func_rename_dest_works+set}" = set; then
38227 $as_echo_n "(cached) " >&6
38229 rm -rf conftest.f conftest.d1 conftest.d2
38230 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
38231 { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
38232 $as_echo "$as_me: error: cannot create temporary files" >&2;}
38233 { (exit 1); exit 1; }; }
38234 if test "$cross_compiling" = yes; then
38235 gl_cv_func_rename_dest_works="guessing no"
38237 cat >conftest.$ac_ext <<_ACEOF
38240 cat confdefs.h >>conftest.$ac_ext
38241 cat >>conftest.$ac_ext <<_ACEOF
38242 /* end confdefs.h. */
38244 # include <stdio.h>
38245 # include <stdlib.h>
38250 if (rename ("conftest.d1", "conftest.d2") != 0) return 1;
38251 if (rename ("conftest.d2", "conftest.f") == 0) return 2;
38256 rm -f conftest$ac_exeext
38257 if { (ac_try="$ac_link"
38258 case "(($ac_try" in
38259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38260 *) ac_try_echo=$ac_try;;
38262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38263 $as_echo "$ac_try_echo") >&5
38264 (eval "$ac_link") 2>&5
38266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38268 { (case "(($ac_try" in
38269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38270 *) ac_try_echo=$ac_try;;
38272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38273 $as_echo "$ac_try_echo") >&5
38274 (eval "$ac_try") 2>&5
38276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277 (exit $ac_status); }; }; then
38278 gl_cv_func_rename_dest_works=yes
38280 $as_echo "$as_me: program exited with status $ac_status" >&5
38281 $as_echo "$as_me: failed program was:" >&5
38282 sed 's/^/| /' conftest.$ac_ext >&5
38284 ( exit $ac_status )
38285 gl_cv_func_rename_dest_works=no
38287 rm -rf conftest.dSYM
38288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38292 rm -rf conftest.f conftest.d1 conftest.d2
38295 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_dest_works" >&5
38296 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
38297 if test "x$gl_cv_func_rename_dest_works" != xyes; then
38306 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38310 cat >>confdefs.h <<\_ACEOF
38311 #define RENAME_DEST_EXISTS_BUG 1
38323 cat >>confdefs.h <<\_ACEOF
38324 #define GNULIB_TEST_RENAME 1
38329 # Code from module renameat:
38341 if test $ac_cv_func_renameat = no; then
38351 gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
38361 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
38363 elif test $REPLACE_RENAME = 1; then
38373 gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
38383 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
38394 cat >>confdefs.h <<\_ACEOF
38395 #define GNULIB_TEST_RENAMEAT 1
38400 # Code from module rmdir:
38404 { $as_echo "$as_me:$LINENO: checking whether rmdir works" >&5
38405 $as_echo_n "checking whether rmdir works... " >&6; }
38406 if test "${gl_cv_func_rmdir_works+set}" = set; then
38407 $as_echo_n "(cached) " >&6
38410 touch conftest.file
38411 if test "$cross_compiling" = yes; then
38412 gl_cv_func_rmdir_works="guessing no"
38414 cat >conftest.$ac_ext <<_ACEOF
38417 cat confdefs.h >>conftest.$ac_ext
38418 cat >>conftest.$ac_ext <<_ACEOF
38419 /* end confdefs.h. */
38422 #include <unistd.h>
38427 return !rmdir ("conftest.file/") || errno != ENOTDIR
38428 || !rmdir ("conftest.dir/./");
38433 rm -f conftest$ac_exeext
38434 if { (ac_try="$ac_link"
38435 case "(($ac_try" in
38436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38437 *) ac_try_echo=$ac_try;;
38439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38440 $as_echo "$ac_try_echo") >&5
38441 (eval "$ac_link") 2>&5
38443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
38453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); }; }; then
38455 gl_cv_func_rmdir_works=yes
38457 $as_echo "$as_me: program exited with status $ac_status" >&5
38458 $as_echo "$as_me: failed program was:" >&5
38459 sed 's/^/| /' conftest.$ac_ext >&5
38461 ( exit $ac_status )
38462 gl_cv_func_rmdir_works=no
38464 rm -rf conftest.dSYM
38465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38469 rm -rf conftest.dir conftest.file
38471 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_works" >&5
38472 $as_echo "$gl_cv_func_rmdir_works" >&6; }
38473 if test x"$gl_cv_func_rmdir_works" != xyes; then
38483 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
38494 cat >>confdefs.h <<\_ACEOF
38495 #define GNULIB_TEST_RMDIR 1
38500 # Code from module rpmatch:
38514 for ac_func in rpmatch
38516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38518 $as_echo_n "checking for $ac_func... " >&6; }
38519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38520 $as_echo_n "(cached) " >&6
38522 cat >conftest.$ac_ext <<_ACEOF
38525 cat confdefs.h >>conftest.$ac_ext
38526 cat >>conftest.$ac_ext <<_ACEOF
38527 /* end confdefs.h. */
38528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38530 #define $ac_func innocuous_$ac_func
38532 /* System header to define __stub macros and hopefully few prototypes,
38533 which can conflict with char $ac_func (); below.
38534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38535 <limits.h> exists even on freestanding compilers. */
38538 # include <limits.h>
38540 # include <assert.h>
38545 /* Override any GCC internal prototype to avoid an error.
38546 Use char because int might match the return type of a GCC
38547 builtin and then its argument prototype would still apply. */
38552 /* The GNU C library defines this for functions which it implements
38553 to always fail with ENOSYS. Some functions are actually named
38554 something starting with __ and the normal name is an alias. */
38555 #if defined __stub_$ac_func || defined __stub___$ac_func
38562 return $ac_func ();
38567 rm -f conftest.$ac_objext conftest$ac_exeext
38568 if { (ac_try="$ac_link"
38569 case "(($ac_try" in
38570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38571 *) ac_try_echo=$ac_try;;
38573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38574 $as_echo "$ac_try_echo") >&5
38575 (eval "$ac_link") 2>conftest.er1
38577 grep -v '^ *+' conftest.er1 >conftest.err
38579 cat conftest.err >&5
38580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581 (exit $ac_status); } && {
38582 test -z "$ac_c_werror_flag" ||
38583 test ! -s conftest.err
38584 } && test -s conftest$ac_exeext && {
38585 test "$cross_compiling" = yes ||
38586 $as_test_x conftest$ac_exeext
38588 eval "$as_ac_var=yes"
38590 $as_echo "$as_me: failed program was:" >&5
38591 sed 's/^/| /' conftest.$ac_ext >&5
38593 eval "$as_ac_var=no"
38596 rm -rf conftest.dSYM
38597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38598 conftest$ac_exeext conftest.$ac_ext
38600 ac_res=`eval 'as_val=${'$as_ac_var'}
38601 $as_echo "$as_val"'`
38602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38603 $as_echo "$ac_res" >&6; }
38604 as_val=`eval 'as_val=${'$as_ac_var'}
38605 $as_echo "$as_val"'`
38606 if test "x$as_val" = x""yes; then
38607 cat >>confdefs.h <<_ACEOF
38608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38613 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
38619 if test $ac_cv_func_rpmatch = no; then
38622 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
38623 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; }
38624 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
38625 $as_echo_n "(cached) " >&6
38627 cat >conftest.$ac_ext <<_ACEOF
38630 cat confdefs.h >>conftest.$ac_ext
38631 cat >>conftest.$ac_ext <<_ACEOF
38632 /* end confdefs.h. */
38633 #include <langinfo.h>
38637 char* cs = nl_langinfo(YESEXPR); return !cs;
38642 rm -f conftest.$ac_objext conftest$ac_exeext
38643 if { (ac_try="$ac_link"
38644 case "(($ac_try" in
38645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38646 *) ac_try_echo=$ac_try;;
38648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38649 $as_echo "$ac_try_echo") >&5
38650 (eval "$ac_link") 2>conftest.er1
38652 grep -v '^ *+' conftest.er1 >conftest.err
38654 cat conftest.err >&5
38655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656 (exit $ac_status); } && {
38657 test -z "$ac_c_werror_flag" ||
38658 test ! -s conftest.err
38659 } && test -s conftest$ac_exeext && {
38660 test "$cross_compiling" = yes ||
38661 $as_test_x conftest$ac_exeext
38663 gl_cv_langinfo_yesexpr=yes
38665 $as_echo "$as_me: failed program was:" >&5
38666 sed 's/^/| /' conftest.$ac_ext >&5
38668 gl_cv_langinfo_yesexpr=no
38671 rm -rf conftest.dSYM
38672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38673 conftest$ac_exeext conftest.$ac_ext
38676 { $as_echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
38677 $as_echo "$gl_cv_langinfo_yesexpr" >&6; }
38678 if test $gl_cv_langinfo_yesexpr = yes; then
38680 cat >>confdefs.h <<\_ACEOF
38681 #define HAVE_LANGINFO_YESEXPR 1
38695 cat >>confdefs.h <<\_ACEOF
38696 #define GNULIB_TEST_RPMATCH 1
38701 # Code from module safe-read:
38711 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
38718 # Code from module safe-write:
38728 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
38737 # Code from module same-inode:
38738 # Code from module save-cwd:
38748 gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
38757 # Code from module savedir:
38767 gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
38770 # Code from module setenv:
38773 if test $HAVE_SETENV$REPLACE_SETENV != 10; then
38782 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38793 cat >>confdefs.h <<\_ACEOF
38794 #define GNULIB_TEST_SETENV 1
38799 # Code from module size_max:
38802 for ac_header in stdint.h
38804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38806 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38807 $as_echo_n "checking for $ac_header... " >&6; }
38808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38809 $as_echo_n "(cached) " >&6
38811 ac_res=`eval 'as_val=${'$as_ac_Header'}
38812 $as_echo "$as_val"'`
38813 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38814 $as_echo "$ac_res" >&6; }
38816 # Is the header compilable?
38817 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
38818 $as_echo_n "checking $ac_header usability... " >&6; }
38819 cat >conftest.$ac_ext <<_ACEOF
38822 cat confdefs.h >>conftest.$ac_ext
38823 cat >>conftest.$ac_ext <<_ACEOF
38824 /* end confdefs.h. */
38825 $ac_includes_default
38826 #include <$ac_header>
38828 rm -f conftest.$ac_objext
38829 if { (ac_try="$ac_compile"
38830 case "(($ac_try" in
38831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38832 *) ac_try_echo=$ac_try;;
38834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38835 $as_echo "$ac_try_echo") >&5
38836 (eval "$ac_compile") 2>conftest.er1
38838 grep -v '^ *+' conftest.er1 >conftest.err
38840 cat conftest.err >&5
38841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); } && {
38843 test -z "$ac_c_werror_flag" ||
38844 test ! -s conftest.err
38845 } && test -s conftest.$ac_objext; then
38846 ac_header_compiler=yes
38848 $as_echo "$as_me: failed program was:" >&5
38849 sed 's/^/| /' conftest.$ac_ext >&5
38851 ac_header_compiler=no
38854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38855 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38856 $as_echo "$ac_header_compiler" >&6; }
38858 # Is the header present?
38859 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
38860 $as_echo_n "checking $ac_header presence... " >&6; }
38861 cat >conftest.$ac_ext <<_ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h. */
38867 #include <$ac_header>
38869 if { (ac_try="$ac_cpp conftest.$ac_ext"
38870 case "(($ac_try" in
38871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38872 *) ac_try_echo=$ac_try;;
38874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38875 $as_echo "$ac_try_echo") >&5
38876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38878 grep -v '^ *+' conftest.er1 >conftest.err
38880 cat conftest.err >&5
38881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); } >/dev/null && {
38883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38884 test ! -s conftest.err
38886 ac_header_preproc=yes
38888 $as_echo "$as_me: failed program was:" >&5
38889 sed 's/^/| /' conftest.$ac_ext >&5
38891 ac_header_preproc=no
38894 rm -f conftest.err conftest.$ac_ext
38895 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38896 $as_echo "$ac_header_preproc" >&6; }
38898 # So? What about this header?
38899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38902 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38905 ac_header_preproc=yes
38908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38909 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38911 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38913 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38915 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38919 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38921 ## ------------------------------ ##
38922 ## Report this to bug-tar@gnu.org ##
38923 ## ------------------------------ ##
38925 ) | sed "s/^/$as_me: WARNING: /" >&2
38928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38929 $as_echo_n "checking for $ac_header... " >&6; }
38930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38931 $as_echo_n "(cached) " >&6
38933 eval "$as_ac_Header=\$ac_header_preproc"
38935 ac_res=`eval 'as_val=${'$as_ac_Header'}
38936 $as_echo "$as_val"'`
38937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38938 $as_echo "$ac_res" >&6; }
38941 as_val=`eval 'as_val=${'$as_ac_Header'}
38942 $as_echo "$as_val"'`
38943 if test "x$as_val" = x""yes; then
38944 cat >>confdefs.h <<_ACEOF
38945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38952 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
38953 $as_echo_n "checking for SIZE_MAX... " >&6; }
38954 if test "${gl_cv_size_max+set}" = set; then
38955 $as_echo_n "(cached) " >&6
38959 cat >conftest.$ac_ext <<_ACEOF
38962 cat confdefs.h >>conftest.$ac_ext
38963 cat >>conftest.$ac_ext <<_ACEOF
38964 /* end confdefs.h. */
38966 #include <limits.h>
38968 #include <stdint.h>
38975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38976 $EGREP "Found it" >/dev/null 2>&1; then
38981 if test -z "$gl_cv_size_max"; then
38982 if test "$cross_compiling" = yes; then
38983 # Depending upon the size, compute the lo and hi bounds.
38984 cat >conftest.$ac_ext <<_ACEOF
38987 cat confdefs.h >>conftest.$ac_ext
38988 cat >>conftest.$ac_ext <<_ACEOF
38989 /* end confdefs.h. */
38990 #include <stddef.h>
38991 #include <limits.h>
38995 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
39002 rm -f conftest.$ac_objext
39003 if { (ac_try="$ac_compile"
39004 case "(($ac_try" in
39005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006 *) ac_try_echo=$ac_try;;
39008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39009 $as_echo "$ac_try_echo") >&5
39010 (eval "$ac_compile") 2>conftest.er1
39012 grep -v '^ *+' conftest.er1 >conftest.err
39014 cat conftest.err >&5
39015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); } && {
39017 test -z "$ac_c_werror_flag" ||
39018 test ! -s conftest.err
39019 } && test -s conftest.$ac_objext; then
39022 cat >conftest.$ac_ext <<_ACEOF
39025 cat confdefs.h >>conftest.$ac_ext
39026 cat >>conftest.$ac_ext <<_ACEOF
39027 /* end confdefs.h. */
39028 #include <stddef.h>
39029 #include <limits.h>
39033 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
39040 rm -f conftest.$ac_objext
39041 if { (ac_try="$ac_compile"
39042 case "(($ac_try" in
39043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39044 *) ac_try_echo=$ac_try;;
39046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39047 $as_echo "$ac_try_echo") >&5
39048 (eval "$ac_compile") 2>conftest.er1
39050 grep -v '^ *+' conftest.er1 >conftest.err
39052 cat conftest.err >&5
39053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); } && {
39055 test -z "$ac_c_werror_flag" ||
39056 test ! -s conftest.err
39057 } && test -s conftest.$ac_objext; then
39058 ac_hi=$ac_mid; break
39060 $as_echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39063 ac_lo=`expr $ac_mid + 1`
39064 if test $ac_lo -le $ac_mid; then
39068 ac_mid=`expr 2 '*' $ac_mid + 1`
39071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39074 $as_echo "$as_me: failed program was:" >&5
39075 sed 's/^/| /' conftest.$ac_ext >&5
39077 cat >conftest.$ac_ext <<_ACEOF
39080 cat confdefs.h >>conftest.$ac_ext
39081 cat >>conftest.$ac_ext <<_ACEOF
39082 /* end confdefs.h. */
39083 #include <stddef.h>
39084 #include <limits.h>
39088 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
39095 rm -f conftest.$ac_objext
39096 if { (ac_try="$ac_compile"
39097 case "(($ac_try" in
39098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39099 *) ac_try_echo=$ac_try;;
39101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39102 $as_echo "$ac_try_echo") >&5
39103 (eval "$ac_compile") 2>conftest.er1
39105 grep -v '^ *+' conftest.er1 >conftest.err
39107 cat conftest.err >&5
39108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109 (exit $ac_status); } && {
39110 test -z "$ac_c_werror_flag" ||
39111 test ! -s conftest.err
39112 } && test -s conftest.$ac_objext; then
39115 cat >conftest.$ac_ext <<_ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h. */
39121 #include <stddef.h>
39122 #include <limits.h>
39126 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
39133 rm -f conftest.$ac_objext
39134 if { (ac_try="$ac_compile"
39135 case "(($ac_try" in
39136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39137 *) ac_try_echo=$ac_try;;
39139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39140 $as_echo "$ac_try_echo") >&5
39141 (eval "$ac_compile") 2>conftest.er1
39143 grep -v '^ *+' conftest.er1 >conftest.err
39145 cat conftest.err >&5
39146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147 (exit $ac_status); } && {
39148 test -z "$ac_c_werror_flag" ||
39149 test ! -s conftest.err
39150 } && test -s conftest.$ac_objext; then
39151 ac_lo=$ac_mid; break
39153 $as_echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.$ac_ext >&5
39156 ac_hi=`expr '(' $ac_mid ')' - 1`
39157 if test $ac_mid -le $ac_hi; then
39161 ac_mid=`expr 2 '*' $ac_mid`
39164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39167 $as_echo "$as_me: failed program was:" >&5
39168 sed 's/^/| /' conftest.$ac_ext >&5
39173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39177 # Binary search between lo and hi bounds.
39178 while test "x$ac_lo" != "x$ac_hi"; do
39179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39180 cat >conftest.$ac_ext <<_ACEOF
39183 cat confdefs.h >>conftest.$ac_ext
39184 cat >>conftest.$ac_ext <<_ACEOF
39185 /* end confdefs.h. */
39186 #include <stddef.h>
39187 #include <limits.h>
39191 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
39198 rm -f conftest.$ac_objext
39199 if { (ac_try="$ac_compile"
39200 case "(($ac_try" in
39201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39202 *) ac_try_echo=$ac_try;;
39204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39205 $as_echo "$ac_try_echo") >&5
39206 (eval "$ac_compile") 2>conftest.er1
39208 grep -v '^ *+' conftest.er1 >conftest.err
39210 cat conftest.err >&5
39211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212 (exit $ac_status); } && {
39213 test -z "$ac_c_werror_flag" ||
39214 test ! -s conftest.err
39215 } && test -s conftest.$ac_objext; then
39218 $as_echo "$as_me: failed program was:" >&5
39219 sed 's/^/| /' conftest.$ac_ext >&5
39221 ac_lo=`expr '(' $ac_mid ')' + 1`
39224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39227 ?*) size_t_bits_minus_1=$ac_lo;;
39228 '') size_t_bits_minus_1= ;;
39231 cat >conftest.$ac_ext <<_ACEOF
39234 cat confdefs.h >>conftest.$ac_ext
39235 cat >>conftest.$ac_ext <<_ACEOF
39236 /* end confdefs.h. */
39237 #include <stddef.h>
39238 #include <limits.h>
39239 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
39240 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
39242 #include <stdlib.h>
39247 FILE *f = fopen ("conftest.val", "w");
39250 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
39252 long int i = longval ();
39253 if (i != (sizeof (size_t) * CHAR_BIT - 1))
39255 fprintf (f, "%ld", i);
39259 unsigned long int i = ulongval ();
39260 if (i != (sizeof (size_t) * CHAR_BIT - 1))
39262 fprintf (f, "%lu", i);
39264 /* Do not output a trailing newline, as this causes \r\n confusion
39265 on some platforms. */
39266 return ferror (f) || fclose (f) != 0;
39272 rm -f conftest$ac_exeext
39273 if { (ac_try="$ac_link"
39274 case "(($ac_try" in
39275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39276 *) ac_try_echo=$ac_try;;
39278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39279 $as_echo "$ac_try_echo") >&5
39280 (eval "$ac_link") 2>&5
39282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39284 { (case "(($ac_try" in
39285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39286 *) ac_try_echo=$ac_try;;
39288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39289 $as_echo "$ac_try_echo") >&5
39290 (eval "$ac_try") 2>&5
39292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293 (exit $ac_status); }; }; then
39294 size_t_bits_minus_1=`cat conftest.val`
39296 $as_echo "$as_me: program exited with status $ac_status" >&5
39297 $as_echo "$as_me: failed program was:" >&5
39298 sed 's/^/| /' conftest.$ac_ext >&5
39300 ( exit $ac_status )
39301 size_t_bits_minus_1=
39303 rm -rf conftest.dSYM
39304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39307 if test "$cross_compiling" = yes; then
39308 # Depending upon the size, compute the lo and hi bounds.
39309 cat >conftest.$ac_ext <<_ACEOF
39312 cat confdefs.h >>conftest.$ac_ext
39313 cat >>conftest.$ac_ext <<_ACEOF
39314 /* end confdefs.h. */
39315 #include <stddef.h>
39319 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
39326 rm -f conftest.$ac_objext
39327 if { (ac_try="$ac_compile"
39328 case "(($ac_try" in
39329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39330 *) ac_try_echo=$ac_try;;
39332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39333 $as_echo "$ac_try_echo") >&5
39334 (eval "$ac_compile") 2>conftest.er1
39336 grep -v '^ *+' conftest.er1 >conftest.err
39338 cat conftest.err >&5
39339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39340 (exit $ac_status); } && {
39341 test -z "$ac_c_werror_flag" ||
39342 test ! -s conftest.err
39343 } && test -s conftest.$ac_objext; then
39346 cat >conftest.$ac_ext <<_ACEOF
39349 cat confdefs.h >>conftest.$ac_ext
39350 cat >>conftest.$ac_ext <<_ACEOF
39351 /* end confdefs.h. */
39352 #include <stddef.h>
39356 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
39363 rm -f conftest.$ac_objext
39364 if { (ac_try="$ac_compile"
39365 case "(($ac_try" in
39366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39367 *) ac_try_echo=$ac_try;;
39369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39370 $as_echo "$ac_try_echo") >&5
39371 (eval "$ac_compile") 2>conftest.er1
39373 grep -v '^ *+' conftest.er1 >conftest.err
39375 cat conftest.err >&5
39376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377 (exit $ac_status); } && {
39378 test -z "$ac_c_werror_flag" ||
39379 test ! -s conftest.err
39380 } && test -s conftest.$ac_objext; then
39381 ac_hi=$ac_mid; break
39383 $as_echo "$as_me: failed program was:" >&5
39384 sed 's/^/| /' conftest.$ac_ext >&5
39386 ac_lo=`expr $ac_mid + 1`
39387 if test $ac_lo -le $ac_mid; then
39391 ac_mid=`expr 2 '*' $ac_mid + 1`
39394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39397 $as_echo "$as_me: failed program was:" >&5
39398 sed 's/^/| /' conftest.$ac_ext >&5
39400 cat >conftest.$ac_ext <<_ACEOF
39403 cat confdefs.h >>conftest.$ac_ext
39404 cat >>conftest.$ac_ext <<_ACEOF
39405 /* end confdefs.h. */
39406 #include <stddef.h>
39410 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
39417 rm -f conftest.$ac_objext
39418 if { (ac_try="$ac_compile"
39419 case "(($ac_try" in
39420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39421 *) ac_try_echo=$ac_try;;
39423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39424 $as_echo "$ac_try_echo") >&5
39425 (eval "$ac_compile") 2>conftest.er1
39427 grep -v '^ *+' conftest.er1 >conftest.err
39429 cat conftest.err >&5
39430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431 (exit $ac_status); } && {
39432 test -z "$ac_c_werror_flag" ||
39433 test ! -s conftest.err
39434 } && test -s conftest.$ac_objext; then
39437 cat >conftest.$ac_ext <<_ACEOF
39440 cat confdefs.h >>conftest.$ac_ext
39441 cat >>conftest.$ac_ext <<_ACEOF
39442 /* end confdefs.h. */
39443 #include <stddef.h>
39447 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
39454 rm -f conftest.$ac_objext
39455 if { (ac_try="$ac_compile"
39456 case "(($ac_try" in
39457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39458 *) ac_try_echo=$ac_try;;
39460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39461 $as_echo "$ac_try_echo") >&5
39462 (eval "$ac_compile") 2>conftest.er1
39464 grep -v '^ *+' conftest.er1 >conftest.err
39466 cat conftest.err >&5
39467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); } && {
39469 test -z "$ac_c_werror_flag" ||
39470 test ! -s conftest.err
39471 } && test -s conftest.$ac_objext; then
39472 ac_lo=$ac_mid; break
39474 $as_echo "$as_me: failed program was:" >&5
39475 sed 's/^/| /' conftest.$ac_ext >&5
39477 ac_hi=`expr '(' $ac_mid ')' - 1`
39478 if test $ac_mid -le $ac_hi; then
39482 ac_mid=`expr 2 '*' $ac_mid`
39485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39488 $as_echo "$as_me: failed program was:" >&5
39489 sed 's/^/| /' conftest.$ac_ext >&5
39494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39498 # Binary search between lo and hi bounds.
39499 while test "x$ac_lo" != "x$ac_hi"; do
39500 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39501 cat >conftest.$ac_ext <<_ACEOF
39504 cat confdefs.h >>conftest.$ac_ext
39505 cat >>conftest.$ac_ext <<_ACEOF
39506 /* end confdefs.h. */
39507 #include <stddef.h>
39511 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
39518 rm -f conftest.$ac_objext
39519 if { (ac_try="$ac_compile"
39520 case "(($ac_try" in
39521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39522 *) ac_try_echo=$ac_try;;
39524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39525 $as_echo "$ac_try_echo") >&5
39526 (eval "$ac_compile") 2>conftest.er1
39528 grep -v '^ *+' conftest.er1 >conftest.err
39530 cat conftest.err >&5
39531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); } && {
39533 test -z "$ac_c_werror_flag" ||
39534 test ! -s conftest.err
39535 } && test -s conftest.$ac_objext; then
39538 $as_echo "$as_me: failed program was:" >&5
39539 sed 's/^/| /' conftest.$ac_ext >&5
39541 ac_lo=`expr '(' $ac_mid ')' + 1`
39544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39547 ?*) fits_in_uint=$ac_lo;;
39548 '') fits_in_uint= ;;
39551 cat >conftest.$ac_ext <<_ACEOF
39554 cat confdefs.h >>conftest.$ac_ext
39555 cat >>conftest.$ac_ext <<_ACEOF
39556 /* end confdefs.h. */
39557 #include <stddef.h>
39558 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
39559 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
39561 #include <stdlib.h>
39566 FILE *f = fopen ("conftest.val", "w");
39569 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
39571 long int i = longval ();
39572 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
39574 fprintf (f, "%ld", i);
39578 unsigned long int i = ulongval ();
39579 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
39581 fprintf (f, "%lu", i);
39583 /* Do not output a trailing newline, as this causes \r\n confusion
39584 on some platforms. */
39585 return ferror (f) || fclose (f) != 0;
39591 rm -f conftest$ac_exeext
39592 if { (ac_try="$ac_link"
39593 case "(($ac_try" in
39594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595 *) ac_try_echo=$ac_try;;
39597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39598 $as_echo "$ac_try_echo") >&5
39599 (eval "$ac_link") 2>&5
39601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39603 { (case "(($ac_try" in
39604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39605 *) ac_try_echo=$ac_try;;
39607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39608 $as_echo "$ac_try_echo") >&5
39609 (eval "$ac_try") 2>&5
39611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612 (exit $ac_status); }; }; then
39613 fits_in_uint=`cat conftest.val`
39615 $as_echo "$as_me: program exited with status $ac_status" >&5
39616 $as_echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39619 ( exit $ac_status )
39622 rm -rf conftest.dSYM
39623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39626 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
39627 if test $fits_in_uint = 1; then
39628 cat >conftest.$ac_ext <<_ACEOF
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h. */
39634 #include <stddef.h>
39636 extern unsigned long foo;
39646 rm -f conftest.$ac_objext
39647 if { (ac_try="$ac_compile"
39648 case "(($ac_try" in
39649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39650 *) ac_try_echo=$ac_try;;
39652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39653 $as_echo "$ac_try_echo") >&5
39654 (eval "$ac_compile") 2>conftest.er1
39656 grep -v '^ *+' conftest.er1 >conftest.err
39658 cat conftest.err >&5
39659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660 (exit $ac_status); } && {
39661 test -z "$ac_c_werror_flag" ||
39662 test ! -s conftest.err
39663 } && test -s conftest.$ac_objext; then
39666 $as_echo "$as_me: failed program was:" >&5
39667 sed 's/^/| /' conftest.$ac_ext >&5
39672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39674 if test $fits_in_uint = 1; then
39675 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
39677 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
39680 gl_cv_size_max='((size_t)~(size_t)0)'
39685 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
39686 $as_echo "$gl_cv_size_max" >&6; }
39687 if test "$gl_cv_size_max" != yes; then
39689 cat >>confdefs.h <<_ACEOF
39690 #define SIZE_MAX $gl_cv_size_max
39697 # Code from module sleep:
39700 { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
39701 $as_echo_n "checking whether sleep is declared... " >&6; }
39702 if test "${ac_cv_have_decl_sleep+set}" = set; then
39703 $as_echo_n "(cached) " >&6
39705 cat >conftest.$ac_ext <<_ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h. */
39711 #include <unistd.h>
39724 rm -f conftest.$ac_objext
39725 if { (ac_try="$ac_compile"
39726 case "(($ac_try" in
39727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39728 *) ac_try_echo=$ac_try;;
39730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39731 $as_echo "$ac_try_echo") >&5
39732 (eval "$ac_compile") 2>conftest.er1
39734 grep -v '^ *+' conftest.er1 >conftest.err
39736 cat conftest.err >&5
39737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); } && {
39739 test -z "$ac_c_werror_flag" ||
39740 test ! -s conftest.err
39741 } && test -s conftest.$ac_objext; then
39742 ac_cv_have_decl_sleep=yes
39744 $as_echo "$as_me: failed program was:" >&5
39745 sed 's/^/| /' conftest.$ac_ext >&5
39747 ac_cv_have_decl_sleep=no
39750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39752 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
39753 $as_echo "$ac_cv_have_decl_sleep" >&6; }
39754 if test "x$ac_cv_have_decl_sleep" = x""yes; then
39756 cat >>confdefs.h <<_ACEOF
39757 #define HAVE_DECL_SLEEP 1
39762 cat >>confdefs.h <<_ACEOF
39763 #define HAVE_DECL_SLEEP 0
39776 if test $ac_cv_have_decl_sleep != yes; then
39786 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
39789 { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
39790 $as_echo_n "checking for working sleep... " >&6; }
39791 if test "${gl_cv_func_sleep_works+set}" = set; then
39792 $as_echo_n "(cached) " >&6
39794 if test "$cross_compiling" = yes; then
39795 gl_cv_func_sleep_works="guessing no"
39797 cat >conftest.$ac_ext <<_ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h. */
39805 #include <unistd.h>
39806 #include <signal.h>
39808 handle_alarm (int sig)
39810 if (sig != SIGALRM)
39818 /* Failure to compile this test due to missing alarm is okay,
39819 since all such platforms (mingw) also lack sleep. */
39820 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
39821 unsigned int remaining;
39822 signal (SIGALRM, handle_alarm);
39824 remaining = sleep (pentecost);
39825 return !(pentecost - 10 < remaining && remaining <= pentecost);
39830 rm -f conftest$ac_exeext
39831 if { (ac_try="$ac_link"
39832 case "(($ac_try" in
39833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39834 *) ac_try_echo=$ac_try;;
39836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39837 $as_echo "$ac_try_echo") >&5
39838 (eval "$ac_link") 2>&5
39840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39842 { (case "(($ac_try" in
39843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39844 *) ac_try_echo=$ac_try;;
39846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39847 $as_echo "$ac_try_echo") >&5
39848 (eval "$ac_try") 2>&5
39850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; }; then
39852 gl_cv_func_sleep_works=yes
39854 $as_echo "$as_me: program exited with status $ac_status" >&5
39855 $as_echo "$as_me: failed program was:" >&5
39856 sed 's/^/| /' conftest.$ac_ext >&5
39858 ( exit $ac_status )
39859 gl_cv_func_sleep_works=no
39861 rm -rf conftest.dSYM
39862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39867 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
39868 $as_echo "$gl_cv_func_sleep_works" >&6; }
39869 if test "$gl_cv_func_sleep_works" != yes; then
39879 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
39891 cat >>confdefs.h <<\_ACEOF
39892 #define GNULIB_TEST_SLEEP 1
39897 # Code from module snprintf:
39900 gl_cv_func_snprintf_usable=no
39902 for ac_func in snprintf
39904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39905 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39906 $as_echo_n "checking for $ac_func... " >&6; }
39907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39908 $as_echo_n "(cached) " >&6
39910 cat >conftest.$ac_ext <<_ACEOF
39913 cat confdefs.h >>conftest.$ac_ext
39914 cat >>conftest.$ac_ext <<_ACEOF
39915 /* end confdefs.h. */
39916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39918 #define $ac_func innocuous_$ac_func
39920 /* System header to define __stub macros and hopefully few prototypes,
39921 which can conflict with char $ac_func (); below.
39922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39923 <limits.h> exists even on freestanding compilers. */
39926 # include <limits.h>
39928 # include <assert.h>
39933 /* Override any GCC internal prototype to avoid an error.
39934 Use char because int might match the return type of a GCC
39935 builtin and then its argument prototype would still apply. */
39940 /* The GNU C library defines this for functions which it implements
39941 to always fail with ENOSYS. Some functions are actually named
39942 something starting with __ and the normal name is an alias. */
39943 #if defined __stub_$ac_func || defined __stub___$ac_func
39950 return $ac_func ();
39955 rm -f conftest.$ac_objext conftest$ac_exeext
39956 if { (ac_try="$ac_link"
39957 case "(($ac_try" in
39958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39959 *) ac_try_echo=$ac_try;;
39961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39962 $as_echo "$ac_try_echo") >&5
39963 (eval "$ac_link") 2>conftest.er1
39965 grep -v '^ *+' conftest.er1 >conftest.err
39967 cat conftest.err >&5
39968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969 (exit $ac_status); } && {
39970 test -z "$ac_c_werror_flag" ||
39971 test ! -s conftest.err
39972 } && test -s conftest$ac_exeext && {
39973 test "$cross_compiling" = yes ||
39974 $as_test_x conftest$ac_exeext
39976 eval "$as_ac_var=yes"
39978 $as_echo "$as_me: failed program was:" >&5
39979 sed 's/^/| /' conftest.$ac_ext >&5
39981 eval "$as_ac_var=no"
39984 rm -rf conftest.dSYM
39985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39986 conftest$ac_exeext conftest.$ac_ext
39988 ac_res=`eval 'as_val=${'$as_ac_var'}
39989 $as_echo "$as_val"'`
39990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39991 $as_echo "$ac_res" >&6; }
39992 as_val=`eval 'as_val=${'$as_ac_var'}
39993 $as_echo "$as_val"'`
39994 if test "x$as_val" = x""yes; then
39995 cat >>confdefs.h <<_ACEOF
39996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40002 if test $ac_cv_func_snprintf = yes; then
40005 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
40006 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
40007 if test "${gl_cv_func_snprintf_size1+set}" = set; then
40008 $as_echo_n "(cached) " >&6
40011 if test "$cross_compiling" = yes; then
40012 gl_cv_func_snprintf_size1="guessing yes"
40014 cat >conftest.$ac_ext <<_ACEOF
40017 cat confdefs.h >>conftest.$ac_ext
40018 cat >>conftest.$ac_ext <<_ACEOF
40019 /* end confdefs.h. */
40024 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
40025 snprintf (buf, 1, "%d", 12345);
40026 return buf[1] != 'E';
40029 rm -f conftest$ac_exeext
40030 if { (ac_try="$ac_link"
40031 case "(($ac_try" in
40032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033 *) ac_try_echo=$ac_try;;
40035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40036 $as_echo "$ac_try_echo") >&5
40037 (eval "$ac_link") 2>&5
40039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40041 { (case "(($ac_try" in
40042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40043 *) ac_try_echo=$ac_try;;
40045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40046 $as_echo "$ac_try_echo") >&5
40047 (eval "$ac_try") 2>&5
40049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050 (exit $ac_status); }; }; then
40051 gl_cv_func_snprintf_size1=yes
40053 $as_echo "$as_me: program exited with status $ac_status" >&5
40054 $as_echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40057 ( exit $ac_status )
40058 gl_cv_func_snprintf_size1=no
40060 rm -rf conftest.dSYM
40061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40067 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
40068 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
40070 case "$gl_cv_func_snprintf_size1" in
40072 gl_cv_func_snprintf_usable=yes
40076 if test $gl_cv_func_snprintf_usable = no; then
40087 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
40089 if test $ac_cv_func_snprintf = yes; then
40099 if test $ac_cv_have_decl_snprintf = no; then
40100 HAVE_DECL_SNPRINTF=0
40110 cat >>confdefs.h <<\_ACEOF
40111 #define GNULIB_TEST_SNPRINTF 1
40116 # Code from module ssize_t:
40118 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
40119 $as_echo_n "checking for ssize_t... " >&6; }
40120 if test "${gt_cv_ssize_t+set}" = set; then
40121 $as_echo_n "(cached) " >&6
40123 cat >conftest.$ac_ext <<_ACEOF
40126 cat confdefs.h >>conftest.$ac_ext
40127 cat >>conftest.$ac_ext <<_ACEOF
40128 /* end confdefs.h. */
40129 #include <sys/types.h>
40133 int x = sizeof (ssize_t *) + sizeof (ssize_t);
40139 rm -f conftest.$ac_objext
40140 if { (ac_try="$ac_compile"
40141 case "(($ac_try" in
40142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143 *) ac_try_echo=$ac_try;;
40145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40146 $as_echo "$ac_try_echo") >&5
40147 (eval "$ac_compile") 2>conftest.er1
40149 grep -v '^ *+' conftest.er1 >conftest.err
40151 cat conftest.err >&5
40152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153 (exit $ac_status); } && {
40154 test -z "$ac_c_werror_flag" ||
40155 test ! -s conftest.err
40156 } && test -s conftest.$ac_objext; then
40159 $as_echo "$as_me: failed program was:" >&5
40160 sed 's/^/| /' conftest.$ac_ext >&5
40165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40167 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
40168 $as_echo "$gt_cv_ssize_t" >&6; }
40169 if test $gt_cv_ssize_t = no; then
40171 cat >>confdefs.h <<\_ACEOF
40172 #define ssize_t int
40177 # Code from module stat:
40187 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
40188 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
40189 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
40190 $as_echo_n "(cached) " >&6
40192 if test "$cross_compiling" = yes; then
40194 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
40195 *) gl_cv_func_stat_dir_slash="guessing yes";;
40198 cat >conftest.$ac_ext <<_ACEOF
40201 cat confdefs.h >>conftest.$ac_ext
40202 cat >>conftest.$ac_ext <<_ACEOF
40203 /* end confdefs.h. */
40204 #include <sys/stat.h>
40209 struct stat st; return stat (".", &st) != stat ("./", &st);
40214 rm -f conftest$ac_exeext
40215 if { (ac_try="$ac_link"
40216 case "(($ac_try" in
40217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40218 *) ac_try_echo=$ac_try;;
40220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40221 $as_echo "$ac_try_echo") >&5
40222 (eval "$ac_link") 2>&5
40224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40226 { (case "(($ac_try" in
40227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40228 *) ac_try_echo=$ac_try;;
40230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40231 $as_echo "$ac_try_echo") >&5
40232 (eval "$ac_try") 2>&5
40234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40235 (exit $ac_status); }; }; then
40236 gl_cv_func_stat_dir_slash=yes
40238 $as_echo "$as_me: program exited with status $ac_status" >&5
40239 $as_echo "$as_me: failed program was:" >&5
40240 sed 's/^/| /' conftest.$ac_ext >&5
40242 ( exit $ac_status )
40243 gl_cv_func_stat_dir_slash=no
40245 rm -rf conftest.dSYM
40246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40251 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
40252 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
40253 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
40254 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
40255 if test "${gl_cv_func_stat_file_slash+set}" = set; then
40256 $as_echo_n "(cached) " >&6
40259 # Assume that if we have lstat, we can also check symlinks.
40260 if test $ac_cv_func_lstat = yes; then
40261 ln -s conftest.tmp conftest.lnk
40263 if test "$cross_compiling" = yes; then
40264 gl_cv_func_stat_file_slash="guessing no"
40266 cat >conftest.$ac_ext <<_ACEOF
40269 cat confdefs.h >>conftest.$ac_ext
40270 cat >>conftest.$ac_ext <<_ACEOF
40271 /* end confdefs.h. */
40272 #include <sys/stat.h>
40278 if (!stat ("conftest.tmp/", &st)) return 1;
40280 if (!stat ("conftest.lnk/", &st)) return 2;
40287 rm -f conftest$ac_exeext
40288 if { (ac_try="$ac_link"
40289 case "(($ac_try" in
40290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40291 *) ac_try_echo=$ac_try;;
40293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40294 $as_echo "$ac_try_echo") >&5
40295 (eval "$ac_link") 2>&5
40297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40299 { (case "(($ac_try" in
40300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40301 *) ac_try_echo=$ac_try;;
40303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40304 $as_echo "$ac_try_echo") >&5
40305 (eval "$ac_try") 2>&5
40307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308 (exit $ac_status); }; }; then
40309 gl_cv_func_stat_file_slash=yes
40311 $as_echo "$as_me: program exited with status $ac_status" >&5
40312 $as_echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40315 ( exit $ac_status )
40316 gl_cv_func_stat_file_slash=no
40318 rm -rf conftest.dSYM
40319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40323 rm -f conftest.tmp conftest.lnk
40325 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
40326 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
40327 case $gl_cv_func_stat_dir_slash in
40328 *no) REPLACE_STAT=1
40330 cat >>confdefs.h <<\_ACEOF
40331 #define REPLACE_FUNC_STAT_DIR 1
40335 case $gl_cv_func_stat_file_slash in
40336 *no) REPLACE_STAT=1
40338 cat >>confdefs.h <<\_ACEOF
40339 #define REPLACE_FUNC_STAT_FILE 1
40343 if test $REPLACE_STAT = 1; then
40352 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
40364 cat >>confdefs.h <<\_ACEOF
40365 #define GNULIB_TEST_STAT 1
40370 # Code from module stat-macros:
40371 # Code from module stat-time:
40382 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
40383 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
40384 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
40385 $as_echo_n "(cached) " >&6
40387 cat >conftest.$ac_ext <<_ACEOF
40390 cat confdefs.h >>conftest.$ac_ext
40391 cat >>conftest.$ac_ext <<_ACEOF
40392 /* end confdefs.h. */
40393 #include <sys/types.h>
40394 #include <sys/stat.h>
40399 static struct stat ac_aggr;
40400 if (ac_aggr.st_atim.tv_nsec)
40406 rm -f conftest.$ac_objext
40407 if { (ac_try="$ac_compile"
40408 case "(($ac_try" in
40409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40410 *) ac_try_echo=$ac_try;;
40412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40413 $as_echo "$ac_try_echo") >&5
40414 (eval "$ac_compile") 2>conftest.er1
40416 grep -v '^ *+' conftest.er1 >conftest.err
40418 cat conftest.err >&5
40419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); } && {
40421 test -z "$ac_c_werror_flag" ||
40422 test ! -s conftest.err
40423 } && test -s conftest.$ac_objext; then
40424 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
40426 $as_echo "$as_me: failed program was:" >&5
40427 sed 's/^/| /' conftest.$ac_ext >&5
40429 cat >conftest.$ac_ext <<_ACEOF
40432 cat confdefs.h >>conftest.$ac_ext
40433 cat >>conftest.$ac_ext <<_ACEOF
40434 /* end confdefs.h. */
40435 #include <sys/types.h>
40436 #include <sys/stat.h>
40441 static struct stat ac_aggr;
40442 if (sizeof ac_aggr.st_atim.tv_nsec)
40448 rm -f conftest.$ac_objext
40449 if { (ac_try="$ac_compile"
40450 case "(($ac_try" in
40451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40452 *) ac_try_echo=$ac_try;;
40454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40455 $as_echo "$ac_try_echo") >&5
40456 (eval "$ac_compile") 2>conftest.er1
40458 grep -v '^ *+' conftest.er1 >conftest.err
40460 cat conftest.err >&5
40461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462 (exit $ac_status); } && {
40463 test -z "$ac_c_werror_flag" ||
40464 test ! -s conftest.err
40465 } && test -s conftest.$ac_objext; then
40466 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
40468 $as_echo "$as_me: failed program was:" >&5
40469 sed 's/^/| /' conftest.$ac_ext >&5
40471 ac_cv_member_struct_stat_st_atim_tv_nsec=no
40474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40479 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
40480 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
40481 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
40483 cat >>confdefs.h <<_ACEOF
40484 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
40487 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
40488 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
40489 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
40490 $as_echo_n "(cached) " >&6
40492 cat >conftest.$ac_ext <<_ACEOF
40495 cat confdefs.h >>conftest.$ac_ext
40496 cat >>conftest.$ac_ext <<_ACEOF
40497 /* end confdefs.h. */
40499 #include <sys/types.h>
40500 #include <sys/stat.h>
40501 #if HAVE_SYS_TIME_H
40502 # include <sys/time.h>
40505 struct timespec ts;
40518 rm -f conftest.$ac_objext
40519 if { (ac_try="$ac_compile"
40520 case "(($ac_try" in
40521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40522 *) ac_try_echo=$ac_try;;
40524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40525 $as_echo "$ac_try_echo") >&5
40526 (eval "$ac_compile") 2>conftest.er1
40528 grep -v '^ *+' conftest.er1 >conftest.err
40530 cat conftest.err >&5
40531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532 (exit $ac_status); } && {
40533 test -z "$ac_c_werror_flag" ||
40534 test ! -s conftest.err
40535 } && test -s conftest.$ac_objext; then
40536 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
40538 $as_echo "$as_me: failed program was:" >&5
40539 sed 's/^/| /' conftest.$ac_ext >&5
40541 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
40544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40546 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
40547 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
40548 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
40550 cat >>confdefs.h <<\_ACEOF
40551 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
40556 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
40557 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
40558 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
40559 $as_echo_n "(cached) " >&6
40561 cat >conftest.$ac_ext <<_ACEOF
40564 cat confdefs.h >>conftest.$ac_ext
40565 cat >>conftest.$ac_ext <<_ACEOF
40566 /* end confdefs.h. */
40567 #include <sys/types.h>
40568 #include <sys/stat.h>
40573 static struct stat ac_aggr;
40574 if (ac_aggr.st_atimespec.tv_nsec)
40580 rm -f conftest.$ac_objext
40581 if { (ac_try="$ac_compile"
40582 case "(($ac_try" in
40583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40584 *) ac_try_echo=$ac_try;;
40586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40587 $as_echo "$ac_try_echo") >&5
40588 (eval "$ac_compile") 2>conftest.er1
40590 grep -v '^ *+' conftest.er1 >conftest.err
40592 cat conftest.err >&5
40593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); } && {
40595 test -z "$ac_c_werror_flag" ||
40596 test ! -s conftest.err
40597 } && test -s conftest.$ac_objext; then
40598 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
40600 $as_echo "$as_me: failed program was:" >&5
40601 sed 's/^/| /' conftest.$ac_ext >&5
40603 cat >conftest.$ac_ext <<_ACEOF
40606 cat confdefs.h >>conftest.$ac_ext
40607 cat >>conftest.$ac_ext <<_ACEOF
40608 /* end confdefs.h. */
40609 #include <sys/types.h>
40610 #include <sys/stat.h>
40615 static struct stat ac_aggr;
40616 if (sizeof ac_aggr.st_atimespec.tv_nsec)
40622 rm -f conftest.$ac_objext
40623 if { (ac_try="$ac_compile"
40624 case "(($ac_try" in
40625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40626 *) ac_try_echo=$ac_try;;
40628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40629 $as_echo "$ac_try_echo") >&5
40630 (eval "$ac_compile") 2>conftest.er1
40632 grep -v '^ *+' conftest.er1 >conftest.err
40634 cat conftest.err >&5
40635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636 (exit $ac_status); } && {
40637 test -z "$ac_c_werror_flag" ||
40638 test ! -s conftest.err
40639 } && test -s conftest.$ac_objext; then
40640 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
40642 $as_echo "$as_me: failed program was:" >&5
40643 sed 's/^/| /' conftest.$ac_ext >&5
40645 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
40648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40653 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
40654 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
40655 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then
40657 cat >>confdefs.h <<_ACEOF
40658 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
40663 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
40664 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
40665 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
40666 $as_echo_n "(cached) " >&6
40668 cat >conftest.$ac_ext <<_ACEOF
40671 cat confdefs.h >>conftest.$ac_ext
40672 cat >>conftest.$ac_ext <<_ACEOF
40673 /* end confdefs.h. */
40674 #include <sys/types.h>
40675 #include <sys/stat.h>
40680 static struct stat ac_aggr;
40681 if (ac_aggr.st_atimensec)
40687 rm -f conftest.$ac_objext
40688 if { (ac_try="$ac_compile"
40689 case "(($ac_try" in
40690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40691 *) ac_try_echo=$ac_try;;
40693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40694 $as_echo "$ac_try_echo") >&5
40695 (eval "$ac_compile") 2>conftest.er1
40697 grep -v '^ *+' conftest.er1 >conftest.err
40699 cat conftest.err >&5
40700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40701 (exit $ac_status); } && {
40702 test -z "$ac_c_werror_flag" ||
40703 test ! -s conftest.err
40704 } && test -s conftest.$ac_objext; then
40705 ac_cv_member_struct_stat_st_atimensec=yes
40707 $as_echo "$as_me: failed program was:" >&5
40708 sed 's/^/| /' conftest.$ac_ext >&5
40710 cat >conftest.$ac_ext <<_ACEOF
40713 cat confdefs.h >>conftest.$ac_ext
40714 cat >>conftest.$ac_ext <<_ACEOF
40715 /* end confdefs.h. */
40716 #include <sys/types.h>
40717 #include <sys/stat.h>
40722 static struct stat ac_aggr;
40723 if (sizeof ac_aggr.st_atimensec)
40729 rm -f conftest.$ac_objext
40730 if { (ac_try="$ac_compile"
40731 case "(($ac_try" in
40732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40733 *) ac_try_echo=$ac_try;;
40735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40736 $as_echo "$ac_try_echo") >&5
40737 (eval "$ac_compile") 2>conftest.er1
40739 grep -v '^ *+' conftest.er1 >conftest.err
40741 cat conftest.err >&5
40742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743 (exit $ac_status); } && {
40744 test -z "$ac_c_werror_flag" ||
40745 test ! -s conftest.err
40746 } && test -s conftest.$ac_objext; then
40747 ac_cv_member_struct_stat_st_atimensec=yes
40749 $as_echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40752 ac_cv_member_struct_stat_st_atimensec=no
40755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40760 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
40761 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
40762 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
40764 cat >>confdefs.h <<_ACEOF
40765 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
40770 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
40771 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
40772 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
40773 $as_echo_n "(cached) " >&6
40775 cat >conftest.$ac_ext <<_ACEOF
40778 cat confdefs.h >>conftest.$ac_ext
40779 cat >>conftest.$ac_ext <<_ACEOF
40780 /* end confdefs.h. */
40781 #include <sys/types.h>
40782 #include <sys/stat.h>
40787 static struct stat ac_aggr;
40788 if (ac_aggr.st_atim.st__tim.tv_nsec)
40794 rm -f conftest.$ac_objext
40795 if { (ac_try="$ac_compile"
40796 case "(($ac_try" in
40797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40798 *) ac_try_echo=$ac_try;;
40800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40801 $as_echo "$ac_try_echo") >&5
40802 (eval "$ac_compile") 2>conftest.er1
40804 grep -v '^ *+' conftest.er1 >conftest.err
40806 cat conftest.err >&5
40807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40808 (exit $ac_status); } && {
40809 test -z "$ac_c_werror_flag" ||
40810 test ! -s conftest.err
40811 } && test -s conftest.$ac_objext; then
40812 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
40814 $as_echo "$as_me: failed program was:" >&5
40815 sed 's/^/| /' conftest.$ac_ext >&5
40817 cat >conftest.$ac_ext <<_ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h. */
40823 #include <sys/types.h>
40824 #include <sys/stat.h>
40829 static struct stat ac_aggr;
40830 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
40836 rm -f conftest.$ac_objext
40837 if { (ac_try="$ac_compile"
40838 case "(($ac_try" in
40839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40840 *) ac_try_echo=$ac_try;;
40842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40843 $as_echo "$ac_try_echo") >&5
40844 (eval "$ac_compile") 2>conftest.er1
40846 grep -v '^ *+' conftest.er1 >conftest.err
40848 cat conftest.err >&5
40849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); } && {
40851 test -z "$ac_c_werror_flag" ||
40852 test ! -s conftest.err
40853 } && test -s conftest.$ac_objext; then
40854 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
40856 $as_echo "$as_me: failed program was:" >&5
40857 sed 's/^/| /' conftest.$ac_ext >&5
40859 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
40862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40867 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
40868 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
40869 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then
40871 cat >>confdefs.h <<_ACEOF
40872 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
40894 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
40895 $as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; }
40896 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
40897 $as_echo_n "(cached) " >&6
40899 cat >conftest.$ac_ext <<_ACEOF
40902 cat confdefs.h >>conftest.$ac_ext
40903 cat >>conftest.$ac_ext <<_ACEOF
40904 /* end confdefs.h. */
40905 #include <sys/types.h>
40906 #include <sys/stat.h>
40911 static struct stat ac_aggr;
40912 if (ac_aggr.st_birthtimespec.tv_nsec)
40918 rm -f conftest.$ac_objext
40919 if { (ac_try="$ac_compile"
40920 case "(($ac_try" in
40921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40922 *) ac_try_echo=$ac_try;;
40924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40925 $as_echo "$ac_try_echo") >&5
40926 (eval "$ac_compile") 2>conftest.er1
40928 grep -v '^ *+' conftest.er1 >conftest.err
40930 cat conftest.err >&5
40931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932 (exit $ac_status); } && {
40933 test -z "$ac_c_werror_flag" ||
40934 test ! -s conftest.err
40935 } && test -s conftest.$ac_objext; then
40936 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
40938 $as_echo "$as_me: failed program was:" >&5
40939 sed 's/^/| /' conftest.$ac_ext >&5
40941 cat >conftest.$ac_ext <<_ACEOF
40944 cat confdefs.h >>conftest.$ac_ext
40945 cat >>conftest.$ac_ext <<_ACEOF
40946 /* end confdefs.h. */
40947 #include <sys/types.h>
40948 #include <sys/stat.h>
40953 static struct stat ac_aggr;
40954 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
40960 rm -f conftest.$ac_objext
40961 if { (ac_try="$ac_compile"
40962 case "(($ac_try" in
40963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40964 *) ac_try_echo=$ac_try;;
40966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40967 $as_echo "$ac_try_echo") >&5
40968 (eval "$ac_compile") 2>conftest.er1
40970 grep -v '^ *+' conftest.er1 >conftest.err
40972 cat conftest.err >&5
40973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); } && {
40975 test -z "$ac_c_werror_flag" ||
40976 test ! -s conftest.err
40977 } && test -s conftest.$ac_objext; then
40978 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
40980 $as_echo "$as_me: failed program was:" >&5
40981 sed 's/^/| /' conftest.$ac_ext >&5
40983 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
40986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40991 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
40992 $as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
40993 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then
40995 cat >>confdefs.h <<_ACEOF
40996 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
41001 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
41002 $as_echo_n "checking for struct stat.st_birthtimensec... " >&6; }
41003 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
41004 $as_echo_n "(cached) " >&6
41006 cat >conftest.$ac_ext <<_ACEOF
41009 cat confdefs.h >>conftest.$ac_ext
41010 cat >>conftest.$ac_ext <<_ACEOF
41011 /* end confdefs.h. */
41012 #include <sys/types.h>
41013 #include <sys/stat.h>
41018 static struct stat ac_aggr;
41019 if (ac_aggr.st_birthtimensec)
41025 rm -f conftest.$ac_objext
41026 if { (ac_try="$ac_compile"
41027 case "(($ac_try" in
41028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41029 *) ac_try_echo=$ac_try;;
41031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41032 $as_echo "$ac_try_echo") >&5
41033 (eval "$ac_compile") 2>conftest.er1
41035 grep -v '^ *+' conftest.er1 >conftest.err
41037 cat conftest.err >&5
41038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41039 (exit $ac_status); } && {
41040 test -z "$ac_c_werror_flag" ||
41041 test ! -s conftest.err
41042 } && test -s conftest.$ac_objext; then
41043 ac_cv_member_struct_stat_st_birthtimensec=yes
41045 $as_echo "$as_me: failed program was:" >&5
41046 sed 's/^/| /' conftest.$ac_ext >&5
41048 cat >conftest.$ac_ext <<_ACEOF
41051 cat confdefs.h >>conftest.$ac_ext
41052 cat >>conftest.$ac_ext <<_ACEOF
41053 /* end confdefs.h. */
41054 #include <sys/types.h>
41055 #include <sys/stat.h>
41060 static struct stat ac_aggr;
41061 if (sizeof ac_aggr.st_birthtimensec)
41067 rm -f conftest.$ac_objext
41068 if { (ac_try="$ac_compile"
41069 case "(($ac_try" in
41070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41071 *) ac_try_echo=$ac_try;;
41073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41074 $as_echo "$ac_try_echo") >&5
41075 (eval "$ac_compile") 2>conftest.er1
41077 grep -v '^ *+' conftest.er1 >conftest.err
41079 cat conftest.err >&5
41080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081 (exit $ac_status); } && {
41082 test -z "$ac_c_werror_flag" ||
41083 test ! -s conftest.err
41084 } && test -s conftest.$ac_objext; then
41085 ac_cv_member_struct_stat_st_birthtimensec=yes
41087 $as_echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41090 ac_cv_member_struct_stat_st_birthtimensec=no
41093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41098 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
41099 $as_echo "$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
41100 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then
41102 cat >>confdefs.h <<_ACEOF
41103 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
41108 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
41109 $as_echo_n "checking for struct stat.st_birthtim.tv_nsec... " >&6; }
41110 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
41111 $as_echo_n "(cached) " >&6
41113 cat >conftest.$ac_ext <<_ACEOF
41116 cat confdefs.h >>conftest.$ac_ext
41117 cat >>conftest.$ac_ext <<_ACEOF
41118 /* end confdefs.h. */
41119 #include <sys/types.h>
41120 #include <sys/stat.h>
41125 static struct stat ac_aggr;
41126 if (ac_aggr.st_birthtim.tv_nsec)
41132 rm -f conftest.$ac_objext
41133 if { (ac_try="$ac_compile"
41134 case "(($ac_try" in
41135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41136 *) ac_try_echo=$ac_try;;
41138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41139 $as_echo "$ac_try_echo") >&5
41140 (eval "$ac_compile") 2>conftest.er1
41142 grep -v '^ *+' conftest.er1 >conftest.err
41144 cat conftest.err >&5
41145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41146 (exit $ac_status); } && {
41147 test -z "$ac_c_werror_flag" ||
41148 test ! -s conftest.err
41149 } && test -s conftest.$ac_objext; then
41150 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
41152 $as_echo "$as_me: failed program was:" >&5
41153 sed 's/^/| /' conftest.$ac_ext >&5
41155 cat >conftest.$ac_ext <<_ACEOF
41158 cat confdefs.h >>conftest.$ac_ext
41159 cat >>conftest.$ac_ext <<_ACEOF
41160 /* end confdefs.h. */
41161 #include <sys/types.h>
41162 #include <sys/stat.h>
41167 static struct stat ac_aggr;
41168 if (sizeof ac_aggr.st_birthtim.tv_nsec)
41174 rm -f conftest.$ac_objext
41175 if { (ac_try="$ac_compile"
41176 case "(($ac_try" in
41177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41178 *) ac_try_echo=$ac_try;;
41180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41181 $as_echo "$ac_try_echo") >&5
41182 (eval "$ac_compile") 2>conftest.er1
41184 grep -v '^ *+' conftest.er1 >conftest.err
41186 cat conftest.err >&5
41187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188 (exit $ac_status); } && {
41189 test -z "$ac_c_werror_flag" ||
41190 test ! -s conftest.err
41191 } && test -s conftest.$ac_objext; then
41192 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
41194 $as_echo "$as_me: failed program was:" >&5
41195 sed 's/^/| /' conftest.$ac_ext >&5
41197 ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
41200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41205 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
41206 $as_echo "$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
41207 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then
41209 cat >>confdefs.h <<_ACEOF
41210 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
41221 # Code from module stdarg:
41224 NEXT_STDARG_H='<stdarg.h>';
41225 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
41226 $as_echo_n "checking for va_copy... " >&6; }
41227 if test "${gl_cv_func_va_copy+set}" = set; then
41228 $as_echo_n "(cached) " >&6
41231 cat >conftest.$ac_ext <<_ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h. */
41237 #include <stdarg.h>
41243 void (*func) (va_list, va_list) = va_copy;
41250 rm -f conftest.$ac_objext
41251 if { (ac_try="$ac_compile"
41252 case "(($ac_try" in
41253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41254 *) ac_try_echo=$ac_try;;
41256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41257 $as_echo "$ac_try_echo") >&5
41258 (eval "$ac_compile") 2>conftest.er1
41260 grep -v '^ *+' conftest.er1 >conftest.err
41262 cat conftest.err >&5
41263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264 (exit $ac_status); } && {
41265 test -z "$ac_c_werror_flag" ||
41266 test ! -s conftest.err
41267 } && test -s conftest.$ac_objext; then
41268 gl_cv_func_va_copy=yes
41270 $as_echo "$as_me: failed program was:" >&5
41271 sed 's/^/| /' conftest.$ac_ext >&5
41273 gl_cv_func_va_copy=no
41276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41279 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
41280 $as_echo "$gl_cv_func_va_copy" >&6; }
41281 if test $gl_cv_func_va_copy = no; then
41282 cat >conftest.$ac_ext <<_ACEOF
41285 cat confdefs.h >>conftest.$ac_ext
41286 cat >>conftest.$ac_ext <<_ACEOF
41287 /* end confdefs.h. */
41288 #if defined _AIX && !defined __GNUC__
41293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41294 $EGREP "vaccine" >/dev/null 2>&1; then
41301 if test $gl_aixcc = yes; then
41314 if test $gl_cv_have_include_next = yes; then
41315 gl_cv_next_stdarg_h='<'stdarg.h'>'
41317 { $as_echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
41318 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
41319 if test "${gl_cv_next_stdarg_h+set}" = set; then
41320 $as_echo_n "(cached) " >&6
41323 if test $ac_cv_header_stdarg_h = yes; then
41324 cat >conftest.$ac_ext <<_ACEOF
41327 cat confdefs.h >>conftest.$ac_ext
41328 cat >>conftest.$ac_ext <<_ACEOF
41329 /* end confdefs.h. */
41330 #include <stdarg.h>
41334 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41335 *) gl_absname_cpp="$ac_cpp" ;;
41337 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41338 sed -n '\#/stdarg.h#{
41339 s#.*"\(.*/stdarg.h\)".*#\1#
41345 gl_cv_next_stdarg_h='<'stdarg.h'>'
41349 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
41350 $as_echo "$gl_cv_next_stdarg_h" >&6; }
41352 NEXT_STDARG_H=$gl_cv_next_stdarg_h
41354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41356 gl_next_as_first_directive='<'stdarg.h'>'
41358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41359 gl_next_as_first_directive=$gl_cv_next_stdarg_h
41361 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
41365 if test "$gl_cv_next_stdarg_h" = '""'; then
41366 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
41367 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
41371 saved_as_echo_n="$as_echo_n"
41373 if test "${gl_cv_func___va_copy+set}" = set; then
41374 $as_echo_n "(cached) " >&6
41377 cat >conftest.$ac_ext <<_ACEOF
41380 cat confdefs.h >>conftest.$ac_ext
41381 cat >>conftest.$ac_ext <<_ACEOF
41382 /* end confdefs.h. */
41383 #include <stdarg.h>
41396 rm -f conftest.$ac_objext
41397 if { (ac_try="$ac_compile"
41398 case "(($ac_try" in
41399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41400 *) ac_try_echo=$ac_try;;
41402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41403 $as_echo "$ac_try_echo") >&5
41404 (eval "$ac_compile") 2>conftest.er1
41406 grep -v '^ *+' conftest.er1 >conftest.err
41408 cat conftest.err >&5
41409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410 (exit $ac_status); } && {
41411 test -z "$ac_c_werror_flag" ||
41412 test ! -s conftest.err
41413 } && test -s conftest.$ac_objext; then
41414 gl_cv_func___va_copy=yes
41416 $as_echo "$as_me: failed program was:" >&5
41417 sed 's/^/| /' conftest.$ac_ext >&5
41419 gl_cv_func___va_copy=no
41422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41425 as_echo_n="$saved_as_echo_n"
41427 if test $gl_cv_func___va_copy = yes; then
41429 cat >>confdefs.h <<\_ACEOF
41430 #define va_copy __va_copy
41437 cat >>confdefs.h <<\_ACEOF
41438 #define va_copy gl_va_copy
41445 # Code from module stdbool:
41449 # Define two additional variables used in the Makefile substitution.
41451 if test "$ac_cv_header_stdbool_h" = yes; then
41454 STDBOOL_H='stdbool.h'
41458 if test "$ac_cv_type__Bool" = yes; then
41465 # Code from module stddef:
41469 if test $gt_cv_c_wchar_t = no; then
41473 { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
41474 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
41475 if test "${gl_cv_decl_null_works+set}" = set; then
41476 $as_echo_n "(cached) " >&6
41478 cat >conftest.$ac_ext <<_ACEOF
41481 cat confdefs.h >>conftest.$ac_ext
41482 cat >>conftest.$ac_ext <<_ACEOF
41483 /* end confdefs.h. */
41484 #include <stddef.h>
41485 int test[2 * (sizeof NULL == sizeof (void *)) -1];
41495 rm -f conftest.$ac_objext
41496 if { (ac_try="$ac_compile"
41497 case "(($ac_try" in
41498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41499 *) ac_try_echo=$ac_try;;
41501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41502 $as_echo "$ac_try_echo") >&5
41503 (eval "$ac_compile") 2>conftest.er1
41505 grep -v '^ *+' conftest.er1 >conftest.err
41507 cat conftest.err >&5
41508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); } && {
41510 test -z "$ac_c_werror_flag" ||
41511 test ! -s conftest.err
41512 } && test -s conftest.$ac_objext; then
41513 gl_cv_decl_null_works=yes
41515 $as_echo "$as_me: failed program was:" >&5
41516 sed 's/^/| /' conftest.$ac_ext >&5
41518 gl_cv_decl_null_works=no
41521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41523 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
41524 $as_echo "$gl_cv_decl_null_works" >&6; }
41525 if test $gl_cv_decl_null_works = no; then
41529 if test -n "$STDDEF_H"; then
41541 if test $gl_cv_have_include_next = yes; then
41542 gl_cv_next_stddef_h='<'stddef.h'>'
41544 { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
41545 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
41546 if test "${gl_cv_next_stddef_h+set}" = set; then
41547 $as_echo_n "(cached) " >&6
41550 if test $ac_cv_header_stddef_h = yes; then
41551 cat >conftest.$ac_ext <<_ACEOF
41554 cat confdefs.h >>conftest.$ac_ext
41555 cat >>conftest.$ac_ext <<_ACEOF
41556 /* end confdefs.h. */
41557 #include <stddef.h>
41561 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41562 *) gl_absname_cpp="$ac_cpp" ;;
41564 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41565 sed -n '\#/stddef.h#{
41566 s#.*"\(.*/stddef.h\)".*#\1#
41572 gl_cv_next_stddef_h='<'stddef.h'>'
41576 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
41577 $as_echo "$gl_cv_next_stddef_h" >&6; }
41579 NEXT_STDDEF_H=$gl_cv_next_stddef_h
41581 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41582 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41583 gl_next_as_first_directive='<'stddef.h'>'
41585 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41586 gl_next_as_first_directive=$gl_cv_next_stddef_h
41588 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
41594 # Code from module stdint:
41598 if test $ac_cv_type_long_long_int = yes; then
41599 HAVE_LONG_LONG_INT=1
41601 HAVE_LONG_LONG_INT=0
41605 if test $ac_cv_type_unsigned_long_long_int = yes; then
41606 HAVE_UNSIGNED_LONG_LONG_INT=1
41608 HAVE_UNSIGNED_LONG_LONG_INT=0
41612 if test $ac_cv_header_inttypes_h = yes; then
41619 if test $ac_cv_header_sys_types_h = yes; then
41637 if test $gl_cv_have_include_next = yes; then
41638 gl_cv_next_stdint_h='<'stdint.h'>'
41640 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
41641 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
41642 if test "${gl_cv_next_stdint_h+set}" = set; then
41643 $as_echo_n "(cached) " >&6
41646 if test $ac_cv_header_stdint_h = yes; then
41647 cat >conftest.$ac_ext <<_ACEOF
41650 cat confdefs.h >>conftest.$ac_ext
41651 cat >>conftest.$ac_ext <<_ACEOF
41652 /* end confdefs.h. */
41653 #include <stdint.h>
41657 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41658 *) gl_absname_cpp="$ac_cpp" ;;
41660 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41661 sed -n '\#/stdint.h#{
41662 s#.*"\(.*/stdint.h\)".*#\1#
41668 gl_cv_next_stdint_h='<'stdint.h'>'
41672 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
41673 $as_echo "$gl_cv_next_stdint_h" >&6; }
41675 NEXT_STDINT_H=$gl_cv_next_stdint_h
41677 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41679 gl_next_as_first_directive='<'stdint.h'>'
41681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41682 gl_next_as_first_directive=$gl_cv_next_stdint_h
41684 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
41688 if test $ac_cv_header_stdint_h = yes; then
41695 if test $ac_cv_header_stdint_h = yes; then
41696 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
41697 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
41698 if test "${gl_cv_header_working_stdint_h+set}" = set; then
41699 $as_echo_n "(cached) " >&6
41701 gl_cv_header_working_stdint_h=no
41702 cat >conftest.$ac_ext <<_ACEOF
41706 cat confdefs.h >>conftest.$ac_ext
41707 cat >>conftest.$ac_ext <<_ACEOF
41708 /* end confdefs.h. */
41710 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
41711 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
41712 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
41713 #include <stdint.h>
41714 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
41715 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
41716 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
41720 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41721 included before <wchar.h>. */
41722 #include <stddef.h>
41723 #include <signal.h>
41725 # include <stdio.h>
41727 # include <wchar.h>
41732 int8_t a1 = INT8_MAX;
41733 int8_t a1min = INT8_MIN;
41736 int16_t a2 = INT16_MAX;
41737 int16_t a2min = INT16_MIN;
41740 int32_t a3 = INT32_MAX;
41741 int32_t a3min = INT32_MIN;
41744 int64_t a4 = INT64_MAX;
41745 int64_t a4min = INT64_MIN;
41748 uint8_t b1 = UINT8_MAX;
41750 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
41753 uint16_t b2 = UINT16_MAX;
41756 uint32_t b3 = UINT32_MAX;
41759 uint64_t b4 = UINT64_MAX;
41761 int_least8_t c1 = INT8_C (0x7f);
41762 int_least8_t c1max = INT_LEAST8_MAX;
41763 int_least8_t c1min = INT_LEAST8_MIN;
41764 int_least16_t c2 = INT16_C (0x7fff);
41765 int_least16_t c2max = INT_LEAST16_MAX;
41766 int_least16_t c2min = INT_LEAST16_MIN;
41767 int_least32_t c3 = INT32_C (0x7fffffff);
41768 int_least32_t c3max = INT_LEAST32_MAX;
41769 int_least32_t c3min = INT_LEAST32_MIN;
41770 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
41771 int_least64_t c4max = INT_LEAST64_MAX;
41772 int_least64_t c4min = INT_LEAST64_MIN;
41773 uint_least8_t d1 = UINT8_C (0xff);
41774 uint_least8_t d1max = UINT_LEAST8_MAX;
41775 uint_least16_t d2 = UINT16_C (0xffff);
41776 uint_least16_t d2max = UINT_LEAST16_MAX;
41777 uint_least32_t d3 = UINT32_C (0xffffffff);
41778 uint_least32_t d3max = UINT_LEAST32_MAX;
41779 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
41780 uint_least64_t d4max = UINT_LEAST64_MAX;
41781 int_fast8_t e1 = INT_FAST8_MAX;
41782 int_fast8_t e1min = INT_FAST8_MIN;
41783 int_fast16_t e2 = INT_FAST16_MAX;
41784 int_fast16_t e2min = INT_FAST16_MIN;
41785 int_fast32_t e3 = INT_FAST32_MAX;
41786 int_fast32_t e3min = INT_FAST32_MIN;
41787 int_fast64_t e4 = INT_FAST64_MAX;
41788 int_fast64_t e4min = INT_FAST64_MIN;
41789 uint_fast8_t f1 = UINT_FAST8_MAX;
41790 uint_fast16_t f2 = UINT_FAST16_MAX;
41791 uint_fast32_t f3 = UINT_FAST32_MAX;
41792 uint_fast64_t f4 = UINT_FAST64_MAX;
41794 intptr_t g = INTPTR_MAX;
41795 intptr_t gmin = INTPTR_MIN;
41798 uintptr_t h = UINTPTR_MAX;
41800 intmax_t i = INTMAX_MAX;
41801 uintmax_t j = UINTMAX_MAX;
41803 #include <limits.h> /* for CHAR_BIT */
41804 #define TYPE_MINIMUM(t) \
41805 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
41806 #define TYPE_MAXIMUM(t) \
41807 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
41810 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
41811 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
41813 /* Detect bug in FreeBSD 6.0 / ia64. */
41814 int check_SIG_ATOMIC:
41815 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
41816 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
41818 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
41820 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
41821 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
41823 /* Detect bug in mingw. */
41825 WINT_MIN == TYPE_MINIMUM (wint_t)
41826 && WINT_MAX == TYPE_MAXIMUM (wint_t)
41829 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
41831 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
41832 int check_UINT16_C:
41833 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
41835 /* Detect bugs in OpenBSD 3.9 stdint.h. */
41837 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
41840 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
41843 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
41846 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
41848 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
41849 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
41850 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
41851 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
41852 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
41853 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
41854 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
41855 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
41856 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
41857 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
41858 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
41869 rm -f conftest.$ac_objext
41870 if { (ac_try="$ac_compile"
41871 case "(($ac_try" in
41872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41873 *) ac_try_echo=$ac_try;;
41875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41876 $as_echo "$ac_try_echo") >&5
41877 (eval "$ac_compile") 2>conftest.er1
41879 grep -v '^ *+' conftest.er1 >conftest.err
41881 cat conftest.err >&5
41882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883 (exit $ac_status); } && {
41884 test -z "$ac_c_werror_flag" ||
41885 test ! -s conftest.err
41886 } && test -s conftest.$ac_objext; then
41887 if test "$cross_compiling" = yes; then
41888 gl_cv_header_working_stdint_h=yes
41891 cat >conftest.$ac_ext <<_ACEOF
41895 cat confdefs.h >>conftest.$ac_ext
41896 cat >>conftest.$ac_ext <<_ACEOF
41897 /* end confdefs.h. */
41899 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
41900 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
41901 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
41902 #include <stdint.h>
41905 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41906 included before <wchar.h>. */
41907 #include <stddef.h>
41908 #include <signal.h>
41910 # include <stdio.h>
41912 # include <wchar.h>
41917 #include <string.h>
41918 #define MVAL(macro) MVAL1(macro)
41919 #define MVAL1(expression) #expression
41920 static const char *macro_values[] =
41954 for (mv = macro_values; *mv != NULL; mv++)
41956 const char *value = *mv;
41957 /* Test whether it looks like a cast expression. */
41958 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
41959 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
41960 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
41961 || strncmp (value, "((int)"/*)*/, 6) == 0
41962 || strncmp (value, "((signed short)"/*)*/, 15) == 0
41963 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
41972 rm -f conftest$ac_exeext
41973 if { (ac_try="$ac_link"
41974 case "(($ac_try" in
41975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41976 *) ac_try_echo=$ac_try;;
41978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41979 $as_echo "$ac_try_echo") >&5
41980 (eval "$ac_link") 2>&5
41982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
41992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993 (exit $ac_status); }; }; then
41994 gl_cv_header_working_stdint_h=yes
41996 $as_echo "$as_me: program exited with status $ac_status" >&5
41997 $as_echo "$as_me: failed program was:" >&5
41998 sed 's/^/| /' conftest.$ac_ext >&5
42001 rm -rf conftest.dSYM
42002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42008 $as_echo "$as_me: failed program was:" >&5
42009 sed 's/^/| /' conftest.$ac_ext >&5
42014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42017 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
42018 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
42020 if test "$gl_cv_header_working_stdint_h" = yes; then
42025 for ac_header in sys/inttypes.h sys/bitypes.h
42027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42030 $as_echo_n "checking for $ac_header... " >&6; }
42031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42032 $as_echo_n "(cached) " >&6
42034 ac_res=`eval 'as_val=${'$as_ac_Header'}
42035 $as_echo "$as_val"'`
42036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42037 $as_echo "$ac_res" >&6; }
42039 # Is the header compilable?
42040 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42041 $as_echo_n "checking $ac_header usability... " >&6; }
42042 cat >conftest.$ac_ext <<_ACEOF
42045 cat confdefs.h >>conftest.$ac_ext
42046 cat >>conftest.$ac_ext <<_ACEOF
42047 /* end confdefs.h. */
42048 $ac_includes_default
42049 #include <$ac_header>
42051 rm -f conftest.$ac_objext
42052 if { (ac_try="$ac_compile"
42053 case "(($ac_try" in
42054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42055 *) ac_try_echo=$ac_try;;
42057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42058 $as_echo "$ac_try_echo") >&5
42059 (eval "$ac_compile") 2>conftest.er1
42061 grep -v '^ *+' conftest.er1 >conftest.err
42063 cat conftest.err >&5
42064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065 (exit $ac_status); } && {
42066 test -z "$ac_c_werror_flag" ||
42067 test ! -s conftest.err
42068 } && test -s conftest.$ac_objext; then
42069 ac_header_compiler=yes
42071 $as_echo "$as_me: failed program was:" >&5
42072 sed 's/^/| /' conftest.$ac_ext >&5
42074 ac_header_compiler=no
42077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42079 $as_echo "$ac_header_compiler" >&6; }
42081 # Is the header present?
42082 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42083 $as_echo_n "checking $ac_header presence... " >&6; }
42084 cat >conftest.$ac_ext <<_ACEOF
42087 cat confdefs.h >>conftest.$ac_ext
42088 cat >>conftest.$ac_ext <<_ACEOF
42089 /* end confdefs.h. */
42090 #include <$ac_header>
42092 if { (ac_try="$ac_cpp conftest.$ac_ext"
42093 case "(($ac_try" in
42094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42095 *) ac_try_echo=$ac_try;;
42097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42098 $as_echo "$ac_try_echo") >&5
42099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42101 grep -v '^ *+' conftest.er1 >conftest.err
42103 cat conftest.err >&5
42104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105 (exit $ac_status); } >/dev/null && {
42106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42107 test ! -s conftest.err
42109 ac_header_preproc=yes
42111 $as_echo "$as_me: failed program was:" >&5
42112 sed 's/^/| /' conftest.$ac_ext >&5
42114 ac_header_preproc=no
42117 rm -f conftest.err conftest.$ac_ext
42118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42119 $as_echo "$ac_header_preproc" >&6; }
42121 # So? What about this header?
42122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42125 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42128 ac_header_preproc=yes
42131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42132 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42134 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42136 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42138 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42142 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42144 ## ------------------------------ ##
42145 ## Report this to bug-tar@gnu.org ##
42146 ## ------------------------------ ##
42148 ) | sed "s/^/$as_me: WARNING: /" >&2
42151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42152 $as_echo_n "checking for $ac_header... " >&6; }
42153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42154 $as_echo_n "(cached) " >&6
42156 eval "$as_ac_Header=\$ac_header_preproc"
42158 ac_res=`eval 'as_val=${'$as_ac_Header'}
42159 $as_echo "$as_val"'`
42160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42161 $as_echo "$ac_res" >&6; }
42164 as_val=`eval 'as_val=${'$as_ac_Header'}
42165 $as_echo "$as_val"'`
42166 if test "x$as_val" = x""yes; then
42167 cat >>confdefs.h <<_ACEOF
42168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42175 if test $ac_cv_header_sys_inttypes_h = yes; then
42176 HAVE_SYS_INTTYPES_H=1
42178 HAVE_SYS_INTTYPES_H=0
42181 if test $ac_cv_header_sys_bitypes_h = yes; then
42182 HAVE_SYS_BITYPES_H=1
42184 HAVE_SYS_BITYPES_H=0
42197 if test $APPLE_UNIVERSAL_BUILD = 0; then
42202 for gltype in ptrdiff_t size_t ; do
42203 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
42204 $as_echo_n "checking for bit size of $gltype... " >&6; }
42205 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
42206 $as_echo_n "(cached) " >&6
42208 if test "$cross_compiling" = yes; then
42209 # Depending upon the size, compute the lo and hi bounds.
42210 cat >conftest.$ac_ext <<_ACEOF
42213 cat confdefs.h >>conftest.$ac_ext
42214 cat >>conftest.$ac_ext <<_ACEOF
42215 /* end confdefs.h. */
42217 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42218 included before <wchar.h>. */
42219 #include <stddef.h>
42220 #include <signal.h>
42222 # include <stdio.h>
42224 # include <wchar.h>
42227 #include <limits.h>
42231 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
42238 rm -f conftest.$ac_objext
42239 if { (ac_try="$ac_compile"
42240 case "(($ac_try" in
42241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42242 *) ac_try_echo=$ac_try;;
42244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42245 $as_echo "$ac_try_echo") >&5
42246 (eval "$ac_compile") 2>conftest.er1
42248 grep -v '^ *+' conftest.er1 >conftest.err
42250 cat conftest.err >&5
42251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42252 (exit $ac_status); } && {
42253 test -z "$ac_c_werror_flag" ||
42254 test ! -s conftest.err
42255 } && test -s conftest.$ac_objext; then
42258 cat >conftest.$ac_ext <<_ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h. */
42265 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42266 included before <wchar.h>. */
42267 #include <stddef.h>
42268 #include <signal.h>
42270 # include <stdio.h>
42272 # include <wchar.h>
42275 #include <limits.h>
42279 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42286 rm -f conftest.$ac_objext
42287 if { (ac_try="$ac_compile"
42288 case "(($ac_try" in
42289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42290 *) ac_try_echo=$ac_try;;
42292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42293 $as_echo "$ac_try_echo") >&5
42294 (eval "$ac_compile") 2>conftest.er1
42296 grep -v '^ *+' conftest.er1 >conftest.err
42298 cat conftest.err >&5
42299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300 (exit $ac_status); } && {
42301 test -z "$ac_c_werror_flag" ||
42302 test ! -s conftest.err
42303 } && test -s conftest.$ac_objext; then
42304 ac_hi=$ac_mid; break
42306 $as_echo "$as_me: failed program was:" >&5
42307 sed 's/^/| /' conftest.$ac_ext >&5
42309 ac_lo=`expr $ac_mid + 1`
42310 if test $ac_lo -le $ac_mid; then
42314 ac_mid=`expr 2 '*' $ac_mid + 1`
42317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42320 $as_echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42323 cat >conftest.$ac_ext <<_ACEOF
42326 cat confdefs.h >>conftest.$ac_ext
42327 cat >>conftest.$ac_ext <<_ACEOF
42328 /* end confdefs.h. */
42330 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42331 included before <wchar.h>. */
42332 #include <stddef.h>
42333 #include <signal.h>
42335 # include <stdio.h>
42337 # include <wchar.h>
42340 #include <limits.h>
42344 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
42351 rm -f conftest.$ac_objext
42352 if { (ac_try="$ac_compile"
42353 case "(($ac_try" in
42354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42355 *) ac_try_echo=$ac_try;;
42357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42358 $as_echo "$ac_try_echo") >&5
42359 (eval "$ac_compile") 2>conftest.er1
42361 grep -v '^ *+' conftest.er1 >conftest.err
42363 cat conftest.err >&5
42364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365 (exit $ac_status); } && {
42366 test -z "$ac_c_werror_flag" ||
42367 test ! -s conftest.err
42368 } && test -s conftest.$ac_objext; then
42371 cat >conftest.$ac_ext <<_ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h. */
42378 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42379 included before <wchar.h>. */
42380 #include <stddef.h>
42381 #include <signal.h>
42383 # include <stdio.h>
42385 # include <wchar.h>
42388 #include <limits.h>
42392 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
42399 rm -f conftest.$ac_objext
42400 if { (ac_try="$ac_compile"
42401 case "(($ac_try" in
42402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42403 *) ac_try_echo=$ac_try;;
42405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42406 $as_echo "$ac_try_echo") >&5
42407 (eval "$ac_compile") 2>conftest.er1
42409 grep -v '^ *+' conftest.er1 >conftest.err
42411 cat conftest.err >&5
42412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42413 (exit $ac_status); } && {
42414 test -z "$ac_c_werror_flag" ||
42415 test ! -s conftest.err
42416 } && test -s conftest.$ac_objext; then
42417 ac_lo=$ac_mid; break
42419 $as_echo "$as_me: failed program was:" >&5
42420 sed 's/^/| /' conftest.$ac_ext >&5
42422 ac_hi=`expr '(' $ac_mid ')' - 1`
42423 if test $ac_mid -le $ac_hi; then
42427 ac_mid=`expr 2 '*' $ac_mid`
42430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42433 $as_echo "$as_me: failed program was:" >&5
42434 sed 's/^/| /' conftest.$ac_ext >&5
42439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42443 # Binary search between lo and hi bounds.
42444 while test "x$ac_lo" != "x$ac_hi"; do
42445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42446 cat >conftest.$ac_ext <<_ACEOF
42449 cat confdefs.h >>conftest.$ac_ext
42450 cat >>conftest.$ac_ext <<_ACEOF
42451 /* end confdefs.h. */
42453 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42454 included before <wchar.h>. */
42455 #include <stddef.h>
42456 #include <signal.h>
42458 # include <stdio.h>
42460 # include <wchar.h>
42463 #include <limits.h>
42467 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42474 rm -f conftest.$ac_objext
42475 if { (ac_try="$ac_compile"
42476 case "(($ac_try" in
42477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42478 *) ac_try_echo=$ac_try;;
42480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42481 $as_echo "$ac_try_echo") >&5
42482 (eval "$ac_compile") 2>conftest.er1
42484 grep -v '^ *+' conftest.er1 >conftest.err
42486 cat conftest.err >&5
42487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488 (exit $ac_status); } && {
42489 test -z "$ac_c_werror_flag" ||
42490 test ! -s conftest.err
42491 } && test -s conftest.$ac_objext; then
42494 $as_echo "$as_me: failed program was:" >&5
42495 sed 's/^/| /' conftest.$ac_ext >&5
42497 ac_lo=`expr '(' $ac_mid ')' + 1`
42500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42503 ?*) result=$ac_lo;;
42504 '') result=unknown ;;
42507 cat >conftest.$ac_ext <<_ACEOF
42510 cat confdefs.h >>conftest.$ac_ext
42511 cat >>conftest.$ac_ext <<_ACEOF
42512 /* end confdefs.h. */
42514 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42515 included before <wchar.h>. */
42516 #include <stddef.h>
42517 #include <signal.h>
42519 # include <stdio.h>
42521 # include <wchar.h>
42524 #include <limits.h>
42525 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
42526 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
42528 #include <stdlib.h>
42533 FILE *f = fopen ("conftest.val", "w");
42536 if ((sizeof ($gltype) * CHAR_BIT) < 0)
42538 long int i = longval ();
42539 if (i != (sizeof ($gltype) * CHAR_BIT))
42541 fprintf (f, "%ld", i);
42545 unsigned long int i = ulongval ();
42546 if (i != (sizeof ($gltype) * CHAR_BIT))
42548 fprintf (f, "%lu", i);
42550 /* Do not output a trailing newline, as this causes \r\n confusion
42551 on some platforms. */
42552 return ferror (f) || fclose (f) != 0;
42558 rm -f conftest$ac_exeext
42559 if { (ac_try="$ac_link"
42560 case "(($ac_try" in
42561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42562 *) ac_try_echo=$ac_try;;
42564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42565 $as_echo "$ac_try_echo") >&5
42566 (eval "$ac_link") 2>&5
42568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42570 { (case "(($ac_try" in
42571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42572 *) ac_try_echo=$ac_try;;
42574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42575 $as_echo "$ac_try_echo") >&5
42576 (eval "$ac_try") 2>&5
42578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579 (exit $ac_status); }; }; then
42580 result=`cat conftest.val`
42582 $as_echo "$as_me: program exited with status $ac_status" >&5
42583 $as_echo "$as_me: failed program was:" >&5
42584 sed 's/^/| /' conftest.$ac_ext >&5
42586 ( exit $ac_status )
42589 rm -rf conftest.dSYM
42590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42593 eval gl_cv_bitsizeof_${gltype}=\$result
42596 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
42597 $as_echo "$as_val"'`
42598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42599 $as_echo "$ac_res" >&6; }
42600 eval result=\$gl_cv_bitsizeof_${gltype}
42601 if test $result = unknown; then
42604 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
42605 cat >>confdefs.h <<_ACEOF
42606 #define BITSIZEOF_${GLTYPE} $result
42609 eval BITSIZEOF_${GLTYPE}=\$result
42619 for gltype in sig_atomic_t wchar_t wint_t ; do
42620 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
42621 $as_echo_n "checking for bit size of $gltype... " >&6; }
42622 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
42623 $as_echo_n "(cached) " >&6
42625 if test "$cross_compiling" = yes; then
42626 # Depending upon the size, compute the lo and hi bounds.
42627 cat >conftest.$ac_ext <<_ACEOF
42630 cat confdefs.h >>conftest.$ac_ext
42631 cat >>conftest.$ac_ext <<_ACEOF
42632 /* end confdefs.h. */
42634 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42635 included before <wchar.h>. */
42636 #include <stddef.h>
42637 #include <signal.h>
42639 # include <stdio.h>
42641 # include <wchar.h>
42644 #include <limits.h>
42648 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
42655 rm -f conftest.$ac_objext
42656 if { (ac_try="$ac_compile"
42657 case "(($ac_try" in
42658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42659 *) ac_try_echo=$ac_try;;
42661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42662 $as_echo "$ac_try_echo") >&5
42663 (eval "$ac_compile") 2>conftest.er1
42665 grep -v '^ *+' conftest.er1 >conftest.err
42667 cat conftest.err >&5
42668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669 (exit $ac_status); } && {
42670 test -z "$ac_c_werror_flag" ||
42671 test ! -s conftest.err
42672 } && test -s conftest.$ac_objext; then
42675 cat >conftest.$ac_ext <<_ACEOF
42678 cat confdefs.h >>conftest.$ac_ext
42679 cat >>conftest.$ac_ext <<_ACEOF
42680 /* end confdefs.h. */
42682 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42683 included before <wchar.h>. */
42684 #include <stddef.h>
42685 #include <signal.h>
42687 # include <stdio.h>
42689 # include <wchar.h>
42692 #include <limits.h>
42696 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42703 rm -f conftest.$ac_objext
42704 if { (ac_try="$ac_compile"
42705 case "(($ac_try" in
42706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42707 *) ac_try_echo=$ac_try;;
42709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42710 $as_echo "$ac_try_echo") >&5
42711 (eval "$ac_compile") 2>conftest.er1
42713 grep -v '^ *+' conftest.er1 >conftest.err
42715 cat conftest.err >&5
42716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42717 (exit $ac_status); } && {
42718 test -z "$ac_c_werror_flag" ||
42719 test ! -s conftest.err
42720 } && test -s conftest.$ac_objext; then
42721 ac_hi=$ac_mid; break
42723 $as_echo "$as_me: failed program was:" >&5
42724 sed 's/^/| /' conftest.$ac_ext >&5
42726 ac_lo=`expr $ac_mid + 1`
42727 if test $ac_lo -le $ac_mid; then
42731 ac_mid=`expr 2 '*' $ac_mid + 1`
42734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42737 $as_echo "$as_me: failed program was:" >&5
42738 sed 's/^/| /' conftest.$ac_ext >&5
42740 cat >conftest.$ac_ext <<_ACEOF
42743 cat confdefs.h >>conftest.$ac_ext
42744 cat >>conftest.$ac_ext <<_ACEOF
42745 /* end confdefs.h. */
42747 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42748 included before <wchar.h>. */
42749 #include <stddef.h>
42750 #include <signal.h>
42752 # include <stdio.h>
42754 # include <wchar.h>
42757 #include <limits.h>
42761 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
42768 rm -f conftest.$ac_objext
42769 if { (ac_try="$ac_compile"
42770 case "(($ac_try" in
42771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42772 *) ac_try_echo=$ac_try;;
42774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42775 $as_echo "$ac_try_echo") >&5
42776 (eval "$ac_compile") 2>conftest.er1
42778 grep -v '^ *+' conftest.er1 >conftest.err
42780 cat conftest.err >&5
42781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782 (exit $ac_status); } && {
42783 test -z "$ac_c_werror_flag" ||
42784 test ! -s conftest.err
42785 } && test -s conftest.$ac_objext; then
42788 cat >conftest.$ac_ext <<_ACEOF
42791 cat confdefs.h >>conftest.$ac_ext
42792 cat >>conftest.$ac_ext <<_ACEOF
42793 /* end confdefs.h. */
42795 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42796 included before <wchar.h>. */
42797 #include <stddef.h>
42798 #include <signal.h>
42800 # include <stdio.h>
42802 # include <wchar.h>
42805 #include <limits.h>
42809 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
42816 rm -f conftest.$ac_objext
42817 if { (ac_try="$ac_compile"
42818 case "(($ac_try" in
42819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42820 *) ac_try_echo=$ac_try;;
42822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42823 $as_echo "$ac_try_echo") >&5
42824 (eval "$ac_compile") 2>conftest.er1
42826 grep -v '^ *+' conftest.er1 >conftest.err
42828 cat conftest.err >&5
42829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830 (exit $ac_status); } && {
42831 test -z "$ac_c_werror_flag" ||
42832 test ! -s conftest.err
42833 } && test -s conftest.$ac_objext; then
42834 ac_lo=$ac_mid; break
42836 $as_echo "$as_me: failed program was:" >&5
42837 sed 's/^/| /' conftest.$ac_ext >&5
42839 ac_hi=`expr '(' $ac_mid ')' - 1`
42840 if test $ac_mid -le $ac_hi; then
42844 ac_mid=`expr 2 '*' $ac_mid`
42847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42850 $as_echo "$as_me: failed program was:" >&5
42851 sed 's/^/| /' conftest.$ac_ext >&5
42856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42860 # Binary search between lo and hi bounds.
42861 while test "x$ac_lo" != "x$ac_hi"; do
42862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42863 cat >conftest.$ac_ext <<_ACEOF
42866 cat confdefs.h >>conftest.$ac_ext
42867 cat >>conftest.$ac_ext <<_ACEOF
42868 /* end confdefs.h. */
42870 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42871 included before <wchar.h>. */
42872 #include <stddef.h>
42873 #include <signal.h>
42875 # include <stdio.h>
42877 # include <wchar.h>
42880 #include <limits.h>
42884 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42891 rm -f conftest.$ac_objext
42892 if { (ac_try="$ac_compile"
42893 case "(($ac_try" in
42894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42895 *) ac_try_echo=$ac_try;;
42897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42898 $as_echo "$ac_try_echo") >&5
42899 (eval "$ac_compile") 2>conftest.er1
42901 grep -v '^ *+' conftest.er1 >conftest.err
42903 cat conftest.err >&5
42904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42905 (exit $ac_status); } && {
42906 test -z "$ac_c_werror_flag" ||
42907 test ! -s conftest.err
42908 } && test -s conftest.$ac_objext; then
42911 $as_echo "$as_me: failed program was:" >&5
42912 sed 's/^/| /' conftest.$ac_ext >&5
42914 ac_lo=`expr '(' $ac_mid ')' + 1`
42917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42920 ?*) result=$ac_lo;;
42921 '') result=unknown ;;
42924 cat >conftest.$ac_ext <<_ACEOF
42927 cat confdefs.h >>conftest.$ac_ext
42928 cat >>conftest.$ac_ext <<_ACEOF
42929 /* end confdefs.h. */
42931 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42932 included before <wchar.h>. */
42933 #include <stddef.h>
42934 #include <signal.h>
42936 # include <stdio.h>
42938 # include <wchar.h>
42941 #include <limits.h>
42942 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
42943 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
42945 #include <stdlib.h>
42950 FILE *f = fopen ("conftest.val", "w");
42953 if ((sizeof ($gltype) * CHAR_BIT) < 0)
42955 long int i = longval ();
42956 if (i != (sizeof ($gltype) * CHAR_BIT))
42958 fprintf (f, "%ld", i);
42962 unsigned long int i = ulongval ();
42963 if (i != (sizeof ($gltype) * CHAR_BIT))
42965 fprintf (f, "%lu", i);
42967 /* Do not output a trailing newline, as this causes \r\n confusion
42968 on some platforms. */
42969 return ferror (f) || fclose (f) != 0;
42975 rm -f conftest$ac_exeext
42976 if { (ac_try="$ac_link"
42977 case "(($ac_try" in
42978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42979 *) ac_try_echo=$ac_try;;
42981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42982 $as_echo "$ac_try_echo") >&5
42983 (eval "$ac_link") 2>&5
42985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42987 { (case "(($ac_try" in
42988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42989 *) ac_try_echo=$ac_try;;
42991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42992 $as_echo "$ac_try_echo") >&5
42993 (eval "$ac_try") 2>&5
42995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42996 (exit $ac_status); }; }; then
42997 result=`cat conftest.val`
42999 $as_echo "$as_me: program exited with status $ac_status" >&5
43000 $as_echo "$as_me: failed program was:" >&5
43001 sed 's/^/| /' conftest.$ac_ext >&5
43003 ( exit $ac_status )
43006 rm -rf conftest.dSYM
43007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43010 eval gl_cv_bitsizeof_${gltype}=\$result
43013 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
43014 $as_echo "$as_val"'`
43015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43016 $as_echo "$ac_res" >&6; }
43017 eval result=\$gl_cv_bitsizeof_${gltype}
43018 if test $result = unknown; then
43021 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43022 cat >>confdefs.h <<_ACEOF
43023 #define BITSIZEOF_${GLTYPE} $result
43026 eval BITSIZEOF_${GLTYPE}=\$result
43035 for gltype in sig_atomic_t wchar_t wint_t ; do
43036 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
43037 $as_echo_n "checking whether $gltype is signed... " >&6; }
43038 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
43039 $as_echo_n "(cached) " >&6
43041 cat >conftest.$ac_ext <<_ACEOF
43044 cat confdefs.h >>conftest.$ac_ext
43045 cat >>conftest.$ac_ext <<_ACEOF
43046 /* end confdefs.h. */
43048 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43049 included before <wchar.h>. */
43050 #include <stddef.h>
43051 #include <signal.h>
43053 # include <stdio.h>
43055 # include <wchar.h>
43058 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
43067 rm -f conftest.$ac_objext
43068 if { (ac_try="$ac_compile"
43069 case "(($ac_try" in
43070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43071 *) ac_try_echo=$ac_try;;
43073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43074 $as_echo "$ac_try_echo") >&5
43075 (eval "$ac_compile") 2>conftest.er1
43077 grep -v '^ *+' conftest.er1 >conftest.err
43079 cat conftest.err >&5
43080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081 (exit $ac_status); } && {
43082 test -z "$ac_c_werror_flag" ||
43083 test ! -s conftest.err
43084 } && test -s conftest.$ac_objext; then
43087 $as_echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43094 eval gl_cv_type_${gltype}_signed=\$result
43097 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
43098 $as_echo "$as_val"'`
43099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43100 $as_echo "$ac_res" >&6; }
43101 eval result=\$gl_cv_type_${gltype}_signed
43102 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43103 if test "$result" = yes; then
43104 cat >>confdefs.h <<_ACEOF
43105 #define HAVE_SIGNED_${GLTYPE} 1
43108 eval HAVE_SIGNED_${GLTYPE}=1
43110 eval HAVE_SIGNED_${GLTYPE}=0
43115 gl_cv_type_ptrdiff_t_signed=yes
43116 gl_cv_type_size_t_signed=no
43117 if test $APPLE_UNIVERSAL_BUILD = 0; then
43122 for gltype in ptrdiff_t size_t ; do
43123 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
43124 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
43125 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
43126 $as_echo_n "(cached) " >&6
43128 eval gl_cv_type_${gltype}_suffix=no
43129 eval result=\$gl_cv_type_${gltype}_signed
43130 if test "$result" = yes; then
43135 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
43137 '') gltype1='int';;
43138 l) gltype1='long int';;
43139 ll) gltype1='long long int';;
43140 i64) gltype1='__int64';;
43141 u) gltype1='unsigned int';;
43142 ul) gltype1='unsigned long int';;
43143 ull) gltype1='unsigned long long int';;
43144 ui64)gltype1='unsigned __int64';;
43146 cat >conftest.$ac_ext <<_ACEOF
43149 cat confdefs.h >>conftest.$ac_ext
43150 cat >>conftest.$ac_ext <<_ACEOF
43151 /* end confdefs.h. */
43153 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43154 included before <wchar.h>. */
43155 #include <stddef.h>
43156 #include <signal.h>
43158 # include <stdio.h>
43160 # include <wchar.h>
43163 extern $gltype foo;
43164 extern $gltype1 foo;
43173 rm -f conftest.$ac_objext
43174 if { (ac_try="$ac_compile"
43175 case "(($ac_try" in
43176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43177 *) ac_try_echo=$ac_try;;
43179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43180 $as_echo "$ac_try_echo") >&5
43181 (eval "$ac_compile") 2>conftest.er1
43183 grep -v '^ *+' conftest.er1 >conftest.err
43185 cat conftest.err >&5
43186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187 (exit $ac_status); } && {
43188 test -z "$ac_c_werror_flag" ||
43189 test ! -s conftest.err
43190 } && test -s conftest.$ac_objext; then
43191 eval gl_cv_type_${gltype}_suffix=\$glsuf
43193 $as_echo "$as_me: failed program was:" >&5
43194 sed 's/^/| /' conftest.$ac_ext >&5
43199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43200 eval result=\$gl_cv_type_${gltype}_suffix
43201 test "$result" != no && break
43204 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
43205 $as_echo "$as_val"'`
43206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43207 $as_echo "$ac_res" >&6; }
43208 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43209 eval result=\$gl_cv_type_${gltype}_suffix
43210 test "$result" = no && result=
43211 eval ${GLTYPE}_SUFFIX=\$result
43212 cat >>confdefs.h <<_ACEOF
43213 #define ${GLTYPE}_SUFFIX $result
43225 for gltype in sig_atomic_t wchar_t wint_t ; do
43226 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
43227 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
43228 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
43229 $as_echo_n "(cached) " >&6
43231 eval gl_cv_type_${gltype}_suffix=no
43232 eval result=\$gl_cv_type_${gltype}_signed
43233 if test "$result" = yes; then
43238 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
43240 '') gltype1='int';;
43241 l) gltype1='long int';;
43242 ll) gltype1='long long int';;
43243 i64) gltype1='__int64';;
43244 u) gltype1='unsigned int';;
43245 ul) gltype1='unsigned long int';;
43246 ull) gltype1='unsigned long long int';;
43247 ui64)gltype1='unsigned __int64';;
43249 cat >conftest.$ac_ext <<_ACEOF
43252 cat confdefs.h >>conftest.$ac_ext
43253 cat >>conftest.$ac_ext <<_ACEOF
43254 /* end confdefs.h. */
43256 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43257 included before <wchar.h>. */
43258 #include <stddef.h>
43259 #include <signal.h>
43261 # include <stdio.h>
43263 # include <wchar.h>
43266 extern $gltype foo;
43267 extern $gltype1 foo;
43276 rm -f conftest.$ac_objext
43277 if { (ac_try="$ac_compile"
43278 case "(($ac_try" in
43279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43280 *) ac_try_echo=$ac_try;;
43282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43283 $as_echo "$ac_try_echo") >&5
43284 (eval "$ac_compile") 2>conftest.er1
43286 grep -v '^ *+' conftest.er1 >conftest.err
43288 cat conftest.err >&5
43289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43290 (exit $ac_status); } && {
43291 test -z "$ac_c_werror_flag" ||
43292 test ! -s conftest.err
43293 } && test -s conftest.$ac_objext; then
43294 eval gl_cv_type_${gltype}_suffix=\$glsuf
43296 $as_echo "$as_me: failed program was:" >&5
43297 sed 's/^/| /' conftest.$ac_ext >&5
43302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43303 eval result=\$gl_cv_type_${gltype}_suffix
43304 test "$result" != no && break
43307 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
43308 $as_echo "$as_val"'`
43309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43310 $as_echo "$ac_res" >&6; }
43311 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43312 eval result=\$gl_cv_type_${gltype}_suffix
43313 test "$result" = no && result=
43314 eval ${GLTYPE}_SUFFIX=\$result
43315 cat >>confdefs.h <<_ACEOF
43316 #define ${GLTYPE}_SUFFIX $result
43327 # Code from module stdio:
43343 if test $gl_cv_have_include_next = yes; then
43344 gl_cv_next_stdio_h='<'stdio.h'>'
43346 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
43347 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
43348 if test "${gl_cv_next_stdio_h+set}" = set; then
43349 $as_echo_n "(cached) " >&6
43352 if test $ac_cv_header_stdio_h = yes; then
43353 cat >conftest.$ac_ext <<_ACEOF
43356 cat confdefs.h >>conftest.$ac_ext
43357 cat >>conftest.$ac_ext <<_ACEOF
43358 /* end confdefs.h. */
43363 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43364 *) gl_absname_cpp="$ac_cpp" ;;
43366 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43367 sed -n '\#/stdio.h#{
43368 s#.*"\(.*/stdio.h\)".*#\1#
43374 gl_cv_next_stdio_h='<'stdio.h'>'
43378 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
43379 $as_echo "$gl_cv_next_stdio_h" >&6; }
43381 NEXT_STDIO_H=$gl_cv_next_stdio_h
43383 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43385 gl_next_as_first_directive='<'stdio.h'>'
43387 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43388 gl_next_as_first_directive=$gl_cv_next_stdio_h
43390 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
43419 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
43420 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43421 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43422 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43423 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43424 $as_echo_n "(cached) " >&6
43426 cat >conftest.$ac_ext <<_ACEOF
43429 cat confdefs.h >>conftest.$ac_ext
43430 cat >>conftest.$ac_ext <<_ACEOF
43431 /* end confdefs.h. */
43443 rm -f conftest.$ac_objext
43444 if { (ac_try="$ac_compile"
43445 case "(($ac_try" in
43446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43447 *) ac_try_echo=$ac_try;;
43449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43450 $as_echo "$ac_try_echo") >&5
43451 (eval "$ac_compile") 2>conftest.er1
43453 grep -v '^ *+' conftest.er1 >conftest.err
43455 cat conftest.err >&5
43456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43457 (exit $ac_status); } && {
43458 test -z "$ac_c_werror_flag" ||
43459 test ! -s conftest.err
43460 } && test -s conftest.$ac_objext; then
43461 eval "$as_gl_Symbol=yes"
43463 $as_echo "$as_me: failed program was:" >&5
43464 sed 's/^/| /' conftest.$ac_ext >&5
43466 eval "$as_gl_Symbol=no"
43469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43471 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43472 $as_echo "$as_val"'`
43473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43474 $as_echo "$ac_res" >&6; }
43475 as_val=`eval 'as_val=${'$as_gl_Symbol'}
43476 $as_echo "$as_val"'`
43477 if test "x$as_val" = x""yes; then
43478 cat >>confdefs.h <<_ACEOF
43479 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43482 eval ac_cv_have_decl_$gl_func=yes
43488 # Code from module stdlib:
43502 if test $gl_cv_have_include_next = yes; then
43503 gl_cv_next_stdlib_h='<'stdlib.h'>'
43505 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
43506 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
43507 if test "${gl_cv_next_stdlib_h+set}" = set; then
43508 $as_echo_n "(cached) " >&6
43511 if test $ac_cv_header_stdlib_h = yes; then
43512 cat >conftest.$ac_ext <<_ACEOF
43515 cat confdefs.h >>conftest.$ac_ext
43516 cat >>conftest.$ac_ext <<_ACEOF
43517 /* end confdefs.h. */
43518 #include <stdlib.h>
43522 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43523 *) gl_absname_cpp="$ac_cpp" ;;
43525 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43526 sed -n '\#/stdlib.h#{
43527 s#.*"\(.*/stdlib.h\)".*#\1#
43533 gl_cv_next_stdlib_h='<'stdlib.h'>'
43537 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
43538 $as_echo "$gl_cv_next_stdlib_h" >&6; }
43540 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
43542 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43544 gl_next_as_first_directive='<'stdlib.h'>'
43546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43547 gl_next_as_first_directive=$gl_cv_next_stdlib_h
43549 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
43554 for ac_header in random.h
43556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43557 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43558 $as_echo_n "checking for $ac_header... " >&6; }
43559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43560 $as_echo_n "(cached) " >&6
43562 cat >conftest.$ac_ext <<_ACEOF
43565 cat confdefs.h >>conftest.$ac_ext
43566 cat >>conftest.$ac_ext <<_ACEOF
43567 /* end confdefs.h. */
43568 $ac_includes_default
43570 #include <$ac_header>
43572 rm -f conftest.$ac_objext
43573 if { (ac_try="$ac_compile"
43574 case "(($ac_try" in
43575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43576 *) ac_try_echo=$ac_try;;
43578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43579 $as_echo "$ac_try_echo") >&5
43580 (eval "$ac_compile") 2>conftest.er1
43582 grep -v '^ *+' conftest.er1 >conftest.err
43584 cat conftest.err >&5
43585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586 (exit $ac_status); } && {
43587 test -z "$ac_c_werror_flag" ||
43588 test ! -s conftest.err
43589 } && test -s conftest.$ac_objext; then
43590 eval "$as_ac_Header=yes"
43592 $as_echo "$as_me: failed program was:" >&5
43593 sed 's/^/| /' conftest.$ac_ext >&5
43595 eval "$as_ac_Header=no"
43598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43600 ac_res=`eval 'as_val=${'$as_ac_Header'}
43601 $as_echo "$as_val"'`
43602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43603 $as_echo "$ac_res" >&6; }
43604 as_val=`eval 'as_val=${'$as_ac_Header'}
43605 $as_echo "$as_val"'`
43606 if test "x$as_val" = x""yes; then
43607 cat >>confdefs.h <<_ACEOF
43608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43615 if test $ac_cv_header_random_h = yes; then
43621 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
43622 $as_echo_n "checking for struct random_data... " >&6; }
43623 if test "${ac_cv_type_struct_random_data+set}" = set; then
43624 $as_echo_n "(cached) " >&6
43626 ac_cv_type_struct_random_data=no
43627 cat >conftest.$ac_ext <<_ACEOF
43630 cat confdefs.h >>conftest.$ac_ext
43631 cat >>conftest.$ac_ext <<_ACEOF
43632 /* end confdefs.h. */
43633 #include <stdlib.h>
43635 # include <random.h>
43642 if (sizeof (struct random_data))
43648 rm -f conftest.$ac_objext
43649 if { (ac_try="$ac_compile"
43650 case "(($ac_try" in
43651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43652 *) ac_try_echo=$ac_try;;
43654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43655 $as_echo "$ac_try_echo") >&5
43656 (eval "$ac_compile") 2>conftest.er1
43658 grep -v '^ *+' conftest.er1 >conftest.err
43660 cat conftest.err >&5
43661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662 (exit $ac_status); } && {
43663 test -z "$ac_c_werror_flag" ||
43664 test ! -s conftest.err
43665 } && test -s conftest.$ac_objext; then
43666 cat >conftest.$ac_ext <<_ACEOF
43669 cat confdefs.h >>conftest.$ac_ext
43670 cat >>conftest.$ac_ext <<_ACEOF
43671 /* end confdefs.h. */
43672 #include <stdlib.h>
43674 # include <random.h>
43681 if (sizeof ((struct random_data)))
43687 rm -f conftest.$ac_objext
43688 if { (ac_try="$ac_compile"
43689 case "(($ac_try" in
43690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43691 *) ac_try_echo=$ac_try;;
43693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43694 $as_echo "$ac_try_echo") >&5
43695 (eval "$ac_compile") 2>conftest.er1
43697 grep -v '^ *+' conftest.er1 >conftest.err
43699 cat conftest.err >&5
43700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43701 (exit $ac_status); } && {
43702 test -z "$ac_c_werror_flag" ||
43703 test ! -s conftest.err
43704 } && test -s conftest.$ac_objext; then
43707 $as_echo "$as_me: failed program was:" >&5
43708 sed 's/^/| /' conftest.$ac_ext >&5
43710 ac_cv_type_struct_random_data=yes
43713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43715 $as_echo "$as_me: failed program was:" >&5
43716 sed 's/^/| /' conftest.$ac_ext >&5
43721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43723 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
43724 $as_echo "$ac_cv_type_struct_random_data" >&6; }
43725 if test "x$ac_cv_type_struct_random_data" = x""yes; then
43727 cat >>confdefs.h <<_ACEOF
43728 #define HAVE_STRUCT_RANDOM_DATA 1
43733 HAVE_STRUCT_RANDOM_DATA=0
43762 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
43763 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43764 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43765 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43766 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43767 $as_echo_n "(cached) " >&6
43769 cat >conftest.$ac_ext <<_ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h. */
43775 #include <stdlib.h>
43776 #if HAVE_SYS_LOADAVG_H
43777 # include <sys/loadavg.h>
43780 # include <random.h>
43792 rm -f conftest.$ac_objext
43793 if { (ac_try="$ac_compile"
43794 case "(($ac_try" in
43795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43796 *) ac_try_echo=$ac_try;;
43798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43799 $as_echo "$ac_try_echo") >&5
43800 (eval "$ac_compile") 2>conftest.er1
43802 grep -v '^ *+' conftest.er1 >conftest.err
43804 cat conftest.err >&5
43805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806 (exit $ac_status); } && {
43807 test -z "$ac_c_werror_flag" ||
43808 test ! -s conftest.err
43809 } && test -s conftest.$ac_objext; then
43810 eval "$as_gl_Symbol=yes"
43812 $as_echo "$as_me: failed program was:" >&5
43813 sed 's/^/| /' conftest.$ac_ext >&5
43815 eval "$as_gl_Symbol=no"
43818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43820 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43821 $as_echo "$as_val"'`
43822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43823 $as_echo "$ac_res" >&6; }
43824 as_val=`eval 'as_val=${'$as_gl_Symbol'}
43825 $as_echo "$as_val"'`
43826 if test "x$as_val" = x""yes; then
43827 cat >>confdefs.h <<_ACEOF
43828 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43831 eval ac_cv_have_decl_$gl_func=yes
43837 # Code from module stpcpy:
43853 for ac_func in stpcpy
43855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43857 $as_echo_n "checking for $ac_func... " >&6; }
43858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43859 $as_echo_n "(cached) " >&6
43861 cat >conftest.$ac_ext <<_ACEOF
43864 cat confdefs.h >>conftest.$ac_ext
43865 cat >>conftest.$ac_ext <<_ACEOF
43866 /* end confdefs.h. */
43867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43869 #define $ac_func innocuous_$ac_func
43871 /* System header to define __stub macros and hopefully few prototypes,
43872 which can conflict with char $ac_func (); below.
43873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43874 <limits.h> exists even on freestanding compilers. */
43877 # include <limits.h>
43879 # include <assert.h>
43884 /* Override any GCC internal prototype to avoid an error.
43885 Use char because int might match the return type of a GCC
43886 builtin and then its argument prototype would still apply. */
43891 /* The GNU C library defines this for functions which it implements
43892 to always fail with ENOSYS. Some functions are actually named
43893 something starting with __ and the normal name is an alias. */
43894 #if defined __stub_$ac_func || defined __stub___$ac_func
43901 return $ac_func ();
43906 rm -f conftest.$ac_objext conftest$ac_exeext
43907 if { (ac_try="$ac_link"
43908 case "(($ac_try" in
43909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43910 *) ac_try_echo=$ac_try;;
43912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43913 $as_echo "$ac_try_echo") >&5
43914 (eval "$ac_link") 2>conftest.er1
43916 grep -v '^ *+' conftest.er1 >conftest.err
43918 cat conftest.err >&5
43919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43920 (exit $ac_status); } && {
43921 test -z "$ac_c_werror_flag" ||
43922 test ! -s conftest.err
43923 } && test -s conftest$ac_exeext && {
43924 test "$cross_compiling" = yes ||
43925 $as_test_x conftest$ac_exeext
43927 eval "$as_ac_var=yes"
43929 $as_echo "$as_me: failed program was:" >&5
43930 sed 's/^/| /' conftest.$ac_ext >&5
43932 eval "$as_ac_var=no"
43935 rm -rf conftest.dSYM
43936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43937 conftest$ac_exeext conftest.$ac_ext
43939 ac_res=`eval 'as_val=${'$as_ac_var'}
43940 $as_echo "$as_val"'`
43941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43942 $as_echo "$ac_res" >&6; }
43943 as_val=`eval 'as_val=${'$as_ac_var'}
43944 $as_echo "$as_val"'`
43945 if test "x$as_val" = x""yes; then
43946 cat >>confdefs.h <<_ACEOF
43947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43952 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
43958 if test $ac_cv_func_stpcpy = no; then
43972 cat >>confdefs.h <<\_ACEOF
43973 #define GNULIB_TEST_STPCPY 1
43978 # Code from module strcase:
43991 for ac_func in strcasecmp
43993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43995 $as_echo_n "checking for $ac_func... " >&6; }
43996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43997 $as_echo_n "(cached) " >&6
43999 cat >conftest.$ac_ext <<_ACEOF
44002 cat confdefs.h >>conftest.$ac_ext
44003 cat >>conftest.$ac_ext <<_ACEOF
44004 /* end confdefs.h. */
44005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44007 #define $ac_func innocuous_$ac_func
44009 /* System header to define __stub macros and hopefully few prototypes,
44010 which can conflict with char $ac_func (); below.
44011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44012 <limits.h> exists even on freestanding compilers. */
44015 # include <limits.h>
44017 # include <assert.h>
44022 /* Override any GCC internal prototype to avoid an error.
44023 Use char because int might match the return type of a GCC
44024 builtin and then its argument prototype would still apply. */
44029 /* The GNU C library defines this for functions which it implements
44030 to always fail with ENOSYS. Some functions are actually named
44031 something starting with __ and the normal name is an alias. */
44032 #if defined __stub_$ac_func || defined __stub___$ac_func
44039 return $ac_func ();
44044 rm -f conftest.$ac_objext conftest$ac_exeext
44045 if { (ac_try="$ac_link"
44046 case "(($ac_try" in
44047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44048 *) ac_try_echo=$ac_try;;
44050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44051 $as_echo "$ac_try_echo") >&5
44052 (eval "$ac_link") 2>conftest.er1
44054 grep -v '^ *+' conftest.er1 >conftest.err
44056 cat conftest.err >&5
44057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058 (exit $ac_status); } && {
44059 test -z "$ac_c_werror_flag" ||
44060 test ! -s conftest.err
44061 } && test -s conftest$ac_exeext && {
44062 test "$cross_compiling" = yes ||
44063 $as_test_x conftest$ac_exeext
44065 eval "$as_ac_var=yes"
44067 $as_echo "$as_me: failed program was:" >&5
44068 sed 's/^/| /' conftest.$ac_ext >&5
44070 eval "$as_ac_var=no"
44073 rm -rf conftest.dSYM
44074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44075 conftest$ac_exeext conftest.$ac_ext
44077 ac_res=`eval 'as_val=${'$as_ac_var'}
44078 $as_echo "$as_val"'`
44079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44080 $as_echo "$ac_res" >&6; }
44081 as_val=`eval 'as_val=${'$as_ac_var'}
44082 $as_echo "$as_val"'`
44083 if test "x$as_val" = x""yes; then
44084 cat >>confdefs.h <<_ACEOF
44085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44090 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44096 if test $ac_cv_func_strcasecmp = no; then
44114 for ac_func in strncasecmp
44116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44118 $as_echo_n "checking for $ac_func... " >&6; }
44119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44120 $as_echo_n "(cached) " >&6
44122 cat >conftest.$ac_ext <<_ACEOF
44125 cat confdefs.h >>conftest.$ac_ext
44126 cat >>conftest.$ac_ext <<_ACEOF
44127 /* end confdefs.h. */
44128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44130 #define $ac_func innocuous_$ac_func
44132 /* System header to define __stub macros and hopefully few prototypes,
44133 which can conflict with char $ac_func (); below.
44134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44135 <limits.h> exists even on freestanding compilers. */
44138 # include <limits.h>
44140 # include <assert.h>
44145 /* Override any GCC internal prototype to avoid an error.
44146 Use char because int might match the return type of a GCC
44147 builtin and then its argument prototype would still apply. */
44152 /* The GNU C library defines this for functions which it implements
44153 to always fail with ENOSYS. Some functions are actually named
44154 something starting with __ and the normal name is an alias. */
44155 #if defined __stub_$ac_func || defined __stub___$ac_func
44162 return $ac_func ();
44167 rm -f conftest.$ac_objext conftest$ac_exeext
44168 if { (ac_try="$ac_link"
44169 case "(($ac_try" in
44170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44171 *) ac_try_echo=$ac_try;;
44173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44174 $as_echo "$ac_try_echo") >&5
44175 (eval "$ac_link") 2>conftest.er1
44177 grep -v '^ *+' conftest.er1 >conftest.err
44179 cat conftest.err >&5
44180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44181 (exit $ac_status); } && {
44182 test -z "$ac_c_werror_flag" ||
44183 test ! -s conftest.err
44184 } && test -s conftest$ac_exeext && {
44185 test "$cross_compiling" = yes ||
44186 $as_test_x conftest$ac_exeext
44188 eval "$as_ac_var=yes"
44190 $as_echo "$as_me: failed program was:" >&5
44191 sed 's/^/| /' conftest.$ac_ext >&5
44193 eval "$as_ac_var=no"
44196 rm -rf conftest.dSYM
44197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44198 conftest$ac_exeext conftest.$ac_ext
44200 ac_res=`eval 'as_val=${'$as_ac_var'}
44201 $as_echo "$as_val"'`
44202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44203 $as_echo "$ac_res" >&6; }
44204 as_val=`eval 'as_val=${'$as_ac_var'}
44205 $as_echo "$as_val"'`
44206 if test "x$as_val" = x""yes; then
44207 cat >>confdefs.h <<_ACEOF
44208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44213 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44219 if test $ac_cv_func_strncasecmp = no; then
44224 { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
44225 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
44226 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
44227 $as_echo_n "(cached) " >&6
44229 cat >conftest.$ac_ext <<_ACEOF
44232 cat confdefs.h >>conftest.$ac_ext
44233 cat >>conftest.$ac_ext <<_ACEOF
44234 /* end confdefs.h. */
44235 $ac_includes_default
44239 #ifndef strncasecmp
44240 (void) strncasecmp;
44247 rm -f conftest.$ac_objext
44248 if { (ac_try="$ac_compile"
44249 case "(($ac_try" in
44250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44251 *) ac_try_echo=$ac_try;;
44253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44254 $as_echo "$ac_try_echo") >&5
44255 (eval "$ac_compile") 2>conftest.er1
44257 grep -v '^ *+' conftest.er1 >conftest.err
44259 cat conftest.err >&5
44260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44261 (exit $ac_status); } && {
44262 test -z "$ac_c_werror_flag" ||
44263 test ! -s conftest.err
44264 } && test -s conftest.$ac_objext; then
44265 ac_cv_have_decl_strncasecmp=yes
44267 $as_echo "$as_me: failed program was:" >&5
44268 sed 's/^/| /' conftest.$ac_ext >&5
44270 ac_cv_have_decl_strncasecmp=no
44273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44275 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
44276 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
44277 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
44279 cat >>confdefs.h <<_ACEOF
44280 #define HAVE_DECL_STRNCASECMP 1
44285 cat >>confdefs.h <<_ACEOF
44286 #define HAVE_DECL_STRNCASECMP 0
44293 if test $ac_cv_have_decl_strncasecmp = no; then
44294 HAVE_DECL_STRNCASECMP=0
44298 # Code from module strchrnul:
44312 for ac_func in strchrnul
44314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44315 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44316 $as_echo_n "checking for $ac_func... " >&6; }
44317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44318 $as_echo_n "(cached) " >&6
44320 cat >conftest.$ac_ext <<_ACEOF
44323 cat confdefs.h >>conftest.$ac_ext
44324 cat >>conftest.$ac_ext <<_ACEOF
44325 /* end confdefs.h. */
44326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44328 #define $ac_func innocuous_$ac_func
44330 /* System header to define __stub macros and hopefully few prototypes,
44331 which can conflict with char $ac_func (); below.
44332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44333 <limits.h> exists even on freestanding compilers. */
44336 # include <limits.h>
44338 # include <assert.h>
44343 /* Override any GCC internal prototype to avoid an error.
44344 Use char because int might match the return type of a GCC
44345 builtin and then its argument prototype would still apply. */
44350 /* The GNU C library defines this for functions which it implements
44351 to always fail with ENOSYS. Some functions are actually named
44352 something starting with __ and the normal name is an alias. */
44353 #if defined __stub_$ac_func || defined __stub___$ac_func
44360 return $ac_func ();
44365 rm -f conftest.$ac_objext conftest$ac_exeext
44366 if { (ac_try="$ac_link"
44367 case "(($ac_try" in
44368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44369 *) ac_try_echo=$ac_try;;
44371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44372 $as_echo "$ac_try_echo") >&5
44373 (eval "$ac_link") 2>conftest.er1
44375 grep -v '^ *+' conftest.er1 >conftest.err
44377 cat conftest.err >&5
44378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44379 (exit $ac_status); } && {
44380 test -z "$ac_c_werror_flag" ||
44381 test ! -s conftest.err
44382 } && test -s conftest$ac_exeext && {
44383 test "$cross_compiling" = yes ||
44384 $as_test_x conftest$ac_exeext
44386 eval "$as_ac_var=yes"
44388 $as_echo "$as_me: failed program was:" >&5
44389 sed 's/^/| /' conftest.$ac_ext >&5
44391 eval "$as_ac_var=no"
44394 rm -rf conftest.dSYM
44395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44396 conftest$ac_exeext conftest.$ac_ext
44398 ac_res=`eval 'as_val=${'$as_ac_var'}
44399 $as_echo "$as_val"'`
44400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44401 $as_echo "$ac_res" >&6; }
44402 as_val=`eval 'as_val=${'$as_ac_var'}
44403 $as_echo "$as_val"'`
44404 if test "x$as_val" = x""yes; then
44405 cat >>confdefs.h <<_ACEOF
44406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44411 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44417 if test $ac_cv_func_strchrnul = no; then
44429 cat >>confdefs.h <<\_ACEOF
44430 #define GNULIB_TEST_STRCHRNUL 1
44435 # Code from module strdup-posix:
44445 if test $ac_cv_func_strdup = yes; then
44446 if test $gl_cv_func_malloc_posix != yes; then
44456 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
44469 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
44477 if test $ac_cv_have_decl_strdup = no; then
44488 cat >>confdefs.h <<\_ACEOF
44489 #define GNULIB_TEST_STRDUP 1
44494 # Code from module streq:
44495 # Code from module strerror:
44498 if test $REPLACE_STRERROR = 1; then
44507 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
44510 cat >>confdefs.h <<_ACEOF
44511 #define REPLACE_STRERROR $REPLACE_STRERROR
44523 cat >>confdefs.h <<\_ACEOF
44524 #define GNULIB_TEST_STRERROR 1
44529 # Code from module string:
44533 # Code from module strings:
44537 # Code from module strndup:
44552 if test $ac_cv_have_decl_strndup = no; then
44553 HAVE_DECL_STRNDUP=0
44556 if test $ac_cv_func_strndup = yes; then
44557 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
44558 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
44559 $as_echo_n "checking for working strndup... " >&6; }
44560 if test "${gl_cv_func_strndup_works+set}" = set; then
44561 $as_echo_n "(cached) " >&6
44563 if test "$cross_compiling" = yes; then
44566 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
44567 *) gl_cv_func_strndup_works="guessing yes";;
44571 cat >conftest.$ac_ext <<_ACEOF
44575 cat confdefs.h >>conftest.$ac_ext
44576 cat >>conftest.$ac_ext <<_ACEOF
44577 /* end confdefs.h. */
44578 #include <string.h>
44579 #include <stdlib.h>
44584 #ifndef HAVE_DECL_STRNDUP
44585 extern char *strndup (const char *, size_t);
44588 s = strndup ("some longer string", 15);
44590 s = strndup ("shorter string", 13);
44591 return s[13] != '\0';
44596 rm -f conftest$ac_exeext
44597 if { (ac_try="$ac_link"
44598 case "(($ac_try" in
44599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44600 *) ac_try_echo=$ac_try;;
44602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44603 $as_echo "$ac_try_echo") >&5
44604 (eval "$ac_link") 2>&5
44606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44608 { (case "(($ac_try" in
44609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44610 *) ac_try_echo=$ac_try;;
44612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44613 $as_echo "$ac_try_echo") >&5
44614 (eval "$ac_try") 2>&5
44616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44617 (exit $ac_status); }; }; then
44618 gl_cv_func_strndup_works=yes
44620 $as_echo "$as_me: program exited with status $ac_status" >&5
44621 $as_echo "$as_me: failed program was:" >&5
44622 sed 's/^/| /' conftest.$ac_ext >&5
44624 ( exit $ac_status )
44625 gl_cv_func_strndup_works=no
44627 rm -rf conftest.dSYM
44628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44633 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
44634 $as_echo "$gl_cv_func_strndup_works" >&6; }
44635 case $gl_cv_func_strndup_works in
44646 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
44659 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
44670 cat >>confdefs.h <<\_ACEOF
44671 #define GNULIB_TEST_STRNDUP 1
44676 # Code from module strnlen:
44686 if test $ac_cv_have_decl_strnlen = no; then
44687 HAVE_DECL_STRNLEN=0
44689 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
44690 $as_echo_n "checking for working strnlen... " >&6; }
44691 if test "${ac_cv_func_strnlen_working+set}" = set; then
44692 $as_echo_n "(cached) " >&6
44694 if test "$cross_compiling" = yes; then
44695 ac_cv_func_strnlen_working=no
44697 cat >conftest.$ac_ext <<_ACEOF
44700 cat confdefs.h >>conftest.$ac_ext
44701 cat >>conftest.$ac_ext <<_ACEOF
44702 /* end confdefs.h. */
44703 $ac_includes_default
44709 #define S_LEN (sizeof S - 1)
44711 /* At least one implementation is buggy: that of AIX 4.3 would
44712 give strnlen (S, 1) == 3. */
44715 for (i = 0; i < S_LEN + 1; ++i)
44717 int expected = i <= S_LEN ? i : S_LEN;
44718 if (strnlen (S, i) != expected)
44727 rm -f conftest$ac_exeext
44728 if { (ac_try="$ac_link"
44729 case "(($ac_try" in
44730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44731 *) ac_try_echo=$ac_try;;
44733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44734 $as_echo "$ac_try_echo") >&5
44735 (eval "$ac_link") 2>&5
44737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44739 { (case "(($ac_try" in
44740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44741 *) ac_try_echo=$ac_try;;
44743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44744 $as_echo "$ac_try_echo") >&5
44745 (eval "$ac_try") 2>&5
44747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44748 (exit $ac_status); }; }; then
44749 ac_cv_func_strnlen_working=yes
44751 $as_echo "$as_me: program exited with status $ac_status" >&5
44752 $as_echo "$as_me: failed program was:" >&5
44753 sed 's/^/| /' conftest.$ac_ext >&5
44755 ( exit $ac_status )
44756 ac_cv_func_strnlen_working=no
44758 rm -rf conftest.dSYM
44759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44764 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
44765 $as_echo "$ac_cv_func_strnlen_working" >&6; }
44766 test $ac_cv_func_strnlen_working = no &&
44774 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
44777 if test $ac_cv_func_strnlen_working = no; then
44781 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
44790 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
44802 cat >>confdefs.h <<\_ACEOF
44803 #define GNULIB_TEST_STRNLEN 1
44808 # Code from module strnlen1:
44809 # Code from module strtoimax:
44814 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
44815 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
44816 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
44817 $as_echo_n "(cached) " >&6
44819 cat >conftest.$ac_ext <<_ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h. */
44825 #include <inttypes.h>
44827 inttypes_h_defines_strtoimax
44830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44831 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
44832 gl_cv_func_strtoimax_macro=yes
44834 gl_cv_func_strtoimax_macro=no
44839 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
44840 $as_echo "$gl_cv_func_strtoimax_macro" >&6; }
44842 if test "$gl_cv_func_strtoimax_macro" != yes; then
44852 for ac_func in strtoimax
44854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44856 $as_echo_n "checking for $ac_func... " >&6; }
44857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44858 $as_echo_n "(cached) " >&6
44860 cat >conftest.$ac_ext <<_ACEOF
44863 cat confdefs.h >>conftest.$ac_ext
44864 cat >>conftest.$ac_ext <<_ACEOF
44865 /* end confdefs.h. */
44866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44868 #define $ac_func innocuous_$ac_func
44870 /* System header to define __stub macros and hopefully few prototypes,
44871 which can conflict with char $ac_func (); below.
44872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44873 <limits.h> exists even on freestanding compilers. */
44876 # include <limits.h>
44878 # include <assert.h>
44883 /* Override any GCC internal prototype to avoid an error.
44884 Use char because int might match the return type of a GCC
44885 builtin and then its argument prototype would still apply. */
44890 /* The GNU C library defines this for functions which it implements
44891 to always fail with ENOSYS. Some functions are actually named
44892 something starting with __ and the normal name is an alias. */
44893 #if defined __stub_$ac_func || defined __stub___$ac_func
44900 return $ac_func ();
44905 rm -f conftest.$ac_objext conftest$ac_exeext
44906 if { (ac_try="$ac_link"
44907 case "(($ac_try" in
44908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44909 *) ac_try_echo=$ac_try;;
44911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44912 $as_echo "$ac_try_echo") >&5
44913 (eval "$ac_link") 2>conftest.er1
44915 grep -v '^ *+' conftest.er1 >conftest.err
44917 cat conftest.err >&5
44918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44919 (exit $ac_status); } && {
44920 test -z "$ac_c_werror_flag" ||
44921 test ! -s conftest.err
44922 } && test -s conftest$ac_exeext && {
44923 test "$cross_compiling" = yes ||
44924 $as_test_x conftest$ac_exeext
44926 eval "$as_ac_var=yes"
44928 $as_echo "$as_me: failed program was:" >&5
44929 sed 's/^/| /' conftest.$ac_ext >&5
44931 eval "$as_ac_var=no"
44934 rm -rf conftest.dSYM
44935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44936 conftest$ac_exeext conftest.$ac_ext
44938 ac_res=`eval 'as_val=${'$as_ac_var'}
44939 $as_echo "$as_val"'`
44940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44941 $as_echo "$ac_res" >&6; }
44942 as_val=`eval 'as_val=${'$as_ac_var'}
44943 $as_echo "$as_val"'`
44944 if test "x$as_val" = x""yes; then
44945 cat >>confdefs.h <<_ACEOF
44946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44951 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44957 if test $ac_cv_func_strtoimax = no; then
44959 { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
44960 $as_echo_n "checking whether strtoll is declared... " >&6; }
44961 if test "${ac_cv_have_decl_strtoll+set}" = set; then
44962 $as_echo_n "(cached) " >&6
44964 cat >conftest.$ac_ext <<_ACEOF
44967 cat confdefs.h >>conftest.$ac_ext
44968 cat >>conftest.$ac_ext <<_ACEOF
44969 /* end confdefs.h. */
44970 $ac_includes_default
44982 rm -f conftest.$ac_objext
44983 if { (ac_try="$ac_compile"
44984 case "(($ac_try" in
44985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44986 *) ac_try_echo=$ac_try;;
44988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44989 $as_echo "$ac_try_echo") >&5
44990 (eval "$ac_compile") 2>conftest.er1
44992 grep -v '^ *+' conftest.er1 >conftest.err
44994 cat conftest.err >&5
44995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44996 (exit $ac_status); } && {
44997 test -z "$ac_c_werror_flag" ||
44998 test ! -s conftest.err
44999 } && test -s conftest.$ac_objext; then
45000 ac_cv_have_decl_strtoll=yes
45002 $as_echo "$as_me: failed program was:" >&5
45003 sed 's/^/| /' conftest.$ac_ext >&5
45005 ac_cv_have_decl_strtoll=no
45008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45010 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
45011 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
45012 if test "x$ac_cv_have_decl_strtoll" = x""yes; then
45014 cat >>confdefs.h <<_ACEOF
45015 #define HAVE_DECL_STRTOLL 1
45020 cat >>confdefs.h <<_ACEOF
45021 #define HAVE_DECL_STRTOLL 0
45039 # Code from module strtol:
45050 for ac_func in strtol
45052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45054 $as_echo_n "checking for $ac_func... " >&6; }
45055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45056 $as_echo_n "(cached) " >&6
45058 cat >conftest.$ac_ext <<_ACEOF
45061 cat confdefs.h >>conftest.$ac_ext
45062 cat >>conftest.$ac_ext <<_ACEOF
45063 /* end confdefs.h. */
45064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45066 #define $ac_func innocuous_$ac_func
45068 /* System header to define __stub macros and hopefully few prototypes,
45069 which can conflict with char $ac_func (); below.
45070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45071 <limits.h> exists even on freestanding compilers. */
45074 # include <limits.h>
45076 # include <assert.h>
45081 /* Override any GCC internal prototype to avoid an error.
45082 Use char because int might match the return type of a GCC
45083 builtin and then its argument prototype would still apply. */
45088 /* The GNU C library defines this for functions which it implements
45089 to always fail with ENOSYS. Some functions are actually named
45090 something starting with __ and the normal name is an alias. */
45091 #if defined __stub_$ac_func || defined __stub___$ac_func
45098 return $ac_func ();
45103 rm -f conftest.$ac_objext conftest$ac_exeext
45104 if { (ac_try="$ac_link"
45105 case "(($ac_try" in
45106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45107 *) ac_try_echo=$ac_try;;
45109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45110 $as_echo "$ac_try_echo") >&5
45111 (eval "$ac_link") 2>conftest.er1
45113 grep -v '^ *+' conftest.er1 >conftest.err
45115 cat conftest.err >&5
45116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45117 (exit $ac_status); } && {
45118 test -z "$ac_c_werror_flag" ||
45119 test ! -s conftest.err
45120 } && test -s conftest$ac_exeext && {
45121 test "$cross_compiling" = yes ||
45122 $as_test_x conftest$ac_exeext
45124 eval "$as_ac_var=yes"
45126 $as_echo "$as_me: failed program was:" >&5
45127 sed 's/^/| /' conftest.$ac_ext >&5
45129 eval "$as_ac_var=no"
45132 rm -rf conftest.dSYM
45133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45134 conftest$ac_exeext conftest.$ac_ext
45136 ac_res=`eval 'as_val=${'$as_ac_var'}
45137 $as_echo "$as_val"'`
45138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45139 $as_echo "$ac_res" >&6; }
45140 as_val=`eval 'as_val=${'$as_ac_var'}
45141 $as_echo "$as_val"'`
45142 if test "x$as_val" = x""yes; then
45143 cat >>confdefs.h <<_ACEOF
45144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45149 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45156 # Code from module strtoll:
45160 if test "$ac_cv_type_long_long_int" = yes; then
45170 for ac_func in strtoll
45172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45173 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45174 $as_echo_n "checking for $ac_func... " >&6; }
45175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45176 $as_echo_n "(cached) " >&6
45178 cat >conftest.$ac_ext <<_ACEOF
45181 cat confdefs.h >>conftest.$ac_ext
45182 cat >>conftest.$ac_ext <<_ACEOF
45183 /* end confdefs.h. */
45184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45186 #define $ac_func innocuous_$ac_func
45188 /* System header to define __stub macros and hopefully few prototypes,
45189 which can conflict with char $ac_func (); below.
45190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45191 <limits.h> exists even on freestanding compilers. */
45194 # include <limits.h>
45196 # include <assert.h>
45201 /* Override any GCC internal prototype to avoid an error.
45202 Use char because int might match the return type of a GCC
45203 builtin and then its argument prototype would still apply. */
45208 /* The GNU C library defines this for functions which it implements
45209 to always fail with ENOSYS. Some functions are actually named
45210 something starting with __ and the normal name is an alias. */
45211 #if defined __stub_$ac_func || defined __stub___$ac_func
45218 return $ac_func ();
45223 rm -f conftest.$ac_objext conftest$ac_exeext
45224 if { (ac_try="$ac_link"
45225 case "(($ac_try" in
45226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45227 *) ac_try_echo=$ac_try;;
45229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45230 $as_echo "$ac_try_echo") >&5
45231 (eval "$ac_link") 2>conftest.er1
45233 grep -v '^ *+' conftest.er1 >conftest.err
45235 cat conftest.err >&5
45236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45237 (exit $ac_status); } && {
45238 test -z "$ac_c_werror_flag" ||
45239 test ! -s conftest.err
45240 } && test -s conftest$ac_exeext && {
45241 test "$cross_compiling" = yes ||
45242 $as_test_x conftest$ac_exeext
45244 eval "$as_ac_var=yes"
45246 $as_echo "$as_me: failed program was:" >&5
45247 sed 's/^/| /' conftest.$ac_ext >&5
45249 eval "$as_ac_var=no"
45252 rm -rf conftest.dSYM
45253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45254 conftest$ac_exeext conftest.$ac_ext
45256 ac_res=`eval 'as_val=${'$as_ac_var'}
45257 $as_echo "$as_val"'`
45258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45259 $as_echo "$ac_res" >&6; }
45260 as_val=`eval 'as_val=${'$as_ac_var'}
45261 $as_echo "$as_val"'`
45262 if test "x$as_val" = x""yes; then
45263 cat >>confdefs.h <<_ACEOF
45264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45269 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45275 if test $ac_cv_func_strtoll = no; then
45290 cat >>confdefs.h <<\_ACEOF
45291 #define GNULIB_TEST_STRTOLL 1
45296 # Code from module strtoul:
45307 for ac_func in strtoul
45309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45311 $as_echo_n "checking for $ac_func... " >&6; }
45312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45313 $as_echo_n "(cached) " >&6
45315 cat >conftest.$ac_ext <<_ACEOF
45318 cat confdefs.h >>conftest.$ac_ext
45319 cat >>conftest.$ac_ext <<_ACEOF
45320 /* end confdefs.h. */
45321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45323 #define $ac_func innocuous_$ac_func
45325 /* System header to define __stub macros and hopefully few prototypes,
45326 which can conflict with char $ac_func (); below.
45327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45328 <limits.h> exists even on freestanding compilers. */
45331 # include <limits.h>
45333 # include <assert.h>
45338 /* Override any GCC internal prototype to avoid an error.
45339 Use char because int might match the return type of a GCC
45340 builtin and then its argument prototype would still apply. */
45345 /* The GNU C library defines this for functions which it implements
45346 to always fail with ENOSYS. Some functions are actually named
45347 something starting with __ and the normal name is an alias. */
45348 #if defined __stub_$ac_func || defined __stub___$ac_func
45355 return $ac_func ();
45360 rm -f conftest.$ac_objext conftest$ac_exeext
45361 if { (ac_try="$ac_link"
45362 case "(($ac_try" in
45363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45364 *) ac_try_echo=$ac_try;;
45366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45367 $as_echo "$ac_try_echo") >&5
45368 (eval "$ac_link") 2>conftest.er1
45370 grep -v '^ *+' conftest.er1 >conftest.err
45372 cat conftest.err >&5
45373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45374 (exit $ac_status); } && {
45375 test -z "$ac_c_werror_flag" ||
45376 test ! -s conftest.err
45377 } && test -s conftest$ac_exeext && {
45378 test "$cross_compiling" = yes ||
45379 $as_test_x conftest$ac_exeext
45381 eval "$as_ac_var=yes"
45383 $as_echo "$as_me: failed program was:" >&5
45384 sed 's/^/| /' conftest.$ac_ext >&5
45386 eval "$as_ac_var=no"
45389 rm -rf conftest.dSYM
45390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45391 conftest$ac_exeext conftest.$ac_ext
45393 ac_res=`eval 'as_val=${'$as_ac_var'}
45394 $as_echo "$as_val"'`
45395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45396 $as_echo "$ac_res" >&6; }
45397 as_val=`eval 'as_val=${'$as_ac_var'}
45398 $as_echo "$as_val"'`
45399 if test "x$as_val" = x""yes; then
45400 cat >>confdefs.h <<_ACEOF
45401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45406 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45413 # Code from module strtoull:
45417 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
45427 for ac_func in strtoull
45429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45431 $as_echo_n "checking for $ac_func... " >&6; }
45432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45433 $as_echo_n "(cached) " >&6
45435 cat >conftest.$ac_ext <<_ACEOF
45438 cat confdefs.h >>conftest.$ac_ext
45439 cat >>conftest.$ac_ext <<_ACEOF
45440 /* end confdefs.h. */
45441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45443 #define $ac_func innocuous_$ac_func
45445 /* System header to define __stub macros and hopefully few prototypes,
45446 which can conflict with char $ac_func (); below.
45447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45448 <limits.h> exists even on freestanding compilers. */
45451 # include <limits.h>
45453 # include <assert.h>
45458 /* Override any GCC internal prototype to avoid an error.
45459 Use char because int might match the return type of a GCC
45460 builtin and then its argument prototype would still apply. */
45465 /* The GNU C library defines this for functions which it implements
45466 to always fail with ENOSYS. Some functions are actually named
45467 something starting with __ and the normal name is an alias. */
45468 #if defined __stub_$ac_func || defined __stub___$ac_func
45475 return $ac_func ();
45480 rm -f conftest.$ac_objext conftest$ac_exeext
45481 if { (ac_try="$ac_link"
45482 case "(($ac_try" in
45483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45484 *) ac_try_echo=$ac_try;;
45486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45487 $as_echo "$ac_try_echo") >&5
45488 (eval "$ac_link") 2>conftest.er1
45490 grep -v '^ *+' conftest.er1 >conftest.err
45492 cat conftest.err >&5
45493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494 (exit $ac_status); } && {
45495 test -z "$ac_c_werror_flag" ||
45496 test ! -s conftest.err
45497 } && test -s conftest$ac_exeext && {
45498 test "$cross_compiling" = yes ||
45499 $as_test_x conftest$ac_exeext
45501 eval "$as_ac_var=yes"
45503 $as_echo "$as_me: failed program was:" >&5
45504 sed 's/^/| /' conftest.$ac_ext >&5
45506 eval "$as_ac_var=no"
45509 rm -rf conftest.dSYM
45510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45511 conftest$ac_exeext conftest.$ac_ext
45513 ac_res=`eval 'as_val=${'$as_ac_var'}
45514 $as_echo "$as_val"'`
45515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45516 $as_echo "$ac_res" >&6; }
45517 as_val=`eval 'as_val=${'$as_ac_var'}
45518 $as_echo "$as_val"'`
45519 if test "x$as_val" = x""yes; then
45520 cat >>confdefs.h <<_ACEOF
45521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45526 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45532 if test $ac_cv_func_strtoull = no; then
45547 cat >>confdefs.h <<\_ACEOF
45548 #define GNULIB_TEST_STRTOULL 1
45553 # Code from module strtoumax:
45558 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
45559 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
45560 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
45561 $as_echo_n "(cached) " >&6
45563 cat >conftest.$ac_ext <<_ACEOF
45566 cat confdefs.h >>conftest.$ac_ext
45567 cat >>conftest.$ac_ext <<_ACEOF
45568 /* end confdefs.h. */
45569 #include <inttypes.h>
45571 inttypes_h_defines_strtoumax
45574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45575 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
45576 gl_cv_func_strtoumax_macro=yes
45578 gl_cv_func_strtoumax_macro=no
45583 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
45584 $as_echo "$gl_cv_func_strtoumax_macro" >&6; }
45586 if test "$gl_cv_func_strtoumax_macro" != yes; then
45596 for ac_func in strtoumax
45598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45600 $as_echo_n "checking for $ac_func... " >&6; }
45601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45602 $as_echo_n "(cached) " >&6
45604 cat >conftest.$ac_ext <<_ACEOF
45607 cat confdefs.h >>conftest.$ac_ext
45608 cat >>conftest.$ac_ext <<_ACEOF
45609 /* end confdefs.h. */
45610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45612 #define $ac_func innocuous_$ac_func
45614 /* System header to define __stub macros and hopefully few prototypes,
45615 which can conflict with char $ac_func (); below.
45616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45617 <limits.h> exists even on freestanding compilers. */
45620 # include <limits.h>
45622 # include <assert.h>
45627 /* Override any GCC internal prototype to avoid an error.
45628 Use char because int might match the return type of a GCC
45629 builtin and then its argument prototype would still apply. */
45634 /* The GNU C library defines this for functions which it implements
45635 to always fail with ENOSYS. Some functions are actually named
45636 something starting with __ and the normal name is an alias. */
45637 #if defined __stub_$ac_func || defined __stub___$ac_func
45644 return $ac_func ();
45649 rm -f conftest.$ac_objext conftest$ac_exeext
45650 if { (ac_try="$ac_link"
45651 case "(($ac_try" in
45652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45653 *) ac_try_echo=$ac_try;;
45655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45656 $as_echo "$ac_try_echo") >&5
45657 (eval "$ac_link") 2>conftest.er1
45659 grep -v '^ *+' conftest.er1 >conftest.err
45661 cat conftest.err >&5
45662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45663 (exit $ac_status); } && {
45664 test -z "$ac_c_werror_flag" ||
45665 test ! -s conftest.err
45666 } && test -s conftest$ac_exeext && {
45667 test "$cross_compiling" = yes ||
45668 $as_test_x conftest$ac_exeext
45670 eval "$as_ac_var=yes"
45672 $as_echo "$as_me: failed program was:" >&5
45673 sed 's/^/| /' conftest.$ac_ext >&5
45675 eval "$as_ac_var=no"
45678 rm -rf conftest.dSYM
45679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45680 conftest$ac_exeext conftest.$ac_ext
45682 ac_res=`eval 'as_val=${'$as_ac_var'}
45683 $as_echo "$as_val"'`
45684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45685 $as_echo "$ac_res" >&6; }
45686 as_val=`eval 'as_val=${'$as_ac_var'}
45687 $as_echo "$as_val"'`
45688 if test "x$as_val" = x""yes; then
45689 cat >>confdefs.h <<_ACEOF
45690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45695 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45701 if test $ac_cv_func_strtoumax = no; then
45703 { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
45704 $as_echo_n "checking whether strtoull is declared... " >&6; }
45705 if test "${ac_cv_have_decl_strtoull+set}" = set; then
45706 $as_echo_n "(cached) " >&6
45708 cat >conftest.$ac_ext <<_ACEOF
45711 cat confdefs.h >>conftest.$ac_ext
45712 cat >>conftest.$ac_ext <<_ACEOF
45713 /* end confdefs.h. */
45714 $ac_includes_default
45726 rm -f conftest.$ac_objext
45727 if { (ac_try="$ac_compile"
45728 case "(($ac_try" in
45729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45730 *) ac_try_echo=$ac_try;;
45732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45733 $as_echo "$ac_try_echo") >&5
45734 (eval "$ac_compile") 2>conftest.er1
45736 grep -v '^ *+' conftest.er1 >conftest.err
45738 cat conftest.err >&5
45739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45740 (exit $ac_status); } && {
45741 test -z "$ac_c_werror_flag" ||
45742 test ! -s conftest.err
45743 } && test -s conftest.$ac_objext; then
45744 ac_cv_have_decl_strtoull=yes
45746 $as_echo "$as_me: failed program was:" >&5
45747 sed 's/^/| /' conftest.$ac_ext >&5
45749 ac_cv_have_decl_strtoull=no
45752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45754 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
45755 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
45756 if test "x$ac_cv_have_decl_strtoull" = x""yes; then
45758 cat >>confdefs.h <<_ACEOF
45759 #define HAVE_DECL_STRTOULL 1
45764 cat >>confdefs.h <<_ACEOF
45765 #define HAVE_DECL_STRTOULL 0
45783 # Code from module symlink:
45792 if test $ac_cv_func_symlink = no; then
45802 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
45805 { $as_echo "$as_me:$LINENO: checking whether symlink handles trailing slash correctly" >&5
45806 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
45807 if test "${gl_cv_func_symlink_works+set}" = set; then
45808 $as_echo_n "(cached) " >&6
45810 if test "$cross_compiling" = yes; then
45811 gl_cv_func_symlink_works="guessing no"
45813 cat >conftest.$ac_ext <<_ACEOF
45816 cat confdefs.h >>conftest.$ac_ext
45817 cat >>conftest.$ac_ext <<_ACEOF
45818 /* end confdefs.h. */
45819 #include <unistd.h>
45824 if (!symlink ("a", "conftest.link/")) return 1;
45825 if (symlink ("conftest.f", "conftest.lnk2")) return 2;
45826 if (!symlink ("a", "conftest.lnk2/")) return 3;
45831 rm -f conftest$ac_exeext
45832 if { (ac_try="$ac_link"
45833 case "(($ac_try" in
45834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45835 *) ac_try_echo=$ac_try;;
45837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45838 $as_echo "$ac_try_echo") >&5
45839 (eval "$ac_link") 2>&5
45841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45843 { (case "(($ac_try" in
45844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45845 *) ac_try_echo=$ac_try;;
45847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45848 $as_echo "$ac_try_echo") >&5
45849 (eval "$ac_try") 2>&5
45851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45852 (exit $ac_status); }; }; then
45853 gl_cv_func_symlink_works=yes
45855 $as_echo "$as_me: program exited with status $ac_status" >&5
45856 $as_echo "$as_me: failed program was:" >&5
45857 sed 's/^/| /' conftest.$ac_ext >&5
45859 ( exit $ac_status )
45860 gl_cv_func_symlink_works=no
45862 rm -rf conftest.dSYM
45863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45867 rm -f conftest.f conftest.link conftest.lnk2
45869 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_symlink_works" >&5
45870 $as_echo "$gl_cv_func_symlink_works" >&6; }
45871 if test "$gl_cv_func_symlink_works" != yes; then
45881 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
45893 cat >>confdefs.h <<\_ACEOF
45894 #define GNULIB_TEST_SYMLINK 1
45899 # Code from module symlinkat:
45910 if test $ac_cv_func_symlinkat = no; then
45920 gl_LIBOBJS="$gl_LIBOBJS symlinkat.$ac_objext"
45931 cat >>confdefs.h <<\_ACEOF
45932 #define GNULIB_TEST_SYMLINKAT 1
45937 # Code from module sys_stat:
45956 if test $gl_cv_have_include_next = yes; then
45957 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
45959 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
45960 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
45961 if test "${gl_cv_next_sys_stat_h+set}" = set; then
45962 $as_echo_n "(cached) " >&6
45965 if test $ac_cv_header_sys_stat_h = yes; then
45966 cat >conftest.$ac_ext <<_ACEOF
45969 cat confdefs.h >>conftest.$ac_ext
45970 cat >>conftest.$ac_ext <<_ACEOF
45971 /* end confdefs.h. */
45972 #include <sys/stat.h>
45976 aix*) gl_absname_cpp="$ac_cpp -C" ;;
45977 *) gl_absname_cpp="$ac_cpp" ;;
45979 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45980 sed -n '\#/sys/stat.h#{
45981 s#.*"\(.*/sys/stat.h\)".*#\1#
45987 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
45991 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
45992 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
45994 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
45996 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45998 gl_next_as_first_directive='<'sys/stat.h'>'
46000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46001 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
46003 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
46008 { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
46009 $as_echo_n "checking for nlink_t... " >&6; }
46010 if test "${ac_cv_type_nlink_t+set}" = set; then
46011 $as_echo_n "(cached) " >&6
46013 ac_cv_type_nlink_t=no
46014 cat >conftest.$ac_ext <<_ACEOF
46017 cat confdefs.h >>conftest.$ac_ext
46018 cat >>conftest.$ac_ext <<_ACEOF
46019 /* end confdefs.h. */
46020 #include <sys/types.h>
46021 #include <sys/stat.h>
46026 if (sizeof (nlink_t))
46032 rm -f conftest.$ac_objext
46033 if { (ac_try="$ac_compile"
46034 case "(($ac_try" in
46035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46036 *) ac_try_echo=$ac_try;;
46038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46039 $as_echo "$ac_try_echo") >&5
46040 (eval "$ac_compile") 2>conftest.er1
46042 grep -v '^ *+' conftest.er1 >conftest.err
46044 cat conftest.err >&5
46045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046 (exit $ac_status); } && {
46047 test -z "$ac_c_werror_flag" ||
46048 test ! -s conftest.err
46049 } && test -s conftest.$ac_objext; then
46050 cat >conftest.$ac_ext <<_ACEOF
46053 cat confdefs.h >>conftest.$ac_ext
46054 cat >>conftest.$ac_ext <<_ACEOF
46055 /* end confdefs.h. */
46056 #include <sys/types.h>
46057 #include <sys/stat.h>
46062 if (sizeof ((nlink_t)))
46068 rm -f conftest.$ac_objext
46069 if { (ac_try="$ac_compile"
46070 case "(($ac_try" in
46071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46072 *) ac_try_echo=$ac_try;;
46074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46075 $as_echo "$ac_try_echo") >&5
46076 (eval "$ac_compile") 2>conftest.er1
46078 grep -v '^ *+' conftest.er1 >conftest.err
46080 cat conftest.err >&5
46081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46082 (exit $ac_status); } && {
46083 test -z "$ac_c_werror_flag" ||
46084 test ! -s conftest.err
46085 } && test -s conftest.$ac_objext; then
46088 $as_echo "$as_me: failed program was:" >&5
46089 sed 's/^/| /' conftest.$ac_ext >&5
46091 ac_cv_type_nlink_t=yes
46094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46096 $as_echo "$as_me: failed program was:" >&5
46097 sed 's/^/| /' conftest.$ac_ext >&5
46102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
46105 $as_echo "$ac_cv_type_nlink_t" >&6; }
46106 if test "x$ac_cv_type_nlink_t" = x""yes; then
46110 cat >>confdefs.h <<\_ACEOF
46111 #define nlink_t int
46130 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
46131 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46132 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
46133 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46134 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
46135 $as_echo_n "(cached) " >&6
46137 cat >conftest.$ac_ext <<_ACEOF
46140 cat confdefs.h >>conftest.$ac_ext
46141 cat >>conftest.$ac_ext <<_ACEOF
46142 /* end confdefs.h. */
46143 #include <sys/stat.h>
46154 rm -f conftest.$ac_objext
46155 if { (ac_try="$ac_compile"
46156 case "(($ac_try" in
46157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46158 *) ac_try_echo=$ac_try;;
46160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46161 $as_echo "$ac_try_echo") >&5
46162 (eval "$ac_compile") 2>conftest.er1
46164 grep -v '^ *+' conftest.er1 >conftest.err
46166 cat conftest.err >&5
46167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46168 (exit $ac_status); } && {
46169 test -z "$ac_c_werror_flag" ||
46170 test ! -s conftest.err
46171 } && test -s conftest.$ac_objext; then
46172 eval "$as_gl_Symbol=yes"
46174 $as_echo "$as_me: failed program was:" >&5
46175 sed 's/^/| /' conftest.$ac_ext >&5
46177 eval "$as_gl_Symbol=no"
46180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46182 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
46183 $as_echo "$as_val"'`
46184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46185 $as_echo "$ac_res" >&6; }
46186 as_val=`eval 'as_val=${'$as_gl_Symbol'}
46187 $as_echo "$as_val"'`
46188 if test "x$as_val" = x""yes; then
46189 cat >>confdefs.h <<_ACEOF
46190 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46193 eval ac_cv_have_decl_$gl_func=yes
46199 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
46200 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
46201 if test -z "$MKDIR_P"; then
46202 if test "${ac_cv_path_mkdir+set}" = set; then
46203 $as_echo_n "(cached) " >&6
46205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46206 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
46209 test -z "$as_dir" && as_dir=.
46210 for ac_prog in mkdir gmkdir; do
46211 for ac_exec_ext in '' $ac_executable_extensions; do
46212 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
46213 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
46214 'mkdir (GNU coreutils) '* | \
46215 'mkdir (coreutils) '* | \
46216 'mkdir (fileutils) '4.1*)
46217 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
46227 if test "${ac_cv_path_mkdir+set}" = set; then
46228 MKDIR_P="$ac_cv_path_mkdir -p"
46230 # As a last resort, use the slow shell script. Don't cache a
46231 # value for MKDIR_P within a source directory, because that will
46232 # break other packages using the cache if that directory is
46233 # removed, or if the value is a relative name.
46234 test -d ./--version && rmdir ./--version
46235 MKDIR_P="$ac_install_sh -d"
46238 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
46239 $as_echo "$MKDIR_P" >&6; }
46242 # Code from module sys_time:
46246 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
46247 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
46248 if test -z "$MKDIR_P"; then
46249 if test "${ac_cv_path_mkdir+set}" = set; then
46250 $as_echo_n "(cached) " >&6
46252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46253 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
46256 test -z "$as_dir" && as_dir=.
46257 for ac_prog in mkdir gmkdir; do
46258 for ac_exec_ext in '' $ac_executable_extensions; do
46259 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
46260 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
46261 'mkdir (GNU coreutils) '* | \
46262 'mkdir (coreutils) '* | \
46263 'mkdir (fileutils) '4.1*)
46264 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
46274 if test "${ac_cv_path_mkdir+set}" = set; then
46275 MKDIR_P="$ac_cv_path_mkdir -p"
46277 # As a last resort, use the slow shell script. Don't cache a
46278 # value for MKDIR_P within a source directory, because that will
46279 # break other packages using the cache if that directory is
46280 # removed, or if the value is a relative name.
46281 test -d ./--version && rmdir ./--version
46282 MKDIR_P="$ac_install_sh -d"
46285 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
46286 $as_echo "$MKDIR_P" >&6; }
46289 # Code from module sysexits:
46297 if test $ac_cv_header_sysexits_h = yes; then
46310 if test $gl_cv_have_include_next = yes; then
46311 gl_cv_next_sysexits_h='<'sysexits.h'>'
46313 { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
46314 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
46315 if test "${gl_cv_next_sysexits_h+set}" = set; then
46316 $as_echo_n "(cached) " >&6
46319 if test $ac_cv_header_sysexits_h = yes; then
46320 cat >conftest.$ac_ext <<_ACEOF
46323 cat confdefs.h >>conftest.$ac_ext
46324 cat >>conftest.$ac_ext <<_ACEOF
46325 /* end confdefs.h. */
46326 #include <sysexits.h>
46330 aix*) gl_absname_cpp="$ac_cpp -C" ;;
46331 *) gl_absname_cpp="$ac_cpp" ;;
46333 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46334 sed -n '\#/sysexits.h#{
46335 s#.*"\(.*/sysexits.h\)".*#\1#
46341 gl_cv_next_sysexits_h='<'sysexits.h'>'
46345 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
46346 $as_echo "$gl_cv_next_sysexits_h" >&6; }
46348 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
46350 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46352 gl_next_as_first_directive='<'sysexits.h'>'
46354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46355 gl_next_as_first_directive=$gl_cv_next_sysexits_h
46357 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
46361 cat >conftest.$ac_ext <<_ACEOF
46364 cat confdefs.h >>conftest.$ac_ext
46365 cat >>conftest.$ac_ext <<_ACEOF
46366 /* end confdefs.h. */
46367 #include <sysexits.h>
46379 case EX_UNAVAILABLE:
46396 rm -f conftest.$ac_objext
46397 if { (ac_try="$ac_compile"
46398 case "(($ac_try" in
46399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46400 *) ac_try_echo=$ac_try;;
46402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46403 $as_echo "$ac_try_echo") >&5
46404 (eval "$ac_compile") 2>conftest.er1
46406 grep -v '^ *+' conftest.er1 >conftest.err
46408 cat conftest.err >&5
46409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46410 (exit $ac_status); } && {
46411 test -z "$ac_c_werror_flag" ||
46412 test ! -s conftest.err
46413 } && test -s conftest.$ac_objext; then
46416 $as_echo "$as_me: failed program was:" >&5
46417 sed 's/^/| /' conftest.$ac_ext >&5
46419 SYSEXITS_H=sysexits.h
46422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46425 SYSEXITS_H=sysexits.h
46430 # Code from module tempname:
46442 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
46448 # Code from module time:
46452 # Code from module time_r:
46465 if test $ac_cv_func_localtime_r = yes; then
46466 { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
46467 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
46468 if test "${gl_cv_time_r_posix+set}" = set; then
46469 $as_echo_n "(cached) " >&6
46471 cat >conftest.$ac_ext <<_ACEOF
46474 cat confdefs.h >>conftest.$ac_ext
46475 cat >>conftest.$ac_ext <<_ACEOF
46476 /* end confdefs.h. */
46481 /* We don't need to append 'restrict's to the argument types,
46482 even though the POSIX signature has the 'restrict's,
46483 since C99 says they can't affect type compatibility. */
46484 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
46486 /* Check the return type is a pointer.
46487 On HP-UX 10 it is 'int'. */
46488 *localtime_r (0, 0);
46494 rm -f conftest.$ac_objext
46495 if { (ac_try="$ac_compile"
46496 case "(($ac_try" in
46497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46498 *) ac_try_echo=$ac_try;;
46500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46501 $as_echo "$ac_try_echo") >&5
46502 (eval "$ac_compile") 2>conftest.er1
46504 grep -v '^ *+' conftest.er1 >conftest.err
46506 cat conftest.err >&5
46507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46508 (exit $ac_status); } && {
46509 test -z "$ac_c_werror_flag" ||
46510 test ! -s conftest.err
46511 } && test -s conftest.$ac_objext; then
46512 gl_cv_time_r_posix=yes
46514 $as_echo "$as_me: failed program was:" >&5
46515 sed 's/^/| /' conftest.$ac_ext >&5
46517 gl_cv_time_r_posix=no
46520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46523 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
46524 $as_echo "$gl_cv_time_r_posix" >&6; }
46525 if test $gl_cv_time_r_posix = yes; then
46526 REPLACE_LOCALTIME_R=0
46528 REPLACE_LOCALTIME_R=1
46533 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
46542 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
46556 cat >>confdefs.h <<\_ACEOF
46557 #define GNULIB_TEST_TIME_R 1
46562 # Code from module timespec:
46566 # Code from module unistd:
46582 if test $gl_cv_have_include_next = yes; then
46583 gl_cv_next_unistd_h='<'unistd.h'>'
46585 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
46586 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
46587 if test "${gl_cv_next_unistd_h+set}" = set; then
46588 $as_echo_n "(cached) " >&6
46591 if test $ac_cv_header_unistd_h = yes; then
46592 cat >conftest.$ac_ext <<_ACEOF
46595 cat confdefs.h >>conftest.$ac_ext
46596 cat >>conftest.$ac_ext <<_ACEOF
46597 /* end confdefs.h. */
46598 #include <unistd.h>
46602 aix*) gl_absname_cpp="$ac_cpp -C" ;;
46603 *) gl_absname_cpp="$ac_cpp" ;;
46605 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46606 sed -n '\#/unistd.h#{
46607 s#.*"\(.*/unistd.h\)".*#\1#
46613 gl_cv_next_unistd_h='<'unistd.h'>'
46617 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
46618 $as_echo "$gl_cv_next_unistd_h" >&6; }
46620 NEXT_UNISTD_H=$gl_cv_next_unistd_h
46622 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46624 gl_next_as_first_directive='<'unistd.h'>'
46626 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46627 gl_next_as_first_directive=$gl_cv_next_unistd_h
46629 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
46640 if test $ac_cv_header_unistd_h = yes; then
46686 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 pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
46687 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46688 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
46689 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46690 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
46691 $as_echo_n "(cached) " >&6
46693 cat >conftest.$ac_ext <<_ACEOF
46696 cat confdefs.h >>conftest.$ac_ext
46697 cat >>conftest.$ac_ext <<_ACEOF
46698 /* end confdefs.h. */
46699 #include <unistd.h>
46700 /* Some systems declare various items in the wrong headers. */
46702 # include <fcntl.h>
46703 # include <stdio.h>
46704 # include <stdlib.h>
46705 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
46719 rm -f conftest.$ac_objext
46720 if { (ac_try="$ac_compile"
46721 case "(($ac_try" in
46722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46723 *) ac_try_echo=$ac_try;;
46725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46726 $as_echo "$ac_try_echo") >&5
46727 (eval "$ac_compile") 2>conftest.er1
46729 grep -v '^ *+' conftest.er1 >conftest.err
46731 cat conftest.err >&5
46732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46733 (exit $ac_status); } && {
46734 test -z "$ac_c_werror_flag" ||
46735 test ! -s conftest.err
46736 } && test -s conftest.$ac_objext; then
46737 eval "$as_gl_Symbol=yes"
46739 $as_echo "$as_me: failed program was:" >&5
46740 sed 's/^/| /' conftest.$ac_ext >&5
46742 eval "$as_gl_Symbol=no"
46745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46747 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
46748 $as_echo "$as_val"'`
46749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46750 $as_echo "$ac_res" >&6; }
46751 as_val=`eval 'as_val=${'$as_gl_Symbol'}
46752 $as_echo "$as_val"'`
46753 if test "x$as_val" = x""yes; then
46754 cat >>confdefs.h <<_ACEOF
46755 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46758 eval ac_cv_have_decl_$gl_func=yes
46764 # Code from module unistd-safer:
46780 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
46790 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
46800 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
46803 # Code from module unitypes:
46806 if { test "$HAVE_LIBUNISTRING" != yes \
46811 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46812 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46813 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46814 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46815 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46825 LIBUNISTRING_UNITYPES_H='unitypes.h'
46827 LIBUNISTRING_UNITYPES_H=
46831 # Code from module uniwidth/base:
46834 if { test "$HAVE_LIBUNISTRING" != yes \
46839 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46840 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46841 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46842 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46843 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46853 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
46855 LIBUNISTRING_UNIWIDTH_H=
46859 # Code from module uniwidth/width:
46862 if { test "$HAVE_LIBUNISTRING" != yes \
46867 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46868 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46869 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46870 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46871 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46881 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
46882 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
46884 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
46885 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
46889 # Code from module unlink:
46894 { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
46895 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
46896 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
46897 $as_echo_n "(cached) " >&6
46899 touch conftest.file
46900 # Assume that if we have lstat, we can also check symlinks.
46901 if test $ac_cv_func_lstat = yes; then
46902 ln -s conftest.file conftest.lnk
46904 if test "$cross_compiling" = yes; then
46905 gl_cv_func_unlink_honors_slashes="guessing no"
46907 cat >conftest.$ac_ext <<_ACEOF
46910 cat confdefs.h >>conftest.$ac_ext
46911 cat >>conftest.$ac_ext <<_ACEOF
46912 /* end confdefs.h. */
46913 #include <unistd.h>
46919 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
46921 if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
46928 rm -f conftest$ac_exeext
46929 if { (ac_try="$ac_link"
46930 case "(($ac_try" in
46931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46932 *) ac_try_echo=$ac_try;;
46934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46935 $as_echo "$ac_try_echo") >&5
46936 (eval "$ac_link") 2>&5
46938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46940 { (case "(($ac_try" in
46941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46942 *) ac_try_echo=$ac_try;;
46944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46945 $as_echo "$ac_try_echo") >&5
46946 (eval "$ac_try") 2>&5
46948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46949 (exit $ac_status); }; }; then
46950 gl_cv_func_unlink_honors_slashes=yes
46952 $as_echo "$as_me: program exited with status $ac_status" >&5
46953 $as_echo "$as_me: failed program was:" >&5
46954 sed 's/^/| /' conftest.$ac_ext >&5
46956 ( exit $ac_status )
46957 gl_cv_func_unlink_honors_slashes=no
46959 rm -rf conftest.dSYM
46960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46964 rm -f conftest.file conftest.lnk
46966 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
46967 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
46968 { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails is it should" >&5
46969 $as_echo_n "checking whether unlink of a parent directory fails is it should... " >&6; }
46970 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
46971 $as_echo_n "(cached) " >&6
46976 # Use the mktemp program if available. If not available, hide the error
46978 tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
46979 test -n "$tmp" && test -d "$tmp"
46982 # Use a simple mkdir command. It is guaranteed to fail if the directory
46983 # already exists. $RANDOM is bash specific and expands to empty in shells
46984 # other than bash, ksh and zsh. Its use does not increase security;
46985 # rather, it minimizes the probability of failure in a very cluttered /tmp
46987 tmp=/tmp/gt$$-$RANDOM
46988 (umask 077 && mkdir "$tmp")
46990 mkdir "$tmp/subdir"
46991 GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
46992 export GL_SUBDIR_FOR_UNLINK
46993 if test "$cross_compiling" = yes; then
46994 gl_cv_func_unlink_parent_fails="guessing no"
46996 cat >conftest.$ac_ext <<_ACEOF
46999 cat confdefs.h >>conftest.$ac_ext
47000 cat >>conftest.$ac_ext <<_ACEOF
47001 /* end confdefs.h. */
47003 #include <stdlib.h>
47004 #include <unistd.h>
47007 if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
47009 return unlink ("..") == 0;
47013 rm -f conftest$ac_exeext
47014 if { (ac_try="$ac_link"
47015 case "(($ac_try" in
47016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47017 *) ac_try_echo=$ac_try;;
47019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47020 $as_echo "$ac_try_echo") >&5
47021 (eval "$ac_link") 2>&5
47023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47025 { (case "(($ac_try" in
47026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47027 *) ac_try_echo=$ac_try;;
47029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47030 $as_echo "$ac_try_echo") >&5
47031 (eval "$ac_try") 2>&5
47033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47034 (exit $ac_status); }; }; then
47035 gl_cv_func_unlink_parent_fails=yes
47037 $as_echo "$as_me: program exited with status $ac_status" >&5
47038 $as_echo "$as_me: failed program was:" >&5
47039 sed 's/^/| /' conftest.$ac_ext >&5
47041 ( exit $ac_status )
47042 gl_cv_func_unlink_parent_fails=no
47044 rm -rf conftest.dSYM
47045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47049 unset GL_SUBDIR_FOR_UNLINK
47052 gl_cv_func_unlink_parent_fails="guessing no"
47056 gl_cv_func_unlink_parent_fails="guessing yes"
47061 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
47062 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
47063 case "$gl_cv_func_unlink_parent_fails" in
47066 cat >>confdefs.h <<\_ACEOF
47067 #define UNLINK_PARENT_BUG 1
47072 if test "$gl_cv_func_unlink_honors_slashes" != yes \
47073 || { case "$gl_cv_func_unlink_parent_fails" in
47087 gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
47098 cat >>confdefs.h <<\_ACEOF
47099 #define GNULIB_TEST_UNLINK 1
47104 # Code from module unlinkdir:
47122 gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
47125 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
47126 # Cygwin, and mingw never let anyone (even root) unlink directories.
47127 # If anyone knows of another system for which unlink can never
47128 # remove a directory, please report it to <bug-coreutils@gnu.org>.
47129 # Unfortunately this is difficult to test for, since it requires root access
47130 # and might create garbage in the file system,
47131 # so the code below simply relies on the kernel name and version number.
47134 linux-* | linux | \
47135 freebsd2.2* | freebsd[3-9]* | freebsd[1-9][0-9]* | \
47139 cat >>confdefs.h <<\_ACEOF
47140 #define UNLINK_CANNOT_UNLINK_DIR 1
47145 # Code from module unlocked-io:
47148 cat >>confdefs.h <<\_ACEOF
47149 #define USE_UNLOCKED_IO 1
47208 # Code from module unsetenv:
47212 for ac_func in unsetenv
47214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47216 $as_echo_n "checking for $ac_func... " >&6; }
47217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47218 $as_echo_n "(cached) " >&6
47220 cat >conftest.$ac_ext <<_ACEOF
47223 cat confdefs.h >>conftest.$ac_ext
47224 cat >>conftest.$ac_ext <<_ACEOF
47225 /* end confdefs.h. */
47226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47228 #define $ac_func innocuous_$ac_func
47230 /* System header to define __stub macros and hopefully few prototypes,
47231 which can conflict with char $ac_func (); below.
47232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47233 <limits.h> exists even on freestanding compilers. */
47236 # include <limits.h>
47238 # include <assert.h>
47243 /* Override any GCC internal prototype to avoid an error.
47244 Use char because int might match the return type of a GCC
47245 builtin and then its argument prototype would still apply. */
47250 /* The GNU C library defines this for functions which it implements
47251 to always fail with ENOSYS. Some functions are actually named
47252 something starting with __ and the normal name is an alias. */
47253 #if defined __stub_$ac_func || defined __stub___$ac_func
47260 return $ac_func ();
47265 rm -f conftest.$ac_objext conftest$ac_exeext
47266 if { (ac_try="$ac_link"
47267 case "(($ac_try" in
47268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47269 *) ac_try_echo=$ac_try;;
47271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47272 $as_echo "$ac_try_echo") >&5
47273 (eval "$ac_link") 2>conftest.er1
47275 grep -v '^ *+' conftest.er1 >conftest.err
47277 cat conftest.err >&5
47278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279 (exit $ac_status); } && {
47280 test -z "$ac_c_werror_flag" ||
47281 test ! -s conftest.err
47282 } && test -s conftest$ac_exeext && {
47283 test "$cross_compiling" = yes ||
47284 $as_test_x conftest$ac_exeext
47286 eval "$as_ac_var=yes"
47288 $as_echo "$as_me: failed program was:" >&5
47289 sed 's/^/| /' conftest.$ac_ext >&5
47291 eval "$as_ac_var=no"
47294 rm -rf conftest.dSYM
47295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47296 conftest$ac_exeext conftest.$ac_ext
47298 ac_res=`eval 'as_val=${'$as_ac_var'}
47299 $as_echo "$as_val"'`
47300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47301 $as_echo "$ac_res" >&6; }
47302 as_val=`eval 'as_val=${'$as_ac_var'}
47303 $as_echo "$as_val"'`
47304 if test "x$as_val" = x""yes; then
47305 cat >>confdefs.h <<_ACEOF
47306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47312 if test $ac_cv_func_unsetenv = no; then
47322 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
47334 { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
47335 $as_echo_n "checking for unsetenv() return type... " >&6; }
47336 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
47337 $as_echo_n "(cached) " >&6
47339 cat >conftest.$ac_ext <<_ACEOF
47342 cat confdefs.h >>conftest.$ac_ext
47343 cat >>conftest.$ac_ext <<_ACEOF
47344 /* end confdefs.h. */
47346 #include <stdlib.h>
47351 #if defined(__STDC__) || defined(__cplusplus)
47352 int unsetenv (const char *name);
47365 rm -f conftest.$ac_objext
47366 if { (ac_try="$ac_compile"
47367 case "(($ac_try" in
47368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47369 *) ac_try_echo=$ac_try;;
47371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47372 $as_echo "$ac_try_echo") >&5
47373 (eval "$ac_compile") 2>conftest.er1
47375 grep -v '^ *+' conftest.er1 >conftest.err
47377 cat conftest.err >&5
47378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47379 (exit $ac_status); } && {
47380 test -z "$ac_c_werror_flag" ||
47381 test ! -s conftest.err
47382 } && test -s conftest.$ac_objext; then
47383 gt_cv_func_unsetenv_ret='int'
47385 $as_echo "$as_me: failed program was:" >&5
47386 sed 's/^/| /' conftest.$ac_ext >&5
47388 gt_cv_func_unsetenv_ret='void'
47391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47393 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
47394 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
47395 if test $gt_cv_func_unsetenv_ret = 'void'; then
47397 cat >>confdefs.h <<\_ACEOF
47398 #define VOID_UNSETENV 1
47410 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
47414 { $as_echo "$as_me:$LINENO: checking whether unsetenv obeys POSIX" >&5
47415 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
47416 if test "${gl_cv_func_unsetenv_works+set}" = set; then
47417 $as_echo_n "(cached) " >&6
47419 if test "$cross_compiling" = yes; then
47420 gl_cv_func_unsetenv_works="guessing no"
47422 cat >conftest.$ac_ext <<_ACEOF
47425 cat confdefs.h >>conftest.$ac_ext
47426 cat >>conftest.$ac_ext <<_ACEOF
47427 /* end confdefs.h. */
47429 #include <stdlib.h>
47436 char entry[] = "b=2";
47437 if (putenv ((char *) "a=1")) return 1;
47438 if (putenv (entry)) return 2;
47441 if (getenv ("a")) return 3;
47442 if (!unsetenv ("") || errno != EINVAL) return 4;
47448 rm -f conftest$ac_exeext
47449 if { (ac_try="$ac_link"
47450 case "(($ac_try" in
47451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47452 *) ac_try_echo=$ac_try;;
47454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47455 $as_echo "$ac_try_echo") >&5
47456 (eval "$ac_link") 2>&5
47458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47460 { (case "(($ac_try" in
47461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47462 *) ac_try_echo=$ac_try;;
47464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47465 $as_echo "$ac_try_echo") >&5
47466 (eval "$ac_try") 2>&5
47468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47469 (exit $ac_status); }; }; then
47470 gl_cv_func_unsetenv_works=yes
47472 $as_echo "$as_me: program exited with status $ac_status" >&5
47473 $as_echo "$as_me: failed program was:" >&5
47474 sed 's/^/| /' conftest.$ac_ext >&5
47476 ( exit $ac_status )
47477 gl_cv_func_unsetenv_works=no
47479 rm -rf conftest.dSYM
47480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47485 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unsetenv_works" >&5
47486 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
47487 if test "$gl_cv_func_unsetenv_works" != yes; then
47497 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
47509 cat >>confdefs.h <<\_ACEOF
47510 #define GNULIB_TEST_UNSETENV 1
47515 # Code from module utimens:
47525 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
47546 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
47547 { $as_echo "$as_me:$LINENO: checking whether futimesat handles NULL file" >&5
47548 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
47549 if test "${gl_cv_func_futimesat_works+set}" = set; then
47550 $as_echo_n "(cached) " >&6
47552 touch conftest.file
47553 if test "$cross_compiling" = yes; then
47554 gl_cv_func_futimesat_works="guessing no"
47556 cat >conftest.$ac_ext <<_ACEOF
47559 cat confdefs.h >>conftest.$ac_ext
47560 cat >>conftest.$ac_ext <<_ACEOF
47561 /* end confdefs.h. */
47563 #include <stddef.h>
47564 #include <sys/times.h>
47569 int fd = open ("conftest.file", O_RDWR);
47570 if (fd < 0) return 1;
47571 if (futimesat (fd, NULL, NULL)) return 2;
47577 rm -f conftest$ac_exeext
47578 if { (ac_try="$ac_link"
47579 case "(($ac_try" in
47580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47581 *) ac_try_echo=$ac_try;;
47583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47584 $as_echo "$ac_try_echo") >&5
47585 (eval "$ac_link") 2>&5
47587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47589 { (case "(($ac_try" in
47590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47591 *) ac_try_echo=$ac_try;;
47593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47594 $as_echo "$ac_try_echo") >&5
47595 (eval "$ac_try") 2>&5
47597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598 (exit $ac_status); }; }; then
47599 gl_cv_func_futimesat_works=yes
47601 $as_echo "$as_me: program exited with status $ac_status" >&5
47602 $as_echo "$as_me: failed program was:" >&5
47603 sed 's/^/| /' conftest.$ac_ext >&5
47605 ( exit $ac_status )
47606 gl_cv_func_futimesat_works=no
47608 rm -rf conftest.dSYM
47609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47613 rm -f conftest.file
47615 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimesat_works" >&5
47616 $as_echo "$gl_cv_func_futimesat_works" >&6; }
47617 if test "$gl_cv_func_futimesat_works" != yes; then
47619 cat >>confdefs.h <<\_ACEOF
47620 #define FUTIMESAT_NULL_BUG 1
47626 # Code from module utimensat:
47636 if test $ac_cv_func_utimensat = no; then
47646 gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
47649 { $as_echo "$as_me:$LINENO: checking whether utimensat works" >&5
47650 $as_echo_n "checking whether utimensat works... " >&6; }
47651 if test "${gl_cv_func_utimensat_works+set}" = set; then
47652 $as_echo_n "(cached) " >&6
47654 if test "$cross_compiling" = yes; then
47655 gl_cv_func_utimensat_works="guessing no"
47657 cat >conftest.$ac_ext <<_ACEOF
47660 cat confdefs.h >>conftest.$ac_ext
47661 cat >>conftest.$ac_ext <<_ACEOF
47662 /* end confdefs.h. */
47665 #include <sys/stat.h>
47666 #include <unistd.h>
47671 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
47673 const char *f = "conftest.file";
47674 if (close (creat (f, 0600))) return 1;
47675 if (utimensat (AT_FDCWD, f, NULL, AT_SYMLINK_NOFOLLOW)) return 2;
47676 if (utimensat (AT_FDCWD, f, ts, 0)) return 3;
47678 ts[0].tv_nsec = UTIME_NOW;
47679 ts[1].tv_nsec = UTIME_OMIT;
47680 if (utimensat (AT_FDCWD, f, ts, 0)) return 4;
47681 if (stat (f, &st)) return 5;
47682 if (st.st_ctime < st.st_atime) return 6;
47687 rm -f conftest$ac_exeext
47688 if { (ac_try="$ac_link"
47689 case "(($ac_try" in
47690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47691 *) ac_try_echo=$ac_try;;
47693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47694 $as_echo "$ac_try_echo") >&5
47695 (eval "$ac_link") 2>&5
47697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47699 { (case "(($ac_try" in
47700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47701 *) ac_try_echo=$ac_try;;
47703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47704 $as_echo "$ac_try_echo") >&5
47705 (eval "$ac_try") 2>&5
47707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47708 (exit $ac_status); }; }; then
47709 cat >conftest.$ac_ext <<_ACEOF
47712 cat confdefs.h >>conftest.$ac_ext
47713 cat >>conftest.$ac_ext <<_ACEOF
47714 /* end confdefs.h. */
47717 /* The Linux kernel added utimensat in 2.6.22, but has bugs with UTIME_OMIT
47718 in several file systems as recently as 2.6.32. Always replace utimensat
47719 to support older kernels. */
47731 rm -f conftest.$ac_objext
47732 if { (ac_try="$ac_compile"
47733 case "(($ac_try" in
47734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47735 *) ac_try_echo=$ac_try;;
47737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47738 $as_echo "$ac_try_echo") >&5
47739 (eval "$ac_compile") 2>conftest.er1
47741 grep -v '^ *+' conftest.er1 >conftest.err
47743 cat conftest.err >&5
47744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47745 (exit $ac_status); } && {
47746 test -z "$ac_c_werror_flag" ||
47747 test ! -s conftest.err
47748 } && test -s conftest.$ac_objext; then
47749 gl_cv_func_utimensat_works=yes
47751 $as_echo "$as_me: failed program was:" >&5
47752 sed 's/^/| /' conftest.$ac_ext >&5
47754 gl_cv_func_utimensat_works="needs runtime check"
47757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47759 $as_echo "$as_me: program exited with status $ac_status" >&5
47760 $as_echo "$as_me: failed program was:" >&5
47761 sed 's/^/| /' conftest.$ac_ext >&5
47763 ( exit $ac_status )
47764 gl_cv_func_utimensat_works=no
47766 rm -rf conftest.dSYM
47767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47772 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_utimensat_works" >&5
47773 $as_echo "$gl_cv_func_utimensat_works" >&6; }
47774 if test "$gl_cv_func_utimensat_works" != yes; then
47775 REPLACE_UTIMENSAT=1
47784 gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
47796 cat >>confdefs.h <<\_ACEOF
47797 #define GNULIB_TEST_UTIMENSAT 1
47802 # Code from module vasnprintf:
47810 if test $ac_cv_func_vasnprintf = no; then
47826 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
47836 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
47846 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
47856 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
47858 if test $ac_cv_func_vasnprintf = yes; then
47860 cat >>confdefs.h <<\_ACEOF
47861 #define REPLACE_VASNPRINTF 1
47875 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47876 $as_echo_n "checking for ptrdiff_t... " >&6; }
47877 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47878 $as_echo_n "(cached) " >&6
47880 ac_cv_type_ptrdiff_t=no
47881 cat >conftest.$ac_ext <<_ACEOF
47884 cat confdefs.h >>conftest.$ac_ext
47885 cat >>conftest.$ac_ext <<_ACEOF
47886 /* end confdefs.h. */
47887 $ac_includes_default
47891 if (sizeof (ptrdiff_t))
47897 rm -f conftest.$ac_objext
47898 if { (ac_try="$ac_compile"
47899 case "(($ac_try" in
47900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47901 *) ac_try_echo=$ac_try;;
47903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47904 $as_echo "$ac_try_echo") >&5
47905 (eval "$ac_compile") 2>conftest.er1
47907 grep -v '^ *+' conftest.er1 >conftest.err
47909 cat conftest.err >&5
47910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47911 (exit $ac_status); } && {
47912 test -z "$ac_c_werror_flag" ||
47913 test ! -s conftest.err
47914 } && test -s conftest.$ac_objext; then
47915 cat >conftest.$ac_ext <<_ACEOF
47918 cat confdefs.h >>conftest.$ac_ext
47919 cat >>conftest.$ac_ext <<_ACEOF
47920 /* end confdefs.h. */
47921 $ac_includes_default
47925 if (sizeof ((ptrdiff_t)))
47931 rm -f conftest.$ac_objext
47932 if { (ac_try="$ac_compile"
47933 case "(($ac_try" in
47934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47935 *) ac_try_echo=$ac_try;;
47937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47938 $as_echo "$ac_try_echo") >&5
47939 (eval "$ac_compile") 2>conftest.er1
47941 grep -v '^ *+' conftest.er1 >conftest.err
47943 cat conftest.err >&5
47944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47945 (exit $ac_status); } && {
47946 test -z "$ac_c_werror_flag" ||
47947 test ! -s conftest.err
47948 } && test -s conftest.$ac_objext; then
47951 $as_echo "$as_me: failed program was:" >&5
47952 sed 's/^/| /' conftest.$ac_ext >&5
47954 ac_cv_type_ptrdiff_t=yes
47957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47959 $as_echo "$as_me: failed program was:" >&5
47960 sed 's/^/| /' conftest.$ac_ext >&5
47965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47967 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47968 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
47969 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
47973 cat >>confdefs.h <<\_ACEOF
47974 #define ptrdiff_t long
47988 # Code from module vasprintf:
47991 for ac_func in vasprintf
47993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47995 $as_echo_n "checking for $ac_func... " >&6; }
47996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47997 $as_echo_n "(cached) " >&6
47999 cat >conftest.$ac_ext <<_ACEOF
48002 cat confdefs.h >>conftest.$ac_ext
48003 cat >>conftest.$ac_ext <<_ACEOF
48004 /* end confdefs.h. */
48005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48007 #define $ac_func innocuous_$ac_func
48009 /* System header to define __stub macros and hopefully few prototypes,
48010 which can conflict with char $ac_func (); below.
48011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48012 <limits.h> exists even on freestanding compilers. */
48015 # include <limits.h>
48017 # include <assert.h>
48022 /* Override any GCC internal prototype to avoid an error.
48023 Use char because int might match the return type of a GCC
48024 builtin and then its argument prototype would still apply. */
48029 /* The GNU C library defines this for functions which it implements
48030 to always fail with ENOSYS. Some functions are actually named
48031 something starting with __ and the normal name is an alias. */
48032 #if defined __stub_$ac_func || defined __stub___$ac_func
48039 return $ac_func ();
48044 rm -f conftest.$ac_objext conftest$ac_exeext
48045 if { (ac_try="$ac_link"
48046 case "(($ac_try" in
48047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48048 *) ac_try_echo=$ac_try;;
48050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48051 $as_echo "$ac_try_echo") >&5
48052 (eval "$ac_link") 2>conftest.er1
48054 grep -v '^ *+' conftest.er1 >conftest.err
48056 cat conftest.err >&5
48057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48058 (exit $ac_status); } && {
48059 test -z "$ac_c_werror_flag" ||
48060 test ! -s conftest.err
48061 } && test -s conftest$ac_exeext && {
48062 test "$cross_compiling" = yes ||
48063 $as_test_x conftest$ac_exeext
48065 eval "$as_ac_var=yes"
48067 $as_echo "$as_me: failed program was:" >&5
48068 sed 's/^/| /' conftest.$ac_ext >&5
48070 eval "$as_ac_var=no"
48073 rm -rf conftest.dSYM
48074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48075 conftest$ac_exeext conftest.$ac_ext
48077 ac_res=`eval 'as_val=${'$as_ac_var'}
48078 $as_echo "$as_val"'`
48079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48080 $as_echo "$ac_res" >&6; }
48081 as_val=`eval 'as_val=${'$as_ac_var'}
48082 $as_echo "$as_val"'`
48083 if test "x$as_val" = x""yes; then
48084 cat >>confdefs.h <<_ACEOF
48085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48091 if test $ac_cv_func_vasprintf = no; then
48101 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
48111 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
48114 if test $ac_cv_func_vasprintf = yes; then
48115 REPLACE_VASPRINTF=1
48136 cat >>confdefs.h <<\_ACEOF
48137 #define GNULIB_TEST_VASPRINTF 1
48144 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
48148 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
48150 # Code from module verify:
48151 # Code from module version-etc:
48153 # Check whether --with-packager was given.
48154 if test "${with_packager+set}" = set; then
48155 withval=$with_packager; case $withval in
48158 cat >>confdefs.h <<_ACEOF
48159 #define PACKAGE_PACKAGER "$withval"
48168 # Check whether --with-packager-version was given.
48169 if test "${with_packager_version+set}" = set; then
48170 withval=$with_packager_version; case $withval in
48173 cat >>confdefs.h <<_ACEOF
48174 #define PACKAGE_PACKAGER_VERSION "$withval"
48183 # Check whether --with-packager-bug-reports was given.
48184 if test "${with_packager_bug_reports+set}" = set; then
48185 withval=$with_packager_bug_reports; case $withval in
48188 cat >>confdefs.h <<_ACEOF
48189 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
48197 if test "X$with_packager" = "X" && \
48198 test "X$with_packager_version$with_packager_bug_reports" != "X"
48200 { { $as_echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
48201 $as_echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
48202 { (exit 1); exit 1; }; }
48205 # Code from module version-etc-fsf:
48206 # Code from module vsnprintf:
48209 gl_cv_func_vsnprintf_usable=no
48211 for ac_func in vsnprintf
48213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48214 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48215 $as_echo_n "checking for $ac_func... " >&6; }
48216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48217 $as_echo_n "(cached) " >&6
48219 cat >conftest.$ac_ext <<_ACEOF
48222 cat confdefs.h >>conftest.$ac_ext
48223 cat >>conftest.$ac_ext <<_ACEOF
48224 /* end confdefs.h. */
48225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48227 #define $ac_func innocuous_$ac_func
48229 /* System header to define __stub macros and hopefully few prototypes,
48230 which can conflict with char $ac_func (); below.
48231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48232 <limits.h> exists even on freestanding compilers. */
48235 # include <limits.h>
48237 # include <assert.h>
48242 /* Override any GCC internal prototype to avoid an error.
48243 Use char because int might match the return type of a GCC
48244 builtin and then its argument prototype would still apply. */
48249 /* The GNU C library defines this for functions which it implements
48250 to always fail with ENOSYS. Some functions are actually named
48251 something starting with __ and the normal name is an alias. */
48252 #if defined __stub_$ac_func || defined __stub___$ac_func
48259 return $ac_func ();
48264 rm -f conftest.$ac_objext conftest$ac_exeext
48265 if { (ac_try="$ac_link"
48266 case "(($ac_try" in
48267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48268 *) ac_try_echo=$ac_try;;
48270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48271 $as_echo "$ac_try_echo") >&5
48272 (eval "$ac_link") 2>conftest.er1
48274 grep -v '^ *+' conftest.er1 >conftest.err
48276 cat conftest.err >&5
48277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278 (exit $ac_status); } && {
48279 test -z "$ac_c_werror_flag" ||
48280 test ! -s conftest.err
48281 } && test -s conftest$ac_exeext && {
48282 test "$cross_compiling" = yes ||
48283 $as_test_x conftest$ac_exeext
48285 eval "$as_ac_var=yes"
48287 $as_echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48290 eval "$as_ac_var=no"
48293 rm -rf conftest.dSYM
48294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48295 conftest$ac_exeext conftest.$ac_ext
48297 ac_res=`eval 'as_val=${'$as_ac_var'}
48298 $as_echo "$as_val"'`
48299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48300 $as_echo "$ac_res" >&6; }
48301 as_val=`eval 'as_val=${'$as_ac_var'}
48302 $as_echo "$as_val"'`
48303 if test "x$as_val" = x""yes; then
48304 cat >>confdefs.h <<_ACEOF
48305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48311 if test $ac_cv_func_vsnprintf = yes; then
48314 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
48315 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
48316 if test "${gl_cv_func_snprintf_size1+set}" = set; then
48317 $as_echo_n "(cached) " >&6
48320 if test "$cross_compiling" = yes; then
48321 gl_cv_func_snprintf_size1="guessing yes"
48323 cat >conftest.$ac_ext <<_ACEOF
48326 cat confdefs.h >>conftest.$ac_ext
48327 cat >>conftest.$ac_ext <<_ACEOF
48328 /* end confdefs.h. */
48333 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
48334 snprintf (buf, 1, "%d", 12345);
48335 return buf[1] != 'E';
48338 rm -f conftest$ac_exeext
48339 if { (ac_try="$ac_link"
48340 case "(($ac_try" in
48341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48342 *) ac_try_echo=$ac_try;;
48344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48345 $as_echo "$ac_try_echo") >&5
48346 (eval "$ac_link") 2>&5
48348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48350 { (case "(($ac_try" in
48351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48352 *) ac_try_echo=$ac_try;;
48354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48355 $as_echo "$ac_try_echo") >&5
48356 (eval "$ac_try") 2>&5
48358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48359 (exit $ac_status); }; }; then
48360 gl_cv_func_snprintf_size1=yes
48362 $as_echo "$as_me: program exited with status $ac_status" >&5
48363 $as_echo "$as_me: failed program was:" >&5
48364 sed 's/^/| /' conftest.$ac_ext >&5
48366 ( exit $ac_status )
48367 gl_cv_func_snprintf_size1=no
48369 rm -rf conftest.dSYM
48370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48376 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
48377 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
48379 case "$gl_cv_func_snprintf_size1" in
48381 gl_cv_func_vsnprintf_usable=yes
48385 if test $gl_cv_func_vsnprintf_usable = no; then
48396 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
48398 if test $ac_cv_func_vsnprintf = yes; then
48399 REPLACE_VSNPRINTF=1
48408 if test $ac_cv_have_decl_vsnprintf = no; then
48409 HAVE_DECL_VSNPRINTF=0
48419 cat >>confdefs.h <<\_ACEOF
48420 #define GNULIB_TEST_VSNPRINTF 1
48425 # Code from module warn-on-use:
48426 # Code from module wchar:
48447 if test $gl_cv_have_include_next = yes; then
48448 gl_cv_next_wchar_h='<'wchar.h'>'
48450 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
48451 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
48452 if test "${gl_cv_next_wchar_h+set}" = set; then
48453 $as_echo_n "(cached) " >&6
48456 if test $ac_cv_header_wchar_h = yes; then
48457 cat >conftest.$ac_ext <<_ACEOF
48460 cat confdefs.h >>conftest.$ac_ext
48461 cat >>conftest.$ac_ext <<_ACEOF
48462 /* end confdefs.h. */
48467 aix*) gl_absname_cpp="$ac_cpp -C" ;;
48468 *) gl_absname_cpp="$ac_cpp" ;;
48470 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48471 sed -n '\#/wchar.h#{
48472 s#.*"\(.*/wchar.h\)".*#\1#
48478 gl_cv_next_wchar_h='<'wchar.h'>'
48482 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
48483 $as_echo "$gl_cv_next_wchar_h" >&6; }
48485 NEXT_WCHAR_H=$gl_cv_next_wchar_h
48487 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48489 gl_next_as_first_directive='<'wchar.h'>'
48491 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48492 gl_next_as_first_directive=$gl_cv_next_wchar_h
48494 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
48498 if test $ac_cv_header_wchar_h = yes; then
48506 if test $gt_cv_c_wint_t = yes; then
48525 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
48526 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
48527 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
48528 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
48529 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
48530 $as_echo_n "(cached) " >&6
48532 cat >conftest.$ac_ext <<_ACEOF
48535 cat confdefs.h >>conftest.$ac_ext
48536 cat >>conftest.$ac_ext <<_ACEOF
48537 /* end confdefs.h. */
48539 /* Some systems require additional headers. */
48541 # include <stddef.h>
48542 # include <stdio.h>
48556 rm -f conftest.$ac_objext
48557 if { (ac_try="$ac_compile"
48558 case "(($ac_try" in
48559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48560 *) ac_try_echo=$ac_try;;
48562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48563 $as_echo "$ac_try_echo") >&5
48564 (eval "$ac_compile") 2>conftest.er1
48566 grep -v '^ *+' conftest.er1 >conftest.err
48568 cat conftest.err >&5
48569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48570 (exit $ac_status); } && {
48571 test -z "$ac_c_werror_flag" ||
48572 test ! -s conftest.err
48573 } && test -s conftest.$ac_objext; then
48574 eval "$as_gl_Symbol=yes"
48576 $as_echo "$as_me: failed program was:" >&5
48577 sed 's/^/| /' conftest.$ac_ext >&5
48579 eval "$as_gl_Symbol=no"
48582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48584 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
48585 $as_echo "$as_val"'`
48586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48587 $as_echo "$ac_res" >&6; }
48588 as_val=`eval 'as_val=${'$as_gl_Symbol'}
48589 $as_echo "$as_val"'`
48590 if test "x$as_val" = x""yes; then
48591 cat >>confdefs.h <<_ACEOF
48592 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
48595 eval ac_cv_have_decl_$gl_func=yes
48601 # Code from module wcrtomb:
48622 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
48626 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
48627 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
48628 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
48629 $as_echo_n "(cached) " >&6
48633 # Guess no on AIX and OSF/1.
48634 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
48635 # Guess yes otherwise.
48636 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
48638 if test $LOCALE_JA != none; then
48639 if test "$cross_compiling" = yes; then
48642 cat >conftest.$ac_ext <<_ACEOF
48645 cat confdefs.h >>conftest.$ac_ext
48646 cat >>conftest.$ac_ext <<_ACEOF
48647 /* end confdefs.h. */
48649 #include <locale.h>
48650 #include <string.h>
48654 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48656 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48660 memset (&state, '\0', sizeof (mbstate_t));
48661 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48662 if (mbsinit (&state))
48668 rm -f conftest$ac_exeext
48669 if { (ac_try="$ac_link"
48670 case "(($ac_try" in
48671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48672 *) ac_try_echo=$ac_try;;
48674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48675 $as_echo "$ac_try_echo") >&5
48676 (eval "$ac_link") 2>&5
48678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48680 { (case "(($ac_try" in
48681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48682 *) ac_try_echo=$ac_try;;
48684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48685 $as_echo "$ac_try_echo") >&5
48686 (eval "$ac_try") 2>&5
48688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48689 (exit $ac_status); }; }; then
48690 gl_cv_func_mbrtowc_incomplete_state=yes
48692 $as_echo "$as_me: program exited with status $ac_status" >&5
48693 $as_echo "$as_me: failed program was:" >&5
48694 sed 's/^/| /' conftest.$ac_ext >&5
48696 ( exit $ac_status )
48697 gl_cv_func_mbrtowc_incomplete_state=no
48699 rm -rf conftest.dSYM
48700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48707 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
48708 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
48713 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
48714 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
48715 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
48716 $as_echo_n "(cached) " >&6
48720 # Guess no on Solaris 8.
48721 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
48722 # Guess yes otherwise.
48723 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
48725 if test $LOCALE_ZH_CN != none; then
48726 if test "$cross_compiling" = yes; then
48729 cat >conftest.$ac_ext <<_ACEOF
48732 cat confdefs.h >>conftest.$ac_ext
48733 cat >>conftest.$ac_ext <<_ACEOF
48734 /* end confdefs.h. */
48736 #include <locale.h>
48737 #include <stdlib.h>
48738 #include <string.h>
48742 /* This fails on Solaris 8:
48743 mbrtowc returns 2, and sets wc to 0x00F0.
48744 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
48745 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48747 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
48751 memset (&state, '\0', sizeof (mbstate_t));
48752 if (mbrtowc (&wc, input + 3, 6, &state) != 4
48753 && mbtowc (&wc, input + 3, 6) == 4)
48759 rm -f conftest$ac_exeext
48760 if { (ac_try="$ac_link"
48761 case "(($ac_try" in
48762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48763 *) ac_try_echo=$ac_try;;
48765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48766 $as_echo "$ac_try_echo") >&5
48767 (eval "$ac_link") 2>&5
48769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48771 { (case "(($ac_try" in
48772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48773 *) ac_try_echo=$ac_try;;
48775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48776 $as_echo "$ac_try_echo") >&5
48777 (eval "$ac_try") 2>&5
48779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48780 (exit $ac_status); }; }; then
48781 gl_cv_func_mbrtowc_sanitycheck=yes
48783 $as_echo "$as_me: program exited with status $ac_status" >&5
48784 $as_echo "$as_me: failed program was:" >&5
48785 sed 's/^/| /' conftest.$ac_ext >&5
48787 ( exit $ac_status )
48788 gl_cv_func_mbrtowc_sanitycheck=no
48790 rm -rf conftest.dSYM
48791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48798 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
48799 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
48801 REPLACE_MBSTATE_T=0
48802 case "$gl_cv_func_mbrtowc_incomplete_state" in
48804 *) REPLACE_MBSTATE_T=1 ;;
48806 case "$gl_cv_func_mbrtowc_sanitycheck" in
48808 *) REPLACE_MBSTATE_T=1 ;;
48811 REPLACE_MBSTATE_T=1
48813 if test $REPLACE_MBSTATE_T = 1; then
48826 if test $ac_cv_func_wcrtomb = no; then
48829 if test $REPLACE_MBSTATE_T = 1; then
48837 { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
48838 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
48839 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
48840 $as_echo_n "(cached) " >&6
48844 # Guess no on AIX 4, OSF/1 and Solaris.
48845 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
48846 # Guess yes otherwise.
48847 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
48849 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
48850 if test "$cross_compiling" = yes; then
48853 cat >conftest.$ac_ext <<_ACEOF
48856 cat confdefs.h >>conftest.$ac_ext
48857 cat >>conftest.$ac_ext <<_ACEOF
48858 /* end confdefs.h. */
48860 #include <locale.h>
48862 #include <string.h>
48866 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
48868 if (wcrtomb (NULL, 0, NULL) != 1)
48871 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
48873 if (wcrtomb (NULL, 0, NULL) != 1)
48876 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48878 if (wcrtomb (NULL, 0, NULL) != 1)
48881 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48883 if (wcrtomb (NULL, 0, NULL) != 1)
48889 rm -f conftest$ac_exeext
48890 if { (ac_try="$ac_link"
48891 case "(($ac_try" in
48892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48893 *) ac_try_echo=$ac_try;;
48895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48896 $as_echo "$ac_try_echo") >&5
48897 (eval "$ac_link") 2>&5
48899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48901 { (case "(($ac_try" in
48902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48903 *) ac_try_echo=$ac_try;;
48905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48906 $as_echo "$ac_try_echo") >&5
48907 (eval "$ac_try") 2>&5
48909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48910 (exit $ac_status); }; }; then
48911 gl_cv_func_wcrtomb_retval=yes
48913 $as_echo "$as_me: program exited with status $ac_status" >&5
48914 $as_echo "$as_me: failed program was:" >&5
48915 sed 's/^/| /' conftest.$ac_ext >&5
48917 ( exit $ac_status )
48918 gl_cv_func_wcrtomb_retval=no
48920 rm -rf conftest.dSYM
48921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48928 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
48929 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
48930 case "$gl_cv_func_wcrtomb_retval" in
48932 *) REPLACE_WCRTOMB=1 ;;
48936 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
48948 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
48962 cat >>confdefs.h <<\_ACEOF
48963 #define GNULIB_TEST_WCRTOMB 1
48968 # Code from module wctype:
48978 if test $ac_cv_func_iswcntrl = yes; then
48994 if test $ac_cv_func_iswblank = yes; then
48999 if test $ac_cv_have_decl_iswblank = yes; then
49017 if test $gt_cv_c_wint_t = yes; then
49024 if test $ac_cv_header_wctype_h = yes; then
49025 if test $ac_cv_func_iswcntrl = yes; then
49026 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
49027 $as_echo_n "checking whether iswcntrl works... " >&6; }
49028 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
49029 $as_echo_n "(cached) " >&6
49032 if test "$cross_compiling" = yes; then
49033 cat >conftest.$ac_ext <<_ACEOF
49036 cat confdefs.h >>conftest.$ac_ext
49037 cat >>conftest.$ac_ext <<_ACEOF
49038 /* end confdefs.h. */
49039 #include <stdlib.h>
49040 #if __GNU_LIBRARY__ == 1
49041 Linux libc5 i18n is broken.
49051 rm -f conftest.$ac_objext
49052 if { (ac_try="$ac_compile"
49053 case "(($ac_try" in
49054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49055 *) ac_try_echo=$ac_try;;
49057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49058 $as_echo "$ac_try_echo") >&5
49059 (eval "$ac_compile") 2>conftest.er1
49061 grep -v '^ *+' conftest.er1 >conftest.err
49063 cat conftest.err >&5
49064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49065 (exit $ac_status); } && {
49066 test -z "$ac_c_werror_flag" ||
49067 test ! -s conftest.err
49068 } && test -s conftest.$ac_objext; then
49069 gl_cv_func_iswcntrl_works=yes
49071 $as_echo "$as_me: failed program was:" >&5
49072 sed 's/^/| /' conftest.$ac_ext >&5
49074 gl_cv_func_iswcntrl_works=no
49077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49080 cat >conftest.$ac_ext <<_ACEOF
49083 cat confdefs.h >>conftest.$ac_ext
49084 cat >>conftest.$ac_ext <<_ACEOF
49085 /* end confdefs.h. */
49087 #include <stddef.h>
49091 #include <wctype.h>
49092 int main () { return iswprint ('x') == 0; }
49094 rm -f conftest$ac_exeext
49095 if { (ac_try="$ac_link"
49096 case "(($ac_try" in
49097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49098 *) ac_try_echo=$ac_try;;
49100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49101 $as_echo "$ac_try_echo") >&5
49102 (eval "$ac_link") 2>&5
49104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49106 { (case "(($ac_try" in
49107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49108 *) ac_try_echo=$ac_try;;
49110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49111 $as_echo "$ac_try_echo") >&5
49112 (eval "$ac_try") 2>&5
49114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49115 (exit $ac_status); }; }; then
49116 gl_cv_func_iswcntrl_works=yes
49118 $as_echo "$as_me: program exited with status $ac_status" >&5
49119 $as_echo "$as_me: failed program was:" >&5
49120 sed 's/^/| /' conftest.$ac_ext >&5
49122 ( exit $ac_status )
49123 gl_cv_func_iswcntrl_works=no
49125 rm -rf conftest.dSYM
49126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49132 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
49133 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
49146 if test $gl_cv_have_include_next = yes; then
49147 gl_cv_next_wctype_h='<'wctype.h'>'
49149 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
49150 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
49151 if test "${gl_cv_next_wctype_h+set}" = set; then
49152 $as_echo_n "(cached) " >&6
49155 if test $ac_cv_header_wctype_h = yes; then
49156 cat >conftest.$ac_ext <<_ACEOF
49159 cat confdefs.h >>conftest.$ac_ext
49160 cat >>conftest.$ac_ext <<_ACEOF
49161 /* end confdefs.h. */
49162 #include <wctype.h>
49166 aix*) gl_absname_cpp="$ac_cpp -C" ;;
49167 *) gl_absname_cpp="$ac_cpp" ;;
49169 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49170 sed -n '\#/wctype.h#{
49171 s#.*"\(.*/wctype.h\)".*#\1#
49177 gl_cv_next_wctype_h='<'wctype.h'>'
49181 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
49182 $as_echo "$gl_cv_next_wctype_h" >&6; }
49184 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
49186 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49187 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49188 gl_next_as_first_directive='<'wctype.h'>'
49190 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49191 gl_next_as_first_directive=$gl_cv_next_wctype_h
49193 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
49203 if test "$gl_cv_func_iswcntrl_works" = no; then
49210 # Code from module wcwidth:
49232 { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
49233 $as_echo_n "checking whether wcwidth is declared... " >&6; }
49234 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
49235 $as_echo_n "(cached) " >&6
49237 cat >conftest.$ac_ext <<_ACEOF
49240 cat confdefs.h >>conftest.$ac_ext
49241 cat >>conftest.$ac_ext <<_ACEOF
49242 /* end confdefs.h. */
49244 /* AIX 3.2.5 declares wcwidth in <string.h>. */
49245 #include <string.h>
49246 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
49248 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
49249 before <wchar.h>. */
49250 #include <stddef.h>
49267 rm -f conftest.$ac_objext
49268 if { (ac_try="$ac_compile"
49269 case "(($ac_try" in
49270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49271 *) ac_try_echo=$ac_try;;
49273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49274 $as_echo "$ac_try_echo") >&5
49275 (eval "$ac_compile") 2>conftest.er1
49277 grep -v '^ *+' conftest.er1 >conftest.err
49279 cat conftest.err >&5
49280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49281 (exit $ac_status); } && {
49282 test -z "$ac_c_werror_flag" ||
49283 test ! -s conftest.err
49284 } && test -s conftest.$ac_objext; then
49285 ac_cv_have_decl_wcwidth=yes
49287 $as_echo "$as_me: failed program was:" >&5
49288 sed 's/^/| /' conftest.$ac_ext >&5
49290 ac_cv_have_decl_wcwidth=no
49293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49295 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
49296 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
49297 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
49299 cat >>confdefs.h <<_ACEOF
49300 #define HAVE_DECL_WCWIDTH 1
49305 cat >>confdefs.h <<_ACEOF
49306 #define HAVE_DECL_WCWIDTH 0
49313 if test $ac_cv_have_decl_wcwidth != yes; then
49314 HAVE_DECL_WCWIDTH=0
49317 if test $ac_cv_func_wcwidth = yes; then
49318 { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
49319 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
49320 if test "${gl_cv_func_wcwidth_works+set}" = set; then
49321 $as_echo_n "(cached) " >&6
49324 if test "$cross_compiling" = yes; then
49327 # Guess yes on glibc and AIX 7 systems.
49328 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
49329 *) gl_cv_func_wcwidth_works="guessing no";;
49333 cat >conftest.$ac_ext <<_ACEOF
49336 cat confdefs.h >>conftest.$ac_ext
49337 cat >>conftest.$ac_ext <<_ACEOF
49338 /* end confdefs.h. */
49340 #include <locale.h>
49341 /* AIX 3.2.5 declares wcwidth in <string.h>. */
49342 #include <string.h>
49343 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
49345 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
49346 before <wchar.h>. */
49347 #include <stddef.h>
49351 #if !HAVE_DECL_WCWIDTH
49353 # ifdef __cplusplus
49360 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
49361 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
49366 rm -f conftest$ac_exeext
49367 if { (ac_try="$ac_link"
49368 case "(($ac_try" in
49369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49370 *) ac_try_echo=$ac_try;;
49372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49373 $as_echo "$ac_try_echo") >&5
49374 (eval "$ac_link") 2>&5
49376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49378 { (case "(($ac_try" in
49379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49380 *) ac_try_echo=$ac_try;;
49382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49383 $as_echo "$ac_try_echo") >&5
49384 (eval "$ac_try") 2>&5
49386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387 (exit $ac_status); }; }; then
49388 gl_cv_func_wcwidth_works=yes
49390 $as_echo "$as_me: program exited with status $ac_status" >&5
49391 $as_echo "$as_me: failed program was:" >&5
49392 sed 's/^/| /' conftest.$ac_ext >&5
49394 ( exit $ac_status )
49395 gl_cv_func_wcwidth_works=no
49397 rm -rf conftest.dSYM
49398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49404 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
49405 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
49406 case "$gl_cv_func_wcwidth_works" in
49408 *no) REPLACE_WCWIDTH=1 ;;
49411 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
49420 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
49423 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
49424 || test $HAVE_DECL_WCWIDTH = 0; then
49437 cat >>confdefs.h <<\_ACEOF
49438 #define GNULIB_TEST_WCWIDTH 1
49443 # Code from module write:
49455 cat >>confdefs.h <<\_ACEOF
49456 #define GNULIB_TEST_WRITE 1
49461 # Code from module xalloc:
49471 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
49482 # Code from module xalloc-die:
49483 # Code from module xgetcwd:
49493 gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
49498 # Code from module xsize:
49503 for ac_header in stdint.h
49505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49508 $as_echo_n "checking for $ac_header... " >&6; }
49509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49510 $as_echo_n "(cached) " >&6
49512 ac_res=`eval 'as_val=${'$as_ac_Header'}
49513 $as_echo "$as_val"'`
49514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49515 $as_echo "$ac_res" >&6; }
49517 # Is the header compilable?
49518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49519 $as_echo_n "checking $ac_header usability... " >&6; }
49520 cat >conftest.$ac_ext <<_ACEOF
49523 cat confdefs.h >>conftest.$ac_ext
49524 cat >>conftest.$ac_ext <<_ACEOF
49525 /* end confdefs.h. */
49526 $ac_includes_default
49527 #include <$ac_header>
49529 rm -f conftest.$ac_objext
49530 if { (ac_try="$ac_compile"
49531 case "(($ac_try" in
49532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49533 *) ac_try_echo=$ac_try;;
49535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49536 $as_echo "$ac_try_echo") >&5
49537 (eval "$ac_compile") 2>conftest.er1
49539 grep -v '^ *+' conftest.er1 >conftest.err
49541 cat conftest.err >&5
49542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49543 (exit $ac_status); } && {
49544 test -z "$ac_c_werror_flag" ||
49545 test ! -s conftest.err
49546 } && test -s conftest.$ac_objext; then
49547 ac_header_compiler=yes
49549 $as_echo "$as_me: failed program was:" >&5
49550 sed 's/^/| /' conftest.$ac_ext >&5
49552 ac_header_compiler=no
49555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49557 $as_echo "$ac_header_compiler" >&6; }
49559 # Is the header present?
49560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49561 $as_echo_n "checking $ac_header presence... " >&6; }
49562 cat >conftest.$ac_ext <<_ACEOF
49565 cat confdefs.h >>conftest.$ac_ext
49566 cat >>conftest.$ac_ext <<_ACEOF
49567 /* end confdefs.h. */
49568 #include <$ac_header>
49570 if { (ac_try="$ac_cpp conftest.$ac_ext"
49571 case "(($ac_try" in
49572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49573 *) ac_try_echo=$ac_try;;
49575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49576 $as_echo "$ac_try_echo") >&5
49577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49579 grep -v '^ *+' conftest.er1 >conftest.err
49581 cat conftest.err >&5
49582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49583 (exit $ac_status); } >/dev/null && {
49584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49585 test ! -s conftest.err
49587 ac_header_preproc=yes
49589 $as_echo "$as_me: failed program was:" >&5
49590 sed 's/^/| /' conftest.$ac_ext >&5
49592 ac_header_preproc=no
49595 rm -f conftest.err conftest.$ac_ext
49596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49597 $as_echo "$ac_header_preproc" >&6; }
49599 # So? What about this header?
49600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49606 ac_header_preproc=yes
49609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
49616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
49617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49622 ## ------------------------------ ##
49623 ## Report this to bug-tar@gnu.org ##
49624 ## ------------------------------ ##
49626 ) | sed "s/^/$as_me: WARNING: /" >&2
49629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49630 $as_echo_n "checking for $ac_header... " >&6; }
49631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49632 $as_echo_n "(cached) " >&6
49634 eval "$as_ac_Header=\$ac_header_preproc"
49636 ac_res=`eval 'as_val=${'$as_ac_Header'}
49637 $as_echo "$as_val"'`
49638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49639 $as_echo "$ac_res" >&6; }
49642 as_val=`eval 'as_val=${'$as_ac_Header'}
49643 $as_echo "$as_val"'`
49644 if test "x$as_val" = x""yes; then
49645 cat >>confdefs.h <<_ACEOF
49646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49654 # Code from module xstrndup:
49660 # Code from module xstrtol:
49670 gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
49680 gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
49690 gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
49693 # Code from module xstrtoumax:
49694 # Code from module xvasprintf:
49700 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
49702 # End of code from modules
49723 gl_source_base='tests'
49724 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
49726 gl_module_indicator_condition=$gltests_WITNESS
49736 LIBGNU_LIBDEPS="$gl_libdeps"
49738 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
49750 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
49751 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
49752 if test "${ac_cv_header_time+set}" = set; then
49753 $as_echo_n "(cached) " >&6
49755 cat >conftest.$ac_ext <<_ACEOF
49758 cat confdefs.h >>conftest.$ac_ext
49759 cat >>conftest.$ac_ext <<_ACEOF
49760 /* end confdefs.h. */
49761 #include <sys/types.h>
49762 #include <sys/time.h>
49768 if ((struct tm *) 0)
49774 rm -f conftest.$ac_objext
49775 if { (ac_try="$ac_compile"
49776 case "(($ac_try" in
49777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49778 *) ac_try_echo=$ac_try;;
49780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49781 $as_echo "$ac_try_echo") >&5
49782 (eval "$ac_compile") 2>conftest.er1
49784 grep -v '^ *+' conftest.er1 >conftest.err
49786 cat conftest.err >&5
49787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49788 (exit $ac_status); } && {
49789 test -z "$ac_c_werror_flag" ||
49790 test ! -s conftest.err
49791 } && test -s conftest.$ac_objext; then
49792 ac_cv_header_time=yes
49794 $as_echo "$as_me: failed program was:" >&5
49795 sed 's/^/| /' conftest.$ac_ext >&5
49797 ac_cv_header_time=no
49800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
49803 $as_echo "$ac_cv_header_time" >&6; }
49804 if test $ac_cv_header_time = yes; then
49806 cat >>confdefs.h <<\_ACEOF
49807 #define TIME_WITH_SYS_TIME 1
49812 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
49813 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
49814 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
49815 $as_echo_n "(cached) " >&6
49817 cat >conftest.$ac_ext <<_ACEOF
49820 cat confdefs.h >>conftest.$ac_ext
49821 cat >>conftest.$ac_ext <<_ACEOF
49822 /* end confdefs.h. */
49823 $ac_includes_default
49827 static struct stat ac_aggr;
49828 if (ac_aggr.st_blksize)
49834 rm -f conftest.$ac_objext
49835 if { (ac_try="$ac_compile"
49836 case "(($ac_try" in
49837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49838 *) ac_try_echo=$ac_try;;
49840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49841 $as_echo "$ac_try_echo") >&5
49842 (eval "$ac_compile") 2>conftest.er1
49844 grep -v '^ *+' conftest.er1 >conftest.err
49846 cat conftest.err >&5
49847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49848 (exit $ac_status); } && {
49849 test -z "$ac_c_werror_flag" ||
49850 test ! -s conftest.err
49851 } && test -s conftest.$ac_objext; then
49852 ac_cv_member_struct_stat_st_blksize=yes
49854 $as_echo "$as_me: failed program was:" >&5
49855 sed 's/^/| /' conftest.$ac_ext >&5
49857 cat >conftest.$ac_ext <<_ACEOF
49860 cat confdefs.h >>conftest.$ac_ext
49861 cat >>conftest.$ac_ext <<_ACEOF
49862 /* end confdefs.h. */
49863 $ac_includes_default
49867 static struct stat ac_aggr;
49868 if (sizeof ac_aggr.st_blksize)
49874 rm -f conftest.$ac_objext
49875 if { (ac_try="$ac_compile"
49876 case "(($ac_try" in
49877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49878 *) ac_try_echo=$ac_try;;
49880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49881 $as_echo "$ac_try_echo") >&5
49882 (eval "$ac_compile") 2>conftest.er1
49884 grep -v '^ *+' conftest.er1 >conftest.err
49886 cat conftest.err >&5
49887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49888 (exit $ac_status); } && {
49889 test -z "$ac_c_werror_flag" ||
49890 test ! -s conftest.err
49891 } && test -s conftest.$ac_objext; then
49892 ac_cv_member_struct_stat_st_blksize=yes
49894 $as_echo "$as_me: failed program was:" >&5
49895 sed 's/^/| /' conftest.$ac_ext >&5
49897 ac_cv_member_struct_stat_st_blksize=no
49900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
49906 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
49907 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
49909 cat >>confdefs.h <<_ACEOF
49910 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
49914 cat >>confdefs.h <<\_ACEOF
49915 #define HAVE_ST_BLKSIZE 1
49925 # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
49928 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
49929 $as_echo_n "checking for library containing setsockopt... " >&6; }
49930 if test "${ac_cv_search_setsockopt+set}" = set; then
49931 $as_echo_n "(cached) " >&6
49933 ac_func_search_save_LIBS=$LIBS
49934 cat >conftest.$ac_ext <<_ACEOF
49937 cat confdefs.h >>conftest.$ac_ext
49938 cat >>conftest.$ac_ext <<_ACEOF
49939 /* end confdefs.h. */
49941 /* Override any GCC internal prototype to avoid an error.
49942 Use char because int might match the return type of a GCC
49943 builtin and then its argument prototype would still apply. */
49947 char setsockopt ();
49951 return setsockopt ();
49956 for ac_lib in '' socket; do
49957 if test -z "$ac_lib"; then
49958 ac_res="none required"
49961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
49963 rm -f conftest.$ac_objext conftest$ac_exeext
49964 if { (ac_try="$ac_link"
49965 case "(($ac_try" in
49966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49967 *) ac_try_echo=$ac_try;;
49969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49970 $as_echo "$ac_try_echo") >&5
49971 (eval "$ac_link") 2>conftest.er1
49973 grep -v '^ *+' conftest.er1 >conftest.err
49975 cat conftest.err >&5
49976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49977 (exit $ac_status); } && {
49978 test -z "$ac_c_werror_flag" ||
49979 test ! -s conftest.err
49980 } && test -s conftest$ac_exeext && {
49981 test "$cross_compiling" = yes ||
49982 $as_test_x conftest$ac_exeext
49984 ac_cv_search_setsockopt=$ac_res
49986 $as_echo "$as_me: failed program was:" >&5
49987 sed 's/^/| /' conftest.$ac_ext >&5
49992 rm -rf conftest.dSYM
49993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49995 if test "${ac_cv_search_setsockopt+set}" = set; then
49999 if test "${ac_cv_search_setsockopt+set}" = set; then
50002 ac_cv_search_setsockopt=no
50004 rm conftest.$ac_ext
50005 LIBS=$ac_func_search_save_LIBS
50007 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
50008 $as_echo "$ac_cv_search_setsockopt" >&6; }
50009 ac_res=$ac_cv_search_setsockopt
50010 if test "$ac_res" != no; then
50011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50014 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
50015 $as_echo_n "checking for library containing setsockopt... " >&6; }
50016 if test "${ac_cv_search_setsockopt+set}" = set; then
50017 $as_echo_n "(cached) " >&6
50019 ac_func_search_save_LIBS=$LIBS
50020 cat >conftest.$ac_ext <<_ACEOF
50023 cat confdefs.h >>conftest.$ac_ext
50024 cat >>conftest.$ac_ext <<_ACEOF
50025 /* end confdefs.h. */
50027 /* Override any GCC internal prototype to avoid an error.
50028 Use char because int might match the return type of a GCC
50029 builtin and then its argument prototype would still apply. */
50033 char setsockopt ();
50037 return setsockopt ();
50042 for ac_lib in '' socket; do
50043 if test -z "$ac_lib"; then
50044 ac_res="none required"
50047 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
50049 rm -f conftest.$ac_objext conftest$ac_exeext
50050 if { (ac_try="$ac_link"
50051 case "(($ac_try" in
50052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50053 *) ac_try_echo=$ac_try;;
50055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50056 $as_echo "$ac_try_echo") >&5
50057 (eval "$ac_link") 2>conftest.er1
50059 grep -v '^ *+' conftest.er1 >conftest.err
50061 cat conftest.err >&5
50062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50063 (exit $ac_status); } && {
50064 test -z "$ac_c_werror_flag" ||
50065 test ! -s conftest.err
50066 } && test -s conftest$ac_exeext && {
50067 test "$cross_compiling" = yes ||
50068 $as_test_x conftest$ac_exeext
50070 ac_cv_search_setsockopt=$ac_res
50072 $as_echo "$as_me: failed program was:" >&5
50073 sed 's/^/| /' conftest.$ac_ext >&5
50078 rm -rf conftest.dSYM
50079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50081 if test "${ac_cv_search_setsockopt+set}" = set; then
50085 if test "${ac_cv_search_setsockopt+set}" = set; then
50088 ac_cv_search_setsockopt=no
50090 rm conftest.$ac_ext
50091 LIBS=$ac_func_search_save_LIBS
50093 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
50094 $as_echo "$ac_cv_search_setsockopt" >&6; }
50095 ac_res=$ac_cv_search_setsockopt
50096 if test "$ac_res" != no; then
50097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50103 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
50104 $as_echo_n "checking for library containing setsockopt... " >&6; }
50105 if test "${ac_cv_search_setsockopt+set}" = set; then
50106 $as_echo_n "(cached) " >&6
50108 ac_func_search_save_LIBS=$LIBS
50109 cat >conftest.$ac_ext <<_ACEOF
50112 cat confdefs.h >>conftest.$ac_ext
50113 cat >>conftest.$ac_ext <<_ACEOF
50114 /* end confdefs.h. */
50116 /* Override any GCC internal prototype to avoid an error.
50117 Use char because int might match the return type of a GCC
50118 builtin and then its argument prototype would still apply. */
50122 char setsockopt ();
50126 return setsockopt ();
50131 for ac_lib in '' nsl; do
50132 if test -z "$ac_lib"; then
50133 ac_res="none required"
50136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
50138 rm -f conftest.$ac_objext conftest$ac_exeext
50139 if { (ac_try="$ac_link"
50140 case "(($ac_try" in
50141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50142 *) ac_try_echo=$ac_try;;
50144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50145 $as_echo "$ac_try_echo") >&5
50146 (eval "$ac_link") 2>conftest.er1
50148 grep -v '^ *+' conftest.er1 >conftest.err
50150 cat conftest.err >&5
50151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50152 (exit $ac_status); } && {
50153 test -z "$ac_c_werror_flag" ||
50154 test ! -s conftest.err
50155 } && test -s conftest$ac_exeext && {
50156 test "$cross_compiling" = yes ||
50157 $as_test_x conftest$ac_exeext
50159 ac_cv_search_setsockopt=$ac_res
50161 $as_echo "$as_me: failed program was:" >&5
50162 sed 's/^/| /' conftest.$ac_ext >&5
50167 rm -rf conftest.dSYM
50168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50170 if test "${ac_cv_search_setsockopt+set}" = set; then
50174 if test "${ac_cv_search_setsockopt+set}" = set; then
50177 ac_cv_search_setsockopt=no
50179 rm conftest.$ac_ext
50180 LIBS=$ac_func_search_save_LIBS
50182 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
50183 $as_echo "$ac_cv_search_setsockopt" >&6; }
50184 ac_res=$ac_cv_search_setsockopt
50185 if test "$ac_res" != no; then
50186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50191 case "$ac_cv_search_setsockopt" in
50192 -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
50198 if test $ac_cv_header_sys_mtio_h = yes; then
50199 { $as_echo "$as_me:$LINENO: checking for remote tape header files" >&5
50200 $as_echo_n "checking for remote tape header files... " >&6; }
50201 if test "${pu_cv_header_rmt+set}" = set; then
50202 $as_echo_n "(cached) " >&6
50204 cat >conftest.$ac_ext <<_ACEOF
50207 cat confdefs.h >>conftest.$ac_ext
50208 cat >>conftest.$ac_ext <<_ACEOF
50209 /* end confdefs.h. */
50212 # include <sgtty.h>
50214 #include <sys/socket.h>
50216 if { (ac_try="$ac_cpp conftest.$ac_ext"
50217 case "(($ac_try" in
50218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50219 *) ac_try_echo=$ac_try;;
50221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50222 $as_echo "$ac_try_echo") >&5
50223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50225 grep -v '^ *+' conftest.er1 >conftest.err
50227 cat conftest.err >&5
50228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50229 (exit $ac_status); } >/dev/null && {
50230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50231 test ! -s conftest.err
50233 pu_cv_header_rmt=yes
50235 $as_echo "$as_me: failed program was:" >&5
50236 sed 's/^/| /' conftest.$ac_ext >&5
50238 pu_cv_header_rmt=no
50241 rm -f conftest.err conftest.$ac_ext
50243 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
50244 $as_echo "$pu_cv_header_rmt" >&6; }
50245 test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
50251 for ac_header in sys/mtio.h
50253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
50256 $as_echo_n "checking for $ac_header... " >&6; }
50257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50258 $as_echo_n "(cached) " >&6
50260 ac_res=`eval 'as_val=${'$as_ac_Header'}
50261 $as_echo "$as_val"'`
50262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50263 $as_echo "$ac_res" >&6; }
50265 # Is the header compilable?
50266 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
50267 $as_echo_n "checking $ac_header usability... " >&6; }
50268 cat >conftest.$ac_ext <<_ACEOF
50271 cat confdefs.h >>conftest.$ac_ext
50272 cat >>conftest.$ac_ext <<_ACEOF
50273 /* end confdefs.h. */
50274 $ac_includes_default
50275 #include <$ac_header>
50277 rm -f conftest.$ac_objext
50278 if { (ac_try="$ac_compile"
50279 case "(($ac_try" in
50280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50281 *) ac_try_echo=$ac_try;;
50283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50284 $as_echo "$ac_try_echo") >&5
50285 (eval "$ac_compile") 2>conftest.er1
50287 grep -v '^ *+' conftest.er1 >conftest.err
50289 cat conftest.err >&5
50290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50291 (exit $ac_status); } && {
50292 test -z "$ac_c_werror_flag" ||
50293 test ! -s conftest.err
50294 } && test -s conftest.$ac_objext; then
50295 ac_header_compiler=yes
50297 $as_echo "$as_me: failed program was:" >&5
50298 sed 's/^/| /' conftest.$ac_ext >&5
50300 ac_header_compiler=no
50303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50305 $as_echo "$ac_header_compiler" >&6; }
50307 # Is the header present?
50308 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
50309 $as_echo_n "checking $ac_header presence... " >&6; }
50310 cat >conftest.$ac_ext <<_ACEOF
50313 cat confdefs.h >>conftest.$ac_ext
50314 cat >>conftest.$ac_ext <<_ACEOF
50315 /* end confdefs.h. */
50316 #include <$ac_header>
50318 if { (ac_try="$ac_cpp conftest.$ac_ext"
50319 case "(($ac_try" in
50320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50321 *) ac_try_echo=$ac_try;;
50323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50324 $as_echo "$ac_try_echo") >&5
50325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50327 grep -v '^ *+' conftest.er1 >conftest.err
50329 cat conftest.err >&5
50330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50331 (exit $ac_status); } >/dev/null && {
50332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50333 test ! -s conftest.err
50335 ac_header_preproc=yes
50337 $as_echo "$as_me: failed program was:" >&5
50338 sed 's/^/| /' conftest.$ac_ext >&5
50340 ac_header_preproc=no
50343 rm -f conftest.err conftest.$ac_ext
50344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50345 $as_echo "$ac_header_preproc" >&6; }
50347 # So? What about this header?
50348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50351 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50354 ac_header_preproc=yes
50357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50358 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50360 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50362 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50364 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50368 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50370 ## ------------------------------ ##
50371 ## Report this to bug-tar@gnu.org ##
50372 ## ------------------------------ ##
50374 ) | sed "s/^/$as_me: WARNING: /" >&2
50377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
50378 $as_echo_n "checking for $ac_header... " >&6; }
50379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50380 $as_echo_n "(cached) " >&6
50382 eval "$as_ac_Header=\$ac_header_preproc"
50384 ac_res=`eval 'as_val=${'$as_ac_Header'}
50385 $as_echo "$as_val"'`
50386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50387 $as_echo "$ac_res" >&6; }
50390 as_val=`eval 'as_val=${'$as_ac_Header'}
50391 $as_echo "$as_val"'`
50392 if test "x$as_val" = x""yes; then
50393 cat >>confdefs.h <<_ACEOF
50394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50401 { $as_echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
50402 $as_echo_n "checking which ioctl field to test for reversed bytes... " >&6; }
50403 if test "${pu_cv_header_mtio_check_field+set}" = set; then
50404 $as_echo_n "(cached) " >&6
50406 cat >conftest.$ac_ext <<_ACEOF
50409 cat confdefs.h >>conftest.$ac_ext
50410 cat >>conftest.$ac_ext <<_ACEOF
50411 /* end confdefs.h. */
50412 #include <sys/mtio.h>
50415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50416 $EGREP "mt_model" >/dev/null 2>&1; then
50417 pu_cv_header_mtio_check_field=mt_model
50419 pu_cv_header_mtio_check_field=mt_type
50424 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
50425 $as_echo "$pu_cv_header_mtio_check_field" >&6; }
50427 cat >>confdefs.h <<_ACEOF
50428 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
50434 if test "x$DEFAULT_RMT_DIR" != x; then
50435 DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
50437 DEFAULT_RMT_DIR='$(libexecdir)'
50440 { $as_echo "$as_me:$LINENO: checking whether to build rmt" >&5
50441 $as_echo_n "checking whether to build rmt... " >&6; }
50443 # Check whether --with-rmt was given.
50444 if test "${with_rmt+set}" = set; then
50445 withval=$with_rmt; case $withval in
50446 yes|no) { { $as_echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
50447 $as_echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
50448 { (exit 1); exit 1; }; };;
50449 /*) DEFAULT_RMT_COMMAND=$withval
50450 { $as_echo "$as_me:$LINENO: result: no, use $withval instead" >&5
50451 $as_echo "no, use $withval instead" >&6; };;
50452 *) { { $as_echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
50453 $as_echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
50454 { (exit 1); exit 1; }; };;
50457 { $as_echo "$as_me:$LINENO: result: yes" >&5
50458 $as_echo "yes" >&6; }
50460 if test "$PU_RMT_PROG" = ""; then
50461 { $as_echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
50462 $as_echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
50468 if test "x$DEFAULT_RMT_COMMAND" != x; then
50470 cat >>confdefs.h <<_ACEOF
50471 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
50527 for ac_header in sys/buf.h
50529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
50531 $as_echo_n "checking for $ac_header... " >&6; }
50532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50533 $as_echo_n "(cached) " >&6
50535 cat >conftest.$ac_ext <<_ACEOF
50538 cat confdefs.h >>conftest.$ac_ext
50539 cat >>conftest.$ac_ext <<_ACEOF
50540 /* end confdefs.h. */
50541 #if HAVE_SYS_PARAM_H
50542 #include <sys/param.h>
50545 #include <$ac_header>
50547 rm -f conftest.$ac_objext
50548 if { (ac_try="$ac_compile"
50549 case "(($ac_try" in
50550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50551 *) ac_try_echo=$ac_try;;
50553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50554 $as_echo "$ac_try_echo") >&5
50555 (eval "$ac_compile") 2>conftest.er1
50557 grep -v '^ *+' conftest.er1 >conftest.err
50559 cat conftest.err >&5
50560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50561 (exit $ac_status); } && {
50562 test -z "$ac_c_werror_flag" ||
50563 test ! -s conftest.err
50564 } && test -s conftest.$ac_objext; then
50565 eval "$as_ac_Header=yes"
50567 $as_echo "$as_me: failed program was:" >&5
50568 sed 's/^/| /' conftest.$ac_ext >&5
50570 eval "$as_ac_Header=no"
50573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50575 ac_res=`eval 'as_val=${'$as_ac_Header'}
50576 $as_echo "$as_val"'`
50577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50578 $as_echo "$ac_res" >&6; }
50579 as_val=`eval 'as_val=${'$as_ac_Header'}
50580 $as_echo "$as_val"'`
50581 if test "x$as_val" = x""yes; then
50582 cat >>confdefs.h <<_ACEOF
50583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50593 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
50594 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
50595 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
50596 $as_echo_n "(cached) " >&6
50598 cat >conftest.$ac_ext <<_ACEOF
50601 cat confdefs.h >>conftest.$ac_ext
50602 cat >>conftest.$ac_ext <<_ACEOF
50603 /* end confdefs.h. */
50604 $ac_includes_default
50608 static struct stat ac_aggr;
50609 if (ac_aggr.st_blksize)
50615 rm -f conftest.$ac_objext
50616 if { (ac_try="$ac_compile"
50617 case "(($ac_try" in
50618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50619 *) ac_try_echo=$ac_try;;
50621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50622 $as_echo "$ac_try_echo") >&5
50623 (eval "$ac_compile") 2>conftest.er1
50625 grep -v '^ *+' conftest.er1 >conftest.err
50627 cat conftest.err >&5
50628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50629 (exit $ac_status); } && {
50630 test -z "$ac_c_werror_flag" ||
50631 test ! -s conftest.err
50632 } && test -s conftest.$ac_objext; then
50633 ac_cv_member_struct_stat_st_blksize=yes
50635 $as_echo "$as_me: failed program was:" >&5
50636 sed 's/^/| /' conftest.$ac_ext >&5
50638 cat >conftest.$ac_ext <<_ACEOF
50641 cat confdefs.h >>conftest.$ac_ext
50642 cat >>conftest.$ac_ext <<_ACEOF
50643 /* end confdefs.h. */
50644 $ac_includes_default
50648 static struct stat ac_aggr;
50649 if (sizeof ac_aggr.st_blksize)
50655 rm -f conftest.$ac_objext
50656 if { (ac_try="$ac_compile"
50657 case "(($ac_try" in
50658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50659 *) ac_try_echo=$ac_try;;
50661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50662 $as_echo "$ac_try_echo") >&5
50663 (eval "$ac_compile") 2>conftest.er1
50665 grep -v '^ *+' conftest.er1 >conftest.err
50667 cat conftest.err >&5
50668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50669 (exit $ac_status); } && {
50670 test -z "$ac_c_werror_flag" ||
50671 test ! -s conftest.err
50672 } && test -s conftest.$ac_objext; then
50673 ac_cv_member_struct_stat_st_blksize=yes
50675 $as_echo "$as_me: failed program was:" >&5
50676 sed 's/^/| /' conftest.$ac_ext >&5
50678 ac_cv_member_struct_stat_st_blksize=no
50681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50686 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
50687 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
50688 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
50690 cat >>confdefs.h <<_ACEOF
50691 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
50712 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
50713 $as_echo_n "checking for library containing gethostbyname... " >&6; }
50714 if test "${ac_cv_search_gethostbyname+set}" = set; then
50715 $as_echo_n "(cached) " >&6
50717 ac_func_search_save_LIBS=$LIBS
50718 cat >conftest.$ac_ext <<_ACEOF
50721 cat confdefs.h >>conftest.$ac_ext
50722 cat >>conftest.$ac_ext <<_ACEOF
50723 /* end confdefs.h. */
50725 /* Override any GCC internal prototype to avoid an error.
50726 Use char because int might match the return type of a GCC
50727 builtin and then its argument prototype would still apply. */
50731 char gethostbyname ();
50735 return gethostbyname ();
50740 for ac_lib in '' nsl; do
50741 if test -z "$ac_lib"; then
50742 ac_res="none required"
50745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
50747 rm -f conftest.$ac_objext conftest$ac_exeext
50748 if { (ac_try="$ac_link"
50749 case "(($ac_try" in
50750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50751 *) ac_try_echo=$ac_try;;
50753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50754 $as_echo "$ac_try_echo") >&5
50755 (eval "$ac_link") 2>conftest.er1
50757 grep -v '^ *+' conftest.er1 >conftest.err
50759 cat conftest.err >&5
50760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50761 (exit $ac_status); } && {
50762 test -z "$ac_c_werror_flag" ||
50763 test ! -s conftest.err
50764 } && test -s conftest$ac_exeext && {
50765 test "$cross_compiling" = yes ||
50766 $as_test_x conftest$ac_exeext
50768 ac_cv_search_gethostbyname=$ac_res
50770 $as_echo "$as_me: failed program was:" >&5
50771 sed 's/^/| /' conftest.$ac_ext >&5
50776 rm -rf conftest.dSYM
50777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50779 if test "${ac_cv_search_gethostbyname+set}" = set; then
50783 if test "${ac_cv_search_gethostbyname+set}" = set; then
50786 ac_cv_search_gethostbyname=no
50788 rm conftest.$ac_ext
50789 LIBS=$ac_func_search_save_LIBS
50791 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
50792 $as_echo "$ac_cv_search_gethostbyname" >&6; }
50793 ac_res=$ac_cv_search_gethostbyname
50794 if test "$ac_res" != no; then
50795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50824 { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
50825 $as_echo_n "checking whether getgrgid is declared... " >&6; }
50826 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
50827 $as_echo_n "(cached) " >&6
50829 cat >conftest.$ac_ext <<_ACEOF
50832 cat confdefs.h >>conftest.$ac_ext
50833 cat >>conftest.$ac_ext <<_ACEOF
50834 /* end confdefs.h. */
50848 rm -f conftest.$ac_objext
50849 if { (ac_try="$ac_compile"
50850 case "(($ac_try" in
50851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50852 *) ac_try_echo=$ac_try;;
50854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50855 $as_echo "$ac_try_echo") >&5
50856 (eval "$ac_compile") 2>conftest.er1
50858 grep -v '^ *+' conftest.er1 >conftest.err
50860 cat conftest.err >&5
50861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50862 (exit $ac_status); } && {
50863 test -z "$ac_c_werror_flag" ||
50864 test ! -s conftest.err
50865 } && test -s conftest.$ac_objext; then
50866 ac_cv_have_decl_getgrgid=yes
50868 $as_echo "$as_me: failed program was:" >&5
50869 sed 's/^/| /' conftest.$ac_ext >&5
50871 ac_cv_have_decl_getgrgid=no
50874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50876 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
50877 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
50878 if test "x$ac_cv_have_decl_getgrgid" = x""yes; then
50880 cat >>confdefs.h <<_ACEOF
50881 #define HAVE_DECL_GETGRGID 1
50886 cat >>confdefs.h <<_ACEOF
50887 #define HAVE_DECL_GETGRGID 0
50894 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
50895 $as_echo_n "checking whether getpwuid is declared... " >&6; }
50896 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
50897 $as_echo_n "(cached) " >&6
50899 cat >conftest.$ac_ext <<_ACEOF
50902 cat confdefs.h >>conftest.$ac_ext
50903 cat >>conftest.$ac_ext <<_ACEOF
50904 /* end confdefs.h. */
50918 rm -f conftest.$ac_objext
50919 if { (ac_try="$ac_compile"
50920 case "(($ac_try" in
50921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50922 *) ac_try_echo=$ac_try;;
50924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50925 $as_echo "$ac_try_echo") >&5
50926 (eval "$ac_compile") 2>conftest.er1
50928 grep -v '^ *+' conftest.er1 >conftest.err
50930 cat conftest.err >&5
50931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50932 (exit $ac_status); } && {
50933 test -z "$ac_c_werror_flag" ||
50934 test ! -s conftest.err
50935 } && test -s conftest.$ac_objext; then
50936 ac_cv_have_decl_getpwuid=yes
50938 $as_echo "$as_me: failed program was:" >&5
50939 sed 's/^/| /' conftest.$ac_ext >&5
50941 ac_cv_have_decl_getpwuid=no
50944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
50947 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
50948 if test "x$ac_cv_have_decl_getpwuid" = x""yes; then
50950 cat >>confdefs.h <<_ACEOF
50951 #define HAVE_DECL_GETPWUID 1
50956 cat >>confdefs.h <<_ACEOF
50957 #define HAVE_DECL_GETPWUID 0
50964 { $as_echo "$as_me:$LINENO: checking whether time is declared" >&5
50965 $as_echo_n "checking whether time is declared... " >&6; }
50966 if test "${ac_cv_have_decl_time+set}" = set; then
50967 $as_echo_n "(cached) " >&6
50969 cat >conftest.$ac_ext <<_ACEOF
50972 cat confdefs.h >>conftest.$ac_ext
50973 cat >>conftest.$ac_ext <<_ACEOF
50974 /* end confdefs.h. */
50988 rm -f conftest.$ac_objext
50989 if { (ac_try="$ac_compile"
50990 case "(($ac_try" in
50991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50992 *) ac_try_echo=$ac_try;;
50994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50995 $as_echo "$ac_try_echo") >&5
50996 (eval "$ac_compile") 2>conftest.er1
50998 grep -v '^ *+' conftest.er1 >conftest.err
51000 cat conftest.err >&5
51001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51002 (exit $ac_status); } && {
51003 test -z "$ac_c_werror_flag" ||
51004 test ! -s conftest.err
51005 } && test -s conftest.$ac_objext; then
51006 ac_cv_have_decl_time=yes
51008 $as_echo "$as_me: failed program was:" >&5
51009 sed 's/^/| /' conftest.$ac_ext >&5
51011 ac_cv_have_decl_time=no
51014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51016 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
51017 $as_echo "$ac_cv_have_decl_time" >&6; }
51018 if test "x$ac_cv_have_decl_time" = x""yes; then
51020 cat >>confdefs.h <<_ACEOF
51021 #define HAVE_DECL_TIME 1
51026 cat >>confdefs.h <<_ACEOF
51027 #define HAVE_DECL_TIME 0
51036 for ac_func in waitpid
51038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51039 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51040 $as_echo_n "checking for $ac_func... " >&6; }
51041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51042 $as_echo_n "(cached) " >&6
51044 cat >conftest.$ac_ext <<_ACEOF
51047 cat confdefs.h >>conftest.$ac_ext
51048 cat >>conftest.$ac_ext <<_ACEOF
51049 /* end confdefs.h. */
51050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51052 #define $ac_func innocuous_$ac_func
51054 /* System header to define __stub macros and hopefully few prototypes,
51055 which can conflict with char $ac_func (); below.
51056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51057 <limits.h> exists even on freestanding compilers. */
51060 # include <limits.h>
51062 # include <assert.h>
51067 /* Override any GCC internal prototype to avoid an error.
51068 Use char because int might match the return type of a GCC
51069 builtin and then its argument prototype would still apply. */
51074 /* The GNU C library defines this for functions which it implements
51075 to always fail with ENOSYS. Some functions are actually named
51076 something starting with __ and the normal name is an alias. */
51077 #if defined __stub_$ac_func || defined __stub___$ac_func
51084 return $ac_func ();
51089 rm -f conftest.$ac_objext conftest$ac_exeext
51090 if { (ac_try="$ac_link"
51091 case "(($ac_try" in
51092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51093 *) ac_try_echo=$ac_try;;
51095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51096 $as_echo "$ac_try_echo") >&5
51097 (eval "$ac_link") 2>conftest.er1
51099 grep -v '^ *+' conftest.er1 >conftest.err
51101 cat conftest.err >&5
51102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51103 (exit $ac_status); } && {
51104 test -z "$ac_c_werror_flag" ||
51105 test ! -s conftest.err
51106 } && test -s conftest$ac_exeext && {
51107 test "$cross_compiling" = yes ||
51108 $as_test_x conftest$ac_exeext
51110 eval "$as_ac_var=yes"
51112 $as_echo "$as_me: failed program was:" >&5
51113 sed 's/^/| /' conftest.$ac_ext >&5
51115 eval "$as_ac_var=no"
51118 rm -rf conftest.dSYM
51119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51120 conftest$ac_exeext conftest.$ac_ext
51122 ac_res=`eval 'as_val=${'$as_ac_var'}
51123 $as_echo "$as_val"'`
51124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51125 $as_echo "$ac_res" >&6; }
51126 as_val=`eval 'as_val=${'$as_ac_var'}
51127 $as_echo "$as_val"'`
51128 if test "x$as_val" = x""yes; then
51129 cat >>confdefs.h <<_ACEOF
51130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51134 case " $LIBOBJS " in
51135 *" $ac_func.$ac_objext "* ) ;;
51136 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51145 { $as_echo "$as_me:$LINENO: checking for remote shell" >&5
51146 $as_echo_n "checking for remote shell... " >&6; }
51147 if test "${tar_cv_path_RSH+set}" = set; then
51148 $as_echo_n "(cached) " >&6
51150 if test -n "$RSH"; then
51151 tar_cv_path_RSH=$RSH
51154 for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
51155 /usr/bin/nsh /usr/bin/rcmd
51157 # Prefer a non-symlink rsh to a symlink one, so that binaries built
51158 # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
51159 # will run on AIX 4.3.0, which has only /usr/bin/rsh.
51160 if test -f $ac_file; then
51161 if (test -h $ac_file) 2>/dev/null; then
51162 test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
51164 tar_cv_path_RSH=$ac_file
51171 { $as_echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
51172 $as_echo "$tar_cv_path_RSH" >&6; }
51173 if test $tar_cv_path_RSH = no; then
51175 for ac_header in netdb.h
51177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51180 $as_echo_n "checking for $ac_header... " >&6; }
51181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51182 $as_echo_n "(cached) " >&6
51184 ac_res=`eval 'as_val=${'$as_ac_Header'}
51185 $as_echo "$as_val"'`
51186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51187 $as_echo "$ac_res" >&6; }
51189 # Is the header compilable?
51190 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51191 $as_echo_n "checking $ac_header usability... " >&6; }
51192 cat >conftest.$ac_ext <<_ACEOF
51195 cat confdefs.h >>conftest.$ac_ext
51196 cat >>conftest.$ac_ext <<_ACEOF
51197 /* end confdefs.h. */
51198 $ac_includes_default
51199 #include <$ac_header>
51201 rm -f conftest.$ac_objext
51202 if { (ac_try="$ac_compile"
51203 case "(($ac_try" in
51204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51205 *) ac_try_echo=$ac_try;;
51207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51208 $as_echo "$ac_try_echo") >&5
51209 (eval "$ac_compile") 2>conftest.er1
51211 grep -v '^ *+' conftest.er1 >conftest.err
51213 cat conftest.err >&5
51214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51215 (exit $ac_status); } && {
51216 test -z "$ac_c_werror_flag" ||
51217 test ! -s conftest.err
51218 } && test -s conftest.$ac_objext; then
51219 ac_header_compiler=yes
51221 $as_echo "$as_me: failed program was:" >&5
51222 sed 's/^/| /' conftest.$ac_ext >&5
51224 ac_header_compiler=no
51227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51229 $as_echo "$ac_header_compiler" >&6; }
51231 # Is the header present?
51232 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51233 $as_echo_n "checking $ac_header presence... " >&6; }
51234 cat >conftest.$ac_ext <<_ACEOF
51237 cat confdefs.h >>conftest.$ac_ext
51238 cat >>conftest.$ac_ext <<_ACEOF
51239 /* end confdefs.h. */
51240 #include <$ac_header>
51242 if { (ac_try="$ac_cpp conftest.$ac_ext"
51243 case "(($ac_try" in
51244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51245 *) ac_try_echo=$ac_try;;
51247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51248 $as_echo "$ac_try_echo") >&5
51249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51251 grep -v '^ *+' conftest.er1 >conftest.err
51253 cat conftest.err >&5
51254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51255 (exit $ac_status); } >/dev/null && {
51256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51257 test ! -s conftest.err
51259 ac_header_preproc=yes
51261 $as_echo "$as_me: failed program was:" >&5
51262 sed 's/^/| /' conftest.$ac_ext >&5
51264 ac_header_preproc=no
51267 rm -f conftest.err conftest.$ac_ext
51268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51269 $as_echo "$ac_header_preproc" >&6; }
51271 # So? What about this header?
51272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51275 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51278 ac_header_preproc=yes
51281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51282 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51284 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51286 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51288 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51292 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51294 ## ------------------------------ ##
51295 ## Report this to bug-tar@gnu.org ##
51296 ## ------------------------------ ##
51298 ) | sed "s/^/$as_me: WARNING: /" >&2
51301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51302 $as_echo_n "checking for $ac_header... " >&6; }
51303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51304 $as_echo_n "(cached) " >&6
51306 eval "$as_ac_Header=\$ac_header_preproc"
51308 ac_res=`eval 'as_val=${'$as_ac_Header'}
51309 $as_echo "$as_val"'`
51310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51311 $as_echo "$ac_res" >&6; }
51314 as_val=`eval 'as_val=${'$as_ac_Header'}
51315 $as_echo "$as_val"'`
51316 if test "x$as_val" = x""yes; then
51317 cat >>confdefs.h <<_ACEOF
51318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51327 cat >>confdefs.h <<_ACEOF
51328 #define REMOTE_SHELL "$tar_cv_path_RSH"
51337 # Check whether --with-compress was given.
51338 if test "${with_compress+set}" = set; then
51339 withval=$with_compress; tar_cv_compressor_compress=${withval}
51341 tar_cv_compressor_compress=compress
51345 cat >>confdefs.h <<_ACEOF
51346 #define COMPRESS_PROGRAM "$tar_cv_compressor_compress"
51353 # Check whether --with-gzip was given.
51354 if test "${with_gzip+set}" = set; then
51355 withval=$with_gzip; tar_cv_compressor_gzip=${withval}
51357 tar_cv_compressor_gzip=gzip
51361 cat >>confdefs.h <<_ACEOF
51362 #define GZIP_PROGRAM "$tar_cv_compressor_gzip"
51369 # Check whether --with-bzip2 was given.
51370 if test "${with_bzip2+set}" = set; then
51371 withval=$with_bzip2; tar_cv_compressor_bzip2=${withval}
51373 tar_cv_compressor_bzip2=bzip2
51377 cat >>confdefs.h <<_ACEOF
51378 #define BZIP2_PROGRAM "$tar_cv_compressor_bzip2"
51385 # Check whether --with-lzip was given.
51386 if test "${with_lzip+set}" = set; then
51387 withval=$with_lzip; tar_cv_compressor_lzip=${withval}
51389 tar_cv_compressor_lzip=lzip
51393 cat >>confdefs.h <<_ACEOF
51394 #define LZIP_PROGRAM "$tar_cv_compressor_lzip"
51401 # Check whether --with-lzma was given.
51402 if test "${with_lzma+set}" = set; then
51403 withval=$with_lzma; tar_cv_compressor_lzma=${withval}
51405 tar_cv_compressor_lzma=lzma
51409 cat >>confdefs.h <<_ACEOF
51410 #define LZMA_PROGRAM "$tar_cv_compressor_lzma"
51417 # Check whether --with-lzop was given.
51418 if test "${with_lzop+set}" = set; then
51419 withval=$with_lzop; tar_cv_compressor_lzop=${withval}
51421 tar_cv_compressor_lzop=lzop
51425 cat >>confdefs.h <<_ACEOF
51426 #define LZOP_PROGRAM "$tar_cv_compressor_lzop"
51433 # Check whether --with-xz was given.
51434 if test "${with_xz+set}" = set; then
51435 withval=$with_xz; tar_cv_compressor_xz=${withval}
51437 tar_cv_compressor_xz=xz
51441 cat >>confdefs.h <<_ACEOF
51442 #define XZ_PROGRAM "$tar_cv_compressor_xz"
51446 { $as_echo "$as_me:$LINENO: checking for default archive format" >&5
51447 $as_echo_n "checking for default archive format... " >&6; }
51451 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
51452 DEFAULT_ARCHIVE_FORMAT="GNU"
51454 case $DEFAULT_ARCHIVE_FORMAT in
51455 V7|OLDGNU|USTAR|POSIX|GNU) ;;
51456 *) { { $as_echo "$as_me:$LINENO: error: Invalid format name" >&5
51457 $as_echo "$as_me: error: Invalid format name" >&2;}
51458 { (exit 1); exit 1; }; };;
51461 cat >>confdefs.h <<_ACEOF
51462 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
51465 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
51466 $as_echo "$DEFAULT_ARCHIVE_FORMAT" >&6; }
51468 { $as_echo "$as_me:$LINENO: checking for default archive" >&5
51469 $as_echo_n "checking for default archive... " >&6; }
51472 if test -z "$DEFAULT_ARCHIVE"; then
51475 if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
51476 { $as_echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
51477 $as_echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
51479 # FIXME: Look for DEFTAPE in <sys/mtio.h>.
51480 # FIXME: Let DEVICE_PREFIX be configured from the environment.
51481 # FIXME: Rearrange, here.
51482 case $DEFAULT_ARCHIVE in
51485 cat >>confdefs.h <<\_ACEOF
51486 #define DENSITY_LETTER 1
51489 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
51492 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
51498 case "$device_prefix" in
51501 cat >>confdefs.h <<_ACEOF
51502 #define DEVICE_PREFIX "$device_prefix"
51509 cat >>confdefs.h <<_ACEOF
51510 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
51513 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
51514 $as_echo "$DEFAULT_ARCHIVE" >&6; }
51517 { $as_echo "$as_me:$LINENO: checking for default blocking" >&5
51518 $as_echo_n "checking for default blocking... " >&6; }
51519 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
51521 cat >>confdefs.h <<_ACEOF
51522 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
51525 { $as_echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
51526 $as_echo "$DEFAULT_BLOCKING" >&6; }
51528 { $as_echo "$as_me:$LINENO: checking for default quoting style" >&5
51529 $as_echo_n "checking for default quoting style... " >&6; }
51532 DEFAULT_QUOTING_STYLE="escape"
51535 case $DEFAULT_QUOTING_STYLE in
51536 literal|shell|shell-always|c|escape|locale|clocale) ;;
51537 *) { { $as_echo "$as_me:$LINENO: error: Invalid quoting style" >&5
51538 $as_echo "$as_me: error: Invalid quoting style" >&2;}
51539 { (exit 1); exit 1; }; };;
51541 { $as_echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
51542 $as_echo "$DEFAULT_QUOTING_STYLE" >&6; }
51543 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
51545 cat >>confdefs.h <<_ACEOF
51546 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
51552 if test "X$prefix" = "XNONE"; then
51553 acl_final_prefix="$ac_default_prefix"
51555 acl_final_prefix="$prefix"
51557 if test "X$exec_prefix" = "XNONE"; then
51558 acl_final_exec_prefix='${prefix}'
51560 acl_final_exec_prefix="$exec_prefix"
51562 acl_save_prefix="$prefix"
51563 prefix="$acl_final_prefix"
51564 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
51565 prefix="$acl_save_prefix"
51568 # Check whether --with-gnu-ld was given.
51569 if test "${with_gnu_ld+set}" = set; then
51570 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
51575 # Prepare PATH_SEPARATOR.
51576 # The user is always right.
51577 if test "${PATH_SEPARATOR+set}" != set; then
51578 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
51579 # contains only /bin. Note that ksh looks also at the FPATH variable,
51580 # so we have to set that as well for the test.
51582 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
51583 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
51584 || PATH_SEPARATOR=';'
51588 if test "$GCC" = yes; then
51589 # Check if gcc -print-prog-name=ld gives a path.
51590 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
51591 $as_echo_n "checking for ld used by GCC... " >&6; }
51594 # gcc leaves a trailing carriage return which upsets mingw
51595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
51597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
51600 # Accept absolute paths.
51601 [\\/]* | [A-Za-z]:[\\/]*)
51602 re_direlt='/[^/][^/]*/\.\./'
51603 # Canonicalize the path of ld
51604 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
51605 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
51606 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
51608 test -z "$LD" && LD="$ac_prog"
51611 # If it fails, then pretend we aren't using GCC.
51615 # If it is relative, then search for the first ld in PATH.
51616 with_gnu_ld=unknown
51619 elif test "$with_gnu_ld" = yes; then
51620 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
51621 $as_echo_n "checking for GNU ld... " >&6; }
51623 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
51624 $as_echo_n "checking for non-GNU ld... " >&6; }
51626 if test "${acl_cv_path_LD+set}" = set; then
51627 $as_echo_n "(cached) " >&6
51629 if test -z "$LD"; then
51630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
51631 for ac_dir in $PATH; do
51632 test -z "$ac_dir" && ac_dir=.
51633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
51634 acl_cv_path_LD="$ac_dir/$ac_prog"
51635 # Check to see if the program is GNU ld. I'd rather use --version,
51636 # but apparently some GNU ld's only accept -v.
51637 # Break only if it was the GNU/non-GNU ld that we prefer.
51638 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
51639 *GNU* | *'with BFD'*)
51640 test "$with_gnu_ld" != no && break ;;
51642 test "$with_gnu_ld" != yes && break ;;
51648 acl_cv_path_LD="$LD" # Let the user override the test with a path.
51652 LD="$acl_cv_path_LD"
51653 if test -n "$LD"; then
51654 { $as_echo "$as_me:$LINENO: result: $LD" >&5
51655 $as_echo "$LD" >&6; }
51657 { $as_echo "$as_me:$LINENO: result: no" >&5
51658 $as_echo "no" >&6; }
51660 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
51661 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
51662 { (exit 1); exit 1; }; }
51663 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
51664 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
51665 if test "${acl_cv_prog_gnu_ld+set}" = set; then
51666 $as_echo_n "(cached) " >&6
51668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
51669 case `$LD -v 2>&1 </dev/null` in
51670 *GNU* | *'with BFD'*)
51671 acl_cv_prog_gnu_ld=yes ;;
51673 acl_cv_prog_gnu_ld=no ;;
51676 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
51677 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
51678 with_gnu_ld=$acl_cv_prog_gnu_ld
51683 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
51684 $as_echo_n "checking for shared library run path origin... " >&6; }
51685 if test "${acl_cv_rpath+set}" = set; then
51686 $as_echo_n "(cached) " >&6
51689 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
51690 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
51692 rm -f ./conftest.sh
51696 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
51697 $as_echo "$acl_cv_rpath" >&6; }
51699 acl_libext="$acl_cv_libext"
51700 acl_shlibext="$acl_cv_shlibext"
51701 acl_libname_spec="$acl_cv_libname_spec"
51702 acl_library_names_spec="$acl_cv_library_names_spec"
51703 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
51704 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
51705 acl_hardcode_direct="$acl_cv_hardcode_direct"
51706 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
51707 # Check whether --enable-rpath was given.
51708 if test "${enable_rpath+set}" = set; then
51709 enableval=$enable_rpath; :
51721 { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
51722 $as_echo_n "checking for 64-bit host... " >&6; }
51723 if test "${gl_cv_solaris_64bit+set}" = set; then
51724 $as_echo_n "(cached) " >&6
51726 cat >conftest.$ac_ext <<_ACEOF
51729 cat confdefs.h >>conftest.$ac_ext
51730 cat >>conftest.$ac_ext <<_ACEOF
51731 /* end confdefs.h. */
51738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51739 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
51740 gl_cv_solaris_64bit=yes
51742 gl_cv_solaris_64bit=no
51748 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
51749 $as_echo "$gl_cv_solaris_64bit" >&6; }
51750 if test $gl_cv_solaris_64bit = yes; then
51751 acl_libdirstem=lib/64
51752 case "$host_cpu" in
51753 sparc*) acl_libdirstem2=lib/sparcv9 ;;
51754 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
51759 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
51760 if test -n "$searchpath"; then
51761 acl_save_IFS="${IFS= }"; IFS=":"
51762 for searchdir in $searchpath; do
51763 if test -d "$searchdir"; then
51764 case "$searchdir" in
51765 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
51767 # Better ignore directories of this form. They are misleading.
51769 *) searchdir=`cd "$searchdir" && pwd`
51770 case "$searchdir" in
51771 */lib64 ) acl_libdirstem=lib64 ;;
51776 IFS="$acl_save_IFS"
51780 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
51795 acl_save_prefix="$prefix"
51796 prefix="$acl_final_prefix"
51797 acl_save_exec_prefix="$exec_prefix"
51798 exec_prefix="$acl_final_exec_prefix"
51800 eval additional_includedir=\"$includedir\"
51801 eval additional_libdir=\"$libdir\"
51803 exec_prefix="$acl_save_exec_prefix"
51804 prefix="$acl_save_prefix"
51807 # Check whether --with-libiconv-prefix was given.
51808 if test "${with_libiconv_prefix+set}" = set; then
51809 withval=$with_libiconv_prefix;
51810 if test "X$withval" = "Xno"; then
51813 if test "X$withval" = "X"; then
51815 acl_save_prefix="$prefix"
51816 prefix="$acl_final_prefix"
51817 acl_save_exec_prefix="$exec_prefix"
51818 exec_prefix="$acl_final_exec_prefix"
51820 eval additional_includedir=\"$includedir\"
51821 eval additional_libdir=\"$libdir\"
51823 exec_prefix="$acl_save_exec_prefix"
51824 prefix="$acl_save_prefix"
51827 additional_includedir="$withval/include"
51828 additional_libdir="$withval/$acl_libdirstem"
51829 if test "$acl_libdirstem2" != "$acl_libdirstem" \
51830 && ! test -d "$withval/$acl_libdirstem"; then
51831 additional_libdir="$withval/$acl_libdirstem2"
51845 names_already_handled=
51846 names_next_round='iconv '
51847 while test -n "$names_next_round"; do
51848 names_this_round="$names_next_round"
51850 for name in $names_this_round; do
51852 for n in $names_already_handled; do
51853 if test "$n" = "$name"; then
51854 already_handled=yes
51858 if test -z "$already_handled"; then
51859 names_already_handled="$names_already_handled $name"
51860 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
51861 eval value=\"\$HAVE_LIB$uppername\"
51862 if test -n "$value"; then
51863 if test "$value" = yes; then
51864 eval value=\"\$LIB$uppername\"
51865 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
51866 eval value=\"\$LTLIB$uppername\"
51867 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
51876 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
51877 if test -n "$acl_shlibext"; then
51878 shrext=".$acl_shlibext" # typically: shrext=.so
51882 if test $use_additional = yes; then
51883 dir="$additional_libdir"
51884 if test -n "$acl_shlibext"; then
51885 if test -f "$dir/$libname$shrext"; then
51887 found_so="$dir/$libname$shrext"
51889 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
51890 ver=`(cd "$dir" && \
51891 for f in "$libname$shrext".*; do echo "$f"; done \
51892 | sed -e "s,^$libname$shrext\\\\.,," \
51893 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
51894 | sed 1q ) 2>/dev/null`
51895 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
51897 found_so="$dir/$libname$shrext.$ver"
51900 eval library_names=\"$acl_library_names_spec\"
51901 for f in $library_names; do
51902 if test -f "$dir/$f"; then
51911 if test "X$found_dir" = "X"; then
51912 if test -f "$dir/$libname.$acl_libext"; then
51914 found_a="$dir/$libname.$acl_libext"
51917 if test "X$found_dir" != "X"; then
51918 if test -f "$dir/$libname.la"; then
51919 found_la="$dir/$libname.la"
51923 if test "X$found_dir" = "X"; then
51924 for x in $LDFLAGS $LTLIBICONV; do
51926 acl_save_prefix="$prefix"
51927 prefix="$acl_final_prefix"
51928 acl_save_exec_prefix="$exec_prefix"
51929 exec_prefix="$acl_final_exec_prefix"
51931 exec_prefix="$acl_save_exec_prefix"
51932 prefix="$acl_save_prefix"
51936 dir=`echo "X$x" | sed -e 's/^X-L//'`
51937 if test -n "$acl_shlibext"; then
51938 if test -f "$dir/$libname$shrext"; then
51940 found_so="$dir/$libname$shrext"
51942 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
51943 ver=`(cd "$dir" && \
51944 for f in "$libname$shrext".*; do echo "$f"; done \
51945 | sed -e "s,^$libname$shrext\\\\.,," \
51946 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
51947 | sed 1q ) 2>/dev/null`
51948 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
51950 found_so="$dir/$libname$shrext.$ver"
51953 eval library_names=\"$acl_library_names_spec\"
51954 for f in $library_names; do
51955 if test -f "$dir/$f"; then
51964 if test "X$found_dir" = "X"; then
51965 if test -f "$dir/$libname.$acl_libext"; then
51967 found_a="$dir/$libname.$acl_libext"
51970 if test "X$found_dir" != "X"; then
51971 if test -f "$dir/$libname.la"; then
51972 found_la="$dir/$libname.la"
51977 if test "X$found_dir" != "X"; then
51982 if test "X$found_dir" != "X"; then
51983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
51984 if test "X$found_so" != "X"; then
51985 if test "$enable_rpath" = no \
51986 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
51987 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
51988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51991 for x in $ltrpathdirs; do
51992 if test "X$x" = "X$found_dir"; then
51997 if test -z "$haveit"; then
51998 ltrpathdirs="$ltrpathdirs $found_dir"
52000 if test "$acl_hardcode_direct" = yes; then
52001 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
52003 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
52004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
52006 for x in $rpathdirs; do
52007 if test "X$x" = "X$found_dir"; then
52012 if test -z "$haveit"; then
52013 rpathdirs="$rpathdirs $found_dir"
52017 for x in $LDFLAGS $LIBICONV; do
52019 acl_save_prefix="$prefix"
52020 prefix="$acl_final_prefix"
52021 acl_save_exec_prefix="$exec_prefix"
52022 exec_prefix="$acl_final_exec_prefix"
52024 exec_prefix="$acl_save_exec_prefix"
52025 prefix="$acl_save_prefix"
52027 if test "X$x" = "X-L$found_dir"; then
52032 if test -z "$haveit"; then
52033 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
52035 if test "$acl_hardcode_minus_L" != no; then
52036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
52038 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
52044 if test "X$found_a" != "X"; then
52045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
52047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
52050 additional_includedir=
52051 case "$found_dir" in
52052 */$acl_libdirstem | */$acl_libdirstem/)
52053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
52054 if test "$name" = 'iconv'; then
52055 LIBICONV_PREFIX="$basedir"
52057 additional_includedir="$basedir/include"
52059 */$acl_libdirstem2 | */$acl_libdirstem2/)
52060 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
52061 if test "$name" = 'iconv'; then
52062 LIBICONV_PREFIX="$basedir"
52064 additional_includedir="$basedir/include"
52067 if test "X$additional_includedir" != "X"; then
52068 if test "X$additional_includedir" != "X/usr/include"; then
52070 if test "X$additional_includedir" = "X/usr/local/include"; then
52071 if test -n "$GCC"; then
52073 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
52077 if test -z "$haveit"; then
52078 for x in $CPPFLAGS $INCICONV; do
52080 acl_save_prefix="$prefix"
52081 prefix="$acl_final_prefix"
52082 acl_save_exec_prefix="$exec_prefix"
52083 exec_prefix="$acl_final_exec_prefix"
52085 exec_prefix="$acl_save_exec_prefix"
52086 prefix="$acl_save_prefix"
52088 if test "X$x" = "X-I$additional_includedir"; then
52093 if test -z "$haveit"; then
52094 if test -d "$additional_includedir"; then
52095 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
52101 if test -n "$found_la"; then
52102 save_libdir="$libdir"
52103 case "$found_la" in
52104 */* | *\\*) . "$found_la" ;;
52105 *) . "./$found_la" ;;
52107 libdir="$save_libdir"
52108 for dep in $dependency_libs; do
52111 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
52112 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
52113 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
52115 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
52116 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
52117 if test -n "$GCC"; then
52119 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
52123 if test -z "$haveit"; then
52125 for x in $LDFLAGS $LIBICONV; do
52127 acl_save_prefix="$prefix"
52128 prefix="$acl_final_prefix"
52129 acl_save_exec_prefix="$exec_prefix"
52130 exec_prefix="$acl_final_exec_prefix"
52132 exec_prefix="$acl_save_exec_prefix"
52133 prefix="$acl_save_prefix"
52135 if test "X$x" = "X-L$additional_libdir"; then
52140 if test -z "$haveit"; then
52141 if test -d "$additional_libdir"; then
52142 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
52146 for x in $LDFLAGS $LTLIBICONV; do
52148 acl_save_prefix="$prefix"
52149 prefix="$acl_final_prefix"
52150 acl_save_exec_prefix="$exec_prefix"
52151 exec_prefix="$acl_final_exec_prefix"
52153 exec_prefix="$acl_save_exec_prefix"
52154 prefix="$acl_save_prefix"
52156 if test "X$x" = "X-L$additional_libdir"; then
52161 if test -z "$haveit"; then
52162 if test -d "$additional_libdir"; then
52163 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
52170 dir=`echo "X$dep" | sed -e 's/^X-R//'`
52171 if test "$enable_rpath" != no; then
52173 for x in $rpathdirs; do
52174 if test "X$x" = "X$dir"; then
52179 if test -z "$haveit"; then
52180 rpathdirs="$rpathdirs $dir"
52183 for x in $ltrpathdirs; do
52184 if test "X$x" = "X$dir"; then
52189 if test -z "$haveit"; then
52190 ltrpathdirs="$ltrpathdirs $dir"
52195 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
52198 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
52201 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
52202 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
52208 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
52209 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
52215 if test "X$rpathdirs" != "X"; then
52216 if test -n "$acl_hardcode_libdir_separator"; then
52218 for found_dir in $rpathdirs; do
52219 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
52221 acl_save_libdir="$libdir"
52223 eval flag=\"$acl_hardcode_libdir_flag_spec\"
52224 libdir="$acl_save_libdir"
52225 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
52227 for found_dir in $rpathdirs; do
52228 acl_save_libdir="$libdir"
52229 libdir="$found_dir"
52230 eval flag=\"$acl_hardcode_libdir_flag_spec\"
52231 libdir="$acl_save_libdir"
52232 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
52236 if test "X$ltrpathdirs" != "X"; then
52237 for found_dir in $ltrpathdirs; do
52238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
52253 am_save_CPPFLAGS="$CPPFLAGS"
52255 for element in $INCICONV; do
52257 for x in $CPPFLAGS; do
52259 acl_save_prefix="$prefix"
52260 prefix="$acl_final_prefix"
52261 acl_save_exec_prefix="$exec_prefix"
52262 exec_prefix="$acl_final_exec_prefix"
52264 exec_prefix="$acl_save_exec_prefix"
52265 prefix="$acl_save_prefix"
52267 if test "X$x" = "X$element"; then
52272 if test -z "$haveit"; then
52273 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
52278 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
52279 $as_echo_n "checking for iconv... " >&6; }
52280 if test "${am_cv_func_iconv+set}" = set; then
52281 $as_echo_n "(cached) " >&6
52284 am_cv_func_iconv="no, consider installing GNU libiconv"
52286 cat >conftest.$ac_ext <<_ACEOF
52289 cat confdefs.h >>conftest.$ac_ext
52290 cat >>conftest.$ac_ext <<_ACEOF
52291 /* end confdefs.h. */
52293 #include <stdlib.h>
52299 iconv_t cd = iconv_open("","");
52300 iconv(cd,NULL,NULL,NULL,NULL);
52306 rm -f conftest.$ac_objext conftest$ac_exeext
52307 if { (ac_try="$ac_link"
52308 case "(($ac_try" in
52309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52310 *) ac_try_echo=$ac_try;;
52312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52313 $as_echo "$ac_try_echo") >&5
52314 (eval "$ac_link") 2>conftest.er1
52316 grep -v '^ *+' conftest.er1 >conftest.err
52318 cat conftest.err >&5
52319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52320 (exit $ac_status); } && {
52321 test -z "$ac_c_werror_flag" ||
52322 test ! -s conftest.err
52323 } && test -s conftest$ac_exeext && {
52324 test "$cross_compiling" = yes ||
52325 $as_test_x conftest$ac_exeext
52327 am_cv_func_iconv=yes
52329 $as_echo "$as_me: failed program was:" >&5
52330 sed 's/^/| /' conftest.$ac_ext >&5
52335 rm -rf conftest.dSYM
52336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52337 conftest$ac_exeext conftest.$ac_ext
52338 if test "$am_cv_func_iconv" != yes; then
52339 am_save_LIBS="$LIBS"
52340 LIBS="$LIBS $LIBICONV"
52341 cat >conftest.$ac_ext <<_ACEOF
52344 cat confdefs.h >>conftest.$ac_ext
52345 cat >>conftest.$ac_ext <<_ACEOF
52346 /* end confdefs.h. */
52348 #include <stdlib.h>
52354 iconv_t cd = iconv_open("","");
52355 iconv(cd,NULL,NULL,NULL,NULL);
52361 rm -f conftest.$ac_objext conftest$ac_exeext
52362 if { (ac_try="$ac_link"
52363 case "(($ac_try" in
52364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52365 *) ac_try_echo=$ac_try;;
52367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52368 $as_echo "$ac_try_echo") >&5
52369 (eval "$ac_link") 2>conftest.er1
52371 grep -v '^ *+' conftest.er1 >conftest.err
52373 cat conftest.err >&5
52374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52375 (exit $ac_status); } && {
52376 test -z "$ac_c_werror_flag" ||
52377 test ! -s conftest.err
52378 } && test -s conftest$ac_exeext && {
52379 test "$cross_compiling" = yes ||
52380 $as_test_x conftest$ac_exeext
52382 am_cv_lib_iconv=yes
52383 am_cv_func_iconv=yes
52385 $as_echo "$as_me: failed program was:" >&5
52386 sed 's/^/| /' conftest.$ac_ext >&5
52391 rm -rf conftest.dSYM
52392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52393 conftest$ac_exeext conftest.$ac_ext
52394 LIBS="$am_save_LIBS"
52398 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
52399 $as_echo "$am_cv_func_iconv" >&6; }
52400 if test "$am_cv_func_iconv" = yes; then
52401 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
52402 $as_echo_n "checking for working iconv... " >&6; }
52403 if test "${am_cv_func_iconv_works+set}" = set; then
52404 $as_echo_n "(cached) " >&6
52407 am_save_LIBS="$LIBS"
52408 if test $am_cv_lib_iconv = yes; then
52409 LIBS="$LIBS $LIBICONV"
52411 if test "$cross_compiling" = yes; then
52414 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
52415 *) am_cv_func_iconv_works="guessing yes" ;;
52419 cat >conftest.$ac_ext <<_ACEOF
52422 cat confdefs.h >>conftest.$ac_ext
52423 cat >>conftest.$ac_ext <<_ACEOF
52424 /* end confdefs.h. */
52427 #include <string.h>
52430 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
52433 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
52434 if (cd_utf8_to_88591 != (iconv_t)(-1))
52436 static const char input[] = "\342\202\254"; /* EURO SIGN */
52438 const char *inptr = input;
52439 size_t inbytesleft = strlen (input);
52440 char *outptr = buf;
52441 size_t outbytesleft = sizeof (buf);
52442 size_t res = iconv (cd_utf8_to_88591,
52443 (char **) &inptr, &inbytesleft,
52444 &outptr, &outbytesleft);
52449 /* Test against Solaris 10 bug: Failures are not distinguishable from
52450 successful returns. */
52452 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
52453 if (cd_ascii_to_88591 != (iconv_t)(-1))
52455 static const char input[] = "\263";
52457 const char *inptr = input;
52458 size_t inbytesleft = strlen (input);
52459 char *outptr = buf;
52460 size_t outbytesleft = sizeof (buf);
52461 size_t res = iconv (cd_ascii_to_88591,
52462 (char **) &inptr, &inbytesleft,
52463 &outptr, &outbytesleft);
52468 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
52470 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
52471 if (cd_88591_to_utf8 != (iconv_t)(-1))
52473 static const char input[] = "\304";
52474 static char buf[2] = { (char)0xDE, (char)0xAD };
52475 const char *inptr = input;
52476 size_t inbytesleft = 1;
52477 char *outptr = buf;
52478 size_t outbytesleft = 1;
52479 size_t res = iconv (cd_88591_to_utf8,
52480 (char **) &inptr, &inbytesleft,
52481 &outptr, &outbytesleft);
52482 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
52486 #if 0 /* This bug could be worked around by the caller. */
52487 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
52489 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
52490 if (cd_88591_to_utf8 != (iconv_t)(-1))
52492 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
52494 const char *inptr = input;
52495 size_t inbytesleft = strlen (input);
52496 char *outptr = buf;
52497 size_t outbytesleft = sizeof (buf);
52498 size_t res = iconv (cd_88591_to_utf8,
52499 (char **) &inptr, &inbytesleft,
52500 &outptr, &outbytesleft);
52506 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
52508 if (/* Try standardized names. */
52509 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
52510 /* Try IRIX, OSF/1 names. */
52511 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
52512 /* Try AIX names. */
52513 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
52514 /* Try HP-UX names. */
52515 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
52520 rm -f conftest$ac_exeext
52521 if { (ac_try="$ac_link"
52522 case "(($ac_try" in
52523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52524 *) ac_try_echo=$ac_try;;
52526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52527 $as_echo "$ac_try_echo") >&5
52528 (eval "$ac_link") 2>&5
52530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52532 { (case "(($ac_try" in
52533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52534 *) ac_try_echo=$ac_try;;
52536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52537 $as_echo "$ac_try_echo") >&5
52538 (eval "$ac_try") 2>&5
52540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52541 (exit $ac_status); }; }; then
52542 am_cv_func_iconv_works=yes
52544 $as_echo "$as_me: program exited with status $ac_status" >&5
52545 $as_echo "$as_me: failed program was:" >&5
52546 sed 's/^/| /' conftest.$ac_ext >&5
52548 ( exit $ac_status )
52549 am_cv_func_iconv_works=no
52551 rm -rf conftest.dSYM
52552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52556 LIBS="$am_save_LIBS"
52559 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
52560 $as_echo "$am_cv_func_iconv_works" >&6; }
52561 case "$am_cv_func_iconv_works" in
52562 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
52563 *) am_func_iconv=yes ;;
52566 am_func_iconv=no am_cv_lib_iconv=no
52568 if test "$am_func_iconv" = yes; then
52570 cat >>confdefs.h <<\_ACEOF
52571 #define HAVE_ICONV 1
52575 if test "$am_cv_lib_iconv" = yes; then
52576 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
52577 $as_echo_n "checking how to link with libiconv... " >&6; }
52578 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
52579 $as_echo "$LIBICONV" >&6; }
52581 CPPFLAGS="$am_save_CPPFLAGS"
52588 if test "$am_cv_func_iconv" = yes; then
52589 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
52590 $as_echo_n "checking for iconv declaration... " >&6; }
52591 if test "${am_cv_proto_iconv+set}" = set; then
52592 $as_echo_n "(cached) " >&6
52595 cat >conftest.$ac_ext <<_ACEOF
52598 cat confdefs.h >>conftest.$ac_ext
52599 cat >>conftest.$ac_ext <<_ACEOF
52600 /* end confdefs.h. */
52602 #include <stdlib.h>
52608 #if defined(__STDC__) || defined(__cplusplus)
52609 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
52622 rm -f conftest.$ac_objext
52623 if { (ac_try="$ac_compile"
52624 case "(($ac_try" in
52625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52626 *) ac_try_echo=$ac_try;;
52628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52629 $as_echo "$ac_try_echo") >&5
52630 (eval "$ac_compile") 2>conftest.er1
52632 grep -v '^ *+' conftest.er1 >conftest.err
52634 cat conftest.err >&5
52635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52636 (exit $ac_status); } && {
52637 test -z "$ac_c_werror_flag" ||
52638 test ! -s conftest.err
52639 } && test -s conftest.$ac_objext; then
52640 am_cv_proto_iconv_arg1=""
52642 $as_echo "$as_me: failed program was:" >&5
52643 sed 's/^/| /' conftest.$ac_ext >&5
52645 am_cv_proto_iconv_arg1="const"
52648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52649 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);"
52652 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
52653 { $as_echo "$as_me:$LINENO: result:
52654 $am_cv_proto_iconv" >&5
52656 $am_cv_proto_iconv" >&6; }
52658 cat >>confdefs.h <<_ACEOF
52659 #define ICONV_CONST $am_cv_proto_iconv_arg1
52666 for ac_header in iconv.h
52668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52671 $as_echo_n "checking for $ac_header... " >&6; }
52672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52673 $as_echo_n "(cached) " >&6
52675 ac_res=`eval 'as_val=${'$as_ac_Header'}
52676 $as_echo "$as_val"'`
52677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52678 $as_echo "$ac_res" >&6; }
52680 # Is the header compilable?
52681 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
52682 $as_echo_n "checking $ac_header usability... " >&6; }
52683 cat >conftest.$ac_ext <<_ACEOF
52686 cat confdefs.h >>conftest.$ac_ext
52687 cat >>conftest.$ac_ext <<_ACEOF
52688 /* end confdefs.h. */
52689 $ac_includes_default
52690 #include <$ac_header>
52692 rm -f conftest.$ac_objext
52693 if { (ac_try="$ac_compile"
52694 case "(($ac_try" in
52695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52696 *) ac_try_echo=$ac_try;;
52698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52699 $as_echo "$ac_try_echo") >&5
52700 (eval "$ac_compile") 2>conftest.er1
52702 grep -v '^ *+' conftest.er1 >conftest.err
52704 cat conftest.err >&5
52705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52706 (exit $ac_status); } && {
52707 test -z "$ac_c_werror_flag" ||
52708 test ! -s conftest.err
52709 } && test -s conftest.$ac_objext; then
52710 ac_header_compiler=yes
52712 $as_echo "$as_me: failed program was:" >&5
52713 sed 's/^/| /' conftest.$ac_ext >&5
52715 ac_header_compiler=no
52718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52720 $as_echo "$ac_header_compiler" >&6; }
52722 # Is the header present?
52723 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
52724 $as_echo_n "checking $ac_header presence... " >&6; }
52725 cat >conftest.$ac_ext <<_ACEOF
52728 cat confdefs.h >>conftest.$ac_ext
52729 cat >>conftest.$ac_ext <<_ACEOF
52730 /* end confdefs.h. */
52731 #include <$ac_header>
52733 if { (ac_try="$ac_cpp conftest.$ac_ext"
52734 case "(($ac_try" in
52735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52736 *) ac_try_echo=$ac_try;;
52738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52739 $as_echo "$ac_try_echo") >&5
52740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52742 grep -v '^ *+' conftest.er1 >conftest.err
52744 cat conftest.err >&5
52745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52746 (exit $ac_status); } >/dev/null && {
52747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52748 test ! -s conftest.err
52750 ac_header_preproc=yes
52752 $as_echo "$as_me: failed program was:" >&5
52753 sed 's/^/| /' conftest.$ac_ext >&5
52755 ac_header_preproc=no
52758 rm -f conftest.err conftest.$ac_ext
52759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52760 $as_echo "$ac_header_preproc" >&6; }
52762 # So? What about this header?
52763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52766 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52769 ac_header_preproc=yes
52772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52773 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52775 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52777 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52779 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52783 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52785 ## ------------------------------ ##
52786 ## Report this to bug-tar@gnu.org ##
52787 ## ------------------------------ ##
52789 ) | sed "s/^/$as_me: WARNING: /" >&2
52792 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52793 $as_echo_n "checking for $ac_header... " >&6; }
52794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52795 $as_echo_n "(cached) " >&6
52797 eval "$as_ac_Header=\$ac_header_preproc"
52799 ac_res=`eval 'as_val=${'$as_ac_Header'}
52800 $as_echo "$as_val"'`
52801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52802 $as_echo "$ac_res" >&6; }
52805 as_val=`eval 'as_val=${'$as_ac_Header'}
52806 $as_echo "$as_val"'`
52807 if test "x$as_val" = x""yes; then
52808 cat >>confdefs.h <<_ACEOF
52809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52816 { $as_echo "$as_me:$LINENO: checking for iconv_t" >&5
52817 $as_echo_n "checking for iconv_t... " >&6; }
52818 if test "${ac_cv_type_iconv_t+set}" = set; then
52819 $as_echo_n "(cached) " >&6
52821 ac_cv_type_iconv_t=no
52822 cat >conftest.$ac_ext <<_ACEOF
52825 cat confdefs.h >>conftest.$ac_ext
52826 cat >>conftest.$ac_ext <<_ACEOF
52827 /* end confdefs.h. */
52829 #ifdef HAVE_ICONV_H
52830 # include <iconv.h>
52837 if (sizeof (iconv_t))
52843 rm -f conftest.$ac_objext
52844 if { (ac_try="$ac_compile"
52845 case "(($ac_try" in
52846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52847 *) ac_try_echo=$ac_try;;
52849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52850 $as_echo "$ac_try_echo") >&5
52851 (eval "$ac_compile") 2>conftest.er1
52853 grep -v '^ *+' conftest.er1 >conftest.err
52855 cat conftest.err >&5
52856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52857 (exit $ac_status); } && {
52858 test -z "$ac_c_werror_flag" ||
52859 test ! -s conftest.err
52860 } && test -s conftest.$ac_objext; then
52861 cat >conftest.$ac_ext <<_ACEOF
52864 cat confdefs.h >>conftest.$ac_ext
52865 cat >>conftest.$ac_ext <<_ACEOF
52866 /* end confdefs.h. */
52868 #ifdef HAVE_ICONV_H
52869 # include <iconv.h>
52876 if (sizeof ((iconv_t)))
52882 rm -f conftest.$ac_objext
52883 if { (ac_try="$ac_compile"
52884 case "(($ac_try" in
52885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52886 *) ac_try_echo=$ac_try;;
52888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52889 $as_echo "$ac_try_echo") >&5
52890 (eval "$ac_compile") 2>conftest.er1
52892 grep -v '^ *+' conftest.er1 >conftest.err
52894 cat conftest.err >&5
52895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896 (exit $ac_status); } && {
52897 test -z "$ac_c_werror_flag" ||
52898 test ! -s conftest.err
52899 } && test -s conftest.$ac_objext; then
52902 $as_echo "$as_me: failed program was:" >&5
52903 sed 's/^/| /' conftest.$ac_ext >&5
52905 ac_cv_type_iconv_t=yes
52908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52910 $as_echo "$as_me: failed program was:" >&5
52911 sed 's/^/| /' conftest.$ac_ext >&5
52916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52918 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
52919 $as_echo "$ac_cv_type_iconv_t" >&6; }
52920 if test "x$ac_cv_type_iconv_t" = x""yes; then
52924 cat >>confdefs.h <<\_ACEOF
52925 #define iconv_t int
52933 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
52934 $as_echo_n "checking whether NLS is requested... " >&6; }
52935 # Check whether --enable-nls was given.
52936 if test "${enable_nls+set}" = set; then
52937 enableval=$enable_nls; USE_NLS=$enableval
52942 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
52943 $as_echo "$USE_NLS" >&6; }
52948 GETTEXT_MACRO_VERSION=0.18
52953 # Prepare PATH_SEPARATOR.
52954 # The user is always right.
52955 if test "${PATH_SEPARATOR+set}" != set; then
52956 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
52957 # contains only /bin. Note that ksh looks also at the FPATH variable,
52958 # so we have to set that as well for the test.
52960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
52961 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
52962 || PATH_SEPARATOR=';'
52966 # Find out how to test for executable files. Don't use a zero-byte file,
52967 # as systems may use methods other than mode bits to determine executability.
52968 cat >conf$$.file <<_ASEOF
52972 chmod +x conf$$.file
52973 if test -x conf$$.file >/dev/null 2>&1; then
52974 ac_executable_p="test -x"
52976 ac_executable_p="test -f"
52980 # Extract the first word of "msgfmt", so it can be a program name with args.
52981 set dummy msgfmt; ac_word=$2
52982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52983 $as_echo_n "checking for $ac_word... " >&6; }
52984 if test "${ac_cv_path_MSGFMT+set}" = set; then
52985 $as_echo_n "(cached) " >&6
52989 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
52992 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
52993 for ac_dir in $PATH; do
52995 test -z "$ac_dir" && ac_dir=.
52996 for ac_exec_ext in '' $ac_executable_extensions; do
52997 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
52998 echo "$as_me: trying $ac_dir/$ac_word..." >&5
52999 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
53000 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
53001 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
53008 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
53012 MSGFMT="$ac_cv_path_MSGFMT"
53013 if test "$MSGFMT" != ":"; then
53014 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
53015 $as_echo "$MSGFMT" >&6; }
53017 { $as_echo "$as_me:$LINENO: result: no" >&5
53018 $as_echo "no" >&6; }
53021 # Extract the first word of "gmsgfmt", so it can be a program name with args.
53022 set dummy gmsgfmt; ac_word=$2
53023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53024 $as_echo_n "checking for $ac_word... " >&6; }
53025 if test "${ac_cv_path_GMSGFMT+set}" = set; then
53026 $as_echo_n "(cached) " >&6
53030 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
53033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53034 for as_dir in $PATH
53037 test -z "$as_dir" && as_dir=.
53038 for ac_exec_ext in '' $ac_executable_extensions; do
53039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53040 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
53041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53048 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
53052 GMSGFMT=$ac_cv_path_GMSGFMT
53053 if test -n "$GMSGFMT"; then
53054 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
53055 $as_echo "$GMSGFMT" >&6; }
53057 { $as_echo "$as_me:$LINENO: result: no" >&5
53058 $as_echo "no" >&6; }
53063 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53064 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
53065 *) MSGFMT_015=$MSGFMT ;;
53068 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53069 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
53070 *) GMSGFMT_015=$GMSGFMT ;;
53075 # Prepare PATH_SEPARATOR.
53076 # The user is always right.
53077 if test "${PATH_SEPARATOR+set}" != set; then
53078 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
53079 # contains only /bin. Note that ksh looks also at the FPATH variable,
53080 # so we have to set that as well for the test.
53082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53083 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53084 || PATH_SEPARATOR=';'
53088 # Find out how to test for executable files. Don't use a zero-byte file,
53089 # as systems may use methods other than mode bits to determine executability.
53090 cat >conf$$.file <<_ASEOF
53094 chmod +x conf$$.file
53095 if test -x conf$$.file >/dev/null 2>&1; then
53096 ac_executable_p="test -x"
53098 ac_executable_p="test -f"
53102 # Extract the first word of "xgettext", so it can be a program name with args.
53103 set dummy xgettext; ac_word=$2
53104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53105 $as_echo_n "checking for $ac_word... " >&6; }
53106 if test "${ac_cv_path_XGETTEXT+set}" = set; then
53107 $as_echo_n "(cached) " >&6
53109 case "$XGETTEXT" in
53111 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
53114 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53115 for ac_dir in $PATH; do
53117 test -z "$ac_dir" && ac_dir=.
53118 for ac_exec_ext in '' $ac_executable_extensions; do
53119 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53120 echo "$as_me: trying $ac_dir/$ac_word..." >&5
53121 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
53122 (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
53123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
53130 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
53134 XGETTEXT="$ac_cv_path_XGETTEXT"
53135 if test "$XGETTEXT" != ":"; then
53136 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
53137 $as_echo "$XGETTEXT" >&6; }
53139 { $as_echo "$as_me:$LINENO: result: no" >&5
53140 $as_echo "no" >&6; }
53145 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53146 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
53147 *) XGETTEXT_015=$XGETTEXT ;;
53152 # Prepare PATH_SEPARATOR.
53153 # The user is always right.
53154 if test "${PATH_SEPARATOR+set}" != set; then
53155 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
53156 # contains only /bin. Note that ksh looks also at the FPATH variable,
53157 # so we have to set that as well for the test.
53159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53160 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53161 || PATH_SEPARATOR=';'
53165 # Find out how to test for executable files. Don't use a zero-byte file,
53166 # as systems may use methods other than mode bits to determine executability.
53167 cat >conf$$.file <<_ASEOF
53171 chmod +x conf$$.file
53172 if test -x conf$$.file >/dev/null 2>&1; then
53173 ac_executable_p="test -x"
53175 ac_executable_p="test -f"
53179 # Extract the first word of "msgmerge", so it can be a program name with args.
53180 set dummy msgmerge; ac_word=$2
53181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53182 $as_echo_n "checking for $ac_word... " >&6; }
53183 if test "${ac_cv_path_MSGMERGE+set}" = set; then
53184 $as_echo_n "(cached) " >&6
53186 case "$MSGMERGE" in
53188 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
53191 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53192 for ac_dir in $PATH; do
53194 test -z "$ac_dir" && ac_dir=.
53195 for ac_exec_ext in '' $ac_executable_extensions; do
53196 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53197 echo "$as_me: trying $ac_dir/$ac_word..." >&5
53198 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
53199 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
53206 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
53210 MSGMERGE="$ac_cv_path_MSGMERGE"
53211 if test "$MSGMERGE" != ":"; then
53212 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
53213 $as_echo "$MSGMERGE" >&6; }
53215 { $as_echo "$as_me:$LINENO: result: no" >&5
53216 $as_echo "no" >&6; }
53220 test -n "$localedir" || localedir='${datadir}/locale'
53223 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
53226 ac_config_commands="$ac_config_commands po-directories"
53253 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
53254 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
53255 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
53256 $as_echo_n "(cached) " >&6
53258 gt_save_LIBS="$LIBS"
53259 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53260 cat >conftest.$ac_ext <<_ACEOF
53263 cat confdefs.h >>conftest.$ac_ext
53264 cat >>conftest.$ac_ext <<_ACEOF
53265 /* end confdefs.h. */
53266 #include <CoreFoundation/CFPreferences.h>
53270 CFPreferencesCopyAppValue(NULL, NULL)
53275 rm -f conftest.$ac_objext conftest$ac_exeext
53276 if { (ac_try="$ac_link"
53277 case "(($ac_try" in
53278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53279 *) ac_try_echo=$ac_try;;
53281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53282 $as_echo "$ac_try_echo") >&5
53283 (eval "$ac_link") 2>conftest.er1
53285 grep -v '^ *+' conftest.er1 >conftest.err
53287 cat conftest.err >&5
53288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53289 (exit $ac_status); } && {
53290 test -z "$ac_c_werror_flag" ||
53291 test ! -s conftest.err
53292 } && test -s conftest$ac_exeext && {
53293 test "$cross_compiling" = yes ||
53294 $as_test_x conftest$ac_exeext
53296 gt_cv_func_CFPreferencesCopyAppValue=yes
53298 $as_echo "$as_me: failed program was:" >&5
53299 sed 's/^/| /' conftest.$ac_ext >&5
53301 gt_cv_func_CFPreferencesCopyAppValue=no
53304 rm -rf conftest.dSYM
53305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53306 conftest$ac_exeext conftest.$ac_ext
53307 LIBS="$gt_save_LIBS"
53309 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
53310 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
53311 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
53313 cat >>confdefs.h <<\_ACEOF
53314 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
53318 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
53319 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
53320 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
53321 $as_echo_n "(cached) " >&6
53323 gt_save_LIBS="$LIBS"
53324 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53325 cat >conftest.$ac_ext <<_ACEOF
53328 cat confdefs.h >>conftest.$ac_ext
53329 cat >>conftest.$ac_ext <<_ACEOF
53330 /* end confdefs.h. */
53331 #include <CoreFoundation/CFLocale.h>
53335 CFLocaleCopyCurrent();
53340 rm -f conftest.$ac_objext conftest$ac_exeext
53341 if { (ac_try="$ac_link"
53342 case "(($ac_try" in
53343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53344 *) ac_try_echo=$ac_try;;
53346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53347 $as_echo "$ac_try_echo") >&5
53348 (eval "$ac_link") 2>conftest.er1
53350 grep -v '^ *+' conftest.er1 >conftest.err
53352 cat conftest.err >&5
53353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53354 (exit $ac_status); } && {
53355 test -z "$ac_c_werror_flag" ||
53356 test ! -s conftest.err
53357 } && test -s conftest$ac_exeext && {
53358 test "$cross_compiling" = yes ||
53359 $as_test_x conftest$ac_exeext
53361 gt_cv_func_CFLocaleCopyCurrent=yes
53363 $as_echo "$as_me: failed program was:" >&5
53364 sed 's/^/| /' conftest.$ac_ext >&5
53366 gt_cv_func_CFLocaleCopyCurrent=no
53369 rm -rf conftest.dSYM
53370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53371 conftest$ac_exeext conftest.$ac_ext
53372 LIBS="$gt_save_LIBS"
53374 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
53375 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
53376 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53378 cat >>confdefs.h <<\_ACEOF
53379 #define HAVE_CFLOCALECOPYCURRENT 1
53384 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53385 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
53397 case " $gt_needs " in
53398 *" need-formatstring-macros "*) gt_api_version=3 ;;
53399 *" need-ngettext "*) gt_api_version=2 ;;
53400 *) gt_api_version=1 ;;
53402 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
53403 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
53405 if test "$USE_NLS" = "yes"; then
53406 gt_use_preinstalled_gnugettext=no
53409 if test $gt_api_version -ge 3; then
53410 gt_revision_test_code='
53411 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
53412 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
53414 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
53417 gt_revision_test_code=
53419 if test $gt_api_version -ge 2; then
53420 gt_expression_test_code=' + * ngettext ("", "", 0)'
53422 gt_expression_test_code=
53425 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
53426 $as_echo_n "checking for GNU gettext in libc... " >&6; }
53427 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
53428 $as_echo_n "(cached) " >&6
53430 cat >conftest.$ac_ext <<_ACEOF
53433 cat confdefs.h >>conftest.$ac_ext
53434 cat >>conftest.$ac_ext <<_ACEOF
53435 /* end confdefs.h. */
53437 #include <libintl.h>
53438 $gt_revision_test_code
53439 extern int _nl_msg_cat_cntr;
53440 extern int *_nl_domain_bindings;
53446 bindtextdomain ("", "");
53447 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
53453 rm -f conftest.$ac_objext conftest$ac_exeext
53454 if { (ac_try="$ac_link"
53455 case "(($ac_try" in
53456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53457 *) ac_try_echo=$ac_try;;
53459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53460 $as_echo "$ac_try_echo") >&5
53461 (eval "$ac_link") 2>conftest.er1
53463 grep -v '^ *+' conftest.er1 >conftest.err
53465 cat conftest.err >&5
53466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53467 (exit $ac_status); } && {
53468 test -z "$ac_c_werror_flag" ||
53469 test ! -s conftest.err
53470 } && test -s conftest$ac_exeext && {
53471 test "$cross_compiling" = yes ||
53472 $as_test_x conftest$ac_exeext
53474 eval "$gt_func_gnugettext_libc=yes"
53476 $as_echo "$as_me: failed program was:" >&5
53477 sed 's/^/| /' conftest.$ac_ext >&5
53479 eval "$gt_func_gnugettext_libc=no"
53482 rm -rf conftest.dSYM
53483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53484 conftest$ac_exeext conftest.$ac_ext
53486 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
53487 $as_echo "$as_val"'`
53488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53489 $as_echo "$ac_res" >&6; }
53491 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
53497 am_save_CPPFLAGS="$CPPFLAGS"
53499 for element in $INCICONV; do
53501 for x in $CPPFLAGS; do
53503 acl_save_prefix="$prefix"
53504 prefix="$acl_final_prefix"
53505 acl_save_exec_prefix="$exec_prefix"
53506 exec_prefix="$acl_final_exec_prefix"
53508 exec_prefix="$acl_save_exec_prefix"
53509 prefix="$acl_save_prefix"
53511 if test "X$x" = "X$element"; then
53516 if test -z "$haveit"; then
53517 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
53522 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
53523 $as_echo_n "checking for iconv... " >&6; }
53524 if test "${am_cv_func_iconv+set}" = set; then
53525 $as_echo_n "(cached) " >&6
53528 am_cv_func_iconv="no, consider installing GNU libiconv"
53530 cat >conftest.$ac_ext <<_ACEOF
53533 cat confdefs.h >>conftest.$ac_ext
53534 cat >>conftest.$ac_ext <<_ACEOF
53535 /* end confdefs.h. */
53537 #include <stdlib.h>
53543 iconv_t cd = iconv_open("","");
53544 iconv(cd,NULL,NULL,NULL,NULL);
53550 rm -f conftest.$ac_objext conftest$ac_exeext
53551 if { (ac_try="$ac_link"
53552 case "(($ac_try" in
53553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53554 *) ac_try_echo=$ac_try;;
53556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53557 $as_echo "$ac_try_echo") >&5
53558 (eval "$ac_link") 2>conftest.er1
53560 grep -v '^ *+' conftest.er1 >conftest.err
53562 cat conftest.err >&5
53563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53564 (exit $ac_status); } && {
53565 test -z "$ac_c_werror_flag" ||
53566 test ! -s conftest.err
53567 } && test -s conftest$ac_exeext && {
53568 test "$cross_compiling" = yes ||
53569 $as_test_x conftest$ac_exeext
53571 am_cv_func_iconv=yes
53573 $as_echo "$as_me: failed program was:" >&5
53574 sed 's/^/| /' conftest.$ac_ext >&5
53579 rm -rf conftest.dSYM
53580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53581 conftest$ac_exeext conftest.$ac_ext
53582 if test "$am_cv_func_iconv" != yes; then
53583 am_save_LIBS="$LIBS"
53584 LIBS="$LIBS $LIBICONV"
53585 cat >conftest.$ac_ext <<_ACEOF
53588 cat confdefs.h >>conftest.$ac_ext
53589 cat >>conftest.$ac_ext <<_ACEOF
53590 /* end confdefs.h. */
53592 #include <stdlib.h>
53598 iconv_t cd = iconv_open("","");
53599 iconv(cd,NULL,NULL,NULL,NULL);
53605 rm -f conftest.$ac_objext conftest$ac_exeext
53606 if { (ac_try="$ac_link"
53607 case "(($ac_try" in
53608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53609 *) ac_try_echo=$ac_try;;
53611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53612 $as_echo "$ac_try_echo") >&5
53613 (eval "$ac_link") 2>conftest.er1
53615 grep -v '^ *+' conftest.er1 >conftest.err
53617 cat conftest.err >&5
53618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53619 (exit $ac_status); } && {
53620 test -z "$ac_c_werror_flag" ||
53621 test ! -s conftest.err
53622 } && test -s conftest$ac_exeext && {
53623 test "$cross_compiling" = yes ||
53624 $as_test_x conftest$ac_exeext
53626 am_cv_lib_iconv=yes
53627 am_cv_func_iconv=yes
53629 $as_echo "$as_me: failed program was:" >&5
53630 sed 's/^/| /' conftest.$ac_ext >&5
53635 rm -rf conftest.dSYM
53636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53637 conftest$ac_exeext conftest.$ac_ext
53638 LIBS="$am_save_LIBS"
53642 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
53643 $as_echo "$am_cv_func_iconv" >&6; }
53644 if test "$am_cv_func_iconv" = yes; then
53645 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
53646 $as_echo_n "checking for working iconv... " >&6; }
53647 if test "${am_cv_func_iconv_works+set}" = set; then
53648 $as_echo_n "(cached) " >&6
53651 am_save_LIBS="$LIBS"
53652 if test $am_cv_lib_iconv = yes; then
53653 LIBS="$LIBS $LIBICONV"
53655 if test "$cross_compiling" = yes; then
53658 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
53659 *) am_cv_func_iconv_works="guessing yes" ;;
53663 cat >conftest.$ac_ext <<_ACEOF
53666 cat confdefs.h >>conftest.$ac_ext
53667 cat >>conftest.$ac_ext <<_ACEOF
53668 /* end confdefs.h. */
53671 #include <string.h>
53674 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
53677 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
53678 if (cd_utf8_to_88591 != (iconv_t)(-1))
53680 static const char input[] = "\342\202\254"; /* EURO SIGN */
53682 const char *inptr = input;
53683 size_t inbytesleft = strlen (input);
53684 char *outptr = buf;
53685 size_t outbytesleft = sizeof (buf);
53686 size_t res = iconv (cd_utf8_to_88591,
53687 (char **) &inptr, &inbytesleft,
53688 &outptr, &outbytesleft);
53693 /* Test against Solaris 10 bug: Failures are not distinguishable from
53694 successful returns. */
53696 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
53697 if (cd_ascii_to_88591 != (iconv_t)(-1))
53699 static const char input[] = "\263";
53701 const char *inptr = input;
53702 size_t inbytesleft = strlen (input);
53703 char *outptr = buf;
53704 size_t outbytesleft = sizeof (buf);
53705 size_t res = iconv (cd_ascii_to_88591,
53706 (char **) &inptr, &inbytesleft,
53707 &outptr, &outbytesleft);
53712 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
53714 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
53715 if (cd_88591_to_utf8 != (iconv_t)(-1))
53717 static const char input[] = "\304";
53718 static char buf[2] = { (char)0xDE, (char)0xAD };
53719 const char *inptr = input;
53720 size_t inbytesleft = 1;
53721 char *outptr = buf;
53722 size_t outbytesleft = 1;
53723 size_t res = iconv (cd_88591_to_utf8,
53724 (char **) &inptr, &inbytesleft,
53725 &outptr, &outbytesleft);
53726 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
53730 #if 0 /* This bug could be worked around by the caller. */
53731 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
53733 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
53734 if (cd_88591_to_utf8 != (iconv_t)(-1))
53736 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
53738 const char *inptr = input;
53739 size_t inbytesleft = strlen (input);
53740 char *outptr = buf;
53741 size_t outbytesleft = sizeof (buf);
53742 size_t res = iconv (cd_88591_to_utf8,
53743 (char **) &inptr, &inbytesleft,
53744 &outptr, &outbytesleft);
53750 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
53752 if (/* Try standardized names. */
53753 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
53754 /* Try IRIX, OSF/1 names. */
53755 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
53756 /* Try AIX names. */
53757 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
53758 /* Try HP-UX names. */
53759 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
53764 rm -f conftest$ac_exeext
53765 if { (ac_try="$ac_link"
53766 case "(($ac_try" in
53767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53768 *) ac_try_echo=$ac_try;;
53770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53771 $as_echo "$ac_try_echo") >&5
53772 (eval "$ac_link") 2>&5
53774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53776 { (case "(($ac_try" in
53777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53778 *) ac_try_echo=$ac_try;;
53780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53781 $as_echo "$ac_try_echo") >&5
53782 (eval "$ac_try") 2>&5
53784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53785 (exit $ac_status); }; }; then
53786 am_cv_func_iconv_works=yes
53788 $as_echo "$as_me: program exited with status $ac_status" >&5
53789 $as_echo "$as_me: failed program was:" >&5
53790 sed 's/^/| /' conftest.$ac_ext >&5
53792 ( exit $ac_status )
53793 am_cv_func_iconv_works=no
53795 rm -rf conftest.dSYM
53796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53800 LIBS="$am_save_LIBS"
53803 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
53804 $as_echo "$am_cv_func_iconv_works" >&6; }
53805 case "$am_cv_func_iconv_works" in
53806 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
53807 *) am_func_iconv=yes ;;
53810 am_func_iconv=no am_cv_lib_iconv=no
53812 if test "$am_func_iconv" = yes; then
53814 cat >>confdefs.h <<\_ACEOF
53815 #define HAVE_ICONV 1
53819 if test "$am_cv_lib_iconv" = yes; then
53820 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
53821 $as_echo_n "checking how to link with libiconv... " >&6; }
53822 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
53823 $as_echo "$LIBICONV" >&6; }
53825 CPPFLAGS="$am_save_CPPFLAGS"
53842 acl_save_prefix="$prefix"
53843 prefix="$acl_final_prefix"
53844 acl_save_exec_prefix="$exec_prefix"
53845 exec_prefix="$acl_final_exec_prefix"
53847 eval additional_includedir=\"$includedir\"
53848 eval additional_libdir=\"$libdir\"
53850 exec_prefix="$acl_save_exec_prefix"
53851 prefix="$acl_save_prefix"
53854 # Check whether --with-libintl-prefix was given.
53855 if test "${with_libintl_prefix+set}" = set; then
53856 withval=$with_libintl_prefix;
53857 if test "X$withval" = "Xno"; then
53860 if test "X$withval" = "X"; then
53862 acl_save_prefix="$prefix"
53863 prefix="$acl_final_prefix"
53864 acl_save_exec_prefix="$exec_prefix"
53865 exec_prefix="$acl_final_exec_prefix"
53867 eval additional_includedir=\"$includedir\"
53868 eval additional_libdir=\"$libdir\"
53870 exec_prefix="$acl_save_exec_prefix"
53871 prefix="$acl_save_prefix"
53874 additional_includedir="$withval/include"
53875 additional_libdir="$withval/$acl_libdirstem"
53876 if test "$acl_libdirstem2" != "$acl_libdirstem" \
53877 && ! test -d "$withval/$acl_libdirstem"; then
53878 additional_libdir="$withval/$acl_libdirstem2"
53892 names_already_handled=
53893 names_next_round='intl '
53894 while test -n "$names_next_round"; do
53895 names_this_round="$names_next_round"
53897 for name in $names_this_round; do
53899 for n in $names_already_handled; do
53900 if test "$n" = "$name"; then
53901 already_handled=yes
53905 if test -z "$already_handled"; then
53906 names_already_handled="$names_already_handled $name"
53907 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
53908 eval value=\"\$HAVE_LIB$uppername\"
53909 if test -n "$value"; then
53910 if test "$value" = yes; then
53911 eval value=\"\$LIB$uppername\"
53912 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
53913 eval value=\"\$LTLIB$uppername\"
53914 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
53923 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
53924 if test -n "$acl_shlibext"; then
53925 shrext=".$acl_shlibext" # typically: shrext=.so
53929 if test $use_additional = yes; then
53930 dir="$additional_libdir"
53931 if test -n "$acl_shlibext"; then
53932 if test -f "$dir/$libname$shrext"; then
53934 found_so="$dir/$libname$shrext"
53936 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53937 ver=`(cd "$dir" && \
53938 for f in "$libname$shrext".*; do echo "$f"; done \
53939 | sed -e "s,^$libname$shrext\\\\.,," \
53940 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53941 | sed 1q ) 2>/dev/null`
53942 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53944 found_so="$dir/$libname$shrext.$ver"
53947 eval library_names=\"$acl_library_names_spec\"
53948 for f in $library_names; do
53949 if test -f "$dir/$f"; then
53958 if test "X$found_dir" = "X"; then
53959 if test -f "$dir/$libname.$acl_libext"; then
53961 found_a="$dir/$libname.$acl_libext"
53964 if test "X$found_dir" != "X"; then
53965 if test -f "$dir/$libname.la"; then
53966 found_la="$dir/$libname.la"
53970 if test "X$found_dir" = "X"; then
53971 for x in $LDFLAGS $LTLIBINTL; do
53973 acl_save_prefix="$prefix"
53974 prefix="$acl_final_prefix"
53975 acl_save_exec_prefix="$exec_prefix"
53976 exec_prefix="$acl_final_exec_prefix"
53978 exec_prefix="$acl_save_exec_prefix"
53979 prefix="$acl_save_prefix"
53983 dir=`echo "X$x" | sed -e 's/^X-L//'`
53984 if test -n "$acl_shlibext"; then
53985 if test -f "$dir/$libname$shrext"; then
53987 found_so="$dir/$libname$shrext"
53989 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53990 ver=`(cd "$dir" && \
53991 for f in "$libname$shrext".*; do echo "$f"; done \
53992 | sed -e "s,^$libname$shrext\\\\.,," \
53993 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53994 | sed 1q ) 2>/dev/null`
53995 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53997 found_so="$dir/$libname$shrext.$ver"
54000 eval library_names=\"$acl_library_names_spec\"
54001 for f in $library_names; do
54002 if test -f "$dir/$f"; then
54011 if test "X$found_dir" = "X"; then
54012 if test -f "$dir/$libname.$acl_libext"; then
54014 found_a="$dir/$libname.$acl_libext"
54017 if test "X$found_dir" != "X"; then
54018 if test -f "$dir/$libname.la"; then
54019 found_la="$dir/$libname.la"
54024 if test "X$found_dir" != "X"; then
54029 if test "X$found_dir" != "X"; then
54030 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
54031 if test "X$found_so" != "X"; then
54032 if test "$enable_rpath" = no \
54033 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
54034 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
54035 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54038 for x in $ltrpathdirs; do
54039 if test "X$x" = "X$found_dir"; then
54044 if test -z "$haveit"; then
54045 ltrpathdirs="$ltrpathdirs $found_dir"
54047 if test "$acl_hardcode_direct" = yes; then
54048 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54050 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
54051 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54053 for x in $rpathdirs; do
54054 if test "X$x" = "X$found_dir"; then
54059 if test -z "$haveit"; then
54060 rpathdirs="$rpathdirs $found_dir"
54064 for x in $LDFLAGS $LIBINTL; do
54066 acl_save_prefix="$prefix"
54067 prefix="$acl_final_prefix"
54068 acl_save_exec_prefix="$exec_prefix"
54069 exec_prefix="$acl_final_exec_prefix"
54071 exec_prefix="$acl_save_exec_prefix"
54072 prefix="$acl_save_prefix"
54074 if test "X$x" = "X-L$found_dir"; then
54079 if test -z "$haveit"; then
54080 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
54082 if test "$acl_hardcode_minus_L" != no; then
54083 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54085 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54091 if test "X$found_a" != "X"; then
54092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
54094 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
54097 additional_includedir=
54098 case "$found_dir" in
54099 */$acl_libdirstem | */$acl_libdirstem/)
54100 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
54101 if test "$name" = 'intl'; then
54102 LIBINTL_PREFIX="$basedir"
54104 additional_includedir="$basedir/include"
54106 */$acl_libdirstem2 | */$acl_libdirstem2/)
54107 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
54108 if test "$name" = 'intl'; then
54109 LIBINTL_PREFIX="$basedir"
54111 additional_includedir="$basedir/include"
54114 if test "X$additional_includedir" != "X"; then
54115 if test "X$additional_includedir" != "X/usr/include"; then
54117 if test "X$additional_includedir" = "X/usr/local/include"; then
54118 if test -n "$GCC"; then
54120 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54124 if test -z "$haveit"; then
54125 for x in $CPPFLAGS $INCINTL; do
54127 acl_save_prefix="$prefix"
54128 prefix="$acl_final_prefix"
54129 acl_save_exec_prefix="$exec_prefix"
54130 exec_prefix="$acl_final_exec_prefix"
54132 exec_prefix="$acl_save_exec_prefix"
54133 prefix="$acl_save_prefix"
54135 if test "X$x" = "X-I$additional_includedir"; then
54140 if test -z "$haveit"; then
54141 if test -d "$additional_includedir"; then
54142 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
54148 if test -n "$found_la"; then
54149 save_libdir="$libdir"
54150 case "$found_la" in
54151 */* | *\\*) . "$found_la" ;;
54152 *) . "./$found_la" ;;
54154 libdir="$save_libdir"
54155 for dep in $dependency_libs; do
54158 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
54159 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
54160 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
54162 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
54163 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
54164 if test -n "$GCC"; then
54166 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54170 if test -z "$haveit"; then
54172 for x in $LDFLAGS $LIBINTL; do
54174 acl_save_prefix="$prefix"
54175 prefix="$acl_final_prefix"
54176 acl_save_exec_prefix="$exec_prefix"
54177 exec_prefix="$acl_final_exec_prefix"
54179 exec_prefix="$acl_save_exec_prefix"
54180 prefix="$acl_save_prefix"
54182 if test "X$x" = "X-L$additional_libdir"; then
54187 if test -z "$haveit"; then
54188 if test -d "$additional_libdir"; then
54189 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
54193 for x in $LDFLAGS $LTLIBINTL; do
54195 acl_save_prefix="$prefix"
54196 prefix="$acl_final_prefix"
54197 acl_save_exec_prefix="$exec_prefix"
54198 exec_prefix="$acl_final_exec_prefix"
54200 exec_prefix="$acl_save_exec_prefix"
54201 prefix="$acl_save_prefix"
54203 if test "X$x" = "X-L$additional_libdir"; then
54208 if test -z "$haveit"; then
54209 if test -d "$additional_libdir"; then
54210 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
54217 dir=`echo "X$dep" | sed -e 's/^X-R//'`
54218 if test "$enable_rpath" != no; then
54220 for x in $rpathdirs; do
54221 if test "X$x" = "X$dir"; then
54226 if test -z "$haveit"; then
54227 rpathdirs="$rpathdirs $dir"
54230 for x in $ltrpathdirs; do
54231 if test "X$x" = "X$dir"; then
54236 if test -z "$haveit"; then
54237 ltrpathdirs="$ltrpathdirs $dir"
54242 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54245 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54248 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
54249 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
54255 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54256 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
54262 if test "X$rpathdirs" != "X"; then
54263 if test -n "$acl_hardcode_libdir_separator"; then
54265 for found_dir in $rpathdirs; do
54266 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
54268 acl_save_libdir="$libdir"
54270 eval flag=\"$acl_hardcode_libdir_flag_spec\"
54271 libdir="$acl_save_libdir"
54272 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54274 for found_dir in $rpathdirs; do
54275 acl_save_libdir="$libdir"
54276 libdir="$found_dir"
54277 eval flag=\"$acl_hardcode_libdir_flag_spec\"
54278 libdir="$acl_save_libdir"
54279 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54283 if test "X$ltrpathdirs" != "X"; then
54284 for found_dir in $ltrpathdirs; do
54285 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
54294 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
54295 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
54296 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
54297 $as_echo_n "(cached) " >&6
54299 gt_save_CPPFLAGS="$CPPFLAGS"
54300 CPPFLAGS="$CPPFLAGS $INCINTL"
54301 gt_save_LIBS="$LIBS"
54302 LIBS="$LIBS $LIBINTL"
54303 cat >conftest.$ac_ext <<_ACEOF
54306 cat confdefs.h >>conftest.$ac_ext
54307 cat >>conftest.$ac_ext <<_ACEOF
54308 /* end confdefs.h. */
54310 #include <libintl.h>
54311 $gt_revision_test_code
54312 extern int _nl_msg_cat_cntr;
54317 const char *_nl_expand_alias (const char *);
54323 bindtextdomain ("", "");
54324 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54330 rm -f conftest.$ac_objext conftest$ac_exeext
54331 if { (ac_try="$ac_link"
54332 case "(($ac_try" in
54333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54334 *) ac_try_echo=$ac_try;;
54336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54337 $as_echo "$ac_try_echo") >&5
54338 (eval "$ac_link") 2>conftest.er1
54340 grep -v '^ *+' conftest.er1 >conftest.err
54342 cat conftest.err >&5
54343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54344 (exit $ac_status); } && {
54345 test -z "$ac_c_werror_flag" ||
54346 test ! -s conftest.err
54347 } && test -s conftest$ac_exeext && {
54348 test "$cross_compiling" = yes ||
54349 $as_test_x conftest$ac_exeext
54351 eval "$gt_func_gnugettext_libintl=yes"
54353 $as_echo "$as_me: failed program was:" >&5
54354 sed 's/^/| /' conftest.$ac_ext >&5
54356 eval "$gt_func_gnugettext_libintl=no"
54359 rm -rf conftest.dSYM
54360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54361 conftest$ac_exeext conftest.$ac_ext
54362 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
54363 LIBS="$LIBS $LIBICONV"
54364 cat >conftest.$ac_ext <<_ACEOF
54367 cat confdefs.h >>conftest.$ac_ext
54368 cat >>conftest.$ac_ext <<_ACEOF
54369 /* end confdefs.h. */
54371 #include <libintl.h>
54372 $gt_revision_test_code
54373 extern int _nl_msg_cat_cntr;
54378 const char *_nl_expand_alias (const char *);
54384 bindtextdomain ("", "");
54385 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54391 rm -f conftest.$ac_objext conftest$ac_exeext
54392 if { (ac_try="$ac_link"
54393 case "(($ac_try" in
54394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54395 *) ac_try_echo=$ac_try;;
54397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54398 $as_echo "$ac_try_echo") >&5
54399 (eval "$ac_link") 2>conftest.er1
54401 grep -v '^ *+' conftest.er1 >conftest.err
54403 cat conftest.err >&5
54404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54405 (exit $ac_status); } && {
54406 test -z "$ac_c_werror_flag" ||
54407 test ! -s conftest.err
54408 } && test -s conftest$ac_exeext && {
54409 test "$cross_compiling" = yes ||
54410 $as_test_x conftest$ac_exeext
54412 LIBINTL="$LIBINTL $LIBICONV"
54413 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
54414 eval "$gt_func_gnugettext_libintl=yes"
54417 $as_echo "$as_me: failed program was:" >&5
54418 sed 's/^/| /' conftest.$ac_ext >&5
54423 rm -rf conftest.dSYM
54424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54425 conftest$ac_exeext conftest.$ac_ext
54427 CPPFLAGS="$gt_save_CPPFLAGS"
54428 LIBS="$gt_save_LIBS"
54430 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
54431 $as_echo "$as_val"'`
54432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54433 $as_echo "$ac_res" >&6; }
54436 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
54437 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
54438 && test "$PACKAGE" != gettext-runtime \
54439 && test "$PACKAGE" != gettext-tools; }; then
54440 gt_use_preinstalled_gnugettext=yes
54449 if test -n "$INTL_MACOSX_LIBS"; then
54450 if test "$gt_use_preinstalled_gnugettext" = "yes" \
54451 || test "$nls_cv_use_gnu_gettext" = "yes"; then
54452 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
54453 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
54457 if test "$gt_use_preinstalled_gnugettext" = "yes" \
54458 || test "$nls_cv_use_gnu_gettext" = "yes"; then
54460 cat >>confdefs.h <<\_ACEOF
54461 #define ENABLE_NLS 1
54469 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
54470 $as_echo_n "checking whether to use NLS... " >&6; }
54471 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
54472 $as_echo "$USE_NLS" >&6; }
54473 if test "$USE_NLS" = "yes"; then
54474 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
54475 $as_echo_n "checking where the gettext function comes from... " >&6; }
54476 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54477 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54478 gt_source="external libintl"
54483 gt_source="included intl directory"
54485 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
54486 $as_echo "$gt_source" >&6; }
54489 if test "$USE_NLS" = "yes"; then
54491 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54492 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54493 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
54494 $as_echo_n "checking how to link with libintl... " >&6; }
54495 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
54496 $as_echo "$LIBINTL" >&6; }
54498 for element in $INCINTL; do
54500 for x in $CPPFLAGS; do
54502 acl_save_prefix="$prefix"
54503 prefix="$acl_final_prefix"
54504 acl_save_exec_prefix="$exec_prefix"
54505 exec_prefix="$acl_final_exec_prefix"
54507 exec_prefix="$acl_save_exec_prefix"
54508 prefix="$acl_save_prefix"
54510 if test "X$x" = "X$element"; then
54515 if test -z "$haveit"; then
54516 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54523 cat >>confdefs.h <<\_ACEOF
54524 #define HAVE_GETTEXT 1
54528 cat >>confdefs.h <<\_ACEOF
54529 #define HAVE_DCGETTEXT 1
54539 INTLLIBS="$LIBINTL"
54548 # Initialize the test suite.
54549 ac_config_commands="$ac_config_commands tests/atconfig"
54552 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
54553 # FIXME: tests/preset?
54555 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
54560 # Check whether --enable-backup-scripts was given.
54561 if test "${enable_backup_scripts+set}" = set; then
54562 enableval=$enable_backup_scripts; case $enableval in
54563 yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
54564 BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
54571 if date +%Y-%m-%d 2>/dev/null >&2; then
54572 BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
54574 BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
54577 ac_config_files="$ac_config_files Makefile doc/Makefile gnu/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
54579 cat >confcache <<\_ACEOF
54580 # This file is a shell script that caches the results of configure
54581 # tests run on this system so they can be shared between configure
54582 # scripts and configure runs, see configure's option --config-cache.
54583 # It is not useful on other systems. If it contains results you don't
54584 # want to keep, you may remove or edit it.
54586 # config.status only pays attention to the cache file if you give it
54587 # the --recheck option to rerun configure.
54589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
54590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
54591 # following values.
54595 # The following way of writing the cache mishandles newlines in values,
54596 # but we know of no workaround that is simple, portable, and efficient.
54597 # So, we kill variables containing newlines.
54598 # Ultrix sh set writes to stderr and can't be redirected directly,
54599 # and sets the high bit in the cache file unless we assign to the vars.
54601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54602 eval ac_val=\$$ac_var
54606 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
54607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
54610 _ | IFS | as_nl) ;; #(
54611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
54612 *) $as_unset $ac_var ;;
54618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
54619 *${as_nl}ac_space=\ *)
54620 # `set' does not quote correctly, so add quotes (double-quote
54621 # substitution turns \\\\ into \\, and sed turns \\ into \).
54624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54627 # `set' quotes correctly as required by POSIX, so do not add quotes.
54628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
54639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
54641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
54642 if test -w "$cache_file"; then
54643 test "x$cache_file" != "x/dev/null" &&
54644 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
54645 $as_echo "$as_me: updating cache $cache_file" >&6;}
54646 cat confcache >$cache_file
54648 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
54649 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
54654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
54655 # Let make expand exec_prefix.
54656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
54658 DEFS=-DHAVE_CONFIG_H
54662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
54663 # 1. Remove the extension, and $U if already installed.
54664 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54665 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
54666 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
54667 # will be set to the directory where LIBOBJS objects are built.
54668 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54669 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
54671 LIBOBJS=$ac_libobjs
54673 LTLIBOBJS=$ac_ltlibobjs
54676 if test -n "$EXEEXT"; then
54678 am__EXEEXT_FALSE='#'
54680 am__EXEEXT_TRUE='#'
54684 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54685 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
54686 Usually this means the macro was only invoked conditionally." >&5
54687 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
54688 Usually this means the macro was only invoked conditionally." >&2;}
54689 { (exit 1); exit 1; }; }
54691 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54692 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
54693 Usually this means the macro was only invoked conditionally." >&5
54694 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
54695 Usually this means the macro was only invoked conditionally." >&2;}
54696 { (exit 1); exit 1; }; }
54698 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
54699 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54700 Usually this means the macro was only invoked conditionally." >&5
54701 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54702 Usually this means the macro was only invoked conditionally." >&2;}
54703 { (exit 1); exit 1; }; }
54705 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
54706 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
54707 Usually this means the macro was only invoked conditionally." >&5
54708 $as_echo "$as_me: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
54709 Usually this means the macro was only invoked conditionally." >&2;}
54710 { (exit 1); exit 1; }; }
54715 if test -n "$gl_LIBOBJS"; then
54716 # Remove the extension.
54717 sed_drop_objext='s/\.o$//;s/\.obj$//'
54718 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
54719 gl_libobjs="$gl_libobjs $i.$ac_objext"
54720 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
54723 gl_LIBOBJS=$gl_libobjs
54725 gl_LTLIBOBJS=$gl_ltlibobjs
54731 if test -n "$gltests_LIBOBJS"; then
54732 # Remove the extension.
54733 sed_drop_objext='s/\.o$//;s/\.obj$//'
54734 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
54735 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
54736 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
54739 gltests_LIBOBJS=$gltests_libobjs
54741 gltests_LTLIBOBJS=$gltests_ltlibobjs
54745 : ${CONFIG_STATUS=./config.status}
54747 ac_clean_files_save=$ac_clean_files
54748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54749 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
54750 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
54751 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54753 # Generated by $as_me.
54754 # Run this file to recreate the current configuration.
54755 # Compiler output produced by configure, useful for debugging
54756 # configure, is in config.log if it exists.
54759 ac_cs_recheck=false
54761 SHELL=\${CONFIG_SHELL-$SHELL}
54764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54765 ## --------------------- ##
54766 ## M4sh Initialization. ##
54767 ## --------------------- ##
54769 # Be more Bourne compatible
54770 DUALCASE=1; export DUALCASE # for MKS sh
54771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
54775 # is contrary to our usage. Disable this feature.
54776 alias -g '${1+"$@"}'='"$@"'
54777 setopt NO_GLOB_SUBST
54779 case `(set -o) 2>/dev/null` in
54780 *posix*) set -o posix ;;
54789 # Avoid depending upon Character Ranges.
54790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
54791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
54792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
54793 as_cr_digits='0123456789'
54794 as_cr_alnum=$as_cr_Letters$as_cr_digits
54799 # Printing a long string crashes Solaris 7 /usr/bin/printf.
54800 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
54801 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
54802 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
54803 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54804 as_echo='printf %s\n'
54805 as_echo_n='printf %s'
54807 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54808 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54809 as_echo_n='/usr/ucb/echo -n'
54811 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
54812 as_echo_n_body='eval
54816 expr "X$arg" : "X\\(.*\\)$as_nl";
54817 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
54819 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
54821 export as_echo_n_body
54822 as_echo_n='sh -c $as_echo_n_body as_echo'
54824 export as_echo_body
54825 as_echo='sh -c $as_echo_body as_echo'
54828 # The user is always right.
54829 if test "${PATH_SEPARATOR+set}" != set; then
54831 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
54832 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
54837 # Support unset when possible.
54838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54846 # We need space, tab and new line, in precisely that order. Quoting is
54847 # there to prevent editors from complaining about space-tab.
54848 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
54849 # splitting by setting IFS to empty value.)
54852 # Find who we are. Look in the path if we contain no directory separator.
54854 *[\\/]* ) as_myself=$0 ;;
54855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54856 for as_dir in $PATH
54859 test -z "$as_dir" && as_dir=.
54860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
54866 # We did not find ourselves, most probably we were run as `sh COMMAND'
54867 # in which case we are not to be found in the path.
54868 if test "x$as_myself" = x; then
54871 if test ! -f "$as_myself"; then
54872 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
54873 { (exit 1); exit 1; }
54876 # Work around bugs in pre-3.0 UWIN ksh.
54877 for as_var in ENV MAIL MAILPATH
54878 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54890 # Required to use basename.
54891 if expr a : '\(a\)' >/dev/null 2>&1 &&
54892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
54898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
54899 as_basename=basename
54905 # Name of the executable.
54906 as_me=`$as_basename -- "$0" ||
54907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
54908 X"$0" : 'X\(//\)$' \| \
54909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54911 sed '/^.*\/\([^/][^/]*\)\/*$/{
54930 as_lineno_1=$LINENO
54931 as_lineno_2=$LINENO
54932 test "x$as_lineno_1" != "x$as_lineno_2" &&
54933 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
54935 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
54936 # uniformly replaced by the line number. The first 'sed' inserts a
54937 # line-number line after each line using $LINENO; the second 'sed'
54938 # does the real work. The second script uses 'N' to pair each
54939 # line-number line with the line containing $LINENO, and appends
54940 # trailing '-' during substitution so that $LINENO is not a special
54941 # case at line end.
54942 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
54943 # scripts with optimization help from Paolo Bonzini. Blame Lee
54944 # E. McMahon (1931-1989) for sed's syntax. :-)
54956 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
54959 ' >$as_me.lineno &&
54960 chmod +x "$as_me.lineno" ||
54961 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
54962 { (exit 1); exit 1; }; }
54964 # Don't try to exec as it changes $[0], causing all sort of problems
54965 # (the dirname of $[0] is not the place where we might find the
54966 # original and so on. Autoconf is especially sensitive to this).
54967 . "./$as_me.lineno"
54968 # Exit status is that of the last command.
54973 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
54979 ECHO_C= ECHO_N= ECHO_T=
54980 case `echo -n x` in
54982 case `echo 'x\c'` in
54983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
54989 if expr a : '\(a\)' >/dev/null 2>&1 &&
54990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
54996 rm -f conf$$ conf$$.exe conf$$.file
54997 if test -d conf$$.dir; then
54998 rm -f conf$$.dir/conf$$.file
55001 mkdir conf$$.dir 2>/dev/null
55003 if (echo >conf$$.file) 2>/dev/null; then
55004 if ln -s conf$$.file conf$$ 2>/dev/null; then
55006 # ... but there are two gotchas:
55007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
55008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
55009 # In both cases, we have to default to `cp -p'.
55010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
55012 elif ln conf$$.file conf$$ 2>/dev/null; then
55020 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
55021 rmdir conf$$.dir 2>/dev/null
55023 if mkdir -p . 2>/dev/null; then
55026 test -d ./-p && rmdir ./-p
55030 if test -x / >/dev/null 2>&1; then
55031 as_test_x='test -x'
55033 if ls -dL / >/dev/null 2>&1; then
55040 if test -d "$1"; then
55046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
55047 ???[sx]*):;;*)false;;esac;fi
55051 as_executable_p=$as_test_x
55053 # Sed expression to map a string onto a valid CPP name.
55054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55056 # Sed expression to map a string onto a valid variable name.
55057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55062 # Save the log message, to keep $[0] and so on meaningful, and to
55063 # report actual input values of CONFIG_FILES etc. instead of their
55064 # values after options handling.
55066 This file was extended by GNU tar $as_me 1.25, which was
55067 generated by GNU Autoconf 2.63. Invocation command line was
55069 CONFIG_FILES = $CONFIG_FILES
55070 CONFIG_HEADERS = $CONFIG_HEADERS
55071 CONFIG_LINKS = $CONFIG_LINKS
55072 CONFIG_COMMANDS = $CONFIG_COMMANDS
55075 on `(hostname || uname -n) 2>/dev/null | sed 1q`
55080 case $ac_config_files in *"
55081 "*) set x $ac_config_files; shift; ac_config_files=$*;;
55084 case $ac_config_headers in *"
55085 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
55089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55090 # Files that config.status was made for.
55091 config_files="$ac_config_files"
55092 config_headers="$ac_config_headers"
55093 config_commands="$ac_config_commands"
55097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55099 \`$as_me' instantiates files from templates according to the
55100 current configuration.
55102 Usage: $0 [OPTION]... [FILE]...
55104 -h, --help print this help, then exit
55105 -V, --version print version number and configuration settings, then exit
55106 -q, --quiet, --silent
55107 do not print progress messages
55108 -d, --debug don't remove temporary files
55109 --recheck update $as_me by reconfiguring in the same conditions
55110 --file=FILE[:TEMPLATE]
55111 instantiate the configuration file FILE
55112 --header=FILE[:TEMPLATE]
55113 instantiate the configuration header FILE
55115 Configuration files:
55118 Configuration headers:
55121 Configuration commands:
55124 Report bugs to <bug-autoconf@gnu.org>."
55127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55129 GNU tar config.status 1.25
55130 configured by $0, generated by GNU Autoconf 2.63,
55131 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
55133 Copyright (C) 2008 Free Software Foundation, Inc.
55134 This config.status script is free software; the Free Software Foundation
55135 gives unlimited permission to copy, distribute and modify it."
55142 test -n "\$AWK" || AWK=awk
55145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55146 # The default lists apply if the user does not specify any file.
55152 ac_option=`expr "X$1" : 'X\([^=]*\)='`
55153 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
55164 # Handling of the options.
55165 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55167 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
55168 $as_echo "$ac_cs_version"; exit ;;
55169 --debug | --debu | --deb | --de | --d | -d )
55171 --file | --fil | --fi | --f )
55174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
55176 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
55177 ac_need_defaults=false;;
55178 --header | --heade | --head | --hea )
55181 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
55183 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
55184 ac_need_defaults=false;;
55186 # Conflict between --help and --header
55187 { $as_echo "$as_me: error: ambiguous option: $1
55188 Try \`$0 --help' for more information." >&2
55189 { (exit 1); exit 1; }; };;
55190 --help | --hel | -h )
55191 $as_echo "$ac_cs_usage"; exit ;;
55192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
55193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
55196 # This is an error.
55197 -*) { $as_echo "$as_me: error: unrecognized option: $1
55198 Try \`$0 --help' for more information." >&2
55199 { (exit 1); exit 1; }; } ;;
55201 *) ac_config_targets="$ac_config_targets $1"
55202 ac_need_defaults=false ;;
55208 ac_configure_extra_args=
55210 if $ac_cs_silent; then
55212 ac_configure_extra_args="$ac_configure_extra_args --silent"
55216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55217 if \$ac_cs_recheck; then
55218 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
55220 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
55221 CONFIG_SHELL='$SHELL'
55222 export CONFIG_SHELL
55227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55232 ## Running $as_me. ##
55238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
55243 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
55244 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
55245 # from automake < 1.5.
55246 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
55247 # Capture the value of LINGUAS because we need it to compute CATALOGS.
55248 LINGUAS="${LINGUAS-%UNSET%}"
55253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55255 # Handling of arguments.
55256 for ac_config_target in $ac_config_targets
55258 case $ac_config_target in
55259 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
55260 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
55261 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
55262 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
55263 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
55264 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
55265 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
55266 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
55267 "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
55268 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
55269 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
55270 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
55271 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
55272 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
55274 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
55275 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
55276 { (exit 1); exit 1; }; };;
55281 # If the user did not use the arguments to specify the items to instantiate,
55282 # then the envvar interface is used. Set only those that are not.
55283 # We use the long form for the default assignment because of an extremely
55284 # bizarre bug on SunOS 4.1.3.
55285 if $ac_need_defaults; then
55286 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
55287 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
55288 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
55291 # Have a temporary directory for convenience. Make it in the build tree
55292 # simply because there is no reason against having it here, and in addition,
55293 # creating and moving files from /tmp can sometimes cause problems.
55294 # Hook for its removal unless debugging.
55295 # Note that there is a small window in which the directory will not be cleaned:
55296 # after its creation but before its name has been assigned to `$tmp'.
55300 trap 'exit_status=$?
55301 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
55303 trap '{ (exit 1); exit 1; }' 1 2 13 15
55305 # Create a (secure) tmp directory for tmp files.
55308 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55309 test -n "$tmp" && test -d "$tmp"
55312 tmp=./conf$$-$RANDOM
55313 (umask 077 && mkdir "$tmp")
55316 $as_echo "$as_me: cannot create a temporary directory in ." >&2
55317 { (exit 1); exit 1; }
55320 # Set up the scripts for CONFIG_FILES section.
55321 # No need to generate them if there are no CONFIG_FILES.
55322 # This happens for instance with `./config.status config.h'.
55323 if test -n "$CONFIG_FILES"; then
55327 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
55328 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
55331 ac_cs_awk_cr=$ac_cr
55334 echo 'BEGIN {' >"$tmp/subs1.awk" &&
55339 echo "cat >conf$$subs.awk <<_ACEOF" &&
55340 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
55342 } >conf$$subs.sh ||
55343 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55344 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55345 { (exit 1); exit 1; }; }
55346 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
55348 for ac_last_try in false false false false false :; do
55349 . ./conf$$subs.sh ||
55350 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55351 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55352 { (exit 1); exit 1; }; }
55354 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
55355 if test $ac_delim_n = $ac_delim_num; then
55357 elif $ac_last_try; then
55358 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55359 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55360 { (exit 1); exit 1; }; }
55362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55365 rm -f conf$$subs.sh
55367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
55372 s/^/S["/; s/!.*/"]=/
55382 s/\(.\{148\}\).*/\1/
55384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
55389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55396 s/\(.\{148\}\).*/\1/
55398 s/["\\]/\\&/g; s/^/"/; s/$/"/
55402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55407 ' <conf$$subs.awk | sed '
55412 ' >>$CONFIG_STATUS || ac_write_fail=1
55413 rm -f conf$$subs.awk
55414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
55417 for (key in S) S_is_set[key] = 1
55423 nfields = split(line, field, "@")
55425 len = length(field[1])
55426 for (i = 2; i < nfields; i++) {
55428 keylen = length(key)
55429 if (S_is_set[key]) {
55431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
55432 len += length(value) + length(field[++i])
55443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
55445 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
55448 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
55449 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
55450 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
55451 { (exit 1); exit 1; }; }
55454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55456 # trailing colons and then remove the whole line if VPATH becomes empty
55457 # (actually we leave an empty line to preserve line numbers).
55458 if test "x$srcdir" = x.; then
55459 ac_vpsub='/^[ ]*VPATH[ ]*=/{
55460 s/:*\$(srcdir):*/:/
55461 s/:*\${srcdir}:*/:/
55463 s/^\([^=]*=[ ]*\):*/\1/
55469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55470 fi # test -n "$CONFIG_FILES"
55472 # Set up the scripts for CONFIG_HEADERS section.
55473 # No need to generate them if there are no CONFIG_HEADERS.
55474 # This happens for instance with `./config.status Makefile'.
55475 if test -n "$CONFIG_HEADERS"; then
55476 cat >"$tmp/defines.awk" <<\_ACAWK ||
55480 # Transform confdefs.h into an awk script `defines.awk', embedded as
55481 # here-document in config.status, that substitutes the proper values into
55482 # config.h.in to produce config.h.
55484 # Create a delimiter string that does not exist in confdefs.h, to ease
55485 # handling of long lines.
55487 for ac_last_try in false false :; do
55488 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
55489 if test -z "$ac_t"; then
55491 elif $ac_last_try; then
55492 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
55493 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
55494 { (exit 1); exit 1; }; }
55496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55500 # For the awk script, D is an array of macro values keyed by name,
55501 # likewise P contains macro parameters if any. Preserve backslash
55502 # newline sequences.
55504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55506 s/.\{148\}/&'"$ac_delim"'/g
55509 s/^[ ]*#[ ]*define[ ][ ]*/ /
55516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
55518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
55522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
55523 D["\1"]=" \3\\\\\\n"\\/p
55525 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
55530 s/.\{148\}/&'"$ac_delim"'/g
55535 s/["\\]/\\&/g; s/^/"/; s/$/"/p
55538 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
55540 ' <confdefs.h | sed '
55541 s/'"$ac_delim"'/"\\\
55542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
55544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55545 for (key in D) D_is_set[key] = 1
55548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
55550 split(line, arg, " ")
55551 if (arg[1] == "#") {
55555 defundef = substr(arg[1], 2)
55558 split(mac1, mac2, "(") #)
55560 prefix = substr(line, 1, index(line, defundef) - 1)
55561 if (D_is_set[macro]) {
55562 # Preserve the white space surrounding the "#".
55563 print prefix "define", macro P[macro] D[macro]
55566 # Replace #undef with comments. This is necessary, for example,
55567 # in the case of _POSIX_SOURCE, which is predefined and required
55568 # on some systems where configure will not decide to define it.
55569 if (defundef == "undef") {
55570 print "/*", prefix defundef, macro, "*/"
55578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55579 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
55580 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
55581 { (exit 1); exit 1; }; }
55582 fi # test -n "$CONFIG_HEADERS"
55585 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
55590 :[FHLC]) ac_mode=$ac_tag; continue;;
55592 case $ac_mode$ac_tag in
55594 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
55595 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
55596 { (exit 1); exit 1; }; };;
55597 :[FH]-) ac_tag=-:-;;
55598 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
55615 -) ac_f="$tmp/stdin";;
55616 *) # Look for the file first in the build tree, then in the source tree
55617 # (if the path is not absolute). The absolute path cannot be DOS-style,
55618 # because $ac_f cannot contain `:'.
55622 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55624 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55625 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55626 { (exit 1); exit 1; }; };;
55628 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
55629 ac_file_inputs="$ac_file_inputs '$ac_f'"
55632 # Let's still pretend it is `configure' which instantiates (i.e., don't
55633 # use $as_me), people would be surprised to read:
55634 # /* config.h. Generated by config.status. */
55635 configure_input='Generated from '`
55636 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
55638 if test x"$ac_file" != x-; then
55639 configure_input="$ac_file. $configure_input"
55640 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
55641 $as_echo "$as_me: creating $ac_file" >&6;}
55643 # Neutralize special characters interpreted by sed in replacement strings.
55644 case $configure_input in #(
55645 *\&* | *\|* | *\\* )
55646 ac_sed_conf_input=`$as_echo "$configure_input" |
55647 sed 's/[\\\\&|]/\\\\&/g'`;; #(
55648 *) ac_sed_conf_input=$configure_input;;
55652 *:-:* | *:-) cat >"$tmp/stdin" \
55653 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55654 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55655 { (exit 1); exit 1; }; } ;;
55660 ac_dir=`$as_dirname -- "$ac_file" ||
55661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55662 X"$ac_file" : 'X\(//\)[^/]' \| \
55663 X"$ac_file" : 'X\(//\)$' \| \
55664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55665 $as_echo X"$ac_file" |
55666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55670 /^X\(\/\/\)[^/].*/{
55685 -*) as_dir=./$as_dir;;
55687 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
55692 *) as_qdir=$as_dir;;
55694 as_dirs="'$as_qdir' $as_dirs"
55695 as_dir=`$as_dirname -- "$as_dir" ||
55696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55697 X"$as_dir" : 'X\(//\)[^/]' \| \
55698 X"$as_dir" : 'X\(//\)$' \| \
55699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55700 $as_echo X"$as_dir" |
55701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55705 /^X\(\/\/\)[^/].*/{
55718 test -d "$as_dir" && break
55720 test -z "$as_dirs" || eval "mkdir $as_dirs"
55721 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55722 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
55723 { (exit 1); exit 1; }; }; }
55727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
55730 # A ".." for each directory in $ac_dir_suffix.
55731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
55732 case $ac_top_builddir_sub in
55733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55737 ac_abs_top_builddir=$ac_pwd
55738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55739 # for backward compatibility:
55740 ac_top_builddir=$ac_top_build_prefix
55743 .) # We are building in place.
55745 ac_top_srcdir=$ac_top_builddir_sub
55746 ac_abs_top_srcdir=$ac_pwd ;;
55747 [\\/]* | ?:[\\/]* ) # Absolute name.
55748 ac_srcdir=$srcdir$ac_dir_suffix;
55749 ac_top_srcdir=$srcdir
55750 ac_abs_top_srcdir=$srcdir ;;
55751 *) # Relative name.
55752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55753 ac_top_srcdir=$ac_top_build_prefix$srcdir
55754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55769 ac_MKDIR_P=$MKDIR_P
55771 [\\/$]* | ?:[\\/]* ) ;;
55772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
55776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55777 # If the template does not know about datarootdir, expand it.
55778 # FIXME: This hack should be removed a few years after 2.60.
55779 ac_datarootdir_hack=; ac_datarootdir_seen=
55792 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
55793 *datarootdir*) ac_datarootdir_seen=yes;;
55794 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55795 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55796 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55799 ac_datarootdir_hack='
55800 s&@datadir@&$datadir&g
55801 s&@docdir@&$docdir&g
55802 s&@infodir@&$infodir&g
55803 s&@localedir@&$localedir&g
55804 s&@mandir@&$mandir&g
55805 s&\\\${datarootdir}&$datarootdir&g' ;;
55809 # Neutralize VPATH when `$srcdir' = `.'.
55810 # Shell code in configure.ac might set extrasub.
55811 # FIXME: do we really want to maintain this feature?
55812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55813 ac_sed_extra="$ac_vpsub
55816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55819 s|@configure_input@|$ac_sed_conf_input|;t t
55820 s&@top_builddir@&$ac_top_builddir_sub&;t t
55821 s&@top_build_prefix@&$ac_top_build_prefix&;t t
55822 s&@srcdir@&$ac_srcdir&;t t
55823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55824 s&@top_srcdir@&$ac_top_srcdir&;t t
55825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55826 s&@builddir@&$ac_builddir&;t t
55827 s&@abs_builddir@&$ac_abs_builddir&;t t
55828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55829 s&@INSTALL@&$ac_INSTALL&;t t
55830 s&@MKDIR_P@&$ac_MKDIR_P&;t t
55831 $ac_datarootdir_hack
55833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
55834 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55835 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55836 { (exit 1); exit 1; }; }
55838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55839 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55840 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55841 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55842 which seems to be undefined. Please make sure it is defined." >&5
55843 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55844 which seems to be undefined. Please make sure it is defined." >&2;}
55848 -) cat "$tmp/out" && rm -f "$tmp/out";;
55849 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
55851 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55852 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55853 { (exit 1); exit 1; }; }
55859 if test x"$ac_file" != x-; then
55861 $as_echo "/* $configure_input */" \
55862 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
55863 } >"$tmp/config.h" \
55864 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55865 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55866 { (exit 1); exit 1; }; }
55867 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
55868 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55869 $as_echo "$as_me: $ac_file is unchanged" >&6;}
55872 mv "$tmp/config.h" "$ac_file" \
55873 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55874 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55875 { (exit 1); exit 1; }; }
55878 $as_echo "/* $configure_input */" \
55879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
55880 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
55881 $as_echo "$as_me: error: could not create -" >&2;}
55882 { (exit 1); exit 1; }; }
55884 # Compute "$ac_file"'s index in $config_headers.
55887 for _am_header in $config_headers :; do
55888 case $_am_header in
55889 $_am_arg | $_am_arg:* )
55892 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
55895 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
55896 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55897 X"$_am_arg" : 'X\(//\)[^/]' \| \
55898 X"$_am_arg" : 'X\(//\)$' \| \
55899 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
55900 $as_echo X"$_am_arg" |
55901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55905 /^X\(\/\/\)[^/].*/{
55917 s/.*/./; q'`/stamp-h$_am_stamp_count
55920 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
55921 $as_echo "$as_me: executing $ac_file commands" >&6;}
55926 case $ac_file$ac_mode in
55927 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
55928 # Autoconf 2.62 quotes --file arguments for eval, but not when files
55929 # are listed without --file. Let's play safe and only enable the eval
55930 # if we detect the quoting.
55931 case $CONFIG_FILES in
55932 *\'*) eval set x "$CONFIG_FILES" ;;
55933 *) set x $CONFIG_FILES ;;
55938 # Strip MF so we end up with the name of the file.
55939 mf=`echo "$mf" | sed -e 's/:.*$//'`
55940 # Check whether this is an Automake generated Makefile or not.
55941 # We used to match only the files named `Makefile.in', but
55942 # some people rename them; so instead we look at the file content.
55943 # Grep'ing the first line is not enough: some people post-process
55944 # each Makefile.in and add a new line on top of each file to say so.
55945 # Grep'ing the whole file is not good either: AIX grep has a line
55946 # limit of 2048, but all sed's we know have understand at least 4000.
55947 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
55948 dirpart=`$as_dirname -- "$mf" ||
55949 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55950 X"$mf" : 'X\(//\)[^/]' \| \
55951 X"$mf" : 'X\(//\)$' \| \
55952 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
55954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55958 /^X\(\/\/\)[^/].*/{
55974 # Extract the definition of DEPDIR, am__include, and am__quote
55975 # from the Makefile without running `make'.
55976 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
55977 test -z "$DEPDIR" && continue
55978 am__include=`sed -n 's/^am__include = //p' < "$mf"`
55979 test -z "am__include" && continue
55980 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
55981 # When using ansi2knr, U may be empty or an underscore; expand it
55982 U=`sed -n 's/^U = //p' < "$mf"`
55983 # Find all dependency output files, they are included files with
55984 # $(DEPDIR) in their names. We invoke sed twice because it is the
55985 # simplest approach to changing $(DEPDIR) to its actual value in the
55987 for file in `sed -n "
55988 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
55989 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
55990 # Make sure the directory exists.
55991 test -f "$dirpart/$file" && continue
55992 fdir=`$as_dirname -- "$file" ||
55993 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55994 X"$file" : 'X\(//\)[^/]' \| \
55995 X"$file" : 'X\(//\)$' \| \
55996 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
55997 $as_echo X"$file" |
55998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56002 /^X\(\/\/\)[^/].*/{
56015 { as_dir=$dirpart/$fdir
56017 -*) as_dir=./$as_dir;;
56019 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
56023 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
56024 *) as_qdir=$as_dir;;
56026 as_dirs="'$as_qdir' $as_dirs"
56027 as_dir=`$as_dirname -- "$as_dir" ||
56028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56029 X"$as_dir" : 'X\(//\)[^/]' \| \
56030 X"$as_dir" : 'X\(//\)$' \| \
56031 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
56032 $as_echo X"$as_dir" |
56033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56037 /^X\(\/\/\)[^/].*/{
56050 test -d "$as_dir" && break
56052 test -z "$as_dirs" || eval "mkdir $as_dirs"
56053 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
56054 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
56055 { (exit 1); exit 1; }; }; }
56056 # echo "creating $dirpart/$file"
56057 echo '# dummy' > "$dirpart/$file"
56062 "po-directories":C)
56063 for ac_file in $CONFIG_FILES; do
56064 # Support "outfile[:infile[:infile...]]"
56066 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
56068 # PO directories have a Makefile.in generated from Makefile.in.in.
56069 case "$ac_file" in */Makefile.in)
56070 # Adjust a relative srcdir.
56071 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
56072 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
56073 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
56074 # In autoconf-2.13 it is called $ac_given_srcdir.
56075 # In autoconf-2.50 it is called $srcdir.
56076 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
56077 case "$ac_given_srcdir" in
56078 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
56079 /*) top_srcdir="$ac_given_srcdir" ;;
56080 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
56082 # Treat a directory as a PO directory if and only if it has a
56083 # POTFILES.in file. This allows packages to have multiple PO
56084 # directories under different names or in different locations.
56085 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
56086 rm -f "$ac_dir/POTFILES"
56087 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
56088 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
56089 POMAKEFILEDEPS="POTFILES.in"
56090 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
56091 # on $ac_dir but don't depend on user-specified configuration
56093 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
56094 # The LINGUAS file contains the set of available languages.
56095 if test -n "$OBSOLETE_ALL_LINGUAS"; then
56096 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
56098 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
56099 # Hide the ALL_LINGUAS assigment from automake < 1.5.
56100 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
56101 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
56103 # The set of available languages was given in configure.in.
56104 # Hide the ALL_LINGUAS assigment from automake < 1.5.
56105 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
56108 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
56109 # Compute UPDATEPOFILES
56110 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
56111 # Compute DUMMYPOFILES
56112 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
56114 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
56115 case "$ac_given_srcdir" in
56117 *) srcdirpre='$(srcdir)/' ;;
56123 for lang in $ALL_LINGUAS; do
56124 POFILES="$POFILES $srcdirpre$lang.po"
56125 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
56126 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
56127 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
56129 # CATALOGS depends on both $ac_dir and the user's LINGUAS
56130 # environment variable.
56132 if test -n "$ALL_LINGUAS"; then
56133 for presentlang in $ALL_LINGUAS; do
56135 if test "%UNSET%" != "$LINGUAS"; then
56136 desiredlanguages="$LINGUAS"
56138 desiredlanguages="$ALL_LINGUAS"
56140 for desiredlang in $desiredlanguages; do
56141 # Use the presentlang catalog if desiredlang is
56142 # a. equal to presentlang, or
56143 # b. a variant of presentlang (because in this case,
56144 # presentlang can be used as a fallback for messages
56145 # which are not translated in the desiredlang catalog).
56146 case "$desiredlang" in
56147 "$presentlang"*) useit=yes;;
56150 if test $useit = yes; then
56151 INST_LINGUAS="$INST_LINGUAS $presentlang"
56156 if test -n "$INST_LINGUAS"; then
56157 for lang in $INST_LINGUAS; do
56158 CATALOGS="$CATALOGS $lang.gmo"
56161 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
56162 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"
56163 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
56164 if test -f "$f"; then
56166 *.orig | *.bak | *~) ;;
56167 *) cat "$f" >> "$ac_dir/Makefile" ;;
56175 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
56176 # Configurable variable values for building test suites.
56178 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
56180 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
56182 abs_builddir='$ac_abs_builddir'
56183 at_srcdir='$ac_srcdir'
56184 abs_srcdir='$ac_abs_srcdir'
56185 at_top_srcdir='$ac_top_srcdir'
56186 abs_top_srcdir='$ac_abs_top_srcdir'
56187 at_top_build_prefix='$ac_top_build_prefix'
56188 abs_top_builddir='$ac_abs_top_builddir'
56190 # Backward compatibility with Autotest <= 2.59b:
56191 at_top_builddir=\$at_top_build_prefix
56193 AUTOTEST_PATH='tests'
56195 SHELL=\${CONFIG_SHELL-'$SHELL'}
56203 { (exit 0); exit 0; }
56205 chmod +x $CONFIG_STATUS
56206 ac_clean_files=$ac_clean_files_save
56208 test $ac_write_fail = 0 ||
56209 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
56210 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
56211 { (exit 1); exit 1; }; }
56214 # configure is writing to config.log, and then calls config.status.
56215 # config.status does its own redirection, appending to config.log.
56216 # Unfortunately, on DOS this fails, as config.log is still kept open
56217 # by configure, so config.status won't be able to write to it; its
56218 # output is simply discarded. So we exec the FD to /dev/null,
56219 # effectively closing config.log, so it can be properly (re)opened and
56220 # appended to by config.status. When coming back to configure, we
56221 # need to make the FD available again.
56222 if test "$no_create" != yes; then
56224 ac_config_status_args=
56225 test "$silent" = yes &&
56226 ac_config_status_args="$ac_config_status_args --quiet"
56228 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
56230 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
56231 # would make configure fail if this is the last instruction.
56232 $ac_cs_success || { (exit 1); exit 1; }
56234 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
56235 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
56236 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}