2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GNU tar 1.21.
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 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='GNU tar'
576 PACKAGE_TARNAME='tar'
577 PACKAGE_VERSION='1.21'
578 PACKAGE_STRING='GNU tar 1.21'
579 PACKAGE_BUGREPORT='bug-tar@gnu.org'
581 ac_unique_file="src/tar.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
630 program_transform_name
672 INSTALL_STRIP_PROGRAM
705 GL_COND_LIBTOOL_FALSE
728 GNULIB_UNISTD_H_SIGPIPE
753 UNISTD_H_HAVE_WINSOCK2_H
786 GNULIB_VFPRINTF_POSIX
790 GNULIB_VSPRINTF_POSIX
792 GNULIB_OBSTACK_PRINTF
793 GNULIB_OBSTACK_PRINTF_POSIX
811 GNULIB_STDIO_H_SIGPIPE
812 REPLACE_STDIO_WRITE_FUNCS
825 HAVE_DECL_OBSTACK_PRINTF
826 REPLACE_OBSTACK_PRINTF
854 HAVE_UNSIGNED_LONG_LONG_INT
862 BITSIZEOF_SIG_ATOMIC_T
866 HAVE_SIGNED_SIG_ATOMIC_T
886 INT32_MAX_LT_INTMAX_MAX
887 INT64_MAX_EQ_LONG_MAX
888 UINT32_MAX_LT_UINTMAX_MAX
889 UINT64_MAX_EQ_ULONG_MAX
892 LOCALCHARSET_TESTS_ENVIRONMENT
926 HAVE_STRUCT_RANDOM_DATA
995 HAVE_DECL_STRNCASECMP
1009 TIME_H_DEFINES_STRUCT_TIMESPEC
1010 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1032 DEFAULT_ARCHIVE_FORMAT
1035 DEFAULT_QUOTING_STYLE
1039 GETTEXT_MACRO_VERSION
1047 XGETTEXT_EXTRA_OPTIONS
1052 BACKUP_LIBEXEC_SCRIPTS
1061 ac_precious_vars='build_alias
1073 DEFAULT_ARCHIVE_FORMAT
1076 DEFAULT_QUOTING_STYLE'
1079 # Initialize some variables set by options.
1081 ac_init_version=false
1082 # The variables have the same names as the options, with
1083 # dashes changed to underlines.
1084 cache_file=/dev/null
1091 program_transform_name=s,x,x,
1099 # Installation directory options.
1100 # These are left unexpanded so users can "make install exec_prefix=/foo"
1101 # and all the variables that are supposed to be based on exec_prefix
1102 # by default will actually change.
1103 # Use braces instead of parens because sh, perl, etc. also accept them.
1104 # (The list follows the same order as the GNU Coding Standards.)
1105 bindir='${exec_prefix}/bin'
1106 sbindir='${exec_prefix}/sbin'
1107 libexecdir='${exec_prefix}/libexec'
1108 datarootdir='${prefix}/share'
1109 datadir='${datarootdir}'
1110 sysconfdir='${prefix}/etc'
1111 sharedstatedir='${prefix}/com'
1112 localstatedir='${prefix}/var'
1113 includedir='${prefix}/include'
1114 oldincludedir='/usr/include'
1115 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1116 infodir='${datarootdir}/info'
1121 libdir='${exec_prefix}/lib'
1122 localedir='${datarootdir}/locale'
1123 mandir='${datarootdir}/man'
1129 # If the previous option needs an argument, assign it.
1130 if test -n "$ac_prev"; then
1131 eval $ac_prev=\$ac_option
1137 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1141 # Accept the important Cygnus configure options, so we can diagnose typos.
1143 case $ac_dashdash$ac_option in
1147 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1149 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1150 bindir=$ac_optarg ;;
1152 -build | --build | --buil | --bui | --bu)
1153 ac_prev=build_alias ;;
1154 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1155 build_alias=$ac_optarg ;;
1157 -cache-file | --cache-file | --cache-fil | --cache-fi \
1158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1159 ac_prev=cache_file ;;
1160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1162 cache_file=$ac_optarg ;;
1164 --config-cache | -C)
1165 cache_file=config.cache ;;
1167 -datadir | --datadir | --datadi | --datad)
1169 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1170 datadir=$ac_optarg ;;
1172 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1173 | --dataroo | --dataro | --datar)
1174 ac_prev=datarootdir ;;
1175 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1176 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1177 datarootdir=$ac_optarg ;;
1179 -disable-* | --disable-*)
1180 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1186 eval enable_$ac_feature=no ;;
1188 -docdir | --docdir | --docdi | --doc | --do)
1190 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1191 docdir=$ac_optarg ;;
1193 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1196 dvidir=$ac_optarg ;;
1198 -enable-* | --enable-*)
1199 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1205 eval enable_$ac_feature=\$ac_optarg ;;
1207 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1208 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1209 | --exec | --exe | --ex)
1210 ac_prev=exec_prefix ;;
1211 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1212 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1213 | --exec=* | --exe=* | --ex=*)
1214 exec_prefix=$ac_optarg ;;
1216 -gas | --gas | --ga | --g)
1217 # Obsolete; use --with-gas.
1220 -help | --help | --hel | --he | -h)
1221 ac_init_help=long ;;
1222 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1223 ac_init_help=recursive ;;
1224 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1225 ac_init_help=short ;;
1227 -host | --host | --hos | --ho)
1228 ac_prev=host_alias ;;
1229 -host=* | --host=* | --hos=* | --ho=*)
1230 host_alias=$ac_optarg ;;
1232 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236 htmldir=$ac_optarg ;;
1238 -includedir | --includedir | --includedi | --included | --include \
1239 | --includ | --inclu | --incl | --inc)
1240 ac_prev=includedir ;;
1241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1242 | --includ=* | --inclu=* | --incl=* | --inc=*)
1243 includedir=$ac_optarg ;;
1245 -infodir | --infodir | --infodi | --infod | --info | --inf)
1247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1248 infodir=$ac_optarg ;;
1250 -libdir | --libdir | --libdi | --libd)
1252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1253 libdir=$ac_optarg ;;
1255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1256 | --libexe | --libex | --libe)
1257 ac_prev=libexecdir ;;
1258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1259 | --libexe=* | --libex=* | --libe=*)
1260 libexecdir=$ac_optarg ;;
1262 -localedir | --localedir | --localedi | --localed | --locale)
1263 ac_prev=localedir ;;
1264 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1265 localedir=$ac_optarg ;;
1267 -localstatedir | --localstatedir | --localstatedi | --localstated \
1268 | --localstate | --localstat | --localsta | --localst | --locals)
1269 ac_prev=localstatedir ;;
1270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1271 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1272 localstatedir=$ac_optarg ;;
1274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1277 mandir=$ac_optarg ;;
1279 -nfp | --nfp | --nf)
1280 # Obsolete; use --without-fp.
1283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1284 | --no-cr | --no-c | -n)
1287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1293 | --oldin | --oldi | --old | --ol | --o)
1294 ac_prev=oldincludedir ;;
1295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1298 oldincludedir=$ac_optarg ;;
1300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1303 prefix=$ac_optarg ;;
1305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1306 | --program-pre | --program-pr | --program-p)
1307 ac_prev=program_prefix ;;
1308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1310 program_prefix=$ac_optarg ;;
1312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1313 | --program-suf | --program-su | --program-s)
1314 ac_prev=program_suffix ;;
1315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1317 program_suffix=$ac_optarg ;;
1319 -program-transform-name | --program-transform-name \
1320 | --program-transform-nam | --program-transform-na \
1321 | --program-transform-n | --program-transform- \
1322 | --program-transform | --program-transfor \
1323 | --program-transfo | --program-transf \
1324 | --program-trans | --program-tran \
1325 | --progr-tra | --program-tr | --program-t)
1326 ac_prev=program_transform_name ;;
1327 -program-transform-name=* | --program-transform-name=* \
1328 | --program-transform-nam=* | --program-transform-na=* \
1329 | --program-transform-n=* | --program-transform-=* \
1330 | --program-transform=* | --program-transfor=* \
1331 | --program-transfo=* | --program-transf=* \
1332 | --program-trans=* | --program-tran=* \
1333 | --progr-tra=* | --program-tr=* | --program-t=*)
1334 program_transform_name=$ac_optarg ;;
1336 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1339 pdfdir=$ac_optarg ;;
1341 -psdir | --psdir | --psdi | --psd | --ps)
1343 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347 | -silent | --silent | --silen | --sile | --sil)
1350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1354 sbindir=$ac_optarg ;;
1356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1358 | --sharedst | --shareds | --shared | --share | --shar \
1360 ac_prev=sharedstatedir ;;
1361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1365 sharedstatedir=$ac_optarg ;;
1367 -site | --site | --sit)
1369 -site=* | --site=* | --sit=*)
1372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1375 srcdir=$ac_optarg ;;
1377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1378 | --syscon | --sysco | --sysc | --sys | --sy)
1379 ac_prev=sysconfdir ;;
1380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1382 sysconfdir=$ac_optarg ;;
1384 -target | --target | --targe | --targ | --tar | --ta | --t)
1385 ac_prev=target_alias ;;
1386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1387 target_alias=$ac_optarg ;;
1389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1392 -version | --version | --versio | --versi | --vers | -V)
1393 ac_init_version=: ;;
1396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1397 # Reject names that are not valid shell variable names.
1398 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399 { echo "$as_me: error: invalid package name: $ac_package" >&2
1400 { (exit 1); exit 1; }; }
1401 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1402 eval with_$ac_package=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408 { echo "$as_me: error: invalid package name: $ac_package" >&2
1409 { (exit 1); exit 1; }; }
1410 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1411 eval with_$ac_package=no ;;
1414 # Obsolete; use --with-x.
1417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1418 | --x-incl | --x-inc | --x-in | --x-i)
1419 ac_prev=x_includes ;;
1420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1422 x_includes=$ac_optarg ;;
1424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1426 ac_prev=x_libraries ;;
1427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1429 x_libraries=$ac_optarg ;;
1431 -*) { echo "$as_me: error: unrecognized option: $ac_option
1432 Try \`$0 --help' for more information." >&2
1433 { (exit 1); exit 1; }; }
1437 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438 # Reject names that are not valid shell variable names.
1439 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1440 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1441 { (exit 1); exit 1; }; }
1442 eval $ac_envvar=\$ac_optarg
1443 export $ac_envvar ;;
1446 # FIXME: should be removed in autoconf 3.0.
1447 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1448 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1450 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1456 if test -n "$ac_prev"; then
1457 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1458 { echo "$as_me: error: missing argument to $ac_option" >&2
1459 { (exit 1); exit 1; }; }
1462 # Be sure to have absolute directory names.
1463 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464 datadir sysconfdir sharedstatedir localstatedir includedir \
1465 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466 libdir localedir mandir
1468 eval ac_val=\$$ac_var
1470 [\\/$]* | ?:[\\/]* ) continue;;
1471 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1473 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1474 { (exit 1); exit 1; }; }
1477 # There might be people who depend on the old broken behavior: `$host'
1478 # used to hold the argument of --host etc.
1479 # FIXME: To remove some day.
1482 target=$target_alias
1484 # FIXME: To remove some day.
1485 if test "x$host_alias" != x; then
1486 if test "x$build_alias" = x; then
1487 cross_compiling=maybe
1488 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1489 If a cross compiler is detected then cross compile mode will be used." >&2
1490 elif test "x$build_alias" != "x$host_alias"; then
1496 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498 test "$silent" = yes && exec 6>/dev/null
1501 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1502 ac_ls_di=`ls -di .` &&
1503 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1504 { echo "$as_me: error: Working directory cannot be determined" >&2
1505 { (exit 1); exit 1; }; }
1506 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507 { echo "$as_me: error: pwd does not report name of working directory" >&2
1508 { (exit 1); exit 1; }; }
1511 # Find the source files, if location was not specified.
1512 if test -z "$srcdir"; then
1513 ac_srcdir_defaulted=yes
1514 # Try the directory containing this script, then the parent directory.
1515 ac_confdir=`$as_dirname -- "$0" ||
1516 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1517 X"$0" : 'X\(//\)[^/]' \| \
1518 X"$0" : 'X\(//\)$' \| \
1519 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1539 if test ! -r "$srcdir/$ac_unique_file"; then
1543 ac_srcdir_defaulted=no
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1547 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1548 { (exit 1); exit 1; }; }
1550 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1552 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1553 { (exit 1); exit 1; }; }
1555 # When building in place, set srcdir=.
1556 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559 # Remove unnecessary trailing slashes from srcdir.
1560 # Double slashes in file names in object file debugging info
1561 # mess up M-x gdb in Emacs.
1563 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 for ac_var in $ac_precious_vars; do
1566 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1567 eval ac_env_${ac_var}_value=\$${ac_var}
1568 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 # Report the --help message.
1575 if test "$ac_init_help" = "long"; then
1576 # Omit some internal or obsolete options to make the list less imposing.
1577 # This message is too long to be a string in the A/UX 3.1 sh.
1579 \`configure' configures GNU tar 1.21 to adapt to many kinds of systems.
1581 Usage: $0 [OPTION]... [VAR=VALUE]...
1583 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1584 VAR=VALUE. See below for descriptions of some of the useful variables.
1586 Defaults for the options are specified in brackets.
1589 -h, --help display this help and exit
1590 --help=short display options specific to this package
1591 --help=recursive display the short help of all the included packages
1592 -V, --version display version information and exit
1593 -q, --quiet, --silent do not print \`checking...' messages
1594 --cache-file=FILE cache test results in FILE [disabled]
1595 -C, --config-cache alias for \`--cache-file=config.cache'
1596 -n, --no-create do not create output files
1597 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1599 Installation directories:
1600 --prefix=PREFIX install architecture-independent files in PREFIX
1601 [$ac_default_prefix]
1602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1605 By default, \`make install' will install all the files in
1606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1608 for instance \`--prefix=\$HOME'.
1610 For better control, use the options below.
1612 Fine tuning of the installation directories:
1613 --bindir=DIR user executables [EPREFIX/bin]
1614 --sbindir=DIR system admin executables [EPREFIX/sbin]
1615 --libexecdir=DIR program executables [EPREFIX/libexec]
1616 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1617 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1618 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1619 --libdir=DIR object code libraries [EPREFIX/lib]
1620 --includedir=DIR C header files [PREFIX/include]
1621 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1622 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1623 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1624 --infodir=DIR info documentation [DATAROOTDIR/info]
1625 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1626 --mandir=DIR man documentation [DATAROOTDIR/man]
1627 --docdir=DIR documentation root [DATAROOTDIR/doc/tar]
1628 --htmldir=DIR html documentation [DOCDIR]
1629 --dvidir=DIR dvi documentation [DOCDIR]
1630 --pdfdir=DIR pdf documentation [DOCDIR]
1631 --psdir=DIR ps documentation [DOCDIR]
1637 --program-prefix=PREFIX prepend PREFIX to installed program names
1638 --program-suffix=SUFFIX append SUFFIX to installed program names
1639 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1642 --build=BUILD configure for building on BUILD [guessed]
1643 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1647 if test -n "$ac_init_help"; then
1648 case $ac_init_help in
1649 short | recursive ) echo "Configuration of GNU tar 1.21:";;
1654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1656 --disable-dependency-tracking speeds up one-time build
1657 --enable-dependency-tracking do not reject slow dependency extractors
1658 --disable-largefile omit support for large files
1659 --disable-rpath do not hardcode runtime library paths
1660 --disable-nls do not use Native Language Support
1661 --enable-backup-scripts Create and install backup and restore scripts
1664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1666 --without-included-regex
1667 don't compile regex; this is the default on 32-bit
1668 systems with recent-enough versions of the GNU C
1669 Library (use with caution on other systems). On
1670 systems with 64-bit ptrdiff_t and 32-bit int,
1671 --with-included-regex is the default, in case regex
1672 functions operate on very long strings (>2GB)
1673 --with-rmt=FILE Use FILE as the default `rmt' program. Do not build
1674 included copy of `rmt'.
1675 --with-gnu-ld assume the C compiler uses GNU ld default=no
1676 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1677 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1678 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1679 --without-libintl-prefix don't search for libintl in includedir and libdir
1681 Some influential environment variables:
1682 CC C compiler command
1683 CFLAGS C compiler flags
1684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1685 nonstandard directory <lib dir>
1686 LIBS libraries to pass to the linker, e.g. -l<library>
1687 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1688 you have headers in a nonstandard directory <include dir>
1689 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1690 the first program found out of: `bison -y', `byacc', `yacc'.
1691 YFLAGS The list of arguments that will be passed by default to $YACC.
1692 This script will default YFLAGS to the empty string to avoid a
1693 default value of `-d' given by some make applications.
1696 Define full file name of the directory where to install `rmt'.
1697 (default: $(libexecdir))
1698 DEFAULT_ARCHIVE_FORMAT
1699 Set the default archive format. Allowed values are: V7, OLDGNU,
1700 USTAR, POSIX, GNU. Default is GNU
1702 Set the name of the default archive (default: -)
1704 Define default blocking factor (default: 20)
1705 DEFAULT_QUOTING_STYLE
1706 Set the default quoting style. Allowed values are: literal,
1707 shell, shell-always, c, escape, locale, clocale . Default is
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1713 Report bugs to <bug-tar@gnu.org>.
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" || continue
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1741 .) # We are building in place.
1743 ac_top_srcdir=$ac_top_builddir_sub
1744 ac_abs_top_srcdir=$ac_pwd ;;
1745 [\\/]* | ?:[\\/]* ) # Absolute name.
1746 ac_srcdir=$srcdir$ac_dir_suffix;
1747 ac_top_srcdir=$srcdir
1748 ac_abs_top_srcdir=$srcdir ;;
1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756 cd "$ac_dir" || { ac_status=$?; continue; }
1757 # Check for guested configure.
1758 if test -f "$ac_srcdir/configure.gnu"; then
1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761 elif test -f "$ac_srcdir/configure"; then
1763 $SHELL "$ac_srcdir/configure" --help=recursive
1765 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 cd "$ac_pwd" || { ac_status=$?; break; }
1771 test -n "$ac_init_help" && exit $ac_status
1772 if $ac_init_version; then
1774 GNU tar configure 1.21
1775 generated by GNU Autoconf 2.61
1777 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1778 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1784 cat >config.log <<_ACEOF
1785 This file contains any messages produced by compilers while
1786 running configure, to aid debugging if configure makes a mistake.
1788 It was created by GNU tar $as_me 1.21, which was
1789 generated by GNU Autoconf 2.61. Invocation command line was
1801 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1802 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1803 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1804 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1805 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1808 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1810 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1811 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1812 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1813 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1814 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1815 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1816 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 echo "PATH: $as_dir"
1841 # Keep a trace of the command line.
1842 # Strip out --no-create and --no-recursion so they do not pile up.
1843 # Strip out --silent because we don't want to record it for future runs.
1844 # Also quote any args containing shell meta-characters.
1845 # Make two passes to allow for proper duplicate-argument suppression.
1849 ac_must_keep_next=false
1855 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1857 | -silent | --silent | --silen | --sile | --sil)
1860 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1865 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1866 if test $ac_must_keep_next = true; then
1867 ac_must_keep_next=false # Got value, back to normal.
1870 *=* | --config-cache | -C | -disable-* | --disable-* \
1871 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1872 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1873 | -with-* | --with-* | -without-* | --without-* | --x)
1874 case "$ac_configure_args0 " in
1875 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1878 -* ) ac_must_keep_next=true ;;
1881 ac_configure_args="$ac_configure_args '$ac_arg'"
1886 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1887 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1889 # When interrupted or exit'd, cleanup temporary files, and complete
1890 # config.log. We remove comments because anyway the quotes in there
1891 # would cause problems or look ugly.
1892 # WARNING: Use '\'' to represent an apostrophe within the trap.
1893 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1894 trap 'exit_status=$?
1895 # Save into config.log some information that might help in debugging.
1900 ## ---------------- ##
1901 ## Cache variables. ##
1902 ## ---------------- ##
1905 # The following way of writing the cache mishandles newlines in values,
1907 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908 eval ac_val=\$$ac_var
1912 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1913 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1916 _ | IFS | as_nl) ;; #(
1917 *) $as_unset $ac_var ;;
1922 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1923 *${as_nl}ac_space=\ *)
1925 "s/'\''/'\''\\\\'\'''\''/g;
1926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937 ## ----------------- ##
1938 ## Output variables. ##
1939 ## ----------------- ##
1942 for ac_var in $ac_subst_vars
1944 eval ac_val=\$$ac_var
1946 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1948 echo "$ac_var='\''$ac_val'\''"
1952 if test -n "$ac_subst_files"; then
1954 ## ------------------- ##
1955 ## File substitutions. ##
1956 ## ------------------- ##
1959 for ac_var in $ac_subst_files
1961 eval ac_val=\$$ac_var
1963 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 echo "$ac_var='\''$ac_val'\''"
1970 if test -s confdefs.h; then
1980 test "$ac_signal" != 0 &&
1981 echo "$as_me: caught signal $ac_signal"
1982 echo "$as_me: exit $exit_status"
1984 rm -f core *.core core.conftest.* &&
1985 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988 for ac_signal in 1 2 13 15; do
1989 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1996 # Predefined preprocessor variables.
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_NAME "$PACKAGE_NAME"
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_STRING "$PACKAGE_STRING"
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2023 # Let the site file select an alternate cache file if it wants to.
2024 # Prefer explicitly selected file to automatically selected ones.
2025 if test -n "$CONFIG_SITE"; then
2026 set x "$CONFIG_SITE"
2027 elif test "x$prefix" != xNONE; then
2028 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2030 set x "$ac_default_prefix/share/config.site" \
2031 "$ac_default_prefix/etc/config.site"
2036 if test -r "$ac_site_file"; then
2037 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2038 echo "$as_me: loading site script $ac_site_file" >&6;}
2039 sed 's/^/| /' "$ac_site_file" >&5
2044 if test -r "$cache_file"; then
2045 # Some versions of bash will fail to source /dev/null (special
2046 # files actually), so we avoid doing that.
2047 if test -f "$cache_file"; then
2048 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2049 echo "$as_me: loading cache $cache_file" >&6;}
2051 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2052 *) . "./$cache_file";;
2056 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2057 echo "$as_me: creating cache $cache_file" >&6;}
2061 ac_header_list="$ac_header_list fcntl.h"
2062 ac_header_list="$ac_header_list linux/fd.h"
2063 ac_header_list="$ac_header_list memory.h"
2064 ac_header_list="$ac_header_list net/errno.h"
2065 ac_header_list="$ac_header_list sgtty.h"
2066 ac_header_list="$ac_header_list string.h"
2067 ac_header_list="$ac_header_list stropts.h"
2068 ac_header_list="$ac_header_list sys/param.h"
2069 ac_header_list="$ac_header_list sys/device.h"
2070 ac_header_list="$ac_header_list sys/filio.h"
2071 ac_header_list="$ac_header_list sys/gentape.h"
2072 ac_header_list="$ac_header_list sys/inet.h"
2073 ac_header_list="$ac_header_list sys/io/trioctl.h"
2074 ac_header_list="$ac_header_list sys/mtio.h"
2075 ac_header_list="$ac_header_list sys/time.h"
2076 ac_header_list="$ac_header_list sys/tprintf.h"
2077 ac_header_list="$ac_header_list sys/tape.h"
2078 ac_header_list="$ac_header_list unistd.h"
2079 ac_header_list="$ac_header_list locale.h"
2080 ac_func_list="$ac_func_list flockfile"
2081 ac_func_list="$ac_func_list funlockfile"
2082 ac_header_list="$ac_header_list features.h"
2083 ac_header_list="$ac_header_list linewrap.h"
2084 ac_func_list="$ac_func_list pathconf"
2085 ac_func_list="$ac_func_list canonicalize_file_name"
2086 ac_func_list="$ac_func_list getcwd"
2087 ac_func_list="$ac_func_list readlink"
2088 ac_header_list="$ac_header_list dirent.h"
2089 ac_func_list="$ac_func_list dup2"
2090 ac_header_list="$ac_header_list errno.h"
2091 ac_func_list="$ac_func_list fchdir"
2092 ac_header_list="$ac_header_list float.h"
2093 ac_func_list="$ac_func_list btowc"
2094 ac_func_list="$ac_func_list isblank"
2095 ac_func_list="$ac_func_list iswctype"
2096 ac_func_list="$ac_func_list mbsrtowcs"
2097 ac_func_list="$ac_func_list mempcpy"
2098 ac_func_list="$ac_func_list wmemchr"
2099 ac_func_list="$ac_func_list wmemcpy"
2100 ac_func_list="$ac_func_list wmempcpy"
2101 ac_header_list="$ac_header_list wctype.h"
2102 ac_header_list="$ac_header_list stdio_ext.h"
2103 ac_func_list="$ac_func_list __fpending"
2104 ac_func_list="$ac_func_list ftruncate"
2105 ac_func_list="$ac_func_list gettimeofday"
2106 ac_func_list="$ac_func_list nanotime"
2107 ac_header_list="$ac_header_list stdint.h"
2108 ac_header_list="$ac_header_list wchar.h"
2109 ac_header_list="$ac_header_list inttypes.h"
2110 ac_func_list="$ac_func_list alarm"
2111 ac_func_list="$ac_func_list lchmod"
2112 ac_func_list="$ac_func_list fdopendir"
2113 ac_func_list="$ac_func_list mbsinit"
2114 ac_func_list="$ac_func_list mbrtowc"
2115 ac_func_list="$ac_func_list wcrtomb"
2116 ac_func_list="$ac_func_list wcscoll"
2117 ac_func_list="$ac_func_list setenv"
2118 ac_header_list="$ac_header_list stdarg.h"
2119 ac_header_list="$ac_header_list stdio.h"
2120 ac_header_list="$ac_header_list stdlib.h"
2121 ac_header_list="$ac_header_list sys/socket.h"
2122 ac_header_list="$ac_header_list strings.h"
2123 ac_func_list="$ac_func_list lstat"
2124 ac_header_list="$ac_header_list sys/stat.h"
2125 ac_header_list="$ac_header_list sysexits.h"
2126 ac_header_list="$ac_header_list time.h"
2127 ac_func_list="$ac_func_list pipe"
2128 ac_header_list="$ac_header_list priv.h"
2129 ac_header_list="$ac_header_list utime.h"
2130 ac_func_list="$ac_func_list futimes"
2131 ac_func_list="$ac_func_list futimesat"
2132 ac_func_list="$ac_func_list futimens"
2133 ac_func_list="$ac_func_list utimensat"
2134 ac_func_list="$ac_func_list vasnprintf"
2135 ac_func_list="$ac_func_list iswcntrl"
2136 ac_func_list="$ac_func_list wcwidth"
2137 ac_header_list="$ac_header_list netdb.h"
2138 ac_header_list="$ac_header_list sys/wait.h"
2139 ac_header_list="$ac_header_list pwd.h"
2140 ac_header_list="$ac_header_list grp.h"
2141 ac_func_list="$ac_func_list mkfifo"
2142 ac_func_list="$ac_func_list setlocale"
2143 gt_needs="$gt_needs need-formatstring-macros"
2144 # Check that the precious variables saved in the cache have kept the same
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
2152 case $ac_old_set,$ac_new_set in
2154 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156 ac_cache_corrupted=: ;;
2158 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2159 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
2164 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2165 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2166 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2167 echo "$as_me: former value: $ac_old_val" >&2;}
2168 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2169 echo "$as_me: current value: $ac_new_val" >&2;}
2170 ac_cache_corrupted=:
2173 # Pass precious variables to config.status.
2174 if test "$ac_new_set" = set; then
2176 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 *) ac_arg=$ac_var=$ac_new_val ;;
2179 case " $ac_configure_args " in
2180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2181 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2185 if $ac_cache_corrupted; then
2186 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2187 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2188 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2189 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2190 { (exit 1); exit 1; }; }
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226 for ac_dir in build-aux "$srcdir"/build-aux; do
2227 if test -f "$ac_dir/install-sh"; then
2229 ac_install_sh="$ac_aux_dir/install-sh -c"
2231 elif test -f "$ac_dir/install.sh"; then
2233 ac_install_sh="$ac_aux_dir/install.sh -c"
2235 elif test -f "$ac_dir/shtool"; then
2237 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 if test -z "$ac_aux_dir"; then
2242 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2243 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2244 { (exit 1); exit 1; }; }
2247 # These three variables are undocumented and unsupported,
2248 # and are intended to be withdrawn in a future Autoconf release.
2249 # They can cause serious problems if a builder's source tree is in a directory
2250 # whose full name contains unusual characters.
2251 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2252 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2253 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2256 ac_config_headers="$ac_config_headers config.h:config.hin"
2259 am__api_version='1.10'
2261 # Find a good install program. We prefer a C program (faster),
2262 # so one script is as good as another. But avoid the broken or
2263 # incompatible versions:
2264 # SysV /etc/install, /usr/sbin/install
2265 # SunOS /usr/etc/install
2266 # IRIX /sbin/install
2268 # AmigaOS /C/install, which installs bootblocks on floppy discs
2269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2272 # OS/2's system install, which has a completely different semantic
2273 # ./install, which can be erroneously created by make from ./install.sh.
2274 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2276 if test -z "$INSTALL"; then
2277 if test "${ac_cv_path_install+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 # Account for people who put trailing slashes in PATH elements.
2287 ./ | .// | /cC/* | \
2288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2292 # OSF1 and SCO ODT 3.0 have their own names for install.
2293 # Don't use installbsd from OSF since it installs stuff as root
2295 for ac_prog in ginstall scoinst install; do
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2298 if test $ac_prog = install &&
2299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300 # AIX install. It has an incompatible calling convention.
2302 elif test $ac_prog = install &&
2303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304 # program-specific install script used by HP pwplus--don't use.
2307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2320 if test "${ac_cv_path_install+set}" = set; then
2321 INSTALL=$ac_cv_path_install
2323 # As a last resort, use the slow shell script. Don't cache a
2324 # value for INSTALL within a source directory, because that will
2325 # break other packages using the cache if that directory is
2326 # removed, or if the value is a relative name.
2327 INSTALL=$ac_install_sh
2330 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2331 echo "${ECHO_T}$INSTALL" >&6; }
2333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2334 # It thinks the first close brace ends the variable substitution.
2335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2341 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2342 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2345 echo timestamp > conftest.file
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments. Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2352 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2353 if test "$*" = "X"; then
2355 set X `ls -t $srcdir/configure conftest.file`
2358 if test "$*" != "X $srcdir/configure conftest.file" \
2359 && test "$*" != "X conftest.file $srcdir/configure"; then
2361 # If neither matched, then we have a broken ls. This can happen
2362 # if, for instance, CONFIG_SHELL is bash and it inherits a
2363 # broken ls alias from the environment. This has actually
2364 # happened. Such a system could not be considered "sane".
2365 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2366 alias in your environment" >&5
2367 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2368 alias in your environment" >&2;}
2369 { (exit 1); exit 1; }; }
2372 test "$2" = conftest.file
2378 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2379 Check your system clock" >&5
2380 echo "$as_me: error: newly created file is older than distributed files!
2381 Check your system clock" >&2;}
2382 { (exit 1); exit 1; }; }
2384 { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386 test "$program_prefix" != NONE &&
2387 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2388 # Use a double $ so make ignores it.
2389 test "$program_suffix" != NONE &&
2390 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2391 # Double any \ or $. echo might interpret backslashes.
2392 # By default was `s,x,x', remove it if useless.
2393 cat <<\_ACEOF >conftest.sed
2394 s/[\\$]/&&/g;s/;s,x,x,$//
2396 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2399 # expand $ac_aux_dir to an absolute path
2400 am_aux_dir=`cd $ac_aux_dir && pwd`
2402 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2403 # Use eval to expand $SHELL
2404 if eval "$MISSING --run true"; then
2405 am_missing_run="$MISSING --run "
2408 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2409 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2412 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2413 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2414 if test -z "$MKDIR_P"; then
2415 if test "${ac_cv_path_mkdir+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2422 test -z "$as_dir" && as_dir=.
2423 for ac_prog in mkdir gmkdir; do
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2426 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2427 'mkdir (GNU coreutils) '* | \
2428 'mkdir (coreutils) '* | \
2429 'mkdir (fileutils) '4.1*)
2430 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2440 if test "${ac_cv_path_mkdir+set}" = set; then
2441 MKDIR_P="$ac_cv_path_mkdir -p"
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for MKDIR_P within a source directory, because that will
2445 # break other packages using the cache if that directory is
2446 # removed, or if the value is a relative name.
2447 test -d ./--version && rmdir ./--version
2448 MKDIR_P="$ac_install_sh -d"
2451 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2452 echo "${ECHO_T}$MKDIR_P" >&6; }
2456 [\\/$]* | ?:[\\/]*) ;;
2457 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2460 for ac_prog in gawk mawk nawk awk
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_AWK+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$AWK"; then
2470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_AWK="$ac_prog"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test -n "$AWK"; then
2491 { echo "$as_me:$LINENO: result: $AWK" >&5
2492 echo "${ECHO_T}$AWK" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2499 test -n "$AWK" && break
2502 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2504 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2505 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.make <<\_ACEOF
2511 @echo '@@@%%%=$(MAKE)=@@@%%%'
2513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2516 eval ac_cv_prog_make_${ac_make}_set=yes;;
2518 eval ac_cv_prog_make_${ac_make}_set=no;;
2522 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2523 { echo "$as_me:$LINENO: result: yes" >&5
2524 echo "${ECHO_T}yes" >&6; }
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529 SET_MAKE="MAKE=${MAKE-make}"
2532 rm -rf .tst 2>/dev/null
2533 mkdir .tst 2>/dev/null
2534 if test -d .tst; then
2539 rmdir .tst 2>/dev/null
2541 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2542 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2543 # is not polluted with repeated "-I."
2544 am__isrc=' -I$(srcdir)'
2545 # test to see if srcdir already configured
2546 if test -f $srcdir/config.status; then
2547 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2548 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2549 { (exit 1); exit 1; }; }
2553 # test whether we have cygpath
2554 if test -z "$CYGPATH_W"; then
2555 if (cygpath --version) >/dev/null 2>/dev/null; then
2556 CYGPATH_W='cygpath -w'
2563 # Define the identity of the package.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE "$PACKAGE"
2573 cat >>confdefs.h <<_ACEOF
2574 #define VERSION "$VERSION"
2577 # Some tools Automake needs.
2579 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2582 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2585 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2588 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2591 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2593 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2595 # Installed binaries are usually stripped using `strip' when the user
2596 # run `make install-strip'. However `strip' might not be the right
2597 # tool to use in cross-compilation environments, therefore Automake
2598 # will honor the `STRIP' environment variable to overrule this program.
2599 if test "$cross_compiling" != no; then
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}strip; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_STRIP+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$STRIP"; then
2609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 STRIP=$ac_cv_prog_STRIP
2629 if test -n "$STRIP"; then
2630 { echo "$as_me:$LINENO: result: $STRIP" >&5
2631 echo "${ECHO_T}$STRIP" >&6; }
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2639 if test -z "$ac_cv_prog_STRIP"; then
2641 # Extract the first word of "strip", so it can be a program name with args.
2642 set dummy strip; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$ac_ct_STRIP"; then
2649 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_STRIP="strip"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2669 if test -n "$ac_ct_STRIP"; then
2670 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2671 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2673 { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2677 if test "x$ac_ct_STRIP" = x; then
2680 case $cross_compiling:$ac_tool_warned in
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2693 STRIP="$ac_cv_prog_STRIP"
2697 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2699 # We need awk for the "check" target. The system "awk" is bad on
2701 # Always define AMTAR for backward compatibility.
2703 AMTAR=${AMTAR-"${am_missing_run}tar"}
2706 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2707 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2708 # Loop over all known methods to create a tar archive until one works.
2709 _am_tools='gnutar plaintar pax cpio none'
2710 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2711 # Do not fold the above two line into one, because Tru64 sh and
2712 # Solaris sh will not grok spaces in the rhs of `-'.
2713 for _am_tool in $_am_tools
2717 for _am_tar in tar gnutar gtar;
2719 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2720 ($_am_tar --version) >&5 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } && break
2725 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2726 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2727 am__untar="$_am_tar -xf -"
2730 # Must skip GNU tar: if it does not support --format= it doesn't create
2731 # ustar tarball either.
2732 (tar --version) >/dev/null 2>&1 && continue
2733 am__tar='tar chf - "$$tardir"'
2734 am__tar_='tar chf - "$tardir"'
2735 am__untar='tar xf -'
2738 am__tar='pax -L -x ustar -w "$$tardir"'
2739 am__tar_='pax -L -x ustar -w "$tardir"'
2743 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2744 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2745 am__untar='cpio -i -H ustar -d'
2754 # If the value was cached, stop now. We just wanted to have am__tar
2755 # and am__untar set.
2756 test -n "${am_cv_prog_tar_ustar}" && break
2758 # tar/untar a dummy directory, and stop if the command works
2761 echo GrepMe > conftest.dir/file
2762 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2763 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2768 if test -s conftest.tar; then
2769 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2770 ($am__untar <conftest.tar) >&5 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2774 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2779 if test "${am_cv_prog_tar_ustar+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 am_cv_prog_tar_ustar=$_am_tool
2785 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2786 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 { echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6; }
2831 { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2837 if test -z "$ac_cv_prog_CC"; then
2839 # Extract the first word of "gcc", so it can be a program name with args.
2840 set dummy gcc; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$ac_ct_CC"; then
2847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CC="gcc"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869 echo "${ECHO_T}$ac_ct_CC" >&6; }
2871 { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2875 if test "x$ac_ct_CC" = x; then
2878 case $cross_compiling:$ac_tool_warned in
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet. If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned=yes ;;
2894 if test -z "$CC"; then
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}cc; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_CC="${ac_tool_prefix}cc"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test -n "$CC"; then
2925 { echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6; }
2928 { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2935 if test -z "$CC"; then
2936 # Extract the first word of "cc", so it can be a program name with args.
2937 set dummy cc; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955 ac_prog_rejected=yes
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test $ac_prog_rejected = yes; then
2967 # We found a bogon in the path, so make sure we never use it.
2968 set dummy $ac_cv_prog_CC
2970 if test $# != 0; then
2971 # We chose a different compiler from the bogus one.
2972 # However, it has the same basename, so the bogon will be chosen
2973 # first if we set CC to just the basename; use the full file name.
2975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2981 if test -n "$CC"; then
2982 { echo "$as_me:$LINENO: result: $CC" >&5
2983 echo "${ECHO_T}$CC" >&6; }
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2991 if test -z "$CC"; then
2992 if test -n "$ac_tool_prefix"; then
2993 for ac_prog in cl.exe
2995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 if test -n "$CC"; then
3024 { echo "$as_me:$LINENO: result: $CC" >&5
3025 echo "${ECHO_T}$CC" >&6; }
3027 { echo "$as_me:$LINENO: result: no" >&5
3028 echo "${ECHO_T}no" >&6; }
3032 test -n "$CC" && break
3035 if test -z "$CC"; then
3037 for ac_prog in cl.exe
3039 # Extract the first word of "$ac_prog", so it can be a program name with args.
3040 set dummy $ac_prog; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_ac_ct_CC="$ac_prog"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3069 echo "${ECHO_T}$ac_ct_CC" >&6; }
3071 { echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6; }
3076 test -n "$ac_ct_CC" && break
3079 if test "x$ac_ct_CC" = x; then
3082 case $cross_compiling:$ac_tool_warned in
3084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3085 whose name does not start with the host triplet. If you think this
3086 configuration is useful to you, please write to autoconf@gnu.org." >&5
3087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet. If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3090 ac_tool_warned=yes ;;
3099 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: no acceptable C compiler found in \$PATH
3102 See \`config.log' for more details." >&2;}
3103 { (exit 1); exit 1; }; }
3105 # Provide some information about the compiler.
3106 echo "$as_me:$LINENO: checking for C compiler version" >&5
3107 ac_compiler=`set X $ac_compile; echo $2`
3108 { (ac_try="$ac_compiler --version >&5"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_compiler --version >&5") 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }
3118 { (ac_try="$ac_compiler -v >&5"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compiler -v >&5") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3128 { (ac_try="$ac_compiler -V >&5"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compiler -V >&5") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3156 # Try to create an executable without -o first, disregard a.out.
3157 # It will help us diagnose broken compilers, and finding out an intuition
3159 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163 # List of possible output files, starting from the most likely.
3164 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3165 # only as a last resort. b.out is created by i960 compilers.
3166 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3168 # The IRIX 6 linker writes into existing files which may not be
3169 # executable, retaining their permissions. Remove them first so a
3170 # subsequent execution test works.
3172 for ac_file in $ac_files
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3176 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3181 if { (ac_try="$ac_link_default"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_link_default") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; then
3191 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3194 # so that the user can short-circuit this test for compilers unknown to
3196 for ac_file in $ac_files ''
3198 test -f "$ac_file" || continue
3200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3203 # We found the default executable, but exeext='' is most
3207 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 # We set ac_cv_exeext here because the later test for it is not
3212 # safe: cross compilers may not add the suffix if given an `-o'
3213 # argument, so we may need to know it at that point already.
3214 # Even if this section looks crufty: it has the advantage of
3221 test "$ac_cv_exeext" = no && ac_cv_exeext=
3227 { echo "$as_me:$LINENO: result: $ac_file" >&5
3228 echo "${ECHO_T}$ac_file" >&6; }
3229 if test -z "$ac_file"; then
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: C compiler cannot create executables
3236 See \`config.log' for more details." >&2;}
3237 { (exit 77); exit 77; }; }
3240 ac_exeext=$ac_cv_exeext
3242 # Check that the compiler produces executables we can run. If not, either
3243 # the compiler is broken, or we cross compile.
3244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3247 # If not cross compiling, check that we can run a simple program.
3248 if test "$cross_compiling" != yes; then
3249 if { ac_try='./$ac_file'
3250 { (case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_try") 2>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3261 if test "$cross_compiling" = maybe; then
3264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details." >&5
3267 echo "$as_me: error: cannot run C compiled programs.
3268 If you meant to cross compile, use \`--host'.
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3274 { echo "$as_me:$LINENO: result: yes" >&5
3275 echo "${ECHO_T}yes" >&6; }
3277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3278 ac_clean_files=$ac_clean_files_save
3279 # Check that the compiler produces executables we can run. If not, either
3280 # the compiler is broken, or we cross compile.
3281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3284 echo "${ECHO_T}$cross_compiling" >&6; }
3286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3288 if { (ac_try="$ac_link"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_link") 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; then
3298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3300 # work properly (i.e., refer to `conftest.exe'), while it won't with
3302 for ac_file in conftest.exe conftest conftest.*; do
3303 test -f "$ac_file" || continue
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3313 See \`config.log' for more details." >&5
3314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3315 See \`config.log' for more details." >&2;}
3316 { (exit 1); exit 1; }; }
3319 rm -f conftest$ac_cv_exeext
3320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3323 rm -f conftest.$ac_ext
3324 EXEEXT=$ac_cv_exeext
3326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3328 if test "${ac_cv_objext+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3346 rm -f conftest.o conftest.obj
3347 if { (ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; then
3357 for ac_file in conftest.o conftest.obj conftest.*; do
3358 test -f "$ac_file" || continue;
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3370 See \`config.log' for more details." >&5
3371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3372 See \`config.log' for more details." >&2;}
3373 { (exit 1); exit 1; }; }
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3379 echo "${ECHO_T}$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_compile") 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } && {
3419 test -z "$ac_c_werror_flag" ||
3420 test ! -s conftest.err
3421 } && test -s conftest.$ac_objext; then
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3436 GCC=`test $ac_compiler_gnu = yes && echo yes`
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_cc_g+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_compile") 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } && {
3477 test -z "$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 } && test -s conftest.$ac_objext; then
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_c_werror_flag=$ac_save_c_werror_flag
3574 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3575 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3576 if test "$ac_test_CFLAGS" = set; then
3577 CFLAGS=$ac_save_CFLAGS
3578 elif test $ac_cv_prog_cc_g = yes; then
3579 if test "$GCC" = yes; then
3585 if test "$GCC" = yes; then
3591 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3592 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_cc_c89+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 ac_cv_prog_cc_c89=no
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3606 #include <sys/types.h>
3607 #include <sys/stat.h>
3608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609 struct buf { int x; };
3610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611 static char *e (p, i)
3617 static char *f (char * (*g) (char **, int), char **p, ...)
3622 s = g (p, va_arg (v,int));
3627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
3630 as 'x'. The following induces an error, until -std is added to get
3631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
3633 that's true only with -std. */
3634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641 int test (int i, double x);
3642 struct s1 {int (*f) (int a);};
3643 struct s2 {int (*f) (double a);};
3644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 CC="$ac_save_CC $ac_arg"
3659 rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_compile") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } && {
3673 test -z "$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 } && test -s conftest.$ac_objext; then
3676 ac_cv_prog_cc_c89=$ac_arg
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3684 rm -f core conftest.err conftest.$ac_objext
3685 test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 rm -f conftest.$ac_ext
3692 case "x$ac_cv_prog_cc_c89" in
3694 { echo "$as_me:$LINENO: result: none needed" >&5
3695 echo "${ECHO_T}none needed" >&6; } ;;
3697 { echo "$as_me:$LINENO: result: unsupported" >&5
3698 echo "${ECHO_T}unsupported" >&6; } ;;
3700 CC="$CC $ac_cv_prog_cc_c89"
3701 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3702 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 DEPDIR="${am__leading_dot}deps"
3713 ac_config_commands="$ac_config_commands depfiles"
3716 am_make=${MAKE-make}
3717 cat > confinc << 'END'
3722 # If we don't find an include directive, just comment out the code.
3723 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3724 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3728 # First try GNU make style include.
3729 echo "include confinc" > confmf
3730 # We grep out `Entering directory' and `Leaving directory'
3731 # messages which can occur if `w' ends up in MAKEFLAGS.
3732 # In particular we don't look at `^make:' because GNU make might
3733 # be invoked under some other name (usually "gmake"), in which
3734 # case it prints its new name instead of `make'.
3735 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3740 # Now try BSD make style include.
3741 if test "$am__include" = "#"; then
3742 echo '.include "confinc"' > confmf
3743 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3744 am__include=.include
3751 { echo "$as_me:$LINENO: result: $_am_result" >&5
3752 echo "${ECHO_T}$_am_result" >&6; }
3753 rm -f confinc confmf
3755 # Check whether --enable-dependency-tracking was given.
3756 if test "${enable_dependency_tracking+set}" = set; then
3757 enableval=$enable_dependency_tracking;
3760 if test "x$enable_dependency_tracking" != xno; then
3761 am_depcomp="$ac_aux_dir/depcomp"
3764 if test "x$enable_dependency_tracking" != xno; then
3774 depcc="$CC" am_compiler_list=
3776 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3777 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3778 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782 # We make a subdir and do the tests there. Otherwise we can end up
3783 # making bogus files that we don't know about and never remove. For
3784 # instance it was reported that on HP-UX the gcc test will end up
3785 # making a dummy file named `D' -- because `-MD' means `put the output
3788 # Copy depcomp to subdir because otherwise we won't find it if we're
3789 # using a relative directory.
3790 cp "$am_depcomp" conftest.dir
3792 # We will build objects and dependencies in a subdirectory because
3793 # it helps to detect inapplicable dependency modes. For instance
3794 # both Tru64's cc and ICC support -MD to output dependencies as a
3795 # side effect of compilation, but ICC will put the dependencies in
3796 # the current directory while Tru64 will put them in the object
3800 am_cv_CC_dependencies_compiler_type=none
3801 if test "$am_compiler_list" = ""; then
3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3823 # after this tag, mechanisms are not by side-effect, so they'll
3824 # only be used when explicitly requested
3825 if test "x$enable_dependency_tracking" = xyes; then
3833 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3834 # mode. It turns out that the SunPro C++ compiler does not properly
3835 # handle `-M -o', and we need to detect this.
3836 if depmode=$depmode \
3837 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3840 >/dev/null 2>conftest.err &&
3841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845 # icc doesn't choke on unknown options, it will just issue warnings
3846 # or remarks (even with -Werror). So we grep stderr for any message
3847 # that says an option was ignored or not supported.
3848 # When given -MP, icc 7.0 and 7.1 complain thusly:
3849 # icc: Command line warning: ignoring option '-M'; no argument required
3850 # The diagnosis changed in icc 8.0:
3851 # icc: Command line remark: option '-MP' not supported
3852 if (grep 'ignoring option' conftest.err ||
3853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854 am_cv_CC_dependencies_compiler_type=$depmode
3863 am_cv_CC_dependencies_compiler_type=none
3867 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3868 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3872 test "x$enable_dependency_tracking" != xno \
3873 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3875 am__fastdepCC_FALSE='#'
3877 am__fastdepCC_TRUE='#'
3878 am__fastdepCC_FALSE=
3883 if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3888 if test "${ac_cv_prog_RANLIB+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test -n "$RANLIB"; then
3892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 RANLIB=$ac_cv_prog_RANLIB
3912 if test -n "$RANLIB"; then
3913 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3914 echo "${ECHO_T}$RANLIB" >&6; }
3916 { echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6; }
3922 if test -z "$ac_cv_prog_RANLIB"; then
3923 ac_ct_RANLIB=$RANLIB
3924 # Extract the first word of "ranlib", so it can be a program name with args.
3925 set dummy ranlib; ac_word=$2
3926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3928 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 if test -n "$ac_ct_RANLIB"; then
3932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941 ac_cv_prog_ac_ct_RANLIB="ranlib"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3952 if test -n "$ac_ct_RANLIB"; then
3953 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3954 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3956 { echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6; }
3960 if test "x$ac_ct_RANLIB" = x; then
3963 case $cross_compiling:$ac_tool_warned in
3965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966 whose name does not start with the host triplet. If you think this
3967 configuration is useful to you, please write to autoconf@gnu.org." >&5
3968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet. If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971 ac_tool_warned=yes ;;
3973 RANLIB=$ac_ct_RANLIB
3976 RANLIB="$ac_cv_prog_RANLIB"
3979 for ac_prog in 'bison -y' byacc
3981 # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_prog_YACC+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 if test -n "$YACC"; then
3989 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_YACC="$ac_prog"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 YACC=$ac_cv_prog_YACC
4009 if test -n "$YACC"; then
4010 { echo "$as_me:$LINENO: result: $YACC" >&5
4011 echo "${ECHO_T}$YACC" >&6; }
4013 { echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6; }
4018 test -n "$YACC" && break
4020 test -n "$YACC" || YACC="yacc"
4022 if test "x$CC" != xcc; then
4023 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4024 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4026 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4027 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4029 set dummy $CC; ac_cc=`echo $2 |
4030 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4031 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4049 # Make sure it works both with $CC and with simple cc.
4050 # We do the test twice because some compilers refuse to overwrite an
4051 # existing .o file with -o, though they will create one.
4052 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4054 if { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_try") 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); };
4073 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4074 if test "x$CC" != xcc; then
4075 # Test first that cc exists at all.
4076 if { ac_try='cc -c conftest.$ac_ext >&5'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4088 if { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); };
4110 # cc exists but doesn't like -o.
4111 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4116 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4118 rm -f core conftest*
4121 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4122 { echo "$as_me:$LINENO: result: yes" >&5
4123 echo "${ECHO_T}yes" >&6; }
4125 { echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6; }
4128 cat >>confdefs.h <<\_ACEOF
4129 #define NO_MINUS_C_MINUS_O 1
4134 # FIXME: we rely on the cache variable name because
4135 # there is no other way.
4137 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4138 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4139 # Losing compiler, so override with the script.
4140 # FIXME: It is wrong to rewrite CC.
4141 # But if we don't then we get into trouble of one sort or another.
4142 # A longer-term fix would be to have automake use am__CC in this case,
4143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4144 CC="$am_aux_dir/compile $CC"
4149 cat >>confdefs.h <<\_ACEOF
4150 #define _GNU_SOURCE 1
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4161 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4166 if test -z "$CPP"; then
4167 if test "${ac_cv_prog_CPP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 # Double quotes because CPP needs to be expanded
4171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4174 for ac_c_preproc_warn_flag in '' yes
4176 # Use a header file that comes with gcc, so configuring glibc
4177 # with a fresh cross-compiler works.
4178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179 # <limits.h> exists even on freestanding compilers.
4180 # On the NeXT, cc -E runs the code through the compiler's parser,
4181 # not just through cpp. "Syntax error" is here to catch this case.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4189 # include <limits.h>
4191 # include <assert.h>
4195 if { (ac_try="$ac_cpp conftest.$ac_ext"
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4203 grep -v '^ *+' conftest.er1 >conftest.err
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } >/dev/null && {
4208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4209 test ! -s conftest.err
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Broken: fails on valid input.
4220 rm -f conftest.err conftest.$ac_ext
4222 # OK, works on sane cases. Now check whether nonexistent headers
4223 # can be detected and how.
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <ac_nonexistent.h>
4232 if { (ac_try="$ac_cpp conftest.$ac_ext"
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4248 # Broken: success on invalid input.
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4259 rm -f conftest.err conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4276 { echo "$as_me:$LINENO: result: $CPP" >&5
4277 echo "${ECHO_T}$CPP" >&6; }
4279 for ac_c_preproc_warn_flag in '' yes
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4294 # include <limits.h>
4296 # include <assert.h>
4300 if { (ac_try="$ac_cpp conftest.$ac_ext"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } >/dev/null && {
4313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4314 test ! -s conftest.err
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 # Broken: fails on valid input.
4325 rm -f conftest.err conftest.$ac_ext
4327 # OK, works on sane cases. Now check whether nonexistent headers
4328 # can be detected and how.
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <ac_nonexistent.h>
4337 if { (ac_try="$ac_cpp conftest.$ac_ext"
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null && {
4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4353 # Broken: success on invalid input.
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 # Passes both tests.
4364 rm -f conftest.err conftest.$ac_ext
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.err conftest.$ac_ext
4369 if $ac_preproc_ok; then
4372 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details." >&5
4374 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4375 See \`config.log' for more details." >&2;}
4376 { (exit 1); exit 1; }; }
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4387 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4388 if test "${ac_cv_path_GREP+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 # Extract the first word of "grep ggrep" to use in msg output
4392 if test -z "$GREP"; then
4393 set dummy grep ggrep; ac_prog_name=$2
4394 if test "${ac_cv_path_GREP+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 ac_path_GREP_found=false
4398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403 test -z "$as_dir" && as_dir=.
4404 for ac_prog in grep ggrep; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4407 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4408 # Check for GNU ac_path_GREP and select it if it is found.
4409 # Check for GNU $ac_path_GREP
4410 case `"$ac_path_GREP" --version 2>&1` in
4412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4415 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4418 cat "conftest.in" "conftest.in" >"conftest.tmp"
4419 mv "conftest.tmp" "conftest.in"
4420 cp "conftest.in" "conftest.nl"
4421 echo 'GREP' >> "conftest.nl"
4422 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424 ac_count=`expr $ac_count + 1`
4425 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4426 # Best one so far, save it but keep looking for a better one
4427 ac_cv_path_GREP="$ac_path_GREP"
4428 ac_path_GREP_max=$ac_count
4430 # 10*(2^10) chars as input seems more than enough
4431 test $ac_count -gt 10 && break
4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4437 $ac_path_GREP_found && break 3
4447 GREP="$ac_cv_path_GREP"
4448 if test -z "$GREP"; then
4449 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4450 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4451 { (exit 1); exit 1; }; }
4455 ac_cv_path_GREP=$GREP
4460 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4461 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4462 GREP="$ac_cv_path_GREP"
4465 { echo "$as_me:$LINENO: checking for egrep" >&5
4466 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4467 if test "${ac_cv_path_EGREP+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4471 then ac_cv_path_EGREP="$GREP -E"
4473 # Extract the first word of "egrep" to use in msg output
4474 if test -z "$EGREP"; then
4475 set dummy egrep; ac_prog_name=$2
4476 if test "${ac_cv_path_EGREP+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_path_EGREP_found=false
4480 # Loop through the user's path and test for each of PROGNAME-LIST
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4485 test -z "$as_dir" && as_dir=.
4486 for ac_prog in egrep; do
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4489 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4490 # Check for GNU ac_path_EGREP and select it if it is found.
4491 # Check for GNU $ac_path_EGREP
4492 case `"$ac_path_EGREP" --version 2>&1` in
4494 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4497 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4500 cat "conftest.in" "conftest.in" >"conftest.tmp"
4501 mv "conftest.tmp" "conftest.in"
4502 cp "conftest.in" "conftest.nl"
4503 echo 'EGREP' >> "conftest.nl"
4504 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4506 ac_count=`expr $ac_count + 1`
4507 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4508 # Best one so far, save it but keep looking for a better one
4509 ac_cv_path_EGREP="$ac_path_EGREP"
4510 ac_path_EGREP_max=$ac_count
4512 # 10*(2^10) chars as input seems more than enough
4513 test $ac_count -gt 10 && break
4515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4519 $ac_path_EGREP_found && break 3
4529 EGREP="$ac_cv_path_EGREP"
4530 if test -z "$EGREP"; then
4531 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4532 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4533 { (exit 1); exit 1; }; }
4537 ac_cv_path_EGREP=$EGREP
4543 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4544 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4545 EGREP="$ac_cv_path_EGREP"
4548 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4550 if test "${ac_cv_header_stdc+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_compile") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && {
4586 test -z "$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 } && test -s conftest.$ac_objext; then
4589 ac_cv_header_stdc=yes
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 ac_cv_header_stdc=no
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 if test $ac_cv_header_stdc = yes; then
4600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "memchr" >/dev/null 2>&1; then
4614 ac_cv_header_stdc=no
4620 if test $ac_cv_header_stdc = yes; then
4621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "free" >/dev/null 2>&1; then
4635 ac_cv_header_stdc=no
4641 if test $ac_cv_header_stdc = yes; then
4642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4643 if test "$cross_compiling" = yes; then
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4654 #if ((' ' & 0x0FF) == 0x020)
4655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658 # define ISLOWER(c) \
4659 (('a' <= (c) && (c) <= 'i') \
4660 || ('j' <= (c) && (c) <= 'r') \
4661 || ('s' <= (c) && (c) <= 'z'))
4662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4670 for (i = 0; i < 256; i++)
4671 if (XOR (islower (i), ISLOWER (i))
4672 || toupper (i) != TOUPPER (i))
4677 rm -f conftest$ac_exeext
4678 if { (ac_try="$ac_link"
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_link") 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4688 { (case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_try") 2>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4699 echo "$as_me: program exited with status $ac_status" >&5
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_cv_header_stdc=no
4706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4712 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4713 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4714 if test $ac_cv_header_stdc = yes; then
4716 cat >>confdefs.h <<\_ACEOF
4717 #define STDC_HEADERS 1
4722 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4733 inttypes.h stdint.h unistd.h
4735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 $ac_includes_default
4749 #include <$ac_header>
4751 rm -f conftest.$ac_objext
4752 if { (ac_try="$ac_compile"
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_compile") 2>conftest.er1
4760 grep -v '^ *+' conftest.er1 >conftest.err
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && {
4765 test -z "$ac_c_werror_flag" ||
4766 test ! -s conftest.err
4767 } && test -s conftest.$ac_objext; then
4768 eval "$as_ac_Header=yes"
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 eval "$as_ac_Header=no"
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 ac_res=`eval echo '${'$as_ac_Header'}'`
4779 { echo "$as_me:$LINENO: result: $ac_res" >&5
4780 echo "${ECHO_T}$ac_res" >&6; }
4781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4782 cat >>confdefs.h <<_ACEOF
4783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792 if test "${ac_cv_header_minix_config_h+set}" = set; then
4793 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4794 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4795 if test "${ac_cv_header_minix_config_h+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4799 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4801 # Is the header compilable?
4802 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4803 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4811 #include <minix/config.h>
4813 rm -f conftest.$ac_objext
4814 if { (ac_try="$ac_compile"
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_compile") 2>conftest.er1
4822 grep -v '^ *+' conftest.er1 >conftest.err
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } && {
4827 test -z "$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4829 } && test -s conftest.$ac_objext; then
4830 ac_header_compiler=yes
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 ac_header_compiler=no
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840 echo "${ECHO_T}$ac_header_compiler" >&6; }
4842 # Is the header present?
4843 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4844 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <minix/config.h>
4853 if { (ac_try="$ac_cpp conftest.$ac_ext"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null && {
4866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4869 ac_header_preproc=yes
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 ac_header_preproc=no
4877 rm -f conftest.err conftest.$ac_ext
4878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4879 echo "${ECHO_T}$ac_header_preproc" >&6; }
4881 # So? What about this header?
4882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4884 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4885 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4887 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4888 ac_header_preproc=yes
4891 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4892 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4894 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4896 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4898 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4900 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4902 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4904 ## ------------------------------ ##
4905 ## Report this to bug-tar@gnu.org ##
4906 ## ------------------------------ ##
4908 ) | sed "s/^/$as_me: WARNING: /" >&2
4911 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4912 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4913 if test "${ac_cv_header_minix_config_h+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_cv_header_minix_config_h=$ac_header_preproc
4918 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4919 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4922 if test $ac_cv_header_minix_config_h = yes; then
4929 if test "$MINIX" = yes; then
4931 cat >>confdefs.h <<\_ACEOF
4932 #define _POSIX_SOURCE 1
4936 cat >>confdefs.h <<\_ACEOF
4937 #define _POSIX_1_SOURCE 2
4941 cat >>confdefs.h <<\_ACEOF
4949 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4950 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4951 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4961 # define __EXTENSIONS__ 1
4962 $ac_includes_default
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_compile") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest.$ac_objext; then
4988 ac_cv_safe_to_define___extensions__=yes
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_cv_safe_to_define___extensions__=no
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4999 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5000 test $ac_cv_safe_to_define___extensions__ = yes &&
5001 cat >>confdefs.h <<\_ACEOF
5002 #define __EXTENSIONS__ 1
5005 cat >>confdefs.h <<\_ACEOF
5006 #define _ALL_SOURCE 1
5009 cat >>confdefs.h <<\_ACEOF
5010 #define _GNU_SOURCE 1
5013 cat >>confdefs.h <<\_ACEOF
5014 #define _POSIX_PTHREAD_SEMANTICS 1
5017 cat >>confdefs.h <<\_ACEOF
5018 #define _TANDEM_SOURCE 1
5023 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5024 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5025 if test "${ac_cv_sys_largefile_source+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5039 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5044 rm -f conftest.$ac_objext conftest$ac_exeext
5045 if { (ac_try="$ac_link"
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_link") 2>conftest.er1
5053 grep -v '^ *+' conftest.er1 >conftest.err
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } && {
5058 test -z "$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 } && test -s conftest$ac_exeext &&
5061 $as_test_x conftest$ac_exeext; then
5062 ac_cv_sys_largefile_source=no; break
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071 conftest$ac_exeext conftest.$ac_ext
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #define _LARGEFILE_SOURCE 1
5083 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5088 rm -f conftest.$ac_objext conftest$ac_exeext
5089 if { (ac_try="$ac_link"
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_link") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest$ac_exeext &&
5105 $as_test_x conftest$ac_exeext; then
5106 ac_cv_sys_largefile_source=1; break
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5115 conftest$ac_exeext conftest.$ac_ext
5116 ac_cv_sys_largefile_source=unknown
5120 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5121 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5122 case $ac_cv_sys_largefile_source in #(
5125 cat >>confdefs.h <<_ACEOF
5126 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5132 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5133 # in glibc 2.1.3, but that breaks too many other things.
5134 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5135 if test $ac_cv_sys_largefile_source != unknown; then
5137 cat >>confdefs.h <<\_ACEOF
5138 #define HAVE_FSEEKO 1
5143 case $ac_cv_prog_cc_stdc in
5144 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5145 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5146 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
5147 if test "${ac_cv_prog_cc_c99+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 ac_cv_prog_cc_c99=no
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5159 #include <stdbool.h>
5164 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5165 #define debug(...) fprintf (stderr, __VA_ARGS__)
5166 #define showlist(...) puts (#__VA_ARGS__)
5167 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5169 test_varargs_macros (void)
5174 debug ("X = %d\n", x);
5175 showlist (The first, second, and third items.);
5176 report (x>y, "x is %d but y is %d", x, y);
5179 // Check long long types.
5180 #define BIG64 18446744073709551615ull
5181 #define BIG32 4294967295ul
5182 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5184 your preprocessor is broken;
5188 your preprocessor is broken;
5190 static long long int bignum = -9223372036854775807LL;
5191 static unsigned long long int ubignum = BIG64;
5193 struct incomplete_array
5201 const wchar_t *name;
5205 typedef const char *ccp;
5208 test_restrict (ccp restrict text)
5210 // See if C++-style comments work.
5211 // Iterate through items via the restricted pointer.
5212 // Also check for declarations in for loops.
5213 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5218 // Check varargs and va_copy.
5220 test_varargs (const char *format, ...)
5223 va_start (args, format);
5225 va_copy (args_copy, args);
5236 str = va_arg (args_copy, const char *);
5239 number = va_arg (args_copy, int);
5242 fnumber = va_arg (args_copy, double);
5257 _Bool success = false;
5260 if (test_restrict ("String literal") == 0)
5262 char *restrict newvar = "Another string";
5265 test_varargs ("s, d' f .", "string", 65, 34.234);
5266 test_varargs_macros ();
5268 // Check flexible array members.
5269 struct incomplete_array *ia =
5270 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5272 for (int i = 0; i < ia->datasize; ++i)
5273 ia->data[i] = i * 1.234;
5275 // Check named initializers.
5276 struct named_init ni = {
5278 .name = L"Test wide string",
5279 .average = 543.34343,
5284 int dynamic_array[ni.number];
5285 dynamic_array[ni.number - 1] = 543;
5287 // work around unused variable warnings
5288 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5289 || dynamic_array[ni.number - 1] != 543);
5295 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5297 CC="$ac_save_CC $ac_arg"
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 ac_cv_prog_cc_c99=$ac_arg
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5323 rm -f core conftest.err conftest.$ac_objext
5324 test "x$ac_cv_prog_cc_c99" != "xno" && break
5326 rm -f conftest.$ac_ext
5331 case "x$ac_cv_prog_cc_c99" in
5333 { echo "$as_me:$LINENO: result: none needed" >&5
5334 echo "${ECHO_T}none needed" >&6; } ;;
5336 { echo "$as_me:$LINENO: result: unsupported" >&5
5337 echo "${ECHO_T}unsupported" >&6; } ;;
5339 CC="$CC $ac_cv_prog_cc_c99"
5340 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5341 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
5343 if test "x$ac_cv_prog_cc_c99" != xno; then
5344 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5346 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5347 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5348 if test "${ac_cv_prog_cc_c89+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 ac_cv_prog_cc_c89=no
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5361 #include <sys/types.h>
5362 #include <sys/stat.h>
5363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5364 struct buf { int x; };
5365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5366 static char *e (p, i)
5372 static char *f (char * (*g) (char **, int), char **p, ...)
5377 s = g (p, va_arg (v,int));
5382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5383 function prototypes and stuff, but not '\xHH' hex character constants.
5384 These don't provoke an error unfortunately, instead are silently treated
5385 as 'x'. The following induces an error, until -std is added to get
5386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5387 array size at least. It's necessary to write '\x00'==0 to get something
5388 that's true only with -std. */
5389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5392 inside strings and character constants. */
5394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5396 int test (int i, double x);
5397 struct s1 {int (*f) (int a);};
5398 struct s2 {int (*f) (double a);};
5399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5413 CC="$ac_save_CC $ac_arg"
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && {
5428 test -z "$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5430 } && test -s conftest.$ac_objext; then
5431 ac_cv_prog_cc_c89=$ac_arg
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5439 rm -f core conftest.err conftest.$ac_objext
5440 test "x$ac_cv_prog_cc_c89" != "xno" && break
5442 rm -f conftest.$ac_ext
5447 case "x$ac_cv_prog_cc_c89" in
5449 { echo "$as_me:$LINENO: result: none needed" >&5
5450 echo "${ECHO_T}none needed" >&6; } ;;
5452 { echo "$as_me:$LINENO: result: unsupported" >&5
5453 echo "${ECHO_T}unsupported" >&6; } ;;
5455 CC="$CC $ac_cv_prog_cc_c89"
5456 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5457 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5459 if test "x$ac_cv_prog_cc_c89" != xno; then
5460 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5462 ac_cv_prog_cc_stdc=no
5470 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5471 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5472 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 case $ac_cv_prog_cc_stdc in
5477 no) { echo "$as_me:$LINENO: result: unsupported" >&5
5478 echo "${ECHO_T}unsupported" >&6; } ;;
5479 '') { echo "$as_me:$LINENO: result: none needed" >&5
5480 echo "${ECHO_T}none needed" >&6; } ;;
5481 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5482 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5495 # Check whether --enable-largefile was given.
5496 if test "${enable_largefile+set}" = set; then
5497 enableval=$enable_largefile;
5500 if test "$enable_largefile" != no; then
5502 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5503 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5504 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 ac_cv_sys_largefile_CC=no
5508 if test "$GCC" != yes; then
5511 # IRIX 6.2 and later do not support large files by default,
5512 # so use the C compiler's -n32 option if that helps.
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 #include <sys/types.h>
5520 /* Check that off_t can represent 2**63 - 1 correctly.
5521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5522 since some C++ compilers masquerading as C compilers
5523 incorrectly reject 9223372036854775807. */
5524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5526 && LARGE_OFF_T % 2147483647 == 1)
5536 rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f core conftest.err conftest.$ac_objext
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5572 grep -v '^ *+' conftest.er1 >conftest.err
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
5580 ac_cv_sys_largefile_CC=' -n32'; break
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5588 rm -f core conftest.err conftest.$ac_objext
5592 rm -f conftest.$ac_ext
5595 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5596 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5597 if test "$ac_cv_sys_largefile_CC" != no; then
5598 CC=$CC$ac_cv_sys_largefile_CC
5601 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5602 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5603 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <sys/types.h>
5614 /* Check that off_t can represent 2**63 - 1 correctly.
5615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5616 since some C++ compilers masquerading as C compilers
5617 incorrectly reject 9223372036854775807. */
5618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5620 && LARGE_OFF_T % 2147483647 == 1)
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5647 ac_cv_sys_file_offset_bits=no; break
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #define _FILE_OFFSET_BITS 64
5663 #include <sys/types.h>
5664 /* Check that off_t can represent 2**63 - 1 correctly.
5665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5666 since some C++ compilers masquerading as C compilers
5667 incorrectly reject 9223372036854775807. */
5668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5670 && LARGE_OFF_T % 2147483647 == 1)
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 ac_cv_sys_file_offset_bits=64; break
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 ac_cv_sys_file_offset_bits=unknown
5710 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5711 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5712 case $ac_cv_sys_file_offset_bits in #(
5715 cat >>confdefs.h <<_ACEOF
5716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5721 if test $ac_cv_sys_file_offset_bits = unknown; then
5722 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5723 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5724 if test "${ac_cv_sys_large_files+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <sys/types.h>
5735 /* Check that off_t can represent 2**63 - 1 correctly.
5736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737 since some C++ compilers masquerading as C compilers
5738 incorrectly reject 9223372036854775807. */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741 && LARGE_OFF_T % 2147483647 == 1)
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 ac_cv_sys_large_files=no; break
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #define _LARGE_FILES 1
5784 #include <sys/types.h>
5785 /* Check that off_t can represent 2**63 - 1 correctly.
5786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5787 since some C++ compilers masquerading as C compilers
5788 incorrectly reject 9223372036854775807. */
5789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5791 && LARGE_OFF_T % 2147483647 == 1)
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 ac_cv_sys_large_files=1; break
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 ac_cv_sys_large_files=unknown
5831 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5832 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5833 case $ac_cv_sys_large_files in #(
5836 cat >>confdefs.h <<_ACEOF
5837 #define _LARGE_FILES $ac_cv_sys_large_files
5846 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5847 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5848 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 ac_check_lib_save_LIBS=$LIBS
5852 LIBS="-lcposix $LIBS"
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5860 /* Override any GCC internal prototype to avoid an error.
5861 Use char because int might match the return type of a GCC
5862 builtin and then its argument prototype would still apply. */
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (ac_try="$ac_link"
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_link") 2>conftest.er1
5884 grep -v '^ *+' conftest.er1 >conftest.err
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } && {
5889 test -z "$ac_c_werror_flag" ||
5890 test ! -s conftest.err
5891 } && test -s conftest$ac_exeext &&
5892 $as_test_x conftest$ac_exeext; then
5893 ac_cv_lib_cposix_strerror=yes
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ac_cv_lib_cposix_strerror=no
5901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5902 conftest$ac_exeext conftest.$ac_ext
5903 LIBS=$ac_check_lib_save_LIBS
5905 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5906 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5907 if test $ac_cv_lib_cposix_strerror = yes; then
5908 LIBS="$LIBS -lcposix"
5913 { echo "$as_me:$LINENO: checking for inline" >&5
5914 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5915 if test "${ac_cv_c_inline+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 for ac_kw in inline __inline__ __inline; do
5920 cat >conftest.$ac_ext <<_ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5928 static $ac_kw foo_t static_foo () {return 0; }
5929 $ac_kw foo_t foo () {return 0; }
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 ac_cv_c_inline=$ac_kw
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 test "$ac_cv_c_inline" != no && break
5963 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5964 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5967 case $ac_cv_c_inline in
5970 case $ac_cv_c_inline in
5972 *) ac_val=$ac_cv_c_inline;;
5974 cat >>confdefs.h <<_ACEOF
5976 #define inline $ac_val
5987 for ac_header in $ac_header_list
5989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 ac_res=`eval echo '${'$as_ac_Header'}'`
5997 { echo "$as_me:$LINENO: result: $ac_res" >&5
5998 echo "${ECHO_T}$ac_res" >&6; }
6000 # Is the header compilable?
6001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 $ac_includes_default
6010 #include <$ac_header>
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6021 grep -v '^ *+' conftest.er1 >conftest.err
6023 cat conftest.err >&5
6024 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_header_compiler=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_header_compiler=no
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6039 echo "${ECHO_T}$ac_header_compiler" >&6; }
6041 # Is the header present?
6042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #include <$ac_header>
6052 if { (ac_try="$ac_cpp conftest.$ac_ext"
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } >/dev/null && {
6065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6068 ac_header_preproc=yes
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_header_preproc=no
6076 rm -f conftest.err conftest.$ac_ext
6077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6078 echo "${ECHO_T}$ac_header_preproc" >&6; }
6080 # So? What about this header?
6081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6087 ac_header_preproc=yes
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6103 ## ------------------------------ ##
6104 ## Report this to bug-tar@gnu.org ##
6105 ## ------------------------------ ##
6107 ) | sed "s/^/$as_me: WARNING: /" >&2
6110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 eval "$as_ac_Header=\$ac_header_preproc"
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118 { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123 cat >>confdefs.h <<_ACEOF
6124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213 for ac_header in sys/buf.h
6215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #if HAVE_SYS_PARAM_H
6228 #include <sys/param.h>
6231 #include <$ac_header>
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_compile") 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && {
6247 test -z "$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
6250 eval "$as_ac_Header=yes"
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 eval "$as_ac_Header=no"
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 ac_res=`eval echo '${'$as_ac_Header'}'`
6261 { echo "$as_me:$LINENO: result: $ac_res" >&5
6262 echo "${ECHO_T}$ac_res" >&6; }
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6274 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6275 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 #include <sys/types.h>
6285 #include <sys/wait.h>
6287 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6290 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6298 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6312 grep -v '^ *+' conftest.er1 >conftest.err
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_cv_header_sys_wait_h=yes
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ac_cv_header_sys_wait_h=no
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6331 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6332 if test $ac_cv_header_sys_wait_h = yes; then
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_SYS_WAIT_H 1
6340 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6341 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6342 if test "${ac_cv_header_stdbool_h+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6352 #include <stdbool.h>
6354 "error: bool is not defined"
6357 "error: false is not defined"
6360 "error: false is not 0"
6363 "error: true is not defined"
6366 "error: true is not 1"
6368 #ifndef __bool_true_false_are_defined
6369 "error: __bool_true_false_are_defined is not defined"
6372 struct s { _Bool s: 1; _Bool t; } s;
6374 char a[true == 1 ? 1 : -1];
6375 char b[false == 0 ? 1 : -1];
6376 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6377 char d[(bool) 0.5 == true ? 1 : -1];
6379 char f[(_Bool) 0.0 == false ? 1 : -1];
6381 char h[sizeof (_Bool)];
6383 enum { j = false, k = true, l = false * true, m = true * 256 };
6385 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6386 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6387 #if defined __xlc__ || defined __GNUC__
6388 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6389 reported by James Lemley on 2005-10-05; see
6390 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6391 This test is not quite right, since xlc is allowed to
6392 reject this program, as the initializer for xlcbug is
6393 not one of the forms that C requires support for.
6394 However, doing the test right would require a run-time
6395 test, and that would make cross-compilation harder.
6396 Let us hope that IBM fixes the xlc bug, and also adds
6397 support for this kind of constant expression. In the
6398 meantime, this test will reject xlc, which is OK, since
6399 our stdbool.h substitute should suffice. We also test
6400 this with GCC, where it should work, to detect more
6401 quickly whether someone messes up the test in the
6403 char digs[] = "0123456789";
6404 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6406 /* Catch a bug in an HP-UX C compiler. See
6407 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6408 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6419 /* Refer to every declared value, to avoid compiler optimizations. */
6420 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6421 + !m + !n + !o + !p + !q + !pq);
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 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_header_stdbool_h=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_cv_header_stdbool_h=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6455 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6456 { echo "$as_me:$LINENO: checking for _Bool" >&5
6457 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6458 if test "${ac_cv_type__Bool+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 $ac_includes_default
6468 typedef _Bool ac__type_new_;
6472 if ((ac__type_new_ *) 0)
6474 if (sizeof (ac__type_new_))
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_cv_type__Bool=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6508 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6509 if test $ac_cv_type__Bool = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define HAVE__BOOL 1
6518 if test $ac_cv_header_stdbool_h = yes; then
6520 cat >>confdefs.h <<\_ACEOF
6521 #define HAVE_STDBOOL_H 1
6528 # Define two additional variables used in the Makefile substitution.
6530 if test "$ac_cv_header_stdbool_h" = yes; then
6533 STDBOOL_H='stdbool.h'
6537 if test "$ac_cv_type__Bool" = yes; then
6551 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6552 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6553 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6554 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 #include <sys/types.h>
6576 rm -f conftest.$ac_objext
6577 if { (ac_try="$ac_compile"
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_compile") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest.$ac_objext; then
6593 eval "$as_ac_Header=yes"
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6598 eval "$as_ac_Header=no"
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 ac_res=`eval echo '${'$as_ac_Header'}'`
6604 { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6607 cat >>confdefs.h <<_ACEOF
6608 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6611 ac_header_dirent=$ac_hdr; break
6615 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6616 if test $ac_header_dirent = dirent.h; then
6617 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6618 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6619 if test "${ac_cv_search_opendir+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_func_search_save_LIBS=$LIBS
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6630 /* Override any GCC internal prototype to avoid an error.
6631 Use char because int might match the return type of a GCC
6632 builtin and then its argument prototype would still apply. */
6645 for ac_lib in '' dir; do
6646 if test -z "$ac_lib"; then
6647 ac_res="none required"
6650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (ac_try="$ac_link"
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_link") 2>conftest.er1
6661 grep -v '^ *+' conftest.er1 >conftest.err
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest$ac_exeext &&
6669 $as_test_x conftest$ac_exeext; then
6670 ac_cv_search_opendir=$ac_res
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6680 if test "${ac_cv_search_opendir+set}" = set; then
6684 if test "${ac_cv_search_opendir+set}" = set; then
6687 ac_cv_search_opendir=no
6690 LIBS=$ac_func_search_save_LIBS
6692 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6693 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6694 ac_res=$ac_cv_search_opendir
6695 if test "$ac_res" != no; then
6696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6701 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6702 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6703 if test "${ac_cv_search_opendir+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_func_search_save_LIBS=$LIBS
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6714 /* Override any GCC internal prototype to avoid an error.
6715 Use char because int might match the return type of a GCC
6716 builtin and then its argument prototype would still apply. */
6729 for ac_lib in '' x; do
6730 if test -z "$ac_lib"; then
6731 ac_res="none required"
6734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (ac_try="$ac_link"
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_link") 2>conftest.er1
6745 grep -v '^ *+' conftest.er1 >conftest.err
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest$ac_exeext &&
6753 $as_test_x conftest$ac_exeext; then
6754 ac_cv_search_opendir=$ac_res
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 if test "${ac_cv_search_opendir+set}" = set; then
6768 if test "${ac_cv_search_opendir+set}" = set; then
6771 ac_cv_search_opendir=no
6774 LIBS=$ac_func_search_save_LIBS
6776 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6777 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6778 ac_res=$ac_cv_search_opendir
6779 if test "$ac_res" != no; then
6780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6786 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6787 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6788 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <sys/types.h>
6801 return makedev(0, 0);
6806 rm -f conftest.$ac_objext conftest$ac_exeext
6807 if { (ac_try="$ac_link"
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_link") 2>conftest.er1
6815 grep -v '^ *+' conftest.er1 >conftest.err
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
6822 } && test -s conftest$ac_exeext &&
6823 $as_test_x conftest$ac_exeext; then
6824 ac_cv_header_sys_types_h_makedev=yes
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_header_sys_types_h_makedev=no
6832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6833 conftest$ac_exeext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6837 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6839 if test $ac_cv_header_sys_types_h_makedev = no; then
6840 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6841 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6842 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6843 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6847 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6849 # Is the header compilable?
6850 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6851 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6852 cat >conftest.$ac_ext <<_ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 $ac_includes_default
6859 #include <sys/mkdev.h>
6861 rm -f conftest.$ac_objext
6862 if { (ac_try="$ac_compile"
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_compile") 2>conftest.er1
6870 grep -v '^ *+' conftest.er1 >conftest.err
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest.$ac_objext; then
6878 ac_header_compiler=yes
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 ac_header_compiler=no
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6888 echo "${ECHO_T}$ac_header_compiler" >&6; }
6890 # Is the header present?
6891 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6892 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 #include <sys/mkdev.h>
6901 if { (ac_try="$ac_cpp conftest.$ac_ext"
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } >/dev/null && {
6914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6917 ac_header_preproc=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_header_preproc=no
6925 rm -f conftest.err conftest.$ac_ext
6926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6927 echo "${ECHO_T}$ac_header_preproc" >&6; }
6929 # So? What about this header?
6930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6932 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6934 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6935 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6936 ac_header_preproc=yes
6939 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6940 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6941 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6942 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6943 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6944 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6946 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6948 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6950 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6952 ## ------------------------------ ##
6953 ## Report this to bug-tar@gnu.org ##
6954 ## ------------------------------ ##
6956 ) | sed "s/^/$as_me: WARNING: /" >&2
6959 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6960 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6961 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6967 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6970 if test $ac_cv_header_sys_mkdev_h = yes; then
6972 cat >>confdefs.h <<\_ACEOF
6973 #define MAJOR_IN_MKDEV 1
6980 if test $ac_cv_header_sys_mkdev_h = no; then
6981 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6982 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6983 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6988 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6990 # Is the header compilable?
6991 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6992 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7000 #include <sys/sysmacros.h>
7002 rm -f conftest.$ac_objext
7003 if { (ac_try="$ac_compile"
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_compile") 2>conftest.er1
7011 grep -v '^ *+' conftest.er1 >conftest.err
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && {
7016 test -z "$ac_c_werror_flag" ||
7017 test ! -s conftest.err
7018 } && test -s conftest.$ac_objext; then
7019 ac_header_compiler=yes
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_header_compiler=no
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7029 echo "${ECHO_T}$ac_header_compiler" >&6; }
7031 # Is the header present?
7032 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7033 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
7034 cat >conftest.$ac_ext <<_ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 #include <sys/sysmacros.h>
7042 if { (ac_try="$ac_cpp conftest.$ac_ext"
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7058 ac_header_preproc=yes
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_header_preproc=no
7066 rm -f conftest.err conftest.$ac_ext
7067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7068 echo "${ECHO_T}$ac_header_preproc" >&6; }
7070 # So? What about this header?
7071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7073 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7074 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7075 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7076 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7077 ac_header_preproc=yes
7080 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7081 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7082 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7083 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7090 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7091 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7093 ## ------------------------------ ##
7094 ## Report this to bug-tar@gnu.org ##
7095 ## ------------------------------ ##
7097 ) | sed "s/^/$as_me: WARNING: /" >&2
7100 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7113 cat >>confdefs.h <<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7123 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7124 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7125 if test "${ac_cv_header_stat_broken+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 cat >conftest.$ac_ext <<_ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <sys/types.h>
7135 #include <sys/stat.h>
7137 #if defined S_ISBLK && defined S_IFDIR
7138 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7141 #if defined S_ISBLK && defined S_IFCHR
7142 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7145 #if defined S_ISLNK && defined S_IFREG
7146 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7149 #if defined S_ISSOCK && defined S_IFREG
7150 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7154 rm -f conftest.$ac_objext
7155 if { (ac_try="$ac_compile"
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_compile") 2>conftest.er1
7163 grep -v '^ *+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } && {
7168 test -z "$ac_c_werror_flag" ||
7169 test ! -s conftest.err
7170 } && test -s conftest.$ac_objext; then
7171 ac_cv_header_stat_broken=no
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_cv_header_stat_broken=yes
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7182 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7183 if test $ac_cv_header_stat_broken = yes; then
7185 cat >>confdefs.h <<\_ACEOF
7186 #define STAT_MACROS_BROKEN 1
7191 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7192 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7193 if test "${ac_cv_header_stdc+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_header_stdc=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_cv_header_stdc=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 if test $ac_cv_header_stdc = yes; then
7243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7254 $EGREP "memchr" >/dev/null 2>&1; then
7257 ac_cv_header_stdc=no
7263 if test $ac_cv_header_stdc = yes; then
7264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7265 cat >conftest.$ac_ext <<_ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275 $EGREP "free" >/dev/null 2>&1; then
7278 ac_cv_header_stdc=no
7284 if test $ac_cv_header_stdc = yes; then
7285 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7286 if test "$cross_compiling" = yes; then
7289 cat >conftest.$ac_ext <<_ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7297 #if ((' ' & 0x0FF) == 0x020)
7298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7301 # define ISLOWER(c) \
7302 (('a' <= (c) && (c) <= 'i') \
7303 || ('j' <= (c) && (c) <= 'r') \
7304 || ('s' <= (c) && (c) <= 'z'))
7305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7313 for (i = 0; i < 256; i++)
7314 if (XOR (islower (i), ISLOWER (i))
7315 || toupper (i) != TOUPPER (i))
7320 rm -f conftest$ac_exeext
7321 if { (ac_try="$ac_link"
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_link") 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7331 { (case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_try") 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7342 echo "$as_me: program exited with status $ac_status" >&5
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_cv_header_stdc=no
7349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7355 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7356 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7357 if test $ac_cv_header_stdc = yes; then
7359 cat >>confdefs.h <<\_ACEOF
7360 #define STDC_HEADERS 1
7366 { echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7367 echo $ECHO_N "checking for st_fstype string in struct stat... $ECHO_C" >&6; }
7368 if test "${diff_cv_st_fstype_string+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 cat >conftest.$ac_ext <<_ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <sys/types.h>
7378 #include <sys/stat.h>
7382 struct stat s; s.st_fstype[0] = 'x';
7387 rm -f conftest.$ac_objext
7388 if { (ac_try="$ac_compile"
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_compile") 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } && {
7401 test -z "$ac_c_werror_flag" ||
7402 test ! -s conftest.err
7403 } && test -s conftest.$ac_objext; then
7404 diff_cv_st_fstype_string=yes
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 diff_cv_st_fstype_string=no
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 { echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7416 echo "${ECHO_T}$diff_cv_st_fstype_string" >&6; }
7417 if test $diff_cv_st_fstype_string = yes; then
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_ST_FSTYPE_STRING 1
7425 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7426 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7427 if test "${ac_cv_type_signal+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <sys/types.h>
7442 return *(signal (0, 0)) (0) == 1;
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 ac_cv_type_signal=int
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_cv_type_signal=void
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7475 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7477 cat >>confdefs.h <<_ACEOF
7478 #define RETSIGTYPE $ac_cv_type_signal
7482 { echo "$as_me:$LINENO: checking for mode_t" >&5
7483 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7484 if test "${ac_cv_type_mode_t+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&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 typedef mode_t ac__type_new_;
7498 if ((ac__type_new_ *) 0)
7500 if (sizeof (ac__type_new_))
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_compile") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest.$ac_objext; then
7523 ac_cv_type_mode_t=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_cv_type_mode_t=no
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7534 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7535 if test $ac_cv_type_mode_t = yes; then
7539 cat >>confdefs.h <<_ACEOF
7545 { echo "$as_me:$LINENO: checking for pid_t" >&5
7546 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7547 if test "${ac_cv_type_pid_t+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 $ac_includes_default
7557 typedef pid_t ac__type_new_;
7561 if ((ac__type_new_ *) 0)
7563 if (sizeof (ac__type_new_))
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7578 grep -v '^ *+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 ac_cv_type_pid_t=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7597 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7598 if test $ac_cv_type_pid_t = yes; then
7602 cat >>confdefs.h <<_ACEOF
7608 { echo "$as_me:$LINENO: checking for off_t" >&5
7609 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7610 if test "${ac_cv_type_off_t+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 $ac_includes_default
7620 typedef off_t ac__type_new_;
7624 if ((ac__type_new_ *) 0)
7626 if (sizeof (ac__type_new_))
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7641 grep -v '^ *+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 ac_cv_type_off_t=yes
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7660 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7661 if test $ac_cv_type_off_t = yes; then
7665 cat >>confdefs.h <<_ACEOF
7666 #define off_t long int
7671 { echo "$as_me:$LINENO: checking for size_t" >&5
7672 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7673 if test "${ac_cv_type_size_t+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7683 typedef size_t ac__type_new_;
7687 if ((ac__type_new_ *) 0)
7689 if (sizeof (ac__type_new_))
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 ac_cv_type_size_t=yes
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 ac_cv_type_size_t=no
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7723 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7724 if test $ac_cv_type_size_t = yes; then
7728 cat >>confdefs.h <<_ACEOF
7729 #define size_t unsigned int
7734 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7735 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7736 if test "${ac_cv_type_uid_t+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7745 #include <sys/types.h>
7748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7749 $EGREP "uid_t" >/dev/null 2>&1; then
7750 ac_cv_type_uid_t=yes
7757 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7758 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7759 if test $ac_cv_type_uid_t = no; then
7761 cat >>confdefs.h <<\_ACEOF
7766 cat >>confdefs.h <<\_ACEOF
7772 { echo "$as_me:$LINENO: checking for major_t" >&5
7773 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
7774 if test "${ac_cv_type_major_t+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 cat >conftest.$ac_ext <<_ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 $ac_includes_default
7784 typedef major_t ac__type_new_;
7788 if ((ac__type_new_ *) 0)
7790 if (sizeof (ac__type_new_))
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 ac_cv_type_major_t=yes
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 ac_cv_type_major_t=no
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
7824 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
7825 if test $ac_cv_type_major_t = yes; then
7829 cat >>confdefs.h <<\_ACEOF
7835 { echo "$as_me:$LINENO: checking for minor_t" >&5
7836 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
7837 if test "${ac_cv_type_minor_t+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 $ac_includes_default
7847 typedef minor_t ac__type_new_;
7851 if ((ac__type_new_ *) 0)
7853 if (sizeof (ac__type_new_))
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_cv_type_minor_t=yes
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7881 ac_cv_type_minor_t=no
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
7887 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
7888 if test $ac_cv_type_minor_t = yes; then
7892 cat >>confdefs.h <<\_ACEOF
7898 { echo "$as_me:$LINENO: checking for dev_t" >&5
7899 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
7900 if test "${ac_cv_type_dev_t+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7910 typedef dev_t ac__type_new_;
7914 if ((ac__type_new_ *) 0)
7916 if (sizeof (ac__type_new_))
7922 rm -f conftest.$ac_objext
7923 if { (ac_try="$ac_compile"
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7939 ac_cv_type_dev_t=yes
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
7950 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
7951 if test $ac_cv_type_dev_t = yes; then
7955 cat >>confdefs.h <<_ACEOF
7956 #define dev_t unsigned
7961 { echo "$as_me:$LINENO: checking for ino_t" >&5
7962 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
7963 if test "${ac_cv_type_ino_t+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.$ac_ext <<_ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 $ac_includes_default
7973 typedef ino_t ac__type_new_;
7977 if ((ac__type_new_ *) 0)
7979 if (sizeof (ac__type_new_))
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_cv_type_ino_t=yes
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8013 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
8014 if test $ac_cv_type_ino_t = yes; then
8018 cat >>confdefs.h <<_ACEOF
8019 #define ino_t unsigned
8026 { echo "$as_me:$LINENO: checking for ssize_t" >&5
8027 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8028 if test "${gt_cv_ssize_t+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 #include <sys/types.h>
8041 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8075 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8076 if test $gt_cv_ssize_t = no; then
8078 cat >>confdefs.h <<\_ACEOF
8092 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8093 # for constant arguments. Useless!
8094 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8095 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8096 if test "${ac_cv_working_alloca_h+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8109 char *p = (char *) alloca (2 * sizeof (int));
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_link") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest$ac_exeext &&
8132 $as_test_x conftest$ac_exeext; then
8133 ac_cv_working_alloca_h=yes
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_cv_working_alloca_h=no
8141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8142 conftest$ac_exeext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8145 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8146 if test $ac_cv_working_alloca_h = yes; then
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_ALLOCA_H 1
8154 { echo "$as_me:$LINENO: checking for alloca" >&5
8155 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8156 if test "${ac_cv_func_alloca_works+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8166 # define alloca __builtin_alloca
8169 # include <malloc.h>
8170 # define alloca _alloca
8172 # ifdef HAVE_ALLOCA_H
8173 # include <alloca.h>
8178 # ifndef alloca /* predefined by HP cc +Olibcalls */
8189 char *p = (char *) alloca (1);
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_link") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1 >conftest.err
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest$ac_exeext &&
8212 $as_test_x conftest$ac_exeext; then
8213 ac_cv_func_alloca_works=yes
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8218 ac_cv_func_alloca_works=no
8221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8222 conftest$ac_exeext conftest.$ac_ext
8224 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8225 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8227 if test $ac_cv_func_alloca_works = yes; then
8229 cat >>confdefs.h <<\_ACEOF
8230 #define HAVE_ALLOCA 1
8234 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8235 # that cause trouble. Some versions do not even contain alloca or
8236 # contain a buggy version. If you still want to use their alloca,
8237 # use ar to extract alloca.o from them instead of compiling alloca.c.
8243 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8245 cat >>confdefs.h <<\_ACEOF
8250 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8251 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8252 if test "${ac_cv_os_cray+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 #if defined CRAY && ! defined CRAY2
8268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8269 $EGREP "webecray" >/dev/null 2>&1; then
8277 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8278 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8279 if test $ac_cv_os_cray = yes; then
8280 for ac_func in _getb67 GETB67 getb67; do
8281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 cat >conftest.$ac_ext <<_ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8295 #define $ac_func innocuous_$ac_func
8297 /* System header to define __stub macros and hopefully few prototypes,
8298 which can conflict with char $ac_func (); below.
8299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8300 <limits.h> exists even on freestanding compilers. */
8303 # include <limits.h>
8305 # include <assert.h>
8310 /* Override any GCC internal prototype to avoid an error.
8311 Use char because int might match the return type of a GCC
8312 builtin and then its argument prototype would still apply. */
8317 /* The GNU C library defines this for functions which it implements
8318 to always fail with ENOSYS. Some functions are actually named
8319 something starting with __ and the normal name is an alias. */
8320 #if defined __stub_$ac_func || defined __stub___$ac_func
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (ac_try="$ac_link"
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_link") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest$ac_exeext &&
8349 $as_test_x conftest$ac_exeext; then
8350 eval "$as_ac_var=yes"
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 eval "$as_ac_var=no"
8358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8359 conftest$ac_exeext conftest.$ac_ext
8361 ac_res=`eval echo '${'$as_ac_var'}'`
8362 { echo "$as_me:$LINENO: result: $ac_res" >&5
8363 echo "${ECHO_T}$ac_res" >&6; }
8364 if test `eval echo '${'$as_ac_var'}'` = yes; then
8366 cat >>confdefs.h <<_ACEOF
8367 #define CRAY_STACKSEG_END $ac_func
8376 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8377 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8378 if test "${ac_cv_c_stack_direction+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 if test "$cross_compiling" = yes; then
8382 ac_cv_c_stack_direction=0
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8392 find_stack_direction ()
8394 static char *addr = 0;
8399 return find_stack_direction ();
8402 return (&dummy > addr) ? 1 : -1;
8408 return find_stack_direction () < 0;
8411 rm -f conftest$ac_exeext
8412 if { (ac_try="$ac_link"
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_link") 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_cv_c_stack_direction=1
8433 echo "$as_me: program exited with status $ac_status" >&5
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_cv_c_stack_direction=-1
8440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8445 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8446 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8448 cat >>confdefs.h <<_ACEOF
8449 #define STACK_DIRECTION $ac_cv_c_stack_direction
8455 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8456 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8457 if test "${ac_cv_c_restrict+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 # The order here caters to the fact that C++ does not require restrict.
8462 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 typedef int * int_ptr;
8470 int foo (int_ptr $ac_kw ip) {
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_compile") 2>conftest.er1
8493 grep -v '^ *+' conftest.er1 >conftest.err
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest.$ac_objext; then
8501 ac_cv_c_restrict=$ac_kw
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 test "$ac_cv_c_restrict" != no && break
8514 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8515 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8518 case $ac_cv_c_restrict in
8520 no) cat >>confdefs.h <<\_ACEOF
8524 *) cat >>confdefs.h <<_ACEOF
8525 #define restrict $ac_cv_c_restrict
8530 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8531 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
8532 if test "${ac_cv_have_decl_getenv+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 $ac_includes_default
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_compile") 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest.$ac_objext; then
8570 ac_cv_have_decl_getenv=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_cv_have_decl_getenv=no
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8581 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
8582 if test $ac_cv_have_decl_getenv = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_DECL_GETENV 1
8590 cat >>confdefs.h <<_ACEOF
8591 #define HAVE_DECL_GETENV 0
8598 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
8599 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
8600 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8613 #ifndef clearerr_unlocked
8614 (void) clearerr_unlocked;
8621 rm -f conftest.$ac_objext
8622 if { (ac_try="$ac_compile"
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_compile") 2>conftest.er1
8630 grep -v '^ *+' conftest.er1 >conftest.err
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest.$ac_objext; then
8638 ac_cv_have_decl_clearerr_unlocked=yes
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_cv_have_decl_clearerr_unlocked=no
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
8649 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
8650 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
8652 cat >>confdefs.h <<_ACEOF
8653 #define HAVE_DECL_CLEARERR_UNLOCKED 1
8658 cat >>confdefs.h <<_ACEOF
8659 #define HAVE_DECL_CLEARERR_UNLOCKED 0
8666 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8667 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8668 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8681 #ifndef feof_unlocked
8682 (void) feof_unlocked;
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8698 grep -v '^ *+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 ac_cv_have_decl_feof_unlocked=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_cv_have_decl_feof_unlocked=no
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8717 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8718 if test $ac_cv_have_decl_feof_unlocked = yes; then
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_DECL_FEOF_UNLOCKED 1
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_DECL_FEOF_UNLOCKED 0
8734 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
8735 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
8736 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 $ac_includes_default
8749 #ifndef ferror_unlocked
8750 (void) ferror_unlocked;
8757 rm -f conftest.$ac_objext
8758 if { (ac_try="$ac_compile"
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_compile") 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
8773 } && test -s conftest.$ac_objext; then
8774 ac_cv_have_decl_ferror_unlocked=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 ac_cv_have_decl_ferror_unlocked=no
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
8785 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
8786 if test $ac_cv_have_decl_ferror_unlocked = yes; then
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_DECL_FERROR_UNLOCKED 1
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_DECL_FERROR_UNLOCKED 0
8802 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
8803 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
8804 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8817 #ifndef fflush_unlocked
8818 (void) fflush_unlocked;
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 ac_cv_have_decl_fflush_unlocked=yes
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 ac_cv_have_decl_fflush_unlocked=no
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
8853 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
8854 if test $ac_cv_have_decl_fflush_unlocked = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DECL_FFLUSH_UNLOCKED 1
8862 cat >>confdefs.h <<_ACEOF
8863 #define HAVE_DECL_FFLUSH_UNLOCKED 0
8870 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8871 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8872 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 cat >conftest.$ac_ext <<_ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 $ac_includes_default
8885 #ifndef fgets_unlocked
8886 (void) fgets_unlocked;
8893 rm -f conftest.$ac_objext
8894 if { (ac_try="$ac_compile"
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_compile") 2>conftest.er1
8902 grep -v '^ *+' conftest.er1 >conftest.err
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest.$ac_objext; then
8910 ac_cv_have_decl_fgets_unlocked=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_cv_have_decl_fgets_unlocked=no
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8921 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8922 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_DECL_FGETS_UNLOCKED 1
8930 cat >>confdefs.h <<_ACEOF
8931 #define HAVE_DECL_FGETS_UNLOCKED 0
8938 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
8939 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
8940 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 $ac_includes_default
8953 #ifndef fputc_unlocked
8954 (void) fputc_unlocked;
8961 rm -f conftest.$ac_objext
8962 if { (ac_try="$ac_compile"
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_compile") 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } && {
8975 test -z "$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8977 } && test -s conftest.$ac_objext; then
8978 ac_cv_have_decl_fputc_unlocked=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_cv_have_decl_fputc_unlocked=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
8989 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
8990 if test $ac_cv_have_decl_fputc_unlocked = yes; then
8992 cat >>confdefs.h <<_ACEOF
8993 #define HAVE_DECL_FPUTC_UNLOCKED 1
8998 cat >>confdefs.h <<_ACEOF
8999 #define HAVE_DECL_FPUTC_UNLOCKED 0
9006 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9007 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
9008 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9021 #ifndef fputs_unlocked
9022 (void) fputs_unlocked;
9029 rm -f conftest.$ac_objext
9030 if { (ac_try="$ac_compile"
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 ac_cv_have_decl_fputs_unlocked=yes
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 ac_cv_have_decl_fputs_unlocked=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9057 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
9058 if test $ac_cv_have_decl_fputs_unlocked = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_DECL_FPUTS_UNLOCKED 1
9066 cat >>confdefs.h <<_ACEOF
9067 #define HAVE_DECL_FPUTS_UNLOCKED 0
9074 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
9075 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
9076 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 $ac_includes_default
9089 #ifndef fread_unlocked
9090 (void) fread_unlocked;
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest.$ac_objext; then
9114 ac_cv_have_decl_fread_unlocked=yes
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_cv_have_decl_fread_unlocked=no
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9125 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
9126 if test $ac_cv_have_decl_fread_unlocked = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define HAVE_DECL_FREAD_UNLOCKED 1
9134 cat >>confdefs.h <<_ACEOF
9135 #define HAVE_DECL_FREAD_UNLOCKED 0
9142 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9143 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
9144 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9157 #ifndef fwrite_unlocked
9158 (void) fwrite_unlocked;
9165 rm -f conftest.$ac_objext
9166 if { (ac_try="$ac_compile"
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.$ac_objext; then
9182 ac_cv_have_decl_fwrite_unlocked=yes
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 ac_cv_have_decl_fwrite_unlocked=no
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9193 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
9194 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_DECL_FWRITE_UNLOCKED 1
9202 cat >>confdefs.h <<_ACEOF
9203 #define HAVE_DECL_FWRITE_UNLOCKED 0
9210 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9211 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9212 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 $ac_includes_default
9225 #ifndef getc_unlocked
9226 (void) getc_unlocked;
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_compile") 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest.$ac_objext; then
9250 ac_cv_have_decl_getc_unlocked=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_cv_have_decl_getc_unlocked=no
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9261 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9262 if test $ac_cv_have_decl_getc_unlocked = yes; then
9264 cat >>confdefs.h <<_ACEOF
9265 #define HAVE_DECL_GETC_UNLOCKED 1
9270 cat >>confdefs.h <<_ACEOF
9271 #define HAVE_DECL_GETC_UNLOCKED 0
9278 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
9279 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
9280 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289 $ac_includes_default
9293 #ifndef getchar_unlocked
9294 (void) getchar_unlocked;
9301 rm -f conftest.$ac_objext
9302 if { (ac_try="$ac_compile"
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_compile") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && {
9315 test -z "$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 } && test -s conftest.$ac_objext; then
9318 ac_cv_have_decl_getchar_unlocked=yes
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_cv_have_decl_getchar_unlocked=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
9329 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
9330 if test $ac_cv_have_decl_getchar_unlocked = yes; then
9332 cat >>confdefs.h <<_ACEOF
9333 #define HAVE_DECL_GETCHAR_UNLOCKED 1
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_DECL_GETCHAR_UNLOCKED 0
9346 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
9347 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
9348 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 $ac_includes_default
9361 #ifndef putc_unlocked
9362 (void) putc_unlocked;
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9386 ac_cv_have_decl_putc_unlocked=yes
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_cv_have_decl_putc_unlocked=no
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
9397 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
9398 if test $ac_cv_have_decl_putc_unlocked = yes; then
9400 cat >>confdefs.h <<_ACEOF
9401 #define HAVE_DECL_PUTC_UNLOCKED 1
9406 cat >>confdefs.h <<_ACEOF
9407 #define HAVE_DECL_PUTC_UNLOCKED 0
9414 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
9415 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
9416 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 $ac_includes_default
9429 #ifndef putchar_unlocked
9430 (void) putchar_unlocked;
9437 rm -f conftest.$ac_objext
9438 if { (ac_try="$ac_compile"
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_compile") 2>conftest.er1
9446 grep -v '^ *+' conftest.er1 >conftest.err
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
9454 ac_cv_have_decl_putchar_unlocked=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_cv_have_decl_putchar_unlocked=no
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
9465 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
9466 if test $ac_cv_have_decl_putchar_unlocked = yes; then
9468 cat >>confdefs.h <<_ACEOF
9469 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
9474 cat >>confdefs.h <<_ACEOF
9475 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
9486 for ac_func in $ac_func_list
9488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9502 #define $ac_func innocuous_$ac_func
9504 /* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char $ac_func (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9510 # include <limits.h>
9512 # include <assert.h>
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9524 /* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
9527 #if defined __stub_$ac_func || defined __stub___$ac_func
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_link") 2>conftest.er1
9548 grep -v '^ *+' conftest.er1 >conftest.err
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest$ac_exeext &&
9556 $as_test_x conftest$ac_exeext; then
9557 eval "$as_ac_var=yes"
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 eval "$as_ac_var=no"
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9568 ac_res=`eval echo '${'$as_ac_var'}'`
9569 { echo "$as_me:$LINENO: result: $ac_res" >&5
9570 echo "${ECHO_T}$ac_res" >&6; }
9571 if test `eval echo '${'$as_ac_var'}'` = yes; then
9572 cat >>confdefs.h <<_ACEOF
9573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9588 XGETTEXT_EXTRA_OPTIONS=
9590 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9591 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9592 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 if test "$cross_compiling" = yes; then
9596 gl_cv_struct_dirent_d_ino=no
9598 cat >conftest.$ac_ext <<_ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/stat.h>
9611 DIR *dp = opendir (".");
9618 && stat (e->d_name, &st) == 0
9619 && e->d_ino == st.st_ino);
9624 rm -f conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9635 { (case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_try") 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 gl_cv_struct_dirent_d_ino=yes
9646 echo "$as_me: program exited with status $ac_status" >&5
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9651 gl_cv_struct_dirent_d_ino=no
9653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9658 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
9659 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
9660 if test $gl_cv_struct_dirent_d_ino = yes; then
9662 cat >>confdefs.h <<\_ACEOF
9663 #define D_INO_IN_DIRENT 1
9670 { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9671 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
9672 if test "${ac_cv_win_or_dos+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9686 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9687 neither MSDOS nor Windows
9693 rm -f conftest.$ac_objext
9694 if { (ac_try="$ac_compile"
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_compile") 2>conftest.er1
9702 grep -v '^ *+' conftest.er1 >conftest.err
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } && {
9707 test -z "$ac_c_werror_flag" ||
9708 test ! -s conftest.err
9709 } && test -s conftest.$ac_objext; then
9710 ac_cv_win_or_dos=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9722 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
9724 if test x"$ac_cv_win_or_dos" = xyes; then
9725 ac_fs_accepts_drive_letter_prefix=1
9726 ac_fs_backslash_is_file_name_separator=1
9727 { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
9728 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
9729 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 cat >conftest.$ac_ext <<_ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9743 #if defined __CYGWIN__
9744 drive letters are always absolute
9750 rm -f conftest.$ac_objext
9751 if { (ac_try="$ac_compile"
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_compile") 2>conftest.er1
9759 grep -v '^ *+' conftest.er1 >conftest.err
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } && {
9764 test -z "$ac_c_werror_flag" ||
9765 test ! -s conftest.err
9766 } && test -s conftest.$ac_objext; then
9767 ac_cv_drive_letter_can_be_relative=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_drive_letter_can_be_relative=no
9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
9779 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
9780 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
9781 ac_fs_drive_letter_can_be_relative=1
9783 ac_fs_drive_letter_can_be_relative=0
9786 ac_fs_accepts_drive_letter_prefix=0
9787 ac_fs_backslash_is_file_name_separator=0
9788 ac_fs_drive_letter_can_be_relative=0
9792 cat >>confdefs.h <<_ACEOF
9793 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9801 cat >>confdefs.h <<_ACEOF
9802 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9807 cat >>confdefs.h <<_ACEOF
9808 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
9812 { echo "$as_me:$LINENO: checking for long file names" >&5
9813 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9814 if test "${ac_cv_sys_long_file_names+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 ac_cv_sys_long_file_names=yes
9818 # Test for long file names in all the places we know might matter:
9819 # . the current directory, where building will happen
9820 # $prefix/lib where we will be installing things
9821 # $exec_prefix/lib likewise
9822 # $TMPDIR if set, where it might want to write temporary files
9823 # /tmp where it might want to write temporary files
9826 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9827 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9828 # in the usual case where exec_prefix is '${prefix}'.
9830 . | /* | ?:[\\/]*) ;; #(
9833 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9834 ac_xdir=$ac_dir/cf$$
9835 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9836 ac_tf1=$ac_xdir/conftest9012345
9837 ac_tf2=$ac_xdir/conftest9012346
9838 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9839 ac_cv_sys_long_file_names=no
9840 rm -f -r "$ac_xdir" 2>/dev/null
9841 test $ac_cv_sys_long_file_names = no && break
9844 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9845 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9846 if test $ac_cv_sys_long_file_names = yes; then
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_LONG_FILE_NAMES 1
9856 { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
9857 echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; }
9858 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 $ac_includes_default
9871 #ifndef canonicalize_file_name
9872 (void) canonicalize_file_name;
9879 rm -f conftest.$ac_objext
9880 if { (ac_try="$ac_compile"
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_compile") 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && {
9893 test -z "$ac_c_werror_flag" ||
9894 test ! -s conftest.err
9895 } && test -s conftest.$ac_objext; then
9896 ac_cv_have_decl_canonicalize_file_name=yes
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_cv_have_decl_canonicalize_file_name=no
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
9907 echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; }
9908 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
9910 cat >>confdefs.h <<_ACEOF
9911 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
9916 cat >>confdefs.h <<_ACEOF
9917 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
9935 GNULIB_EUIDACCESS=0;
9940 GNULIB_GETDOMAINNAME=0;
9941 GNULIB_GETDTABLESIZE=0;
9942 GNULIB_GETHOSTNAME=0;
9943 GNULIB_GETLOGIN_R=0;
9944 GNULIB_GETPAGESIZE=0;
9945 GNULIB_GETUSERSHELL=0;
9950 GNULIB_UNISTD_H_SIGPIPE=0;
9956 HAVE_GETDOMAINNAME=1;
9957 HAVE_GETDTABLESIZE=1;
9960 HAVE_GETUSERSHELL=1;
9963 HAVE_DECL_ENVIRON=1;
9964 HAVE_DECL_GETLOGIN_R=1;
9971 REPLACE_GETPAGESIZE=0;
9975 UNISTD_H_HAVE_WINSOCK2_H=0;
9978 for ac_header in unistd.h
9980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 ac_res=`eval echo '${'$as_ac_Header'}'`
9988 { echo "$as_me:$LINENO: result: $ac_res" >&5
9989 echo "${ECHO_T}$ac_res" >&6; }
9991 # Is the header compilable?
9992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 #include <$ac_header>
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10020 ac_header_compiler=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_compiler=no
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030 echo "${ECHO_T}$ac_header_compiler" >&6; }
10032 # Is the header present?
10033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <$ac_header>
10043 if { (ac_try="$ac_cpp conftest.$ac_ext"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null && {
10056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10059 ac_header_preproc=yes
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_header_preproc=no
10067 rm -f conftest.err conftest.$ac_ext
10068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10069 echo "${ECHO_T}$ac_header_preproc" >&6; }
10071 # So? What about this header?
10072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10078 ac_header_preproc=yes
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10094 ## ------------------------------ ##
10095 ## Report this to bug-tar@gnu.org ##
10096 ## ------------------------------ ##
10098 ) | sed "s/^/$as_me: WARNING: /" >&2
10101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 eval "$as_ac_Header=\$ac_header_preproc"
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109 { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10114 cat >>confdefs.h <<_ACEOF
10115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10122 { echo "$as_me:$LINENO: checking for working chown" >&5
10123 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10124 if test "${ac_cv_func_chown_works+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 if test "$cross_compiling" = yes; then
10128 ac_cv_func_chown_works=no
10130 cat >conftest.$ac_ext <<_ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 $ac_includes_default
10142 char *f = "conftest.chown";
10143 struct stat before, after;
10145 if (creat (f, 0600) < 0)
10147 if (stat (f, &before) < 0)
10149 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10151 if (stat (f, &after) < 0)
10153 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10159 rm -f conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_link") 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_func_chown_works=yes
10181 echo "$as_me: program exited with status $ac_status" >&5
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ( exit $ac_status )
10186 ac_cv_func_chown_works=no
10188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10192 rm -f conftest.chown
10195 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10196 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10197 if test $ac_cv_func_chown_works = yes; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_CHOWN 1
10206 { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
10207 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
10208 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 if test "$cross_compiling" = yes; then
10213 gl_cv_func_chown_follows_symlink=yes
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10223 #include <unistd.h>
10224 #include <stdlib.h>
10230 char const *dangling_symlink = "conftest.dangle";
10232 unlink (dangling_symlink);
10233 if (symlink ("conftest.no-such", dangling_symlink))
10236 /* Exit successfully on a conforming system,
10237 i.e., where chown must fail with ENOENT. */
10238 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
10239 && errno == ENOENT));
10243 rm -f conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 gl_cv_func_chown_follows_symlink=yes
10265 echo "$as_me: program exited with status $ac_status" >&5
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ( exit $ac_status )
10270 gl_cv_func_chown_follows_symlink=no
10272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10279 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
10280 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
10282 if test $gl_cv_func_chown_follows_symlink = no; then
10284 cat >>confdefs.h <<\_ACEOF
10285 #define CHOWN_MODIFIES_SYMLINK 1
10297 { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
10298 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
10299 if test "${gl_cv_have_include_next+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 rm -rf conftestd1 conftestd2
10303 mkdir conftestd1 conftestd2
10304 cat <<EOF > conftestd1/conftest.h
10305 #define DEFINED_IN_CONFTESTD1
10307 #include_next <conftest.h>
10308 #ifdef DEFINED_IN_CONFTESTD2
10311 #error "include_next doesn't work"
10314 cat <<EOF > conftestd2/conftest.h
10315 #ifndef DEFINED_IN_CONFTESTD1
10316 #error "include_next test doesn't work"
10318 #define DEFINED_IN_CONFTESTD2
10320 save_CPPFLAGS="$CPPFLAGS"
10321 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #include <conftest.h>
10325 rm -f conftest.$ac_objext
10326 if { (ac_try="$ac_compile"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest.$ac_objext; then
10342 gl_cv_have_include_next=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 gl_cv_have_include_next=no
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 CPPFLAGS="$save_CPPFLAGS"
10352 rm -rf conftestd1 conftestd2
10355 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
10356 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
10357 PRAGMA_SYSTEM_HEADER=
10358 if test $gl_cv_have_include_next = yes; then
10359 INCLUDE_NEXT=include_next
10360 if test -n "$GCC"; then
10361 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10364 INCLUDE_NEXT=include
10371 # Make sure we can run config.sub.
10372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
10373 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
10374 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
10375 { (exit 1); exit 1; }; }
10377 { echo "$as_me:$LINENO: checking build system type" >&5
10378 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
10379 if test "${ac_cv_build+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 ac_build_alias=$build_alias
10383 test "x$ac_build_alias" = x &&
10384 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
10385 test "x$ac_build_alias" = x &&
10386 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10387 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10388 { (exit 1); exit 1; }; }
10389 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
10390 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
10391 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
10392 { (exit 1); exit 1; }; }
10395 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10396 echo "${ECHO_T}$ac_cv_build" >&6; }
10397 case $ac_cv_build in
10399 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
10400 echo "$as_me: error: invalid value of canonical build" >&2;}
10401 { (exit 1); exit 1; }; };;
10404 ac_save_IFS=$IFS; IFS='-'
10410 # Remember, the first character of IFS is used to create $*,
10411 # except with old shells:
10414 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
10417 { echo "$as_me:$LINENO: checking host system type" >&5
10418 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10419 if test "${ac_cv_host+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 if test "x$host_alias" = x; then
10423 ac_cv_host=$ac_cv_build
10425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10426 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10427 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10428 { (exit 1); exit 1; }; }
10432 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10433 echo "${ECHO_T}$ac_cv_host" >&6; }
10434 case $ac_cv_host in
10436 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10437 echo "$as_me: error: invalid value of canonical host" >&2;}
10438 { (exit 1); exit 1; }; };;
10441 ac_save_IFS=$IFS; IFS='-'
10447 # Remember, the first character of IFS is used to create $*,
10448 # except with old shells:
10451 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10456 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10457 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
10458 if test "${gl_cv_double_slash_root+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 if test x"$cross_compiling" = xyes ; then
10462 # When cross-compiling, there is no way to tell whether // is special
10463 # short of a list of hosts. However, the only known hosts to date
10464 # that have a distinct // are Apollo DomainOS (too old to port to),
10465 # Cygwin, and z/OS. If anyone knows of another system for which // has
10466 # special semantics and is distinct from /, please report it to
10467 # <bug-gnulib@gnu.org>.
10469 *-cygwin | i370-ibm-openedition)
10470 gl_cv_double_slash_root=yes ;;
10472 # Be optimistic and assume that / and // are the same when we
10474 gl_cv_double_slash_root='unknown, assuming no' ;;
10477 set x `ls -di / // 2>/dev/null`
10478 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10479 gl_cv_double_slash_root=no
10481 gl_cv_double_slash_root=yes
10485 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10486 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
10487 if test "$gl_cv_double_slash_root" = yes; then
10489 cat >>confdefs.h <<\_ACEOF
10490 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10501 { echo "$as_me:$LINENO: checking for complete errno.h" >&5
10502 echo $ECHO_N "checking for complete errno.h... $ECHO_C" >&6; }
10503 if test "${gl_cv_header_errno_h_complete+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10515 #if !defined ENOMSG
10521 #if !defined ENOLINK
10524 #if !defined EPROTO
10527 #if !defined EMULTIHOP
10530 #if !defined EBADMSG
10533 #if !defined EOVERFLOW
10536 #if !defined ENOTSUP
10539 #if !defined ECANCELED
10544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10545 $EGREP "booboo" >/dev/null 2>&1; then
10546 gl_cv_header_errno_h_complete=no
10548 gl_cv_header_errno_h_complete=yes
10554 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
10555 echo "${ECHO_T}$gl_cv_header_errno_h_complete" >&6; }
10556 if test $gl_cv_header_errno_h_complete = yes; then
10569 if test $gl_cv_have_include_next = yes; then
10570 gl_cv_next_errno_h='<'errno.h'>'
10572 { echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
10573 echo $ECHO_N "checking absolute name of <errno.h>... $ECHO_C" >&6; }
10574 if test "${gl_cv_next_errno_h+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 if test $ac_cv_header_errno_h = yes; then
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10588 gl_cv_next_errno_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10589 sed -n '\#/errno.h#{
10590 s#.*"\(.*/errno.h\)".*#\1#
10596 gl_cv_next_errno_h='<'errno.h'>'
10600 { echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
10601 echo "${ECHO_T}$gl_cv_next_errno_h" >&6; }
10603 NEXT_ERRNO_H=$gl_cv_next_errno_h
10611 if test -n "$ERRNO_H"; then
10612 { echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
10613 echo $ECHO_N "checking for EMULTIHOP value... $ECHO_C" >&6; }
10614 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10632 $EGREP "yes" >/dev/null 2>&1; then
10633 gl_cv_header_errno_h_EMULTIHOP=yes
10635 gl_cv_header_errno_h_EMULTIHOP=no
10639 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10647 #define _XOPEN_SOURCE_EXTENDED 1
10654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10655 $EGREP "yes" >/dev/null 2>&1; then
10656 gl_cv_header_errno_h_EMULTIHOP=hidden
10660 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10661 if test "$cross_compiling" = yes; then
10662 # Depending upon the size, compute the lo and hi bounds.
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 #define _XOPEN_SOURCE_EXTENDED 1
10672 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10674 #include <stdlib.h>
10679 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
10686 rm -f conftest.$ac_objext
10687 if { (ac_try="$ac_compile"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_compile") 2>conftest.er1
10695 grep -v '^ *+' conftest.er1 >conftest.err
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest.$ac_objext; then
10705 cat >conftest.$ac_ext <<_ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10712 #define _XOPEN_SOURCE_EXTENDED 1
10714 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10716 #include <stdlib.h>
10721 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_hi=$ac_mid; break
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_lo=`expr $ac_mid + 1`
10751 if test $ac_lo -le $ac_mid; then
10755 ac_mid=`expr 2 '*' $ac_mid + 1`
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10771 #define _XOPEN_SOURCE_EXTENDED 1
10773 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10775 #include <stdlib.h>
10780 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_compile") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest.$ac_objext; then
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10813 #define _XOPEN_SOURCE_EXTENDED 1
10815 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10817 #include <stdlib.h>
10822 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.$ac_objext; then
10846 ac_lo=$ac_mid; break
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_hi=`expr '(' $ac_mid ')' - 1`
10852 if test $ac_mid -le $ac_hi; then
10856 ac_mid=`expr 2 '*' $ac_mid`
10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 # Binary search between lo and hi bounds.
10873 while test "x$ac_lo" != "x$ac_hi"; do
10874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10882 #define _XOPEN_SOURCE_EXTENDED 1
10884 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10886 #include <stdlib.h>
10891 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
10898 rm -f conftest.$ac_objext
10899 if { (ac_try="$ac_compile"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_compile") 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest.$ac_objext; then
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_lo=`expr '(' $ac_mid ')' + 1`
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
10930 cat >conftest.$ac_ext <<_ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10937 #define _XOPEN_SOURCE_EXTENDED 1
10939 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10941 #include <stdlib.h>
10943 static long int longval () { return EMULTIHOP; }
10944 static unsigned long int ulongval () { return EMULTIHOP; }
10946 #include <stdlib.h>
10951 FILE *f = fopen ("conftest.val", "w");
10954 if ((EMULTIHOP) < 0)
10956 long int i = longval ();
10957 if (i != (EMULTIHOP))
10959 fprintf (f, "%ld\n", i);
10963 unsigned long int i = ulongval ();
10964 if (i != (EMULTIHOP))
10966 fprintf (f, "%lu\n", i);
10968 return ferror (f) || fclose (f) != 0;
10974 rm -f conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
10996 echo "$as_me: program exited with status $ac_status" >&5
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11008 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
11009 echo "${ECHO_T}$gl_cv_header_errno_h_EMULTIHOP" >&6; }
11010 case $gl_cv_header_errno_h_EMULTIHOP in
11012 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
11015 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
11023 if test -n "$ERRNO_H"; then
11024 { echo "$as_me:$LINENO: checking for ENOLINK value" >&5
11025 echo $ECHO_N "checking for ENOLINK value... $ECHO_C" >&6; }
11026 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11044 $EGREP "yes" >/dev/null 2>&1; then
11045 gl_cv_header_errno_h_ENOLINK=yes
11047 gl_cv_header_errno_h_ENOLINK=no
11051 if test $gl_cv_header_errno_h_ENOLINK = no; then
11052 cat >conftest.$ac_ext <<_ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11059 #define _XOPEN_SOURCE_EXTENDED 1
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 $EGREP "yes" >/dev/null 2>&1; then
11068 gl_cv_header_errno_h_ENOLINK=hidden
11072 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
11073 if test "$cross_compiling" = yes; then
11074 # Depending upon the size, compute the lo and hi bounds.
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11082 #define _XOPEN_SOURCE_EXTENDED 1
11084 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11086 #include <stdlib.h>
11091 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
11098 rm -f conftest.$ac_objext
11099 if { (ac_try="$ac_compile"
11100 case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_compile") 2>conftest.er1
11107 grep -v '^ *+' conftest.er1 >conftest.err
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_c_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest.$ac_objext; then
11117 cat >conftest.$ac_ext <<_ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11124 #define _XOPEN_SOURCE_EXTENDED 1
11126 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11128 #include <stdlib.h>
11133 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_compile") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest.$ac_objext; then
11157 ac_hi=$ac_mid; break
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_lo=`expr $ac_mid + 1`
11163 if test $ac_lo -le $ac_mid; then
11167 ac_mid=`expr 2 '*' $ac_mid + 1`
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11183 #define _XOPEN_SOURCE_EXTENDED 1
11185 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11187 #include <stdlib.h>
11192 static int test_array [1 - 2 * !((ENOLINK) < 0)];
11199 rm -f conftest.$ac_objext
11200 if { (ac_try="$ac_compile"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_compile") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest.$ac_objext; then
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11225 #define _XOPEN_SOURCE_EXTENDED 1
11227 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11229 #include <stdlib.h>
11234 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_compile") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest.$ac_objext; then
11258 ac_lo=$ac_mid; break
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11263 ac_hi=`expr '(' $ac_mid ')' - 1`
11264 if test $ac_mid -le $ac_hi; then
11268 ac_mid=`expr 2 '*' $ac_mid`
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284 # Binary search between lo and hi bounds.
11285 while test "x$ac_lo" != "x$ac_hi"; do
11286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11294 #define _XOPEN_SOURCE_EXTENDED 1
11296 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11298 #include <stdlib.h>
11303 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_compile") 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } && {
11324 test -z "$ac_c_werror_flag" ||
11325 test ! -s conftest.err
11326 } && test -s conftest.$ac_objext; then
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_lo=`expr '(' $ac_mid ')' + 1`
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11338 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11349 #define _XOPEN_SOURCE_EXTENDED 1
11351 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11353 #include <stdlib.h>
11355 static long int longval () { return ENOLINK; }
11356 static unsigned long int ulongval () { return ENOLINK; }
11358 #include <stdlib.h>
11363 FILE *f = fopen ("conftest.val", "w");
11368 long int i = longval ();
11369 if (i != (ENOLINK))
11371 fprintf (f, "%ld\n", i);
11375 unsigned long int i = ulongval ();
11376 if (i != (ENOLINK))
11378 fprintf (f, "%lu\n", i);
11380 return ferror (f) || fclose (f) != 0;
11386 rm -f conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_link") 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
11408 echo "$as_me: program exited with status $ac_status" >&5
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11420 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
11421 echo "${ECHO_T}$gl_cv_header_errno_h_ENOLINK" >&6; }
11422 case $gl_cv_header_errno_h_ENOLINK in
11424 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
11427 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
11435 if test -n "$ERRNO_H"; then
11436 { echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
11437 echo $ECHO_N "checking for EOVERFLOW value... $ECHO_C" >&6; }
11438 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11456 $EGREP "yes" >/dev/null 2>&1; then
11457 gl_cv_header_errno_h_EOVERFLOW=yes
11459 gl_cv_header_errno_h_EOVERFLOW=no
11463 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
11464 cat >conftest.$ac_ext <<_ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11471 #define _XOPEN_SOURCE_EXTENDED 1
11478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11479 $EGREP "yes" >/dev/null 2>&1; then
11480 gl_cv_header_errno_h_EOVERFLOW=hidden
11484 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11485 if test "$cross_compiling" = yes; then
11486 # Depending upon the size, compute the lo and hi bounds.
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11494 #define _XOPEN_SOURCE_EXTENDED 1
11496 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11498 #include <stdlib.h>
11503 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_compile") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest.$ac_objext; then
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11536 #define _XOPEN_SOURCE_EXTENDED 1
11538 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11540 #include <stdlib.h>
11545 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
11552 rm -f conftest.$ac_objext
11553 if { (ac_try="$ac_compile"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_compile") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && {
11566 test -z "$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11568 } && test -s conftest.$ac_objext; then
11569 ac_hi=$ac_mid; break
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_lo=`expr $ac_mid + 1`
11575 if test $ac_lo -le $ac_mid; then
11579 ac_mid=`expr 2 '*' $ac_mid + 1`
11582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11595 #define _XOPEN_SOURCE_EXTENDED 1
11597 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11599 #include <stdlib.h>
11604 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
11611 rm -f conftest.$ac_objext
11612 if { (ac_try="$ac_compile"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 #define _XOPEN_SOURCE_EXTENDED 1
11639 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11641 #include <stdlib.h>
11646 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest.$ac_objext; then
11670 ac_lo=$ac_mid; break
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_hi=`expr '(' $ac_mid ')' - 1`
11676 if test $ac_mid -le $ac_hi; then
11680 ac_mid=`expr 2 '*' $ac_mid`
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 # Binary search between lo and hi bounds.
11697 while test "x$ac_lo" != "x$ac_hi"; do
11698 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11699 cat >conftest.$ac_ext <<_ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11706 #define _XOPEN_SOURCE_EXTENDED 1
11708 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11710 #include <stdlib.h>
11715 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
11722 rm -f conftest.$ac_objext
11723 if { (ac_try="$ac_compile"
11724 case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_compile") 2>conftest.er1
11731 grep -v '^ *+' conftest.er1 >conftest.err
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && {
11736 test -z "$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 } && test -s conftest.$ac_objext; then
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 ac_lo=`expr '(' $ac_mid ')' + 1`
11747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11761 #define _XOPEN_SOURCE_EXTENDED 1
11763 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11765 #include <stdlib.h>
11767 static long int longval () { return EOVERFLOW; }
11768 static unsigned long int ulongval () { return EOVERFLOW; }
11770 #include <stdlib.h>
11775 FILE *f = fopen ("conftest.val", "w");
11778 if ((EOVERFLOW) < 0)
11780 long int i = longval ();
11781 if (i != (EOVERFLOW))
11783 fprintf (f, "%ld\n", i);
11787 unsigned long int i = ulongval ();
11788 if (i != (EOVERFLOW))
11790 fprintf (f, "%lu\n", i);
11792 return ferror (f) || fclose (f) != 0;
11798 rm -f conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
11820 echo "$as_me: program exited with status $ac_status" >&5
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11832 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
11833 echo "${ECHO_T}$gl_cv_header_errno_h_EOVERFLOW" >&6; }
11834 case $gl_cv_header_errno_h_EOVERFLOW in
11836 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
11839 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
11847 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11848 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
11849 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 $ac_includes_default
11870 rm -f conftest.$ac_objext
11871 if { (ac_try="$ac_compile"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_compile") 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest.$ac_objext; then
11887 ac_cv_have_decl_strerror_r=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_cv_have_decl_strerror_r=no
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11898 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
11899 if test $ac_cv_have_decl_strerror_r = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define HAVE_DECL_STRERROR_R 1
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_DECL_STRERROR_R 0
11916 for ac_func in strerror_r
11918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932 #define $ac_func innocuous_$ac_func
11934 /* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func (); below.
11936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 <limits.h> exists even on freestanding compilers. */
11940 # include <limits.h>
11942 # include <assert.h>
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11954 /* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957 #if defined __stub_$ac_func || defined __stub___$ac_func
11964 return $ac_func ();
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_link") 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest$ac_exeext &&
11986 $as_test_x conftest$ac_exeext; then
11987 eval "$as_ac_var=yes"
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 eval "$as_ac_var=no"
11995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11996 conftest$ac_exeext conftest.$ac_ext
11998 ac_res=`eval echo '${'$as_ac_var'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_var'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12009 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
12010 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
12011 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 ac_cv_func_strerror_r_char_p=no
12016 if test $ac_cv_have_decl_strerror_r = yes; then
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12029 char x = *strerror_r (0, buf, sizeof buf);
12030 char *p = strerror_r (0, buf, sizeof buf);
12037 rm -f conftest.$ac_objext
12038 if { (ac_try="$ac_compile"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_compile") 2>conftest.er1
12046 grep -v '^ *+' conftest.er1 >conftest.err
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest.$ac_objext; then
12054 ac_cv_func_strerror_r_char_p=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 # strerror_r is not declared. Choose between
12065 # systems that have relatively inaccessible declarations for the
12066 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12067 # former has a strerror_r that returns char*, while the latter
12068 # has a strerror_r that returns `int'.
12069 # This test should segfault on the DEC system.
12070 if test "$cross_compiling" = yes; then
12073 cat >conftest.$ac_ext <<_ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 $ac_includes_default
12080 extern char *strerror_r ();
12085 char x = *strerror_r (0, buf, sizeof buf);
12086 return ! isalpha (x);
12091 rm -f conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_link") 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_cv_func_strerror_r_char_p=yes
12113 echo "$as_me: program exited with status $ac_status" >&5
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12125 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12126 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
12127 if test $ac_cv_func_strerror_r_char_p = yes; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define STRERROR_R_CHAR_P 1
12143 GNULIB_FPRINTF_POSIX=0;
12145 GNULIB_PRINTF_POSIX=0;
12147 GNULIB_SPRINTF_POSIX=0;
12149 GNULIB_VFPRINTF_POSIX=0;
12151 GNULIB_VPRINTF_POSIX=0;
12152 GNULIB_VSNPRINTF=0;
12153 GNULIB_VSPRINTF_POSIX=0;
12154 GNULIB_VASPRINTF=0;
12155 GNULIB_OBSTACK_PRINTF=0;
12156 GNULIB_OBSTACK_PRINTF_POSIX=0;
12174 GNULIB_STDIO_H_SIGPIPE=0;
12175 REPLACE_STDIO_WRITE_FUNCS=0;
12177 REPLACE_VFPRINTF=0;
12180 REPLACE_SNPRINTF=0;
12181 HAVE_DECL_SNPRINTF=1;
12182 REPLACE_VSNPRINTF=0;
12183 HAVE_DECL_VSNPRINTF=1;
12185 REPLACE_VSPRINTF=0;
12187 REPLACE_VASPRINTF=0;
12188 HAVE_DECL_OBSTACK_PRINTF=1;
12189 REPLACE_OBSTACK_PRINTF=0;
12200 HAVE_DECL_GETDELIM=1;
12201 HAVE_DECL_GETLINE=1;
12207 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
12208 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
12209 if test "${ac_cv_type_mbstate_t+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 $ac_includes_default
12219 # include <wchar.h>
12223 mbstate_t x; return sizeof x;
12228 rm -f conftest.$ac_objext
12229 if { (ac_try="$ac_compile"
12230 case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_compile") 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } && {
12242 test -z "$ac_c_werror_flag" ||
12243 test ! -s conftest.err
12244 } && test -s conftest.$ac_objext; then
12245 ac_cv_type_mbstate_t=yes
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 ac_cv_type_mbstate_t=no
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12256 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
12257 if test $ac_cv_type_mbstate_t = yes; then
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_MBSTATE_T 1
12265 cat >>confdefs.h <<\_ACEOF
12266 #define mbstate_t int
12293 { echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
12294 echo $ECHO_N "checking whether stdin defaults to large file offsets... $ECHO_C" >&6; }
12295 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12308 #if defined __SL64 && defined __SCLE /* cygwin */
12309 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
12310 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
12311 it is easier to do a version check than building a runtime test. */
12312 # include <cygwin/version.h>
12313 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (ac_try="$ac_link"
12323 case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_link") 2>conftest.er1
12330 grep -v '^ *+' conftest.er1 >conftest.err
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } && {
12335 test -z "$ac_c_werror_flag" ||
12336 test ! -s conftest.err
12337 } && test -s conftest$ac_exeext &&
12338 $as_test_x conftest$ac_exeext; then
12339 gl_cv_var_stdin_large_offset=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 gl_cv_var_stdin_large_offset=no
12347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12348 conftest$ac_exeext conftest.$ac_ext
12350 { echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
12351 echo "${ECHO_T}$gl_cv_var_stdin_large_offset" >&6; }
12356 { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
12357 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
12358 if test "${gl_cv_func_getcwd_null+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 if test "$cross_compiling" = yes; then
12362 gl_cv_func_getcwd_null=no
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12371 # include <stdlib.h>
12372 # include <unistd.h>
12379 if (chdir ("/") != 0)
12383 char *f = getcwd (NULL, 0);
12384 exit (! (f && f[0] == '/' && !f[1]));
12388 rm -f conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_link") 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 gl_cv_func_getcwd_null=yes
12410 echo "$as_me: program exited with status $ac_status" >&5
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ( exit $ac_status )
12415 gl_cv_func_getcwd_null=no
12417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12422 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
12423 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
12425 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
12426 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
12427 if test "${ac_cv_have_decl_getcwd+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 $ac_includes_default
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_compile") 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && {
12462 test -z "$ac_c_werror_flag" ||
12463 test ! -s conftest.err
12464 } && test -s conftest.$ac_objext; then
12465 ac_cv_have_decl_getcwd=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_cv_have_decl_getcwd=no
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
12476 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
12477 if test $ac_cv_have_decl_getcwd = yes; then
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_DECL_GETCWD 1
12485 cat >>confdefs.h <<_ACEOF
12486 #define HAVE_DECL_GETCWD 0
12497 # getdate.y works with bison only.
12498 : ${YACC='bison -y'}
12501 { echo "$as_me:$LINENO: checking for compound literals" >&5
12502 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
12503 if test "${gl_cv_compound_literals+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 struct s { int i, j; };
12516 struct s t = (struct s) { 3, 4 };
12517 if (t.i != 0) return 0;
12522 rm -f conftest.$ac_objext
12523 if { (ac_try="$ac_compile"
12524 case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_compile") 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && {
12536 test -z "$ac_c_werror_flag" ||
12537 test ! -s conftest.err
12538 } && test -s conftest.$ac_objext; then
12539 gl_cv_compound_literals=yes
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 gl_cv_compound_literals=no
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
12550 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
12551 if test $gl_cv_compound_literals = yes; then
12553 cat >>confdefs.h <<\_ACEOF
12554 #define HAVE_COMPOUND_LITERALS 1
12559 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12560 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12561 if test "${ac_cv_struct_tm+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #include <sys/types.h>
12577 int *p = &tm.tm_sec;
12583 rm -f conftest.$ac_objext
12584 if { (ac_try="$ac_compile"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_compile") 2>conftest.er1
12592 grep -v '^ *+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest.$ac_objext; then
12600 ac_cv_struct_tm=time.h
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_cv_struct_tm=sys/time.h
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12611 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12612 if test $ac_cv_struct_tm = sys/time.h; then
12614 cat >>confdefs.h <<\_ACEOF
12615 #define TM_IN_SYS_TIME 1
12621 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
12622 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
12623 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 cat >conftest.$ac_ext <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12637 static struct tm ac_aggr;
12638 if (ac_aggr.tm_gmtoff)
12644 rm -f conftest.$ac_objext
12645 if { (ac_try="$ac_compile"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_compile") 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } && {
12658 test -z "$ac_c_werror_flag" ||
12659 test ! -s conftest.err
12660 } && test -s conftest.$ac_objext; then
12661 ac_cv_member_struct_tm_tm_gmtoff=yes
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12677 static struct tm ac_aggr;
12678 if (sizeof ac_aggr.tm_gmtoff)
12684 rm -f conftest.$ac_objext
12685 if { (ac_try="$ac_compile"
12686 case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_compile") 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } && {
12698 test -z "$ac_c_werror_flag" ||
12699 test ! -s conftest.err
12700 } && test -s conftest.$ac_objext; then
12701 ac_cv_member_struct_tm_tm_gmtoff=yes
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 ac_cv_member_struct_tm_tm_gmtoff=no
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
12715 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
12716 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
12718 cat >>confdefs.h <<\_ACEOF
12719 #define HAVE_TM_GMTOFF 1
12725 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
12726 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
12727 if test "${ac_cv_have_decl_getdelim+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 cat >conftest.$ac_ext <<_ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 $ac_includes_default
12748 rm -f conftest.$ac_objext
12749 if { (ac_try="$ac_compile"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_compile") 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } && {
12762 test -z "$ac_c_werror_flag" ||
12763 test ! -s conftest.err
12764 } && test -s conftest.$ac_objext; then
12765 ac_cv_have_decl_getdelim=yes
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 ac_cv_have_decl_getdelim=no
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
12776 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
12777 if test $ac_cv_have_decl_getdelim = yes; then
12779 cat >>confdefs.h <<_ACEOF
12780 #define HAVE_DECL_GETDELIM 1
12785 cat >>confdefs.h <<_ACEOF
12786 #define HAVE_DECL_GETDELIM 0
12793 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
12794 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
12795 if test "${ac_cv_have_decl_getline+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 cat >conftest.$ac_ext <<_ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12804 $ac_includes_default
12816 rm -f conftest.$ac_objext
12817 if { (ac_try="$ac_compile"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_compile") 2>conftest.er1
12825 grep -v '^ *+' conftest.er1 >conftest.err
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && {
12830 test -z "$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12832 } && test -s conftest.$ac_objext; then
12833 ac_cv_have_decl_getline=yes
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_cv_have_decl_getline=no
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
12844 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
12845 if test $ac_cv_have_decl_getline = yes; then
12847 cat >>confdefs.h <<_ACEOF
12848 #define HAVE_DECL_GETLINE 1
12853 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_DECL_GETLINE 0
12862 if test -z "$GETOPT_H"; then
12864 for ac_header in getopt.h
12866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 ac_res=`eval echo '${'$as_ac_Header'}'`
12874 { echo "$as_me:$LINENO: result: $ac_res" >&5
12875 echo "${ECHO_T}$ac_res" >&6; }
12877 # Is the header compilable?
12878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 #include <$ac_header>
12889 rm -f conftest.$ac_objext
12890 if { (ac_try="$ac_compile"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_compile") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest.$ac_objext; then
12906 ac_header_compiler=yes
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 ac_header_compiler=no
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12916 echo "${ECHO_T}$ac_header_compiler" >&6; }
12918 # Is the header present?
12919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12921 cat >conftest.$ac_ext <<_ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 #include <$ac_header>
12929 if { (ac_try="$ac_cpp conftest.$ac_ext"
12930 case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12937 grep -v '^ *+' conftest.er1 >conftest.err
12939 cat conftest.err >&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } >/dev/null && {
12942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12943 test ! -s conftest.err
12945 ac_header_preproc=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_header_preproc=no
12953 rm -f conftest.err conftest.$ac_ext
12954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12955 echo "${ECHO_T}$ac_header_preproc" >&6; }
12957 # So? What about this header?
12958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12964 ac_header_preproc=yes
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12980 ## ------------------------------ ##
12981 ## Report this to bug-tar@gnu.org ##
12982 ## ------------------------------ ##
12984 ) | sed "s/^/$as_me: WARNING: /" >&2
12987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 eval "$as_ac_Header=\$ac_header_preproc"
12994 ac_res=`eval echo '${'$as_ac_Header'}'`
12995 { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13000 cat >>confdefs.h <<_ACEOF
13001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13012 if test -z "$GETOPT_H"; then
13014 for ac_func in getopt_long_only
13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13030 #define $ac_func innocuous_$ac_func
13032 /* System header to define __stub macros and hopefully few prototypes,
13033 which can conflict with char $ac_func (); below.
13034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13035 <limits.h> exists even on freestanding compilers. */
13038 # include <limits.h>
13040 # include <assert.h>
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13052 /* The GNU C library defines this for functions which it implements
13053 to always fail with ENOSYS. Some functions are actually named
13054 something starting with __ and the normal name is an alias. */
13055 #if defined __stub_$ac_func || defined __stub___$ac_func
13062 return $ac_func ();
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest$ac_exeext &&
13084 $as_test_x conftest$ac_exeext; then
13085 eval "$as_ac_var=yes"
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 eval "$as_ac_var=no"
13093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13094 conftest$ac_exeext conftest.$ac_ext
13096 ac_res=`eval echo '${'$as_ac_var'}'`
13097 { echo "$as_me:$LINENO: result: $ac_res" >&5
13098 echo "${ECHO_T}$ac_res" >&6; }
13099 if test `eval echo '${'$as_ac_var'}'` = yes; then
13100 cat >>confdefs.h <<_ACEOF
13101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13111 if test -z "$GETOPT_H"; then
13112 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
13113 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
13114 if test "${ac_cv_have_decl_optreset+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 cat >conftest.$ac_ext <<_ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 #include <getopt.h>
13136 rm -f conftest.$ac_objext
13137 if { (ac_try="$ac_compile"
13138 case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_compile") 2>conftest.er1
13145 grep -v '^ *+' conftest.er1 >conftest.err
13147 cat conftest.err >&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } && {
13150 test -z "$ac_c_werror_flag" ||
13151 test ! -s conftest.err
13152 } && test -s conftest.$ac_objext; then
13153 ac_cv_have_decl_optreset=yes
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ac_cv_have_decl_optreset=no
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
13164 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
13165 if test $ac_cv_have_decl_optreset = yes; then
13171 if test -z "$GETOPT_H"; then
13172 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
13173 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
13174 if test "${gl_cv_func_gnu_getopt+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 if test "$cross_compiling" = yes; then
13178 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
13179 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
13180 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <getopt.h>
13194 #ifndef getopt_clip
13195 (void) getopt_clip;
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest.$ac_objext; then
13219 ac_cv_have_decl_getopt_clip=yes
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_cv_have_decl_getopt_clip=no
13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
13230 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
13231 if test $ac_cv_have_decl_getopt_clip = yes; then
13232 gl_cv_func_gnu_getopt=no
13234 gl_cv_func_gnu_getopt=yes
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 #include <getopt.h>
13250 myargv[0] = "conftest";
13253 return getopt (2, myargv, "+a") != '?';
13259 rm -f conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 gl_cv_func_gnu_getopt=yes
13281 echo "$as_me: program exited with status $ac_status" >&5
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 ( exit $ac_status )
13286 gl_cv_func_gnu_getopt=no
13288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13293 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
13294 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
13295 if test "$gl_cv_func_gnu_getopt" = "no"; then
13316 if test $gl_cv_have_include_next = yes; then
13317 gl_cv_next_sys_time_h='<'sys/time.h'>'
13319 { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
13320 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
13321 if test "${gl_cv_next_sys_time_h+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 if test $ac_cv_header_sys_time_h = yes; then
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 #include <sys/time.h>
13335 gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13336 sed -n '\#/sys/time.h#{
13337 s#.*"\(.*/sys/time.h\)".*#\1#
13343 gl_cv_next_sys_time_h='<'sys/time.h'>'
13347 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
13348 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
13350 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
13355 if test $ac_cv_header_sys_time_h = yes; then
13362 { echo "$as_me:$LINENO: checking for struct timeval" >&5
13363 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
13364 if test "${gl_cv_sys_struct_timeval+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #if HAVE_SYS_TIME_H
13374 #include <sys/time.h>
13381 static struct timeval x; x.tv_sec = x.tv_usec;
13386 rm -f conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_compile") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest.$ac_objext; then
13403 gl_cv_sys_struct_timeval=yes
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13408 gl_cv_sys_struct_timeval=no
13411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
13414 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
13415 if test $gl_cv_sys_struct_timeval = yes; then
13416 HAVE_STRUCT_TIMEVAL=1
13418 HAVE_STRUCT_TIMEVAL=0
13422 REPLACE_GETTIMEOFDAY=0
13424 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
13425 SYS_TIME_H=sys/time.h
13435 { echo "$as_me:$LINENO: checking for long long int" >&5
13436 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
13437 if test "${ac_cv_type_long_long_int+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 cat >conftest.$ac_ext <<_ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13447 /* For now, do not test the preprocessor; as of 2007 there are too many
13448 implementations with broken preprocessors. Perhaps this can
13449 be revisited in 2012. In the meantime, code should not expect
13450 #if to work with literals wider than 32 bits. */
13451 /* Test literals. */
13452 long long int ll = 9223372036854775807ll;
13453 long long int nll = -9223372036854775807LL;
13454 unsigned long long int ull = 18446744073709551615ULL;
13455 /* Test constant expressions. */
13456 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13458 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13464 /* Test availability of runtime routines for shift and division. */
13465 long long int llmax = 9223372036854775807ll;
13466 unsigned long long int ullmax = 18446744073709551615ull;
13467 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13468 | (llmax / ll) | (llmax % ll)
13469 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13470 | (ullmax / ull) | (ullmax % ull));
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } && {
13490 test -z "$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13492 } && test -s conftest$ac_exeext &&
13493 $as_test_x conftest$ac_exeext; then
13494 if test "$cross_compiling" = yes; then
13495 ac_cv_type_long_long_int=yes
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <limits.h>
13506 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
13507 # define LLONG_MAX (HALF - 1 + HALF)
13512 long long int n = 1;
13516 long long int m = n << i;
13519 if (LLONG_MAX / 2 < m)
13527 rm -f conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_link") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13538 { (case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_try") 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_type_long_long_int=yes
13549 echo "$as_me: program exited with status $ac_status" >&5
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ( exit $ac_status )
13554 ac_cv_type_long_long_int=no
13556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_cv_type_long_long_int=no
13567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13568 conftest$ac_exeext conftest.$ac_ext
13570 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13571 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
13572 if test $ac_cv_type_long_long_int = yes; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_LONG_LONG_INT 1
13581 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
13582 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
13583 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 cat >conftest.$ac_ext <<_ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 /* For now, do not test the preprocessor; as of 2007 there are too many
13594 implementations with broken preprocessors. Perhaps this can
13595 be revisited in 2012. In the meantime, code should not expect
13596 #if to work with literals wider than 32 bits. */
13597 /* Test literals. */
13598 long long int ll = 9223372036854775807ll;
13599 long long int nll = -9223372036854775807LL;
13600 unsigned long long int ull = 18446744073709551615ULL;
13601 /* Test constant expressions. */
13602 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13604 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13610 /* Test availability of runtime routines for shift and division. */
13611 long long int llmax = 9223372036854775807ll;
13612 unsigned long long int ullmax = 18446744073709551615ull;
13613 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13614 | (llmax / ll) | (llmax % ll)
13615 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13616 | (ullmax / ull) | (ullmax % ull));
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (ac_try="$ac_link"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_link") 2>conftest.er1
13631 grep -v '^ *+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } && {
13636 test -z "$ac_c_werror_flag" ||
13637 test ! -s conftest.err
13638 } && test -s conftest$ac_exeext &&
13639 $as_test_x conftest$ac_exeext; then
13640 ac_cv_type_unsigned_long_long_int=yes
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 ac_cv_type_unsigned_long_long_int=no
13648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13649 conftest$ac_exeext conftest.$ac_ext
13651 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
13652 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
13653 if test $ac_cv_type_unsigned_long_long_int = yes; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_UNSIGNED_LONG_LONG_INT 1
13668 if test $ac_cv_type_long_long_int = yes; then
13669 HAVE_LONG_LONG_INT=1
13671 HAVE_LONG_LONG_INT=0
13675 if test $ac_cv_type_unsigned_long_long_int = yes; then
13676 HAVE_UNSIGNED_LONG_LONG_INT=1
13678 HAVE_UNSIGNED_LONG_LONG_INT=0
13682 if test $ac_cv_header_inttypes_h = yes; then
13689 if test $ac_cv_header_sys_types_h = yes; then
13706 if test $gl_cv_have_include_next = yes; then
13707 gl_cv_next_stdint_h='<'stdint.h'>'
13709 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
13710 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
13711 if test "${gl_cv_next_stdint_h+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 if test $ac_cv_header_stdint_h = yes; then
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 #include <stdint.h>
13725 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13726 sed -n '\#/stdint.h#{
13727 s#.*"\(.*/stdint.h\)".*#\1#
13733 gl_cv_next_stdint_h='<'stdint.h'>'
13737 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
13738 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
13740 NEXT_STDINT_H=$gl_cv_next_stdint_h
13744 if test $ac_cv_header_stdint_h = yes; then
13751 if test $ac_cv_header_stdint_h = yes; then
13752 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
13753 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
13754 if test "${gl_cv_header_working_stdint_h+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 gl_cv_header_working_stdint_h=no
13758 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13766 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
13767 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
13768 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13769 #include <stdint.h>
13770 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
13771 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
13772 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
13776 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13777 included before <wchar.h>. */
13778 #include <stddef.h>
13779 #include <signal.h>
13781 # include <stdio.h>
13783 # include <wchar.h>
13788 int8_t a1 = INT8_MAX;
13789 int8_t a1min = INT8_MIN;
13792 int16_t a2 = INT16_MAX;
13793 int16_t a2min = INT16_MIN;
13796 int32_t a3 = INT32_MAX;
13797 int32_t a3min = INT32_MIN;
13800 int64_t a4 = INT64_MAX;
13801 int64_t a4min = INT64_MIN;
13804 uint8_t b1 = UINT8_MAX;
13806 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
13809 uint16_t b2 = UINT16_MAX;
13812 uint32_t b3 = UINT32_MAX;
13815 uint64_t b4 = UINT64_MAX;
13817 int_least8_t c1 = INT8_C (0x7f);
13818 int_least8_t c1max = INT_LEAST8_MAX;
13819 int_least8_t c1min = INT_LEAST8_MIN;
13820 int_least16_t c2 = INT16_C (0x7fff);
13821 int_least16_t c2max = INT_LEAST16_MAX;
13822 int_least16_t c2min = INT_LEAST16_MIN;
13823 int_least32_t c3 = INT32_C (0x7fffffff);
13824 int_least32_t c3max = INT_LEAST32_MAX;
13825 int_least32_t c3min = INT_LEAST32_MIN;
13826 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13827 int_least64_t c4max = INT_LEAST64_MAX;
13828 int_least64_t c4min = INT_LEAST64_MIN;
13829 uint_least8_t d1 = UINT8_C (0xff);
13830 uint_least8_t d1max = UINT_LEAST8_MAX;
13831 uint_least16_t d2 = UINT16_C (0xffff);
13832 uint_least16_t d2max = UINT_LEAST16_MAX;
13833 uint_least32_t d3 = UINT32_C (0xffffffff);
13834 uint_least32_t d3max = UINT_LEAST32_MAX;
13835 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13836 uint_least64_t d4max = UINT_LEAST64_MAX;
13837 int_fast8_t e1 = INT_FAST8_MAX;
13838 int_fast8_t e1min = INT_FAST8_MIN;
13839 int_fast16_t e2 = INT_FAST16_MAX;
13840 int_fast16_t e2min = INT_FAST16_MIN;
13841 int_fast32_t e3 = INT_FAST32_MAX;
13842 int_fast32_t e3min = INT_FAST32_MIN;
13843 int_fast64_t e4 = INT_FAST64_MAX;
13844 int_fast64_t e4min = INT_FAST64_MIN;
13845 uint_fast8_t f1 = UINT_FAST8_MAX;
13846 uint_fast16_t f2 = UINT_FAST16_MAX;
13847 uint_fast32_t f3 = UINT_FAST32_MAX;
13848 uint_fast64_t f4 = UINT_FAST64_MAX;
13850 intptr_t g = INTPTR_MAX;
13851 intptr_t gmin = INTPTR_MIN;
13854 uintptr_t h = UINTPTR_MAX;
13856 intmax_t i = INTMAX_MAX;
13857 uintmax_t j = UINTMAX_MAX;
13859 #include <limits.h> /* for CHAR_BIT */
13860 #define TYPE_MINIMUM(t) \
13861 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
13862 #define TYPE_MAXIMUM(t) \
13863 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
13866 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13867 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13869 /* Detect bug in FreeBSD 6.0 / ia64. */
13870 int check_SIG_ATOMIC:
13871 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13872 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13874 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13876 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13877 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13879 /* Detect bug in mingw. */
13881 WINT_MIN == TYPE_MINIMUM (wint_t)
13882 && WINT_MAX == TYPE_MAXIMUM (wint_t)
13885 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
13887 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13888 int check_UINT16_C:
13889 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13891 /* Detect bugs in OpenBSD 3.9 stdint.h. */
13893 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13896 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13899 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13902 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13904 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13905 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13906 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13907 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13908 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13909 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13910 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13911 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13912 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13913 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13914 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13925 rm -f conftest.$ac_objext
13926 if { (ac_try="$ac_compile"
13927 case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_compile") 2>conftest.er1
13934 grep -v '^ *+' conftest.er1 >conftest.err
13936 cat conftest.err >&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest.$ac_objext; then
13942 gl_cv_header_working_stdint_h=yes
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
13953 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
13955 if test "$gl_cv_header_working_stdint_h" = yes; then
13960 for ac_header in sys/inttypes.h sys/bitypes.h
13962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 ac_res=`eval echo '${'$as_ac_Header'}'`
13970 { echo "$as_me:$LINENO: result: $ac_res" >&5
13971 echo "${ECHO_T}$ac_res" >&6; }
13973 # Is the header compilable?
13974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13976 cat >conftest.$ac_ext <<_ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 $ac_includes_default
13983 #include <$ac_header>
13985 rm -f conftest.$ac_objext
13986 if { (ac_try="$ac_compile"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_compile") 2>conftest.er1
13994 grep -v '^ *+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } && {
13999 test -z "$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 } && test -s conftest.$ac_objext; then
14002 ac_header_compiler=yes
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14007 ac_header_compiler=no
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14012 echo "${ECHO_T}$ac_header_compiler" >&6; }
14014 # Is the header present?
14015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 #include <$ac_header>
14025 if { (ac_try="$ac_cpp conftest.$ac_ext"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } >/dev/null && {
14038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14041 ac_header_preproc=yes
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_preproc=no
14049 rm -f conftest.err conftest.$ac_ext
14050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14051 echo "${ECHO_T}$ac_header_preproc" >&6; }
14053 # So? What about this header?
14054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14060 ac_header_preproc=yes
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14076 ## ------------------------------ ##
14077 ## Report this to bug-tar@gnu.org ##
14078 ## ------------------------------ ##
14080 ) | sed "s/^/$as_me: WARNING: /" >&2
14083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 eval "$as_ac_Header=\$ac_header_preproc"
14090 ac_res=`eval echo '${'$as_ac_Header'}'`
14091 { echo "$as_me:$LINENO: result: $ac_res" >&5
14092 echo "${ECHO_T}$ac_res" >&6; }
14095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14096 cat >>confdefs.h <<_ACEOF
14097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14104 if test $ac_cv_header_sys_inttypes_h = yes; then
14105 HAVE_SYS_INTTYPES_H=1
14107 HAVE_SYS_INTTYPES_H=0
14110 if test $ac_cv_header_sys_bitypes_h = yes; then
14111 HAVE_SYS_BITYPES_H=1
14113 HAVE_SYS_BITYPES_H=0
14132 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
14133 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
14134 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
14135 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 if test "$cross_compiling" = yes; then
14139 # Depending upon the size, compute the lo and hi bounds.
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14147 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14148 included before <wchar.h>. */
14149 #include <stddef.h>
14150 #include <signal.h>
14152 # include <stdio.h>
14154 # include <wchar.h>
14157 #include <limits.h>
14161 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14168 rm -f conftest.$ac_objext
14169 if { (ac_try="$ac_compile"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_compile") 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest.$ac_objext; then
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14194 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14195 included before <wchar.h>. */
14196 #include <stddef.h>
14197 #include <signal.h>
14199 # include <stdio.h>
14201 # include <wchar.h>
14204 #include <limits.h>
14208 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_compile") 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } && {
14229 test -z "$ac_c_werror_flag" ||
14230 test ! -s conftest.err
14231 } && test -s conftest.$ac_objext; then
14232 ac_hi=$ac_mid; break
14234 echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14237 ac_lo=`expr $ac_mid + 1`
14238 if test $ac_lo -le $ac_mid; then
14242 ac_mid=`expr 2 '*' $ac_mid + 1`
14245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14258 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14259 included before <wchar.h>. */
14260 #include <stddef.h>
14261 #include <signal.h>
14263 # include <stdio.h>
14265 # include <wchar.h>
14268 #include <limits.h>
14272 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
14279 rm -f conftest.$ac_objext
14280 if { (ac_try="$ac_compile"
14281 case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_compile") 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } && {
14293 test -z "$ac_c_werror_flag" ||
14294 test ! -s conftest.err
14295 } && test -s conftest.$ac_objext; then
14298 cat >conftest.$ac_ext <<_ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14305 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14306 included before <wchar.h>. */
14307 #include <stddef.h>
14308 #include <signal.h>
14310 # include <stdio.h>
14312 # include <wchar.h>
14315 #include <limits.h>
14319 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
14326 rm -f conftest.$ac_objext
14327 if { (ac_try="$ac_compile"
14328 case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_compile") 2>conftest.er1
14335 grep -v '^ *+' conftest.er1 >conftest.err
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } && {
14340 test -z "$ac_c_werror_flag" ||
14341 test ! -s conftest.err
14342 } && test -s conftest.$ac_objext; then
14343 ac_lo=$ac_mid; break
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_hi=`expr '(' $ac_mid ')' - 1`
14349 if test $ac_mid -le $ac_hi; then
14353 ac_mid=`expr 2 '*' $ac_mid`
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 # Binary search between lo and hi bounds.
14370 while test "x$ac_lo" != "x$ac_hi"; do
14371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14379 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14380 included before <wchar.h>. */
14381 #include <stddef.h>
14382 #include <signal.h>
14384 # include <stdio.h>
14386 # include <wchar.h>
14389 #include <limits.h>
14393 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_compile") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest.$ac_objext; then
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_lo=`expr '(' $ac_mid ')' + 1`
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428 ?*) result=$ac_lo;;
14429 '') result=unknown ;;
14432 cat >conftest.$ac_ext <<_ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14439 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14440 included before <wchar.h>. */
14441 #include <stddef.h>
14442 #include <signal.h>
14444 # include <stdio.h>
14446 # include <wchar.h>
14449 #include <limits.h>
14450 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
14451 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
14453 #include <stdlib.h>
14458 FILE *f = fopen ("conftest.val", "w");
14461 if ((sizeof ($gltype) * CHAR_BIT) < 0)
14463 long int i = longval ();
14464 if (i != (sizeof ($gltype) * CHAR_BIT))
14466 fprintf (f, "%ld\n", i);
14470 unsigned long int i = ulongval ();
14471 if (i != (sizeof ($gltype) * CHAR_BIT))
14473 fprintf (f, "%lu\n", i);
14475 return ferror (f) || fclose (f) != 0;
14481 rm -f conftest$ac_exeext
14482 if { (ac_try="$ac_link"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_link") 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 result=`cat conftest.val`
14503 echo "$as_me: program exited with status $ac_status" >&5
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ( exit $ac_status )
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14513 eval gl_cv_bitsizeof_${gltype}=\$result
14516 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
14517 { echo "$as_me:$LINENO: result: $ac_res" >&5
14518 echo "${ECHO_T}$ac_res" >&6; }
14519 eval result=\$gl_cv_bitsizeof_${gltype}
14520 if test $result = unknown; then
14523 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14524 cat >>confdefs.h <<_ACEOF
14525 #define BITSIZEOF_${GLTYPE} $result
14528 eval BITSIZEOF_${GLTYPE}=\$result
14537 for gltype in sig_atomic_t wchar_t wint_t ; do
14538 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
14539 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
14540 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 cat >conftest.$ac_ext <<_ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14550 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14551 included before <wchar.h>. */
14552 #include <stddef.h>
14553 #include <signal.h>
14555 # include <stdio.h>
14557 # include <wchar.h>
14560 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
14569 rm -f conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_compile") 2>conftest.er1
14578 grep -v '^ *+' conftest.er1 >conftest.err
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && {
14583 test -z "$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest.$ac_objext; then
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 eval gl_cv_type_${gltype}_signed=\$result
14598 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
14599 { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14601 eval result=\$gl_cv_type_${gltype}_signed
14602 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14603 if test "$result" = yes; then
14604 cat >>confdefs.h <<_ACEOF
14605 #define HAVE_SIGNED_${GLTYPE} 1
14608 eval HAVE_SIGNED_${GLTYPE}=1
14610 eval HAVE_SIGNED_${GLTYPE}=0
14615 gl_cv_type_ptrdiff_t_signed=yes
14616 gl_cv_type_size_t_signed=no
14624 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
14625 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
14626 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
14627 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 eval gl_cv_type_${gltype}_suffix=no
14631 eval result=\$gl_cv_type_${gltype}_signed
14632 if test "$result" = yes; then
14637 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
14639 '') gltype1='int';;
14640 l) gltype1='long int';;
14641 ll) gltype1='long long int';;
14642 i64) gltype1='__int64';;
14643 u) gltype1='unsigned int';;
14644 ul) gltype1='unsigned long int';;
14645 ull) gltype1='unsigned long long int';;
14646 ui64)gltype1='unsigned __int64';;
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14655 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14656 included before <wchar.h>. */
14657 #include <stddef.h>
14658 #include <signal.h>
14660 # include <stdio.h>
14662 # include <wchar.h>
14665 extern $gltype foo;
14666 extern $gltype1 foo;
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_compile") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
14692 eval gl_cv_type_${gltype}_suffix=\$glsuf
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 eval result=\$gl_cv_type_${gltype}_suffix
14702 test "$result" != no && break
14705 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
14706 { echo "$as_me:$LINENO: result: $ac_res" >&5
14707 echo "${ECHO_T}$ac_res" >&6; }
14708 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14709 eval result=\$gl_cv_type_${gltype}_suffix
14710 test "$result" = no && result=
14711 eval ${GLTYPE}_SUFFIX=\$result
14712 cat >>confdefs.h <<_ACEOF
14713 #define ${GLTYPE}_SUFFIX $result
14726 for ac_header in inttypes.h
14728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 ac_res=`eval echo '${'$as_ac_Header'}'`
14736 { echo "$as_me:$LINENO: result: $ac_res" >&5
14737 echo "${ECHO_T}$ac_res" >&6; }
14739 # Is the header compilable?
14740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 $ac_includes_default
14749 #include <$ac_header>
14751 rm -f conftest.$ac_objext
14752 if { (ac_try="$ac_compile"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1 >conftest.err
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.$ac_objext; then
14768 ac_header_compiler=yes
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_header_compiler=no
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 echo "${ECHO_T}$ac_header_compiler" >&6; }
14780 # Is the header present?
14781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <$ac_header>
14791 if { (ac_try="$ac_cpp conftest.$ac_ext"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14799 grep -v '^ *+' conftest.er1 >conftest.err
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null && {
14804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805 test ! -s conftest.err
14807 ac_header_preproc=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_header_preproc=no
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14842 ## ------------------------------ ##
14843 ## Report this to bug-tar@gnu.org ##
14844 ## ------------------------------ ##
14846 ) | sed "s/^/$as_me: WARNING: /" >&2
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 eval "$as_ac_Header=\$ac_header_preproc"
14856 ac_res=`eval echo '${'$as_ac_Header'}'`
14857 { echo "$as_me:$LINENO: result: $ac_res" >&5
14858 echo "${ECHO_T}$ac_res" >&6; }
14861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14862 cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14870 if test $ac_cv_header_inttypes_h = yes; then
14871 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
14872 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
14873 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 #include <inttypes.h>
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_compile") 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && {
14910 test -z "$ac_c_werror_flag" ||
14911 test ! -s conftest.err
14912 } && test -s conftest.$ac_objext; then
14913 gt_cv_inttypes_pri_broken=no
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 gt_cv_inttypes_pri_broken=yes
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
14925 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
14927 if test "$gt_cv_inttypes_pri_broken" = yes; then
14929 cat >>confdefs.h <<_ACEOF
14930 #define PRI_MACROS_BROKEN 1
14933 PRI_MACROS_BROKEN=1
14935 PRI_MACROS_BROKEN=0
14939 { echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
14940 echo $ECHO_N "checking whether imaxabs is declared... $ECHO_C" >&6; }
14941 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 cat >conftest.$ac_ext <<_ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 $ac_includes_default
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 ac_cv_have_decl_imaxabs=yes
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_cv_have_decl_imaxabs=no
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
14990 echo "${ECHO_T}$ac_cv_have_decl_imaxabs" >&6; }
14991 if test $ac_cv_have_decl_imaxabs = yes; then
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_DECL_IMAXABS 1
14999 cat >>confdefs.h <<_ACEOF
15000 #define HAVE_DECL_IMAXABS 0
15007 { echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
15008 echo $ECHO_N "checking whether imaxdiv is declared... $ECHO_C" >&6; }
15009 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 cat >conftest.$ac_ext <<_ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 $ac_includes_default
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_compile") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest.$ac_objext; then
15047 ac_cv_have_decl_imaxdiv=yes
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_cv_have_decl_imaxdiv=no
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
15058 echo "${ECHO_T}$ac_cv_have_decl_imaxdiv" >&6; }
15059 if test $ac_cv_have_decl_imaxdiv = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 #define HAVE_DECL_IMAXDIV 1
15067 cat >>confdefs.h <<_ACEOF
15068 #define HAVE_DECL_IMAXDIV 0
15075 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
15076 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
15077 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest.$ac_objext; then
15115 ac_cv_have_decl_strtoimax=yes
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 ac_cv_have_decl_strtoimax=no
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
15126 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
15127 if test $ac_cv_have_decl_strtoimax = yes; then
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_DECL_STRTOIMAX 1
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_DECL_STRTOIMAX 0
15143 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
15144 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
15145 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 cat >conftest.$ac_ext <<_ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 $ac_includes_default
15166 rm -f conftest.$ac_objext
15167 if { (ac_try="$ac_compile"
15168 case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_compile") 2>conftest.er1
15175 grep -v '^ *+' conftest.er1 >conftest.err
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } && {
15180 test -z "$ac_c_werror_flag" ||
15181 test ! -s conftest.err
15182 } && test -s conftest.$ac_objext; then
15183 ac_cv_have_decl_strtoumax=yes
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_cv_have_decl_strtoumax=no
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
15194 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
15195 if test $ac_cv_have_decl_strtoumax = yes; then
15197 cat >>confdefs.h <<_ACEOF
15198 #define HAVE_DECL_STRTOUMAX 1
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_DECL_STRTOUMAX 0
15214 GNULIB_STRTOIMAX=0;
15215 GNULIB_STRTOUMAX=0;
15216 HAVE_DECL_IMAXABS=1;
15217 HAVE_DECL_IMAXDIV=1;
15218 HAVE_DECL_STRTOIMAX=1;
15219 HAVE_DECL_STRTOUMAX=1;
15224 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15225 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
15226 if test "${am_cv_langinfo_codeset+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 cat >conftest.$ac_ext <<_ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 #include <langinfo.h>
15239 char* cs = nl_langinfo(CODESET); return !cs;
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_link") 2>conftest.er1
15253 grep -v '^ *+' conftest.er1 >conftest.err
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && {
15258 test -z "$ac_c_werror_flag" ||
15259 test ! -s conftest.err
15260 } && test -s conftest$ac_exeext &&
15261 $as_test_x conftest$ac_exeext; then
15262 am_cv_langinfo_codeset=yes
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 am_cv_langinfo_codeset=no
15270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15271 conftest$ac_exeext conftest.$ac_ext
15274 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15275 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
15276 if test $am_cv_langinfo_codeset = yes; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_LANGINFO_CODESET 1
15285 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15286 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
15287 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15297 #include <features.h>
15298 #ifdef __GNU_LIBRARY__
15299 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15306 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15307 ac_cv_gnu_library_2_1=yes
15309 ac_cv_gnu_library_2_1=no
15316 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15317 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
15319 GLIBC21="$ac_cv_gnu_library_2_1"
15330 { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
15331 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
15332 if test "${gl_cv_func_malloc_posix+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 cat >conftest.$ac_ext <<_ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15346 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15354 rm -f conftest.$ac_objext
15355 if { (ac_try="$ac_compile"
15356 case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_compile") 2>conftest.er1
15363 grep -v '^ *+' conftest.er1 >conftest.err
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } && {
15368 test -z "$ac_c_werror_flag" ||
15369 test ! -s conftest.err
15370 } && test -s conftest.$ac_objext; then
15371 gl_cv_func_malloc_posix=yes
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 gl_cv_func_malloc_posix=no
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
15383 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
15386 GNULIB_MALLOC_POSIX=0;
15387 GNULIB_REALLOC_POSIX=0;
15388 GNULIB_CALLOC_POSIX=0;
15390 GNULIB_GETLOADAVG=0;
15391 GNULIB_GETSUBOPT=0;
15403 HAVE_CALLOC_POSIX=1;
15405 HAVE_MALLOC_POSIX=1;
15407 HAVE_REALLOC_POSIX=1;
15414 HAVE_STRUCT_RANDOM_DATA=1;
15415 HAVE_SYS_LOADAVG_H=0;
15417 HAVE_DECL_GETLOADAVG=1;
15425 for ac_header in stdlib.h
15427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435 { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15438 # Is the header compilable?
15439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15448 #include <$ac_header>
15450 rm -f conftest.$ac_objext
15451 if { (ac_try="$ac_compile"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_compile") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest.$ac_objext; then
15467 ac_header_compiler=yes
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_header_compiler=no
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15477 echo "${ECHO_T}$ac_header_compiler" >&6; }
15479 # Is the header present?
15480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 #include <$ac_header>
15490 if { (ac_try="$ac_cpp conftest.$ac_ext"
15491 case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15498 grep -v '^ *+' conftest.er1 >conftest.err
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } >/dev/null && {
15503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15504 test ! -s conftest.err
15506 ac_header_preproc=yes
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_header_preproc=no
15514 rm -f conftest.err conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15516 echo "${ECHO_T}$ac_header_preproc" >&6; }
15518 # So? What about this header?
15519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15525 ac_header_preproc=yes
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15541 ## ------------------------------ ##
15542 ## Report this to bug-tar@gnu.org ##
15543 ## ------------------------------ ##
15545 ) | sed "s/^/$as_me: WARNING: /" >&2
15548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 eval "$as_ac_Header=\$ac_header_preproc"
15555 ac_res=`eval echo '${'$as_ac_Header'}'`
15556 { echo "$as_me:$LINENO: result: $ac_res" >&5
15557 echo "${ECHO_T}$ac_res" >&6; }
15560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15561 cat >>confdefs.h <<_ACEOF
15562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15569 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
15570 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
15571 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 if test "$cross_compiling" = yes; then
15575 ac_cv_func_malloc_0_nonnull=no
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15584 # include <stdlib.h>
15592 return ! malloc (0);
15597 rm -f conftest$ac_exeext
15598 if { (ac_try="$ac_link"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_link") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_cv_func_malloc_0_nonnull=yes
15619 echo "$as_me: program exited with status $ac_status" >&5
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ( exit $ac_status )
15624 ac_cv_func_malloc_0_nonnull=no
15626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
15632 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
15633 if test $ac_cv_func_malloc_0_nonnull = yes; then
15634 gl_cv_func_malloc_0_nonnull=1
15636 gl_cv_func_malloc_0_nonnull=0
15641 cat >>confdefs.h <<_ACEOF
15642 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
15647 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
15648 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
15649 if test "${gl_cv_func_mbrtowc+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 cat >conftest.$ac_ext <<_ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15663 char const s[] = "";
15666 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_link") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest$ac_exeext &&
15688 $as_test_x conftest$ac_exeext; then
15689 gl_cv_func_mbrtowc=yes
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 gl_cv_func_mbrtowc=no
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698 conftest$ac_exeext conftest.$ac_ext
15700 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
15701 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
15702 if test $gl_cv_func_mbrtowc = yes; then
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_MBRTOWC 1
15714 GNULIB_RAWMEMCHR=0;
15717 GNULIB_STRCHRNUL=0;
15724 GNULIB_STRCASESTR=0;
15731 GNULIB_MBSCASECMP=0;
15732 GNULIB_MBSNCASECMP=0;
15733 GNULIB_MBSPCASECMP=0;
15734 GNULIB_MBSCASESTR=0;
15741 GNULIB_STRSIGNAL=0;
15742 GNULIB_STRVERSCMP=0;
15743 HAVE_DECL_MEMMEM=1;
15745 HAVE_DECL_MEMRCHR=1;
15750 HAVE_DECL_STRDUP=1;
15752 HAVE_DECL_STRNDUP=1;
15753 HAVE_DECL_STRNLEN=1;
15757 HAVE_DECL_STRTOK_R=1;
15758 HAVE_DECL_STRERROR=1;
15759 HAVE_DECL_STRSIGNAL=1;
15764 REPLACE_STRCASESTR=0;
15765 REPLACE_STRERROR=0;
15766 REPLACE_STRSIGNAL=0;
15768 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
15769 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
15770 if test "${ac_cv_have_decl_memrchr+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 cat >conftest.$ac_ext <<_ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 $ac_includes_default
15791 rm -f conftest.$ac_objext
15792 if { (ac_try="$ac_compile"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_compile") 2>conftest.er1
15800 grep -v '^ *+' conftest.er1 >conftest.err
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && {
15805 test -z "$ac_c_werror_flag" ||
15806 test ! -s conftest.err
15807 } && test -s conftest.$ac_objext; then
15808 ac_cv_have_decl_memrchr=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_cv_have_decl_memrchr=no
15816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
15819 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
15820 if test $ac_cv_have_decl_memrchr = yes; then
15822 cat >>confdefs.h <<_ACEOF
15823 #define HAVE_DECL_MEMRCHR 1
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_DECL_MEMRCHR 0
15852 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15853 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
15854 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 cat >conftest.$ac_ext <<_ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 $ac_includes_default
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_compile") 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && {
15889 test -z "$ac_c_werror_flag" ||
15890 test ! -s conftest.err
15891 } && test -s conftest.$ac_objext; then
15892 ac_cv_have_decl_snprintf=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_cv_have_decl_snprintf=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15903 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
15904 if test $ac_cv_have_decl_snprintf = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907 #define HAVE_DECL_SNPRINTF 1
15912 cat >>confdefs.h <<_ACEOF
15913 #define HAVE_DECL_SNPRINTF 0
15928 HAVE_DECL_STRNCASECMP=1;
15930 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
15931 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
15932 if test "${ac_cv_have_decl_strdup+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 $ac_includes_default
15953 rm -f conftest.$ac_objext
15954 if { (ac_try="$ac_compile"
15955 case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_compile") 2>conftest.er1
15962 grep -v '^ *+' conftest.er1 >conftest.err
15964 cat conftest.err >&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } && {
15967 test -z "$ac_c_werror_flag" ||
15968 test ! -s conftest.err
15969 } && test -s conftest.$ac_objext; then
15970 ac_cv_have_decl_strdup=yes
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_cv_have_decl_strdup=no
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
15981 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
15982 if test $ac_cv_have_decl_strdup = yes; then
15984 cat >>confdefs.h <<_ACEOF
15985 #define HAVE_DECL_STRDUP 1
15990 cat >>confdefs.h <<_ACEOF
15991 #define HAVE_DECL_STRDUP 0
16003 if test -z "$ERRNO_H"; then
16004 { echo "$as_me:$LINENO: checking for working strerror function" >&5
16005 echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; }
16006 if test "${gl_cv_func_working_strerror+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 if test "$cross_compiling" = yes; then
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <string.h>
16021 return !*strerror (-2);
16026 rm -f conftest.$ac_objext
16027 if { (ac_try="$ac_compile"
16028 case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_compile") 2>conftest.er1
16035 grep -v '^ *+' conftest.er1 >conftest.err
16037 cat conftest.err >&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } && {
16040 test -z "$ac_c_werror_flag" ||
16041 test ! -s conftest.err
16042 } && test -s conftest.$ac_objext; then
16043 gl_cv_func_working_strerror=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 gl_cv_func_working_strerror=no
16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <string.h>
16065 return !*strerror (-2);
16070 rm -f conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_link") 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 gl_cv_func_working_strerror=yes
16092 echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ( exit $ac_status )
16097 gl_cv_func_working_strerror=no
16099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16105 { echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
16106 echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; }
16107 if test $gl_cv_func_working_strerror = no; then
16113 if test $REPLACE_STRERROR = 1; then
16115 { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16116 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
16117 if test "${ac_cv_have_decl_strerror+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 cat >conftest.$ac_ext <<_ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16126 $ac_includes_default
16138 rm -f conftest.$ac_objext
16139 if { (ac_try="$ac_compile"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_compile") 2>conftest.er1
16147 grep -v '^ *+' conftest.er1 >conftest.err
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest.$ac_objext; then
16155 ac_cv_have_decl_strerror=yes
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16160 ac_cv_have_decl_strerror=no
16163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16166 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
16167 if test $ac_cv_have_decl_strerror = yes; then
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_DECL_STRERROR 1
16175 cat >>confdefs.h <<_ACEOF
16176 #define HAVE_DECL_STRERROR 0
16189 if test $ac_cv_header_sys_socket_h != yes; then
16191 for ac_header in winsock2.h
16193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 ac_res=`eval echo '${'$as_ac_Header'}'`
16201 { echo "$as_me:$LINENO: result: $ac_res" >&5
16202 echo "${ECHO_T}$ac_res" >&6; }
16204 # Is the header compilable?
16205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 $ac_includes_default
16214 #include <$ac_header>
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_compile") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest.$ac_objext; then
16233 ac_header_compiler=yes
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16238 ac_header_compiler=no
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16243 echo "${ECHO_T}$ac_header_compiler" >&6; }
16245 # Is the header present?
16246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16248 cat >conftest.$ac_ext <<_ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16254 #include <$ac_header>
16256 if { (ac_try="$ac_cpp conftest.$ac_ext"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } >/dev/null && {
16269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16270 test ! -s conftest.err
16272 ac_header_preproc=yes
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_preproc=no
16280 rm -f conftest.err conftest.$ac_ext
16281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16282 echo "${ECHO_T}$ac_header_preproc" >&6; }
16284 # So? What about this header?
16285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16291 ac_header_preproc=yes
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16307 ## ------------------------------ ##
16308 ## Report this to bug-tar@gnu.org ##
16309 ## ------------------------------ ##
16311 ) | sed "s/^/$as_me: WARNING: /" >&2
16314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 eval "$as_ac_Header=\$ac_header_preproc"
16321 ac_res=`eval echo '${'$as_ac_Header'}'`
16322 { echo "$as_me:$LINENO: result: $ac_res" >&5
16323 echo "${ECHO_T}$ac_res" >&6; }
16326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16352 if test $gl_cv_have_include_next = yes; then
16353 gl_cv_next_string_h='<'string.h'>'
16355 { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
16356 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
16357 if test "${gl_cv_next_string_h+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 if test $ac_cv_header_string_h = yes; then
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 #include <string.h>
16371 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16372 sed -n '\#/string.h#{
16373 s#.*"\(.*/string.h\)".*#\1#
16379 gl_cv_next_string_h='<'string.h'>'
16383 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
16384 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
16386 NEXT_STRING_H=$gl_cv_next_string_h
16405 if test $gl_cv_have_include_next = yes; then
16406 gl_cv_next_strings_h='<'strings.h'>'
16408 { echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
16409 echo $ECHO_N "checking absolute name of <strings.h>... $ECHO_C" >&6; }
16410 if test "${gl_cv_next_strings_h+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 if test $ac_cv_header_strings_h = yes; then
16415 cat >conftest.$ac_ext <<_ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 #include <strings.h>
16424 gl_cv_next_strings_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16425 sed -n '\#/strings.h#{
16426 s#.*"\(.*/strings.h\)".*#\1#
16432 gl_cv_next_strings_h='<'strings.h'>'
16436 { echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
16437 echo "${ECHO_T}$gl_cv_next_strings_h" >&6; }
16439 NEXT_STRINGS_H=$gl_cv_next_strings_h
16444 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
16445 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
16446 if test "${ac_cv_have_decl_strndup+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 $ac_includes_default
16467 rm -f conftest.$ac_objext
16468 if { (ac_try="$ac_compile"
16469 case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_compile") 2>conftest.er1
16476 grep -v '^ *+' conftest.er1 >conftest.err
16478 cat conftest.err >&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } && {
16481 test -z "$ac_c_werror_flag" ||
16482 test ! -s conftest.err
16483 } && test -s conftest.$ac_objext; then
16484 ac_cv_have_decl_strndup=yes
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 ac_cv_have_decl_strndup=no
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
16495 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
16496 if test $ac_cv_have_decl_strndup = yes; then
16498 cat >>confdefs.h <<_ACEOF
16499 #define HAVE_DECL_STRNDUP 1
16504 cat >>confdefs.h <<_ACEOF
16505 #define HAVE_DECL_STRNDUP 0
16512 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
16513 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
16514 if test "${ac_cv_have_decl_strnlen+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 $ac_includes_default
16535 rm -f conftest.$ac_objext
16536 if { (ac_try="$ac_compile"
16537 case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_compile") 2>conftest.er1
16544 grep -v '^ *+' conftest.er1 >conftest.err
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest.$ac_objext; then
16552 ac_cv_have_decl_strnlen=yes
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_cv_have_decl_strnlen=no
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
16563 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
16564 if test $ac_cv_have_decl_strnlen = yes; then
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_STRNLEN 1
16572 cat >>confdefs.h <<_ACEOF
16573 #define HAVE_DECL_STRNLEN 0
16587 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
16588 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
16589 REPLACE_STRPTIME=GNULIB_PORTCHECK;
16590 REPLACE_TIMEGM=GNULIB_PORTCHECK;
16601 { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
16602 echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
16603 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 cat >conftest.$ac_ext <<_ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16617 static struct timespec x; x.tv_sec = x.tv_nsec;
16622 rm -f conftest.$ac_objext
16623 if { (ac_try="$ac_compile"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_compile") 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } && {
16636 test -z "$ac_c_werror_flag" ||
16637 test ! -s conftest.err
16638 } && test -s conftest.$ac_objext; then
16639 gl_cv_sys_struct_timespec_in_time_h=yes
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 gl_cv_sys_struct_timespec_in_time_h=no
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16650 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16652 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16653 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16654 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16655 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16657 { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
16658 echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
16659 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 cat >conftest.$ac_ext <<_ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h. */
16668 #include <sys/time.h>
16673 static struct timespec x; x.tv_sec = x.tv_nsec;
16678 rm -f conftest.$ac_objext
16679 if { (ac_try="$ac_compile"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_compile") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest.$ac_objext; then
16695 gl_cv_sys_struct_timespec_in_sys_time_h=yes
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 gl_cv_sys_struct_timespec_in_sys_time_h=no
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16706 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16707 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16708 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16727 if test $gl_cv_have_include_next = yes; then
16728 gl_cv_next_time_h='<'time.h'>'
16730 { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
16731 echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
16732 if test "${gl_cv_next_time_h+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 if test $ac_cv_header_time_h = yes; then
16737 cat >conftest.$ac_ext <<_ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16746 gl_cv_next_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16747 sed -n '\#/time.h#{
16748 s#.*"\(.*/time.h\)".*#\1#
16754 gl_cv_next_time_h='<'time.h'>'
16758 { echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
16759 echo "${ECHO_T}$gl_cv_next_time_h" >&6; }
16761 NEXT_TIME_H=$gl_cv_next_time_h
16779 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
16780 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
16781 if test "${ac_cv_func_utime_null+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 rm -f conftest.data; >conftest.data
16785 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
16786 if test "$cross_compiling" = yes; then
16787 ac_cv_func_utime_null=no
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 $ac_includes_default
16796 #ifdef HAVE_UTIME_H
16797 # include <utime.h>
16803 return ! (stat ("conftest.data", &s) == 0
16804 && utime ("conftest.data", 0) == 0
16805 && stat ("conftest.data", &t) == 0
16806 && t.st_mtime >= s.st_mtime
16807 && t.st_mtime - s.st_mtime < 120);
16812 rm -f conftest$ac_exeext
16813 if { (ac_try="$ac_link"
16814 case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_link") 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_cv_func_utime_null=yes
16834 echo "$as_me: program exited with status $ac_status" >&5
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16838 ( exit $ac_status )
16839 ac_cv_func_utime_null=no
16841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16846 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
16847 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
16848 if test $ac_cv_func_utime_null = yes; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define HAVE_UTIME_NULL 1
16855 rm -f conftest.data
16866 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
16867 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
16868 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 #if HAVE_SYS_TIME_H
16878 #include <sys/time.h>
16881 #ifdef HAVE_UTIME_H
16888 static struct utimbuf x; x.actime = x.modtime;
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_compile") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest.$ac_objext; then
16910 gl_cv_sys_struct_utimbuf=yes
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 gl_cv_sys_struct_utimbuf=no
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
16921 echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
16923 if test $gl_cv_sys_struct_utimbuf = yes; then
16925 cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_STRUCT_UTIMBUF 1
16932 { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
16933 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
16934 if test "${gl_cv_func_working_utimes+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 if test "$cross_compiling" = yes; then
16939 gl_cv_func_working_utimes=no
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16948 #include <sys/types.h>
16949 #include <sys/stat.h>
16951 #include <sys/time.h>
16953 #include <unistd.h>
16954 #include <stdlib.h>
16961 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
16963 char const *file = "conftest.utimes";
16968 int ok = ((f = fopen (file, "w"))
16970 && utimes (file, timeval) == 0
16971 && lstat (file, &sbuf) == 0
16972 && sbuf.st_atime == timeval[0].tv_sec
16973 && sbuf.st_mtime == timeval[1].tv_sec);
16979 ((f = fopen (file, "w"))
16981 && time (&now) != (time_t)-1
16982 && utimes (file, NULL) == 0
16983 && lstat (file, &sbuf) == 0
16984 && now - sbuf.st_atime <= 2
16985 && now - sbuf.st_mtime <= 2);
16990 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
16992 && utimes (file, NULL) == 0);
16999 rm -f conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 gl_cv_func_working_utimes=yes
17021 echo "$as_me: program exited with status $ac_status" >&5
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ( exit $ac_status )
17026 gl_cv_func_working_utimes=no
17028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17033 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
17034 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
17036 if test $gl_cv_func_working_utimes = yes; then
17038 cat >>confdefs.h <<\_ACEOF
17039 #define HAVE_WORKING_UTIMES 1
17055 { echo "$as_me:$LINENO: checking for wchar_t" >&5
17056 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
17057 if test "${gt_cv_c_wchar_t+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <stddef.h>
17067 wchar_t foo = (wchar_t)'\0';
17076 rm -f conftest.$ac_objext
17077 if { (ac_try="$ac_compile"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_compile") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest.$ac_objext; then
17093 gt_cv_c_wchar_t=yes
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17104 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
17105 if test $gt_cv_c_wchar_t = yes; then
17107 cat >>confdefs.h <<\_ACEOF
17108 #define HAVE_WCHAR_T 1
17114 { echo "$as_me:$LINENO: checking for wint_t" >&5
17115 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
17116 if test "${gt_cv_c_wint_t+set}" = set; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17126 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17128 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17129 before <wchar.h>. */
17130 #include <stddef.h>
17134 wint_t foo = (wchar_t)'\0';
17143 rm -f conftest.$ac_objext
17144 if { (ac_try="$ac_compile"
17145 case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_compile") 2>conftest.er1
17152 grep -v '^ *+' conftest.er1 >conftest.err
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } && {
17157 test -z "$ac_c_werror_flag" ||
17158 test ! -s conftest.err
17159 } && test -s conftest.$ac_objext; then
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17170 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17171 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
17172 if test $gt_cv_c_wint_t = yes; then
17174 cat >>confdefs.h <<\_ACEOF
17175 #define HAVE_WINT_T 1
17181 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
17182 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
17183 if test "${gl_cv_header_inttypes_h+set}" = set; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 cat >conftest.$ac_ext <<_ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 #include <sys/types.h>
17193 #include <inttypes.h>
17197 uintmax_t i = (uintmax_t) -1; return !i;
17202 rm -f conftest.$ac_objext
17203 if { (ac_try="$ac_compile"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_compile") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest.$ac_objext; then
17219 gl_cv_header_inttypes_h=yes
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 gl_cv_header_inttypes_h=no
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17230 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
17231 if test $gl_cv_header_inttypes_h = yes; then
17233 cat >>confdefs.h <<_ACEOF
17234 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17240 { echo "$as_me:$LINENO: checking for stdint.h" >&5
17241 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
17242 if test "${gl_cv_header_stdint_h+set}" = set; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 #include <sys/types.h>
17252 #include <stdint.h>
17256 uintmax_t i = (uintmax_t) -1; return !i;
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_compile") 2>conftest.er1
17270 grep -v '^ *+' conftest.er1 >conftest.err
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } && {
17275 test -z "$ac_c_werror_flag" ||
17276 test ! -s conftest.err
17277 } && test -s conftest.$ac_objext; then
17278 gl_cv_header_stdint_h=yes
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 gl_cv_header_stdint_h=no
17286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17288 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17289 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
17290 if test $gl_cv_header_stdint_h = yes; then
17292 cat >>confdefs.h <<_ACEOF
17293 #define HAVE_STDINT_H_WITH_UINTMAX 1
17301 { echo "$as_me:$LINENO: checking for intmax_t" >&5
17302 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
17303 if test "${gt_cv_c_intmax_t+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 cat >conftest.$ac_ext <<_ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 #include <stddef.h>
17314 #include <stdlib.h>
17315 #if HAVE_STDINT_H_WITH_UINTMAX
17316 #include <stdint.h>
17318 #if HAVE_INTTYPES_H_WITH_UINTMAX
17319 #include <inttypes.h>
17325 intmax_t x = -1; return !x;
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_compile") 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } && {
17344 test -z "$ac_c_werror_flag" ||
17345 test ! -s conftest.err
17346 } && test -s conftest.$ac_objext; then
17347 gt_cv_c_intmax_t=yes
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 gt_cv_c_intmax_t=no
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17358 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
17359 if test $gt_cv_c_intmax_t = yes; then
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_INTMAX_T 1
17367 test $ac_cv_type_long_long_int = yes \
17368 && ac_type='long long' \
17371 cat >>confdefs.h <<_ACEOF
17372 #define intmax_t $ac_type
17377 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17378 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17379 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 cat >conftest.$ac_ext <<_ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 $ac_includes_default
17400 rm -f conftest.$ac_objext
17401 if { (ac_try="$ac_compile"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_compile") 2>conftest.er1
17409 grep -v '^ *+' conftest.er1 >conftest.err
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest.$ac_objext; then
17417 ac_cv_have_decl_vsnprintf=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ac_cv_have_decl_vsnprintf=no
17425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17428 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17429 if test $ac_cv_have_decl_vsnprintf = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define HAVE_DECL_VSNPRINTF 1
17437 cat >>confdefs.h <<_ACEOF
17438 #define HAVE_DECL_VSNPRINTF 0
17447 HAVE_DECL_WCWIDTH=1;
17457 for ac_header in stdint.h
17459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 ac_res=`eval echo '${'$as_ac_Header'}'`
17467 { echo "$as_me:$LINENO: result: $ac_res" >&5
17468 echo "${ECHO_T}$ac_res" >&6; }
17470 # Is the header compilable?
17471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17480 #include <$ac_header>
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_compile") 2>conftest.er1
17491 grep -v '^ *+' conftest.er1 >conftest.err
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && {
17496 test -z "$ac_c_werror_flag" ||
17497 test ! -s conftest.err
17498 } && test -s conftest.$ac_objext; then
17499 ac_header_compiler=yes
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_header_compiler=no
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17509 echo "${ECHO_T}$ac_header_compiler" >&6; }
17511 # Is the header present?
17512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17514 cat >conftest.$ac_ext <<_ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 #include <$ac_header>
17522 if { (ac_try="$ac_cpp conftest.$ac_ext"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } >/dev/null && {
17535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17538 ac_header_preproc=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_header_preproc=no
17546 rm -f conftest.err conftest.$ac_ext
17547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17548 echo "${ECHO_T}$ac_header_preproc" >&6; }
17550 # So? What about this header?
17551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17557 ac_header_preproc=yes
17560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17573 ## ------------------------------ ##
17574 ## Report this to bug-tar@gnu.org ##
17575 ## ------------------------------ ##
17577 ) | sed "s/^/$as_me: WARNING: /" >&2
17580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 eval "$as_ac_Header=\$ac_header_preproc"
17587 ac_res=`eval echo '${'$as_ac_Header'}'`
17588 { echo "$as_me:$LINENO: result: $ac_res" >&5
17589 echo "${ECHO_T}$ac_res" >&6; }
17592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17593 cat >>confdefs.h <<_ACEOF
17594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17601 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
17602 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
17603 if test "${gl_cv_size_max+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17615 #include <limits.h>
17617 #include <stdint.h>
17624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17625 $EGREP "Found it" >/dev/null 2>&1; then
17630 if test -z "$gl_cv_size_max"; then
17631 if test "$cross_compiling" = yes; then
17632 # Depending upon the size, compute the lo and hi bounds.
17633 cat >conftest.$ac_ext <<_ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 #include <stddef.h>
17640 #include <limits.h>
17644 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_compile") 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && {
17665 test -z "$ac_c_werror_flag" ||
17666 test ! -s conftest.err
17667 } && test -s conftest.$ac_objext; then
17670 cat >conftest.$ac_ext <<_ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 #include <stddef.h>
17677 #include <limits.h>
17681 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
17688 rm -f conftest.$ac_objext
17689 if { (ac_try="$ac_compile"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17697 grep -v '^ *+' conftest.er1 >conftest.err
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } && {
17702 test -z "$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 } && test -s conftest.$ac_objext; then
17705 ac_hi=$ac_mid; break
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_lo=`expr $ac_mid + 1`
17711 if test $ac_lo -le $ac_mid; then
17715 ac_mid=`expr 2 '*' $ac_mid + 1`
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 cat >conftest.$ac_ext <<_ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 #include <stddef.h>
17731 #include <limits.h>
17735 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest.$ac_objext; then
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 #include <stddef.h>
17768 #include <limits.h>
17772 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_compile") 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest.$ac_objext; then
17796 ac_lo=$ac_mid; break
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 ac_hi=`expr '(' $ac_mid ')' - 1`
17802 if test $ac_mid -le $ac_hi; then
17806 ac_mid=`expr 2 '*' $ac_mid`
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17822 # Binary search between lo and hi bounds.
17823 while test "x$ac_lo" != "x$ac_hi"; do
17824 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 #include <stddef.h>
17832 #include <limits.h>
17836 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_compile") 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest.$ac_objext; then
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_lo=`expr '(' $ac_mid ')' + 1`
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871 ?*) size_t_bits_minus_1=$ac_lo;;
17872 '') size_t_bits_minus_1= ;;
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #include <stddef.h>
17882 #include <limits.h>
17883 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
17884 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
17886 #include <stdlib.h>
17891 FILE *f = fopen ("conftest.val", "w");
17894 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
17896 long int i = longval ();
17897 if (i != (sizeof (size_t) * CHAR_BIT - 1))
17899 fprintf (f, "%ld\n", i);
17903 unsigned long int i = ulongval ();
17904 if (i != (sizeof (size_t) * CHAR_BIT - 1))
17906 fprintf (f, "%lu\n", i);
17908 return ferror (f) || fclose (f) != 0;
17914 rm -f conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_link") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 size_t_bits_minus_1=`cat conftest.val`
17936 echo "$as_me: program exited with status $ac_status" >&5
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ( exit $ac_status )
17941 size_t_bits_minus_1=
17943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17946 if test "$cross_compiling" = yes; then
17947 # Depending upon the size, compute the lo and hi bounds.
17948 cat >conftest.$ac_ext <<_ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 #include <stddef.h>
17958 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
17965 rm -f conftest.$ac_objext
17966 if { (ac_try="$ac_compile"
17967 case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_compile") 2>conftest.er1
17974 grep -v '^ *+' conftest.er1 >conftest.err
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest.$ac_objext; then
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <stddef.h>
17994 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_hi=$ac_mid; break
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_lo=`expr $ac_mid + 1`
18024 if test $ac_lo -le $ac_mid; then
18028 ac_mid=`expr 2 '*' $ac_mid + 1`
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 #include <stddef.h>
18047 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
18054 rm -f conftest.$ac_objext
18055 if { (ac_try="$ac_compile"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_compile") 2>conftest.er1
18063 grep -v '^ *+' conftest.er1 >conftest.err
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } && {
18068 test -z "$ac_c_werror_flag" ||
18069 test ! -s conftest.err
18070 } && test -s conftest.$ac_objext; then
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 #include <stddef.h>
18083 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
18090 rm -f conftest.$ac_objext
18091 if { (ac_try="$ac_compile"
18092 case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_compile") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } && {
18104 test -z "$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 } && test -s conftest.$ac_objext; then
18107 ac_lo=$ac_mid; break
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_hi=`expr '(' $ac_mid ')' - 1`
18113 if test $ac_mid -le $ac_hi; then
18117 ac_mid=`expr 2 '*' $ac_mid`
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133 # Binary search between lo and hi bounds.
18134 while test "x$ac_lo" != "x$ac_hi"; do
18135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 #include <stddef.h>
18146 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_compile") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest.$ac_objext; then
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_lo=`expr '(' $ac_mid ')' + 1`
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181 ?*) fits_in_uint=$ac_lo;;
18182 '') fits_in_uint= ;;
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <stddef.h>
18192 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
18193 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
18195 #include <stdlib.h>
18200 FILE *f = fopen ("conftest.val", "w");
18203 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
18205 long int i = longval ();
18206 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
18208 fprintf (f, "%ld\n", i);
18212 unsigned long int i = ulongval ();
18213 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
18215 fprintf (f, "%lu\n", i);
18217 return ferror (f) || fclose (f) != 0;
18223 rm -f conftest$ac_exeext
18224 if { (ac_try="$ac_link"
18225 case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_link") 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18234 { (case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_try") 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 fits_in_uint=`cat conftest.val`
18245 echo "$as_me: program exited with status $ac_status" >&5
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ( exit $ac_status )
18252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18255 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18256 if test $fits_in_uint = 1; then
18257 cat >conftest.$ac_ext <<_ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18263 #include <stddef.h>
18265 extern unsigned long foo;
18275 rm -f conftest.$ac_objext
18276 if { (ac_try="$ac_compile"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_compile") 2>conftest.er1
18284 grep -v '^ *+' conftest.er1 >conftest.err
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } && {
18289 test -z "$ac_c_werror_flag" ||
18290 test ! -s conftest.err
18291 } && test -s conftest.$ac_objext; then
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302 if test $fits_in_uint = 1; then
18303 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18305 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18308 gl_cv_size_max='((size_t)~(size_t)0)'
18314 { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
18315 echo "${ECHO_T}$gl_cv_size_max" >&6; }
18316 if test "$gl_cv_size_max" != yes; then
18318 cat >>confdefs.h <<_ACEOF
18319 #define SIZE_MAX $gl_cv_size_max
18326 GL_COND_LIBTOOL_TRUE=
18327 GL_COND_LIBTOOL_FALSE='#'
18329 GL_COND_LIBTOOL_TRUE='#'
18330 GL_COND_LIBTOOL_FALSE=
18333 gl_cond_libtool=false
18344 gl_source_base='.#bootmp/lib'
18350 if test $ac_cv_func_alloca_works = no; then
18354 # Define an additional variable used in the Makefile substitution.
18355 if test $ac_cv_working_alloca_h = yes; then
18356 { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18357 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
18358 if test "${gl_cv_rpl_alloca+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 cat >conftest.$ac_ext <<_ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18369 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18375 $EGREP "Need own alloca" >/dev/null 2>&1; then
18376 gl_cv_rpl_alloca=yes
18378 gl_cv_rpl_alloca=no
18384 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18385 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
18386 if test $gl_cv_rpl_alloca = yes; then
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE_ALLOCA 1
18410 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
18426 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18436 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18441 cat >>confdefs.h <<\_ACEOF
18442 #define __GETOPT_PREFIX rpl_
18455 { echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
18456 echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6; }
18457 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18471 #ifndef program_invocation_name
18472 (void) program_invocation_name;
18479 rm -f conftest.$ac_objext
18480 if { (ac_try="$ac_compile"
18481 case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_compile") 2>conftest.er1
18488 grep -v '^ *+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } && {
18493 test -z "$ac_c_werror_flag" ||
18494 test ! -s conftest.err
18495 } && test -s conftest.$ac_objext; then
18496 ac_cv_have_decl_program_invocation_name=yes
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18501 ac_cv_have_decl_program_invocation_name=no
18504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18506 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
18507 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6; }
18508 if test $ac_cv_have_decl_program_invocation_name = yes; then
18510 cat >>confdefs.h <<\_ACEOF
18511 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
18516 cat >>confdefs.h <<\_ACEOF
18517 #define GNULIB_PROGRAM_INVOCATION_NAME 1
18522 { echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
18523 echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6; }
18524 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 cat >conftest.$ac_ext <<_ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18538 #ifndef program_invocation_short_name
18539 (void) program_invocation_short_name;
18546 rm -f conftest.$ac_objext
18547 if { (ac_try="$ac_compile"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_compile") 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } && {
18560 test -z "$ac_c_werror_flag" ||
18561 test ! -s conftest.err
18562 } && test -s conftest.$ac_objext; then
18563 ac_cv_have_decl_program_invocation_short_name=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_cv_have_decl_program_invocation_short_name=no
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
18574 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6; }
18575 if test $ac_cv_have_decl_program_invocation_short_name = yes; then
18577 cat >>confdefs.h <<\_ACEOF
18578 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
18583 cat >>confdefs.h <<\_ACEOF
18584 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
18590 # Check if program_invocation_name and program_invocation_short_name
18591 # are defined elsewhere. It is improbable that only one of them will
18592 # be defined and other not, I prefer to stay on the safe side and to
18593 # test each one separately.
18594 { echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
18595 echo $ECHO_N "checking whether program_invocation_name is defined... $ECHO_C" >&6; }
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18606 program_invocation_name = "test";
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_link") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest$ac_exeext &&
18628 $as_test_x conftest$ac_exeext; then
18630 cat >>confdefs.h <<\_ACEOF
18631 #define HAVE_PROGRAM_INVOCATION_NAME 1
18634 { echo "$as_me:$LINENO: result: yes" >&5
18635 echo "${ECHO_T}yes" >&6; }
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 { echo "$as_me:$LINENO: result: no" >&5
18641 echo "${ECHO_T}no" >&6; }
18644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18645 conftest$ac_exeext conftest.$ac_ext
18647 { echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
18648 echo $ECHO_N "checking whether program_invocation_short_name is defined... $ECHO_C" >&6; }
18649 cat >conftest.$ac_ext <<_ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18659 program_invocation_short_name = "test";
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest$ac_exeext &&
18681 $as_test_x conftest$ac_exeext; then
18683 cat >>confdefs.h <<\_ACEOF
18684 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
18687 { echo "$as_me:$LINENO: result: yes" >&5
18688 echo "${ECHO_T}yes" >&6; }
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 { echo "$as_me:$LINENO: result: no" >&5
18694 echo "${ECHO_T}no" >&6; }
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18698 conftest$ac_exeext conftest.$ac_ext
18771 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
18775 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
18786 gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
18810 if test $ac_cv_func_canonicalize_file_name = no; then
18819 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
18822 cat >>confdefs.h <<\_ACEOF
18823 #define realpath rpl_realpath
18848 cat >>confdefs.h <<\_ACEOF
18849 #define GNULIB_CANONICALIZE_LGPL 1
18854 { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
18855 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
18856 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 cat >conftest.$ac_ext <<_ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 #include <unistd.h>
18866 #include <limits.h>
18867 #if defined PATH_MAX || defined MAXPATHLEN
18868 have_arbitrary_file_name_length_limit
18871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18872 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
18873 gl_cv_have_arbitrary_file_name_length_limit=yes
18875 gl_cv_have_arbitrary_file_name_length_limit=no
18880 { echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
18881 echo "${ECHO_T}$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
18883 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
18892 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
18905 if test $ac_cv_func_chown_works = no; then
18907 cat >>confdefs.h <<\_ACEOF
18908 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
18913 # If chown has either of the above problems, then we need the wrapper.
18914 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
18915 : # no wrapper needed
18926 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
18929 { echo "$as_me:$LINENO: checking for fchown" >&5
18930 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
18931 if test "${ac_cv_func_fchown+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
18941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18942 #define fchown innocuous_fchown
18944 /* System header to define __stub macros and hopefully few prototypes,
18945 which can conflict with char fchown (); below.
18946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947 <limits.h> exists even on freestanding compilers. */
18950 # include <limits.h>
18952 # include <assert.h>
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined __stub_fchown || defined __stub___fchown
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_link") 2>conftest.er1
18988 grep -v '^ *+' conftest.er1 >conftest.err
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest$ac_exeext &&
18996 $as_test_x conftest$ac_exeext; then
18997 ac_cv_func_fchown=yes
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_cv_func_fchown=no
19005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19006 conftest$ac_exeext conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19009 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
19010 if test $ac_cv_func_fchown = yes; then
19021 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
19035 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19036 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19038 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
19039 # programs in the package would end up linked with that potentially-shared
19040 # library, inducing unnecessary run-time overhead.
19041 gl_saved_libs=$LIBS
19042 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19043 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19044 if test "${ac_cv_search_clock_gettime+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 ac_func_search_save_LIBS=$LIBS
19048 cat >conftest.$ac_ext <<_ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19055 /* Override any GCC internal prototype to avoid an error.
19056 Use char because int might match the return type of a GCC
19057 builtin and then its argument prototype would still apply. */
19061 char clock_gettime ();
19065 return clock_gettime ();
19070 for ac_lib in '' rt posix4; do
19071 if test -z "$ac_lib"; then
19072 ac_res="none required"
19075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_link") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest$ac_exeext &&
19094 $as_test_x conftest$ac_exeext; then
19095 ac_cv_search_clock_gettime=$ac_res
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19105 if test "${ac_cv_search_clock_gettime+set}" = set; then
19109 if test "${ac_cv_search_clock_gettime+set}" = set; then
19112 ac_cv_search_clock_gettime=no
19114 rm conftest.$ac_ext
19115 LIBS=$ac_func_search_save_LIBS
19117 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19118 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19119 ac_res=$ac_cv_search_clock_gettime
19120 if test "$ac_res" != no; then
19121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19122 test "$ac_cv_search_clock_gettime" = "none required" ||
19123 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
19129 for ac_func in clock_gettime clock_settime
19131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19145 #define $ac_func innocuous_$ac_func
19147 /* System header to define __stub macros and hopefully few prototypes,
19148 which can conflict with char $ac_func (); below.
19149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150 <limits.h> exists even on freestanding compilers. */
19153 # include <limits.h>
19155 # include <assert.h>
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19167 /* The GNU C library defines this for functions which it implements
19168 to always fail with ENOSYS. Some functions are actually named
19169 something starting with __ and the normal name is an alias. */
19170 #if defined __stub_$ac_func || defined __stub___$ac_func
19177 return $ac_func ();
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_link") 2>conftest.er1
19191 grep -v '^ *+' conftest.er1 >conftest.err
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest$ac_exeext &&
19199 $as_test_x conftest$ac_exeext; then
19200 eval "$as_ac_var=yes"
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 eval "$as_ac_var=no"
19208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19209 conftest$ac_exeext conftest.$ac_ext
19211 ac_res=`eval echo '${'$as_ac_var'}'`
19212 { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_var'}'` = yes; then
19215 cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19222 LIBS=$gl_saved_libs
19240 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
19247 cat >>confdefs.h <<\_ACEOF
19248 #define GNULIB_CLOSE_STREAM 1
19261 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
19266 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
19267 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
19268 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 if test "$cross_compiling" = yes; then
19272 gl_cv_struct_dirent_d_ino=no
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 #include <sys/types.h>
19281 #include <sys/stat.h>
19282 #include <dirent.h>
19287 DIR *dp = opendir (".");
19294 && stat (e->d_name, &st) == 0
19295 && e->d_ino == st.st_ino);
19300 rm -f conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_link") 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 gl_cv_struct_dirent_d_ino=yes
19322 echo "$as_me: program exited with status $ac_status" >&5
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 ( exit $ac_status )
19327 gl_cv_struct_dirent_d_ino=no
19329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19334 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
19335 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
19336 if test $gl_cv_struct_dirent_d_ino = yes; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define D_INO_IN_DIRENT 1
19358 if test $gl_cv_have_include_next = yes; then
19359 gl_cv_next_dirent_h='<'dirent.h'>'
19361 { echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
19362 echo $ECHO_N "checking absolute name of <dirent.h>... $ECHO_C" >&6; }
19363 if test "${gl_cv_next_dirent_h+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 if test $ac_cv_header_dirent_h = yes; then
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 #include <dirent.h>
19377 gl_cv_next_dirent_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19378 sed -n '\#/dirent.h#{
19379 s#.*"\(.*/dirent.h\)".*#\1#
19385 gl_cv_next_dirent_h='<'dirent.h'>'
19389 { echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
19390 echo "${ECHO_T}$gl_cv_next_dirent_h" >&6; }
19392 NEXT_DIRENT_H=$gl_cv_next_dirent_h
19401 DIRENT_H='dirent.h'
19410 for ac_func in dirfd
19412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19418 cat >conftest.$ac_ext <<_ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19426 #define $ac_func innocuous_$ac_func
19428 /* System header to define __stub macros and hopefully few prototypes,
19429 which can conflict with char $ac_func (); below.
19430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19431 <limits.h> exists even on freestanding compilers. */
19434 # include <limits.h>
19436 # include <assert.h>
19441 /* Override any GCC internal prototype to avoid an error.
19442 Use char because int might match the return type of a GCC
19443 builtin and then its argument prototype would still apply. */
19448 /* The GNU C library defines this for functions which it implements
19449 to always fail with ENOSYS. Some functions are actually named
19450 something starting with __ and the normal name is an alias. */
19451 #if defined __stub_$ac_func || defined __stub___$ac_func
19458 return $ac_func ();
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_link") 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext &&
19480 $as_test_x conftest$ac_exeext; then
19481 eval "$as_ac_var=yes"
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 eval "$as_ac_var=no"
19489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19490 conftest$ac_exeext conftest.$ac_ext
19492 ac_res=`eval echo '${'$as_ac_var'}'`
19493 { echo "$as_me:$LINENO: result: $ac_res" >&5
19494 echo "${ECHO_T}$ac_res" >&6; }
19495 if test `eval echo '${'$as_ac_var'}'` = yes; then
19496 cat >>confdefs.h <<_ACEOF
19497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19503 { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19504 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
19505 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <sys/types.h>
19515 #include <dirent.h>
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } && {
19542 test -z "$ac_c_werror_flag" ||
19543 test ! -s conftest.err
19544 } && test -s conftest.$ac_objext; then
19545 ac_cv_have_decl_dirfd=yes
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19550 ac_cv_have_decl_dirfd=no
19553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19555 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
19556 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
19557 if test $ac_cv_have_decl_dirfd = yes; then
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_DECL_DIRFD 1
19565 cat >>confdefs.h <<_ACEOF
19566 #define HAVE_DECL_DIRFD 0
19573 if test $ac_cv_have_decl_dirfd = no; then
19577 { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
19578 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
19579 if test "${gl_cv_func_dirfd_macro+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19589 #include <sys/types.h>
19590 #include <dirent.h>
19592 dirent_header_defines_dirfd
19595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19596 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
19597 gl_cv_func_dirfd_macro=yes
19599 gl_cv_func_dirfd_macro=no
19604 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
19605 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
19607 # Use the replacement only if we have no function, macro,
19608 # or declaration with that name.
19609 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
19620 for ac_func in dirfd
19622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19636 #define $ac_func innocuous_$ac_func
19638 /* System header to define __stub macros and hopefully few prototypes,
19639 which can conflict with char $ac_func (); below.
19640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19641 <limits.h> exists even on freestanding compilers. */
19644 # include <limits.h>
19646 # include <assert.h>
19651 /* Override any GCC internal prototype to avoid an error.
19652 Use char because int might match the return type of a GCC
19653 builtin and then its argument prototype would still apply. */
19658 /* The GNU C library defines this for functions which it implements
19659 to always fail with ENOSYS. Some functions are actually named
19660 something starting with __ and the normal name is an alias. */
19661 #if defined __stub_$ac_func || defined __stub___$ac_func
19668 return $ac_func ();
19673 rm -f conftest.$ac_objext conftest$ac_exeext
19674 if { (ac_try="$ac_link"
19675 case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_link") 2>conftest.er1
19682 grep -v '^ *+' conftest.er1 >conftest.err
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } && {
19687 test -z "$ac_c_werror_flag" ||
19688 test ! -s conftest.err
19689 } && test -s conftest$ac_exeext &&
19690 $as_test_x conftest$ac_exeext; then
19691 eval "$as_ac_var=yes"
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 eval "$as_ac_var=no"
19699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19700 conftest$ac_exeext conftest.$ac_ext
19702 ac_res=`eval echo '${'$as_ac_var'}'`
19703 { echo "$as_me:$LINENO: result: $ac_res" >&5
19704 echo "${ECHO_T}$ac_res" >&6; }
19705 if test `eval echo '${'$as_ac_var'}'` = yes; then
19706 cat >>confdefs.h <<_ACEOF
19707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19712 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19718 { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
19719 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
19720 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 dirfd_save_CFLAGS=$CFLAGS
19725 for ac_expr in d_fd dd_fd; do
19727 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19728 cat >conftest.$ac_ext <<_ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19734 #include <sys/types.h>
19735 #include <dirent.h>
19739 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19753 grep -v '^ *+' conftest.er1 >conftest.err
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } && {
19758 test -z "$ac_c_werror_flag" ||
19759 test ! -s conftest.err
19760 } && test -s conftest.$ac_objext; then
19764 echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19771 CFLAGS=$dirfd_save_CFLAGS
19772 test "$dir_fd_found" = yes && break
19774 test "$dir_fd_found" = yes || ac_expr=no_such_member
19776 gl_cv_sys_dir_fd_member_name=$ac_expr
19780 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
19781 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
19782 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
19784 cat >>confdefs.h <<_ACEOF
19785 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
19806 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
19816 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
19826 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
19835 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
19836 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
19837 if test "${gl_cv_double_slash_root+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 if test x"$cross_compiling" = xyes ; then
19841 # When cross-compiling, there is no way to tell whether // is special
19842 # short of a list of hosts. However, the only known hosts to date
19843 # that have a distinct // are Apollo DomainOS (too old to port to),
19844 # Cygwin, and z/OS. If anyone knows of another system for which // has
19845 # special semantics and is distinct from /, please report it to
19846 # <bug-gnulib@gnu.org>.
19848 *-cygwin | i370-ibm-openedition)
19849 gl_cv_double_slash_root=yes ;;
19851 # Be optimistic and assume that / and // are the same when we
19853 gl_cv_double_slash_root='unknown, assuming no' ;;
19856 set x `ls -di / // 2>/dev/null`
19857 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19858 gl_cv_double_slash_root=no
19860 gl_cv_double_slash_root=yes
19864 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
19865 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
19866 if test "$gl_cv_double_slash_root" = yes; then
19868 cat >>confdefs.h <<\_ACEOF
19869 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
19882 if test $ac_cv_func_dup2 = no; then
19892 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19905 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
19906 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
19907 if test "${gt_cv_var_environ_declaration+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <unistd.h>
19918 extern struct { int foo; } environ;
19927 rm -f conftest.$ac_objext
19928 if { (ac_try="$ac_compile"
19929 case "(($ac_try" in
19930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931 *) ac_try_echo=$ac_try;;
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934 (eval "$ac_compile") 2>conftest.er1
19936 grep -v '^ *+' conftest.er1 >conftest.err
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } && {
19941 test -z "$ac_c_werror_flag" ||
19942 test ! -s conftest.err
19943 } && test -s conftest.$ac_objext; then
19944 gt_cv_var_environ_declaration=no
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 gt_cv_var_environ_declaration=yes
19952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19955 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
19956 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
19957 if test $gt_cv_var_environ_declaration = yes; then
19959 cat >>confdefs.h <<\_ACEOF
19960 #define HAVE_ENVIRON_DECL 1
19966 if test $gt_cv_var_environ_declaration != yes; then
19967 HAVE_DECL_ENVIRON=0
19990 { echo "$as_me:$LINENO: checking for error_at_line" >&5
19991 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
19992 if test "${ac_cv_lib_error_at_line+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 cat >conftest.$ac_ext <<_ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20005 error_at_line (0, 0, "", 0, "an error occurred");
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 ac_cv_lib_error_at_line=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_lib_error_at_line=no
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20040 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
20041 if test $ac_cv_lib_error_at_line = no; then
20050 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20061 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20065 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20076 gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
20088 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
20102 if test $ac_cv_func_fchdir = no; then
20112 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
20116 cat >>confdefs.h <<\_ACEOF
20117 #define FCHDIR_REPLACEMENT 1
20122 if test $REPLACE_OPEN != 1; then
20131 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
20142 if test $REPLACE_CLOSE != 1; then
20151 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
20157 if test $REPLACE_FCLOSE != 1; then
20166 gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
20174 DIRENT_H='dirent.h'
20190 { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
20191 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
20192 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 if test "$cross_compiling" = yes; then
20196 gl_cv_header_working_fcntl_h=cross-compiling
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include <sys/types.h>
20205 #include <sys/stat.h>
20206 #include <unistd.h>
20209 #define O_NOATIME 0
20212 #define O_NOFOLLOW 0
20214 static int const constants[] =
20216 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20217 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20224 int status = !constants;
20226 static char const sym[] = "conftest.sym";
20227 if (symlink (".", sym) != 0
20228 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
20232 static char const file[] = "confdefs.h";
20233 int fd = open (file, O_RDONLY | O_NOATIME);
20235 struct stat st0, st1;
20237 || fstat (fd, &st0) != 0
20239 || read (fd, &c, 1) != 1
20241 || stat (file, &st1) != 0
20242 || st0.st_atime != st1.st_atime)
20250 rm -f conftest$ac_exeext
20251 if { (ac_try="$ac_link"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_link") 2>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20261 { (case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_try") 2>&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 gl_cv_header_working_fcntl_h=yes
20272 echo "$as_me: program exited with status $ac_status" >&5
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ( exit $ac_status )
20278 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20279 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20280 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20281 *) gl_cv_header_working_fcntl_h='no';;
20284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20289 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
20290 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
20292 case $gl_cv_header_working_fcntl_h in #(
20293 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20297 cat >>confdefs.h <<_ACEOF
20298 #define HAVE_WORKING_O_NOATIME $ac_val
20302 case $gl_cv_header_working_fcntl_h in #(
20303 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20307 cat >>confdefs.h <<_ACEOF
20308 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20322 if test $gl_cv_have_include_next = yes; then
20323 gl_cv_next_fcntl_h='<'fcntl.h'>'
20325 { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
20326 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
20327 if test "${gl_cv_next_fcntl_h+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 if test $ac_cv_header_fcntl_h = yes; then
20332 cat >conftest.$ac_ext <<_ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h. */
20341 gl_cv_next_fcntl_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20342 sed -n '\#/fcntl.h#{
20343 s#.*"\(.*/fcntl.h\)".*#\1#
20349 gl_cv_next_fcntl_h='<'fcntl.h'>'
20353 { echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
20354 echo "${ECHO_T}$gl_cv_next_fcntl_h" >&6; }
20356 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20372 gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
20382 gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
20387 cat >>confdefs.h <<\_ACEOF
20388 #define GNULIB_FCNTL_SAFER 1
20393 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20394 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20395 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20408 static struct stat ac_aggr;
20409 if (ac_aggr.st_blocks)
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20424 grep -v '^ *+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_cv_member_struct_stat_st_blocks=yes
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 $ac_includes_default
20447 static struct stat ac_aggr;
20448 if (sizeof ac_aggr.st_blocks)
20454 rm -f conftest.$ac_objext
20455 if { (ac_try="$ac_compile"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_compile") 2>conftest.er1
20463 grep -v '^ *+' conftest.er1 >conftest.err
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && {
20468 test -z "$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 } && test -s conftest.$ac_objext; then
20471 ac_cv_member_struct_stat_st_blocks=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_member_struct_stat_st_blocks=no
20479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20485 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20486 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20488 cat >>confdefs.h <<_ACEOF
20489 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20493 cat >>confdefs.h <<\_ACEOF
20494 #define HAVE_ST_BLOCKS 1
20506 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
20511 if test $ac_cv_member_struct_stat_st_blocks = no; then
20540 if test $gl_cv_have_include_next = yes; then
20541 gl_cv_next_float_h='<'float.h'>'
20543 { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
20544 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
20545 if test "${gl_cv_next_float_h+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 if test $ac_cv_header_float_h = yes; then
20550 cat >conftest.$ac_ext <<_ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20559 gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20560 sed -n '\#/float.h#{
20561 s#.*"\(.*/float.h\)".*#\1#
20567 gl_cv_next_float_h='<'float.h'>'
20571 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
20572 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
20574 NEXT_FLOAT_H=$gl_cv_next_float_h
20582 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
20587 { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
20588 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
20589 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 if test "$cross_compiling" = yes; then
20593 ac_cv_func_fnmatch_gnu=cross
20595 cat >conftest.$ac_ext <<_ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 #include <fnmatch.h>
20603 y (char const *pattern, char const *string, int flags)
20605 return fnmatch (pattern, string, flags) == 0;
20608 n (char const *pattern, char const *string, int flags)
20610 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
20616 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
20617 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
20618 static char const A_1[] = { 'A' - 1, 0 };
20619 static char const A01[] = { 'A' + 1, 0 };
20620 static char const a_1[] = { 'a' - 1, 0 };
20621 static char const a01[] = { 'a' + 1, 0 };
20622 static char const bs_1[] = { '\\\\' - 1, 0 };
20623 static char const bs01[] = { '\\\\' + 1, 0 };
20626 && y ("a*", "abc", 0)
20627 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
20628 && y ("a\\\\bc", "abc", 0)
20629 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
20630 && y ("*x", ".x", 0)
20631 && n ("*x", ".x", FNM_PERIOD)
20632 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
20633 && y (apat, "\\\\", 0) && y (apat, "a", 0)
20634 && n (Apat, A_1, 0) == ('A' < '\\\\')
20635 && n (apat, a_1, 0) == ('a' < '\\\\')
20636 && y (Apat, A01, 0) == ('A' < '\\\\')
20637 && y (apat, a01, 0) == ('a' < '\\\\')
20638 && y (Apat, bs_1, 0) == ('A' < '\\\\')
20639 && y (apat, bs_1, 0) == ('a' < '\\\\')
20640 && n (Apat, bs01, 0) == ('A' < '\\\\')
20641 && n (apat, bs01, 0) == ('a' < '\\\\')
20642 && y ("xxXX", "xXxX", FNM_CASEFOLD)
20643 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
20644 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
20645 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
20646 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
20647 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
20652 rm -f conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_link") 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20663 { (case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_try") 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_func_fnmatch_gnu=yes
20674 echo "$as_me: program exited with status $ac_status" >&5
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ( exit $ac_status )
20679 ac_cv_func_fnmatch_gnu=no
20681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
20687 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
20688 if test $ac_cv_func_fnmatch_gnu = yes; then
20689 rm -f lib/fnmatch.h
20691 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
20692 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
20693 if test "${ac_cv_have_decl_isblank+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest.$ac_objext; then
20732 ac_cv_have_decl_isblank=yes
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ac_cv_have_decl_isblank=no
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
20743 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
20744 if test $ac_cv_have_decl_isblank = yes; then
20746 cat >>confdefs.h <<_ACEOF
20747 #define HAVE_DECL_ISBLANK 1
20752 cat >>confdefs.h <<_ACEOF
20753 #define HAVE_DECL_ISBLANK 0
20794 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
20796 FNMATCH_H=fnmatch.h
20801 if test $ac_cv_func_fnmatch_gnu != yes; then
20803 cat >>confdefs.h <<\_ACEOF
20804 #define fnmatch gnu_fnmatch
20824 # include <stdio.h>
20825 # if HAVE_STDIO_EXT_H
20826 # include <stdio_ext.h>
20829 { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
20830 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
20831 if test "${ac_cv_have_decl___fpending+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 cat >conftest.$ac_ext <<_ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20853 rm -f conftest.$ac_objext
20854 if { (ac_try="$ac_compile"
20855 case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_compile") 2>conftest.er1
20862 grep -v '^ *+' conftest.er1 >conftest.err
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest.$ac_objext; then
20870 ac_cv_have_decl___fpending=yes
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_cv_have_decl___fpending=no
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
20881 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
20882 if test $ac_cv_have_decl___fpending = yes; then
20884 cat >>confdefs.h <<_ACEOF
20885 #define HAVE_DECL___FPENDING 1
20890 cat >>confdefs.h <<_ACEOF
20891 #define HAVE_DECL___FPENDING 0
20898 if test $ac_cv_func___fpending = no; then
20899 { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
20900 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
20901 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 'fp->_IO_write_ptr - fp->_IO_write_base' \
20910 '# traditional Unix' \
20911 'fp->_ptr - fp->_base' \
20914 'fp->_p - fp->_bf._base' \
20916 '# SCO, Unixware' \
20917 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20920 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20923 'fp->__bufp - fp->__buffer' \
20925 '# old glibc iostream?' \
20926 'fp->_pptr - fp->_pbase' \
20929 'fp->_ptr - fp->_buffer' \
20932 '(*fp)->_ptr - (*fp)->_base' \
20934 '# e.g., DGUX R4.11; the info is not available' \
20938 # Skip each embedded comment.
20939 case "$ac_expr" in '#'*) continue;; esac
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20952 FILE *fp = stdin; (void) ($ac_expr);
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 test "$fp_done" = yes && break
20987 ac_cv_sys_pending_output_n_bytes=$ac_expr
20991 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
20992 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
20994 cat >>confdefs.h <<_ACEOF
20995 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21006 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21017 { echo "$as_me:$LINENO: checking for fseeko" >&5
21018 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
21019 if test "${gl_cv_func_fseeko+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21033 fseeko (stdin, 0, 0);
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_link") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest$ac_exeext &&
21055 $as_test_x conftest$ac_exeext; then
21056 gl_cv_func_fseeko=yes
21058 echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21061 gl_cv_func_fseeko=no
21064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21065 conftest$ac_exeext conftest.$ac_ext
21068 { echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
21069 echo "${ECHO_T}$gl_cv_func_fseeko" >&6; }
21070 if test $gl_cv_func_fseeko = no; then
21081 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21086 elif test $gl_cv_var_stdin_large_offset = no; then
21096 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21116 if test $ac_cv_func_ftruncate = no; then
21126 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
21130 for ac_func in chsize
21132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21146 #define $ac_func innocuous_$ac_func
21148 /* System header to define __stub macros and hopefully few prototypes,
21149 which can conflict with char $ac_func (); below.
21150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21151 <limits.h> exists even on freestanding compilers. */
21154 # include <limits.h>
21156 # include <assert.h>
21161 /* Override any GCC internal prototype to avoid an error.
21162 Use char because int might match the return type of a GCC
21163 builtin and then its argument prototype would still apply. */
21168 /* The GNU C library defines this for functions which it implements
21169 to always fail with ENOSYS. Some functions are actually named
21170 something starting with __ and the normal name is an alias. */
21171 #if defined __stub_$ac_func || defined __stub___$ac_func
21178 return $ac_func ();
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (ac_try="$ac_link"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_link") 2>conftest.er1
21192 grep -v '^ *+' conftest.er1 >conftest.err
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest$ac_exeext &&
21200 $as_test_x conftest$ac_exeext; then
21201 eval "$as_ac_var=yes"
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21206 eval "$as_ac_var=no"
21209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21210 conftest$ac_exeext conftest.$ac_ext
21212 ac_res=`eval echo '${'$as_ac_var'}'`
21213 { echo "$as_me:$LINENO: result: $ac_res" >&5
21214 echo "${ECHO_T}$ac_res" >&6; }
21215 if test `eval echo '${'$as_ac_var'}'` = yes; then
21216 cat >>confdefs.h <<_ACEOF
21217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21226 # Yes, we know mingw lacks ftruncate.
21229 # If someone lacks ftruncate, make configure fail, and request
21230 # a bug report to inform us about it.
21231 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
21232 { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
21233 Please report this, along with the output of \"uname -a\", to the
21234 bug-coreutils@gnu.org mailing list. To continue past this point,
21235 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21236 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21237 See \`config.log' for more details." >&5
21238 echo "$as_me: error: Your system lacks the ftruncate function.
21239 Please report this, along with the output of \"uname -a\", to the
21240 bug-coreutils@gnu.org mailing list. To continue past this point,
21241 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21242 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21243 See \`config.log' for more details." >&2;}
21244 { (exit 1); exit 1; }; }
21258 case $gl_cv_func_getcwd_null in
21266 { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
21267 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
21268 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21271 # Arrange for deletion of the temporary directory this test creates.
21272 ac_clean_files="$ac_clean_files confdir3"
21273 if test "$cross_compiling" = yes; then
21274 gl_cv_func_getcwd_path_max=no
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21284 #include <stdlib.h>
21285 #include <unistd.h>
21286 #include <string.h>
21287 #include <limits.h>
21288 #include <sys/stat.h>
21289 #include <sys/types.h>
21293 # define AT_FDCWD 0
21295 #ifdef ENAMETOOLONG
21296 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
21298 # define is_ENAMETOOLONG(x) 0
21301 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
21305 # define S_IRWXU 0700
21308 /* The length of this name must be 8. */
21309 #define DIR_NAME "confdir3"
21310 #define DIR_NAME_LEN 8
21311 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
21313 /* The length of "../". */
21314 #define DOTDOTSLASH_LEN 3
21316 /* Leftover bytes in the buffer, to work around library or OS bugs. */
21317 #define BUF_SLOP 20
21323 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
21324 at least not on a local file system. And if we were to start worrying
21325 about remote file systems, we'd have to enable the wrapper function
21326 all of the time, just to be safe. That's not worth the cost. */
21328 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
21329 - DIR_NAME_SIZE - BUF_SLOP) \
21331 /* FIXME: Assuming there's a system for which this is true,
21332 this should be done in a compile test. */
21335 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
21336 + DIR_NAME_SIZE + BUF_SLOP];
21337 char *cwd = getcwd (buf, PATH_MAX);
21338 size_t initial_cwd_len;
21341 size_t n_chdirs = 0;
21346 cwd_len = initial_cwd_len = strlen (cwd);
21350 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
21353 cwd_len += DIR_NAME_SIZE;
21354 /* If mkdir or chdir fails, it could be that this system cannot create
21355 any file with an absolute name longer than PATH_MAX, such as cygwin.
21356 If so, leave fail as 0, because the current working directory can't
21357 be too long for getcwd if it can't even be created. For other
21358 errors, be pessimistic and consider that as a failure, too. */
21359 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
21361 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21366 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
21368 c = getcwd (buf, PATH_MAX);
21369 if (!c && errno == ENOENT)
21374 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21381 if (dotdot_max <= cwd_len - initial_cwd_len)
21383 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
21385 c = getcwd (buf, cwd_len + 1);
21388 if (! (errno == ERANGE || errno == ENOENT
21389 || is_ENAMETOOLONG (errno)))
21394 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
21402 if (c && strlen (c) != cwd_len)
21410 /* Leaving behind such a deep directory is not polite.
21411 So clean up here, right away, even though the driving
21412 shell script would also clean up. */
21416 /* Try rmdir first, in case the chdir failed. */
21418 for (i = 0; i <= n_chdirs; i++)
21420 if (chdir ("..") < 0)
21422 if (rmdir (DIR_NAME) != 0)
21432 rm -f conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_link") 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21443 { (case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_try") 2>&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; }; then
21452 gl_cv_func_getcwd_path_max=yes
21454 echo "$as_me: program exited with status $ac_status" >&5
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ( exit $ac_status )
21460 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
21461 *) gl_cv_func_getcwd_path_max=no;;
21464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
21471 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
21472 case $gl_cv_func_getcwd_path_max in
21475 cat >>confdefs.h <<\_ACEOF
21476 #define HAVE_PARTLY_WORKING_GETCWD 1
21487 for ac_func in getpagesize
21489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21503 #define $ac_func innocuous_$ac_func
21505 /* System header to define __stub macros and hopefully few prototypes,
21506 which can conflict with char $ac_func (); below.
21507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508 <limits.h> exists even on freestanding compilers. */
21511 # include <limits.h>
21513 # include <assert.h>
21518 /* Override any GCC internal prototype to avoid an error.
21519 Use char because int might match the return type of a GCC
21520 builtin and then its argument prototype would still apply. */
21525 /* The GNU C library defines this for functions which it implements
21526 to always fail with ENOSYS. Some functions are actually named
21527 something starting with __ and the normal name is an alias. */
21528 #if defined __stub_$ac_func || defined __stub___$ac_func
21535 return $ac_func ();
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_link") 2>conftest.er1
21549 grep -v '^ *+' conftest.er1 >conftest.err
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext &&
21557 $as_test_x conftest$ac_exeext; then
21558 eval "$as_ac_var=yes"
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21563 eval "$as_ac_var=no"
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 conftest$ac_exeext conftest.$ac_ext
21569 ac_res=`eval echo '${'$as_ac_var'}'`
21570 { echo "$as_me:$LINENO: result: $ac_res" >&5
21571 echo "${ECHO_T}$ac_res" >&6; }
21572 if test `eval echo '${'$as_ac_var'}'` = yes; then
21573 cat >>confdefs.h <<_ACEOF
21574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21580 { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
21581 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
21582 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21585 # Remove any remnants of a previous test.
21586 rm -rf confdir-14B---
21587 # Arrange for deletion of the temporary directory this test creates.
21588 ac_clean_files="$ac_clean_files confdir-14B---"
21589 if test "$cross_compiling" = yes; then
21590 gl_cv_func_getcwd_abort_bug=yes
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21599 #include <stdlib.h>
21600 #include <unistd.h>
21601 #include <limits.h>
21602 #include <string.h>
21603 #include <sys/stat.h>
21605 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
21609 # define S_IRWXU 0700
21612 /* FIXME: skip the run-test altogether on systems without getpagesize. */
21613 #if ! HAVE_GETPAGESIZE
21614 # define getpagesize() 0
21617 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
21618 the 16kB pagesize on ia64 linux. Those conditions make the code below
21619 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
21620 #define TARGET_LEN (5 * 1024)
21625 char const *dir_name = "confdir-14B---";
21627 size_t initial_cwd_len;
21629 size_t desired_depth;
21632 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
21633 this relative expensive and invasive test if that's not true. */
21634 if (getpagesize () <= PATH_MAX)
21637 cwd = getcwd (NULL, 0);
21641 initial_cwd_len = strlen (cwd);
21643 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
21644 / (1 + strlen (dir_name)));
21645 for (d = 0; d < desired_depth; d++)
21647 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
21649 fail = 3; /* Unable to construct deep hierarchy. */
21654 /* If libc has the bug in question, this invocation of getcwd
21655 results in a failed assertion. */
21656 cwd = getcwd (NULL, 0);
21658 fail = 4; /* getcwd failed. This is ok, and expected. */
21661 /* Call rmdir first, in case the above chdir failed. */
21665 if (chdir ("..") < 0)
21674 rm -f conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_link") 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21685 { (case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_try") 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694 gl_cv_func_getcwd_abort_bug=no
21696 echo "$as_me: program exited with status $ac_status" >&5
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 ( exit $ac_status )
21701 gl_cv_func_getcwd_abort_bug=yes
21703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21709 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
21710 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
21711 if test $gl_cv_func_getcwd_abort_bug = yes; then
21718 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
21730 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
21749 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 #include <sys/types.h>
21761 #include <$ac_cv_struct_tm>
21767 static struct tm ac_aggr;
21768 if (ac_aggr.tm_zone)
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_compile") 2>conftest.er1
21783 grep -v '^ *+' conftest.er1 >conftest.err
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } && {
21788 test -z "$ac_c_werror_flag" ||
21789 test ! -s conftest.err
21790 } && test -s conftest.$ac_objext; then
21791 ac_cv_member_struct_tm_tm_zone=yes
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 #include <sys/types.h>
21803 #include <$ac_cv_struct_tm>
21809 static struct tm ac_aggr;
21810 if (sizeof ac_aggr.tm_zone)
21816 rm -f conftest.$ac_objext
21817 if { (ac_try="$ac_compile"
21818 case "(($ac_try" in
21819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820 *) ac_try_echo=$ac_try;;
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823 (eval "$ac_compile") 2>conftest.er1
21825 grep -v '^ *+' conftest.er1 >conftest.err
21827 cat conftest.err >&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); } && {
21830 test -z "$ac_c_werror_flag" ||
21831 test ! -s conftest.err
21832 } && test -s conftest.$ac_objext; then
21833 ac_cv_member_struct_tm_tm_zone=yes
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21838 ac_cv_member_struct_tm_tm_zone=no
21841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21847 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21848 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21850 cat >>confdefs.h <<_ACEOF
21851 #define HAVE_STRUCT_TM_TM_ZONE 1
21857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21859 cat >>confdefs.h <<\_ACEOF
21860 #define HAVE_TM_ZONE 1
21864 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21865 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21866 if test "${ac_cv_have_decl_tzname+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21888 rm -f conftest.$ac_objext
21889 if { (ac_try="$ac_compile"
21890 case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_compile") 2>conftest.er1
21897 grep -v '^ *+' conftest.er1 >conftest.err
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && {
21902 test -z "$ac_c_werror_flag" ||
21903 test ! -s conftest.err
21904 } && test -s conftest.$ac_objext; then
21905 ac_cv_have_decl_tzname=yes
21907 echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21910 ac_cv_have_decl_tzname=no
21913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21916 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21917 if test $ac_cv_have_decl_tzname = yes; then
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_DECL_TZNAME 1
21925 cat >>confdefs.h <<_ACEOF
21926 #define HAVE_DECL_TZNAME 0
21933 { echo "$as_me:$LINENO: checking for tzname" >&5
21934 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21935 if test "${ac_cv_var_tzname+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21945 #if !HAVE_DECL_TZNAME
21946 extern char *tzname[];
21952 return tzname[0][0];
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_link") 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && {
21971 test -z "$ac_c_werror_flag" ||
21972 test ! -s conftest.err
21973 } && test -s conftest$ac_exeext &&
21974 $as_test_x conftest$ac_exeext; then
21975 ac_cv_var_tzname=yes
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_cv_var_tzname=no
21983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21984 conftest$ac_exeext conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21987 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21988 if test $ac_cv_var_tzname = yes; then
21990 cat >>confdefs.h <<\_ACEOF
21991 #define HAVE_TZNAME 1
22014 for ac_func in getdelim
22016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22030 #define $ac_func innocuous_$ac_func
22032 /* System header to define __stub macros and hopefully few prototypes,
22033 which can conflict with char $ac_func (); below.
22034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22035 <limits.h> exists even on freestanding compilers. */
22038 # include <limits.h>
22040 # include <assert.h>
22045 /* Override any GCC internal prototype to avoid an error.
22046 Use char because int might match the return type of a GCC
22047 builtin and then its argument prototype would still apply. */
22052 /* The GNU C library defines this for functions which it implements
22053 to always fail with ENOSYS. Some functions are actually named
22054 something starting with __ and the normal name is an alias. */
22055 #if defined __stub_$ac_func || defined __stub___$ac_func
22062 return $ac_func ();
22067 rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_link") 2>conftest.er1
22076 grep -v '^ *+' conftest.er1 >conftest.err
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && {
22081 test -z "$ac_c_werror_flag" ||
22082 test ! -s conftest.err
22083 } && test -s conftest$ac_exeext &&
22084 $as_test_x conftest$ac_exeext; then
22085 eval "$as_ac_var=yes"
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 eval "$as_ac_var=no"
22093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22094 conftest$ac_exeext conftest.$ac_ext
22096 ac_res=`eval echo '${'$as_ac_var'}'`
22097 { echo "$as_me:$LINENO: result: $ac_res" >&5
22098 echo "${ECHO_T}$ac_res" >&6; }
22099 if test `eval echo '${'$as_ac_var'}'` = yes; then
22100 cat >>confdefs.h <<_ACEOF
22101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22106 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22117 if test $ac_cv_func_getdelim = no; then
22121 for ac_func in flockfile funlockfile
22123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 cat >conftest.$ac_ext <<_ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22137 #define $ac_func innocuous_$ac_func
22139 /* System header to define __stub macros and hopefully few prototypes,
22140 which can conflict with char $ac_func (); below.
22141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22142 <limits.h> exists even on freestanding compilers. */
22145 # include <limits.h>
22147 # include <assert.h>
22152 /* Override any GCC internal prototype to avoid an error.
22153 Use char because int might match the return type of a GCC
22154 builtin and then its argument prototype would still apply. */
22159 /* The GNU C library defines this for functions which it implements
22160 to always fail with ENOSYS. Some functions are actually named
22161 something starting with __ and the normal name is an alias. */
22162 #if defined __stub_$ac_func || defined __stub___$ac_func
22169 return $ac_func ();
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (ac_try="$ac_link"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_link") 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && {
22188 test -z "$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 } && test -s conftest$ac_exeext &&
22191 $as_test_x conftest$ac_exeext; then
22192 eval "$as_ac_var=yes"
22194 echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22197 eval "$as_ac_var=no"
22200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22201 conftest$ac_exeext conftest.$ac_ext
22203 ac_res=`eval echo '${'$as_ac_var'}'`
22204 { echo "$as_me:$LINENO: result: $ac_res" >&5
22205 echo "${ECHO_T}$ac_res" >&6; }
22206 if test `eval echo '${'$as_ac_var'}'` = yes; then
22207 cat >>confdefs.h <<_ACEOF
22208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22214 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22215 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22216 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22225 $ac_includes_default
22229 #ifndef getc_unlocked
22230 (void) getc_unlocked;
22237 rm -f conftest.$ac_objext
22238 if { (ac_try="$ac_compile"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_compile") 2>conftest.er1
22246 grep -v '^ *+' conftest.er1 >conftest.err
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } && {
22251 test -z "$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 } && test -s conftest.$ac_objext; then
22254 ac_cv_have_decl_getc_unlocked=yes
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_have_decl_getc_unlocked=no
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22265 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22266 if test $ac_cv_have_decl_getc_unlocked = yes; then
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_DECL_GETC_UNLOCKED 1
22274 cat >>confdefs.h <<_ACEOF
22275 #define HAVE_DECL_GETC_UNLOCKED 0
22285 if test $ac_cv_have_decl_getdelim = no; then
22286 HAVE_DECL_GETDELIM=0
22303 gl_getline_needs_run_time_check=no
22304 { echo "$as_me:$LINENO: checking for getline" >&5
22305 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
22306 if test "${ac_cv_func_getline+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 cat >conftest.$ac_ext <<_ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
22316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22317 #define getline innocuous_getline
22319 /* System header to define __stub macros and hopefully few prototypes,
22320 which can conflict with char getline (); below.
22321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22322 <limits.h> exists even on freestanding compilers. */
22325 # include <limits.h>
22327 # include <assert.h>
22332 /* Override any GCC internal prototype to avoid an error.
22333 Use char because int might match the return type of a GCC
22334 builtin and then its argument prototype would still apply. */
22339 /* The GNU C library defines this for functions which it implements
22340 to always fail with ENOSYS. Some functions are actually named
22341 something starting with __ and the normal name is an alias. */
22342 #if defined __stub_getline || defined __stub___getline
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_link") 2>conftest.er1
22363 grep -v '^ *+' conftest.er1 >conftest.err
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } && {
22368 test -z "$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 } && test -s conftest$ac_exeext &&
22371 $as_test_x conftest$ac_exeext; then
22372 ac_cv_func_getline=yes
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_cv_func_getline=no
22380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22381 conftest$ac_exeext conftest.$ac_ext
22383 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
22384 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
22385 if test $ac_cv_func_getline = yes; then
22386 gl_getline_needs_run_time_check=yes
22388 am_cv_func_working_getline=no
22391 if test $gl_getline_needs_run_time_check = yes; then
22392 { echo "$as_me:$LINENO: checking for working getline function" >&5
22393 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
22394 if test "${am_cv_func_working_getline+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
22398 if test "$cross_compiling" = yes; then
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22406 #include <features.h>
22407 #ifdef __GNU_LIBRARY__
22408 #if (__GLIBC__ >= 2)
22414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22415 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22416 am_cv_func_working_getline=yes
22418 am_cv_func_working_getline=no
22424 cat >conftest.$ac_ext <<_ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22431 # include <stdio.h>
22432 # include <stdlib.h>
22433 # include <string.h>
22435 { /* Based on a test program from Karl Heuer. */
22439 FILE *in = fopen ("./conftest.data", "r");
22442 len = getline (&line, &siz, in);
22443 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
22447 rm -f conftest$ac_exeext
22448 if { (ac_try="$ac_link"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22454 (eval "$ac_link") 2>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22458 { (case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_try") 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 am_cv_func_working_getline=yes
22469 echo "$as_me: program exited with status $ac_status" >&5
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 ( exit $ac_status )
22474 am_cv_func_working_getline=no
22476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22481 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
22482 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
22485 if test $ac_cv_have_decl_getline = no; then
22486 HAVE_DECL_GETLINE=0
22489 if test $am_cv_func_working_getline = no; then
22499 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
22517 for ac_func in getdelim
22519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 cat >conftest.$ac_ext <<_ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22533 #define $ac_func innocuous_$ac_func
22535 /* System header to define __stub macros and hopefully few prototypes,
22536 which can conflict with char $ac_func (); below.
22537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22538 <limits.h> exists even on freestanding compilers. */
22541 # include <limits.h>
22543 # include <assert.h>
22548 /* Override any GCC internal prototype to avoid an error.
22549 Use char because int might match the return type of a GCC
22550 builtin and then its argument prototype would still apply. */
22555 /* The GNU C library defines this for functions which it implements
22556 to always fail with ENOSYS. Some functions are actually named
22557 something starting with __ and the normal name is an alias. */
22558 #if defined __stub_$ac_func || defined __stub___$ac_func
22565 return $ac_func ();
22570 rm -f conftest.$ac_objext conftest$ac_exeext
22571 if { (ac_try="$ac_link"
22572 case "(($ac_try" in
22573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22574 *) ac_try_echo=$ac_try;;
22576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22577 (eval "$ac_link") 2>conftest.er1
22579 grep -v '^ *+' conftest.er1 >conftest.err
22581 cat conftest.err >&5
22582 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_exeext &&
22587 $as_test_x conftest$ac_exeext; then
22588 eval "$as_ac_var=yes"
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 eval "$as_ac_var=no"
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597 conftest$ac_exeext conftest.$ac_ext
22599 ac_res=`eval echo '${'$as_ac_var'}'`
22600 { echo "$as_me:$LINENO: result: $ac_res" >&5
22601 echo "${ECHO_T}$ac_res" >&6; }
22602 if test `eval echo '${'$as_ac_var'}'` = yes; then
22603 cat >>confdefs.h <<_ACEOF
22604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22609 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22620 if test $ac_cv_func_getdelim = no; then
22624 for ac_func in flockfile funlockfile
22626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 cat >conftest.$ac_ext <<_ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22640 #define $ac_func innocuous_$ac_func
22642 /* System header to define __stub macros and hopefully few prototypes,
22643 which can conflict with char $ac_func (); below.
22644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22645 <limits.h> exists even on freestanding compilers. */
22648 # include <limits.h>
22650 # include <assert.h>
22655 /* Override any GCC internal prototype to avoid an error.
22656 Use char because int might match the return type of a GCC
22657 builtin and then its argument prototype would still apply. */
22662 /* The GNU C library defines this for functions which it implements
22663 to always fail with ENOSYS. Some functions are actually named
22664 something starting with __ and the normal name is an alias. */
22665 #if defined __stub_$ac_func || defined __stub___$ac_func
22672 return $ac_func ();
22677 rm -f conftest.$ac_objext conftest$ac_exeext
22678 if { (ac_try="$ac_link"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_link") 2>conftest.er1
22686 grep -v '^ *+' conftest.er1 >conftest.err
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest$ac_exeext &&
22694 $as_test_x conftest$ac_exeext; then
22695 eval "$as_ac_var=yes"
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 eval "$as_ac_var=no"
22703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22704 conftest$ac_exeext conftest.$ac_ext
22706 ac_res=`eval echo '${'$as_ac_var'}'`
22707 { echo "$as_me:$LINENO: result: $ac_res" >&5
22708 echo "${ECHO_T}$ac_res" >&6; }
22709 if test `eval echo '${'$as_ac_var'}'` = yes; then
22710 cat >>confdefs.h <<_ACEOF
22711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22717 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22718 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22719 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 $ac_includes_default
22732 #ifndef getc_unlocked
22733 (void) getc_unlocked;
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_compile") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } && {
22754 test -z "$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 } && test -s conftest.$ac_objext; then
22757 ac_cv_have_decl_getc_unlocked=yes
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 ac_cv_have_decl_getc_unlocked=no
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22768 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22769 if test $ac_cv_have_decl_getc_unlocked = yes; then
22771 cat >>confdefs.h <<_ACEOF
22772 #define HAVE_DECL_GETC_UNLOCKED 1
22777 cat >>confdefs.h <<_ACEOF
22778 #define HAVE_DECL_GETC_UNLOCKED 0
22788 if test $ac_cv_have_decl_getdelim = no; then
22789 HAVE_DECL_GETDELIM=0
22801 if test -n "$GETOPT_H"; then
22811 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22821 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22826 cat >>confdefs.h <<\_ACEOF
22827 #define __GETOPT_PREFIX rpl_
22846 for ac_func in getpagesize
22848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22854 cat >conftest.$ac_ext <<_ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22862 #define $ac_func innocuous_$ac_func
22864 /* System header to define __stub macros and hopefully few prototypes,
22865 which can conflict with char $ac_func (); below.
22866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22867 <limits.h> exists even on freestanding compilers. */
22870 # include <limits.h>
22872 # include <assert.h>
22877 /* Override any GCC internal prototype to avoid an error.
22878 Use char because int might match the return type of a GCC
22879 builtin and then its argument prototype would still apply. */
22884 /* The GNU C library defines this for functions which it implements
22885 to always fail with ENOSYS. Some functions are actually named
22886 something starting with __ and the normal name is an alias. */
22887 #if defined __stub_$ac_func || defined __stub___$ac_func
22894 return $ac_func ();
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (ac_try="$ac_link"
22901 case "(($ac_try" in
22902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903 *) ac_try_echo=$ac_try;;
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906 (eval "$ac_link") 2>conftest.er1
22908 grep -v '^ *+' conftest.er1 >conftest.err
22910 cat conftest.err >&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } && {
22913 test -z "$ac_c_werror_flag" ||
22914 test ! -s conftest.err
22915 } && test -s conftest$ac_exeext &&
22916 $as_test_x conftest$ac_exeext; then
22917 eval "$as_ac_var=yes"
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 eval "$as_ac_var=no"
22925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22926 conftest$ac_exeext conftest.$ac_ext
22928 ac_res=`eval echo '${'$as_ac_var'}'`
22929 { echo "$as_me:$LINENO: result: $ac_res" >&5
22930 echo "${ECHO_T}$ac_res" >&6; }
22931 if test `eval echo '${'$as_ac_var'}'` = yes; then
22932 cat >>confdefs.h <<_ACEOF
22933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22939 if test $ac_cv_func_getpagesize = no; then
22942 for ac_header in OS.h
22944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 ac_res=`eval echo '${'$as_ac_Header'}'`
22952 { echo "$as_me:$LINENO: result: $ac_res" >&5
22953 echo "${ECHO_T}$ac_res" >&6; }
22955 # Is the header compilable?
22956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22958 cat >conftest.$ac_ext <<_ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22964 $ac_includes_default
22965 #include <$ac_header>
22967 rm -f conftest.$ac_objext
22968 if { (ac_try="$ac_compile"
22969 case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974 (eval "$ac_compile") 2>conftest.er1
22976 grep -v '^ *+' conftest.er1 >conftest.err
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } && {
22981 test -z "$ac_c_werror_flag" ||
22982 test ! -s conftest.err
22983 } && test -s conftest.$ac_objext; then
22984 ac_header_compiler=yes
22986 echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22989 ac_header_compiler=no
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22994 echo "${ECHO_T}$ac_header_compiler" >&6; }
22996 # Is the header present?
22997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22999 cat >conftest.$ac_ext <<_ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 #include <$ac_header>
23007 if { (ac_try="$ac_cpp conftest.$ac_ext"
23008 case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23015 grep -v '^ *+' conftest.er1 >conftest.err
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } >/dev/null && {
23020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23021 test ! -s conftest.err
23023 ac_header_preproc=yes
23025 echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23028 ac_header_preproc=no
23031 rm -f conftest.err conftest.$ac_ext
23032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23033 echo "${ECHO_T}$ac_header_preproc" >&6; }
23035 # So? What about this header?
23036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23042 ac_header_preproc=yes
23045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23058 ## ------------------------------ ##
23059 ## Report this to bug-tar@gnu.org ##
23060 ## ------------------------------ ##
23062 ) | sed "s/^/$as_me: WARNING: /" >&2
23065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 eval "$as_ac_Header=\$ac_header_preproc"
23072 ac_res=`eval echo '${'$as_ac_Header'}'`
23073 { echo "$as_me:$LINENO: result: $ac_res" >&5
23074 echo "${ECHO_T}$ac_res" >&6; }
23077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23078 cat >>confdefs.h <<_ACEOF
23079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23086 if test $ac_cv_header_OS_h = yes; then
23090 for ac_header in sys/param.h
23092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23097 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 ac_res=`eval echo '${'$as_ac_Header'}'`
23100 { echo "$as_me:$LINENO: result: $ac_res" >&5
23101 echo "${ECHO_T}$ac_res" >&6; }
23103 # Is the header compilable?
23104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23112 $ac_includes_default
23113 #include <$ac_header>
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_compile") 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } && {
23129 test -z "$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 } && test -s conftest.$ac_objext; then
23132 ac_header_compiler=yes
23134 echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 ac_header_compiler=no
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23142 echo "${ECHO_T}$ac_header_compiler" >&6; }
23144 # Is the header present?
23145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 #include <$ac_header>
23155 if { (ac_try="$ac_cpp conftest.$ac_ext"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } >/dev/null && {
23168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23171 ac_header_preproc=yes
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_header_preproc=no
23179 rm -f conftest.err conftest.$ac_ext
23180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23181 echo "${ECHO_T}$ac_header_preproc" >&6; }
23183 # So? What about this header?
23184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23190 ac_header_preproc=yes
23193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23206 ## ------------------------------ ##
23207 ## Report this to bug-tar@gnu.org ##
23208 ## ------------------------------ ##
23210 ) | sed "s/^/$as_me: WARNING: /" >&2
23213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 eval "$as_ac_Header=\$ac_header_preproc"
23220 ac_res=`eval echo '${'$as_ac_Header'}'`
23221 { echo "$as_me:$LINENO: result: $ac_res" >&5
23222 echo "${ECHO_T}$ac_res" >&6; }
23225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23226 cat >>confdefs.h <<_ACEOF
23227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23234 if test $ac_cv_header_sys_param_h = yes; then
23240 REPLACE_GETPAGESIZE=1
23249 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
23256 GNULIB_GETPAGESIZE=1
23270 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
23294 { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
23295 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
23296 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 cat >conftest.$ac_ext <<_ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23305 #include <sys/time.h>
23312 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
23314 return !(x | c.tv_sec | c.tv_usec);
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23337 gl_cv_func_gettimeofday_posix_signature=yes
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 gl_cv_func_gettimeofday_posix_signature=no
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23348 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
23353 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
23354 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
23355 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 if test "$cross_compiling" = yes; then
23359 gl_cv_func_gettimeofday_clobber=yes
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 #include <string.h>
23368 #include <sys/time.h>
23370 #include <stdlib.h>
23378 struct tm saved_lt;
23380 lt = localtime (&t);
23382 gettimeofday (&tv, NULL);
23383 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23389 rm -f conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23396 (eval "$ac_link") 2>&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23400 { (case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_try") 2>&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 gl_cv_func_gettimeofday_clobber=no
23411 echo "$as_me: program exited with status $ac_status" >&5
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 ( exit $ac_status )
23416 gl_cv_func_gettimeofday_clobber=yes
23418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23423 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
23424 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
23426 if test $gl_cv_func_gettimeofday_clobber = yes; then
23427 REPLACE_GETTIMEOFDAY=1
23428 SYS_TIME_H=sys/time.h
23438 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23442 for ac_header in sys/timeb.h
23444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23449 echo $ECHO_N "(cached) $ECHO_C" >&6
23451 ac_res=`eval echo '${'$as_ac_Header'}'`
23452 { echo "$as_me:$LINENO: result: $ac_res" >&5
23453 echo "${ECHO_T}$ac_res" >&6; }
23455 # Is the header compilable?
23456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 $ac_includes_default
23465 #include <$ac_header>
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_compile") 2>conftest.er1
23476 grep -v '^ *+' conftest.er1 >conftest.err
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest.$ac_objext; then
23484 ac_header_compiler=yes
23486 echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23489 ac_header_compiler=no
23492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23494 echo "${ECHO_T}$ac_header_compiler" >&6; }
23496 # Is the header present?
23497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 #include <$ac_header>
23507 if { (ac_try="$ac_cpp conftest.$ac_ext"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23515 grep -v '^ *+' conftest.er1 >conftest.err
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } >/dev/null && {
23520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23523 ac_header_preproc=yes
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_header_preproc=no
23531 rm -f conftest.err conftest.$ac_ext
23532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23533 echo "${ECHO_T}$ac_header_preproc" >&6; }
23535 # So? What about this header?
23536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23542 ac_header_preproc=yes
23545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23558 ## ------------------------------ ##
23559 ## Report this to bug-tar@gnu.org ##
23560 ## ------------------------------ ##
23562 ) | sed "s/^/$as_me: WARNING: /" >&2
23565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23570 eval "$as_ac_Header=\$ac_header_preproc"
23572 ac_res=`eval echo '${'$as_ac_Header'}'`
23573 { echo "$as_me:$LINENO: result: $ac_res" >&5
23574 echo "${ECHO_T}$ac_res" >&6; }
23577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23578 cat >>confdefs.h <<_ACEOF
23579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23587 for ac_func in _ftime
23589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23595 cat >conftest.$ac_ext <<_ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h. */
23601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23603 #define $ac_func innocuous_$ac_func
23605 /* System header to define __stub macros and hopefully few prototypes,
23606 which can conflict with char $ac_func (); below.
23607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23608 <limits.h> exists even on freestanding compilers. */
23611 # include <limits.h>
23613 # include <assert.h>
23618 /* Override any GCC internal prototype to avoid an error.
23619 Use char because int might match the return type of a GCC
23620 builtin and then its argument prototype would still apply. */
23625 /* The GNU C library defines this for functions which it implements
23626 to always fail with ENOSYS. Some functions are actually named
23627 something starting with __ and the normal name is an alias. */
23628 #if defined __stub_$ac_func || defined __stub___$ac_func
23635 return $ac_func ();
23640 rm -f conftest.$ac_objext conftest$ac_exeext
23641 if { (ac_try="$ac_link"
23642 case "(($ac_try" in
23643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23644 *) ac_try_echo=$ac_try;;
23646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23647 (eval "$ac_link") 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && {
23654 test -z "$ac_c_werror_flag" ||
23655 test ! -s conftest.err
23656 } && test -s conftest$ac_exeext &&
23657 $as_test_x conftest$ac_exeext; then
23658 eval "$as_ac_var=yes"
23660 echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23663 eval "$as_ac_var=no"
23666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23667 conftest$ac_exeext conftest.$ac_ext
23669 ac_res=`eval echo '${'$as_ac_var'}'`
23670 { echo "$as_me:$LINENO: result: $ac_res" >&5
23671 echo "${ECHO_T}$ac_res" >&6; }
23672 if test `eval echo '${'$as_ac_var'}'` = yes; then
23673 cat >>confdefs.h <<_ACEOF
23674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23682 cat >>confdefs.h <<\_ACEOF
23683 #define gmtime rpl_gmtime
23687 cat >>confdefs.h <<\_ACEOF
23688 #define localtime rpl_localtime
23693 cat >>confdefs.h <<\_ACEOF
23694 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
23700 if test $gl_cv_func_gettimeofday_posix_signature != yes; then
23701 REPLACE_GETTIMEOFDAY=1
23702 SYS_TIME_H=sys/time.h
23703 if test $gl_cv_func_gettimeofday_clobber != yes; then
23712 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23716 for ac_header in sys/timeb.h
23718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23723 echo $ECHO_N "(cached) $ECHO_C" >&6
23725 ac_res=`eval echo '${'$as_ac_Header'}'`
23726 { echo "$as_me:$LINENO: result: $ac_res" >&5
23727 echo "${ECHO_T}$ac_res" >&6; }
23729 # Is the header compilable?
23730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 $ac_includes_default
23739 #include <$ac_header>
23741 rm -f conftest.$ac_objext
23742 if { (ac_try="$ac_compile"
23743 case "(($ac_try" in
23744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745 *) ac_try_echo=$ac_try;;
23747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23748 (eval "$ac_compile") 2>conftest.er1
23750 grep -v '^ *+' conftest.er1 >conftest.err
23752 cat conftest.err >&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } && {
23755 test -z "$ac_c_werror_flag" ||
23756 test ! -s conftest.err
23757 } && test -s conftest.$ac_objext; then
23758 ac_header_compiler=yes
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 ac_header_compiler=no
23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23768 echo "${ECHO_T}$ac_header_compiler" >&6; }
23770 # Is the header present?
23771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 #include <$ac_header>
23781 if { (ac_try="$ac_cpp conftest.$ac_ext"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23789 grep -v '^ *+' conftest.er1 >conftest.err
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } >/dev/null && {
23794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23797 ac_header_preproc=yes
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23802 ac_header_preproc=no
23805 rm -f conftest.err conftest.$ac_ext
23806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23807 echo "${ECHO_T}$ac_header_preproc" >&6; }
23809 # So? What about this header?
23810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23816 ac_header_preproc=yes
23819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23832 ## ------------------------------ ##
23833 ## Report this to bug-tar@gnu.org ##
23834 ## ------------------------------ ##
23836 ) | sed "s/^/$as_me: WARNING: /" >&2
23839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
23844 eval "$as_ac_Header=\$ac_header_preproc"
23846 ac_res=`eval echo '${'$as_ac_Header'}'`
23847 { echo "$as_me:$LINENO: result: $ac_res" >&5
23848 echo "${ECHO_T}$ac_res" >&6; }
23851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23852 cat >>confdefs.h <<_ACEOF
23853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23861 for ac_func in _ftime
23863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23869 cat >conftest.$ac_ext <<_ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23877 #define $ac_func innocuous_$ac_func
23879 /* System header to define __stub macros and hopefully few prototypes,
23880 which can conflict with char $ac_func (); below.
23881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23882 <limits.h> exists even on freestanding compilers. */
23885 # include <limits.h>
23887 # include <assert.h>
23892 /* Override any GCC internal prototype to avoid an error.
23893 Use char because int might match the return type of a GCC
23894 builtin and then its argument prototype would still apply. */
23899 /* The GNU C library defines this for functions which it implements
23900 to always fail with ENOSYS. Some functions are actually named
23901 something starting with __ and the normal name is an alias. */
23902 #if defined __stub_$ac_func || defined __stub___$ac_func
23909 return $ac_func ();
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921 (eval "$ac_link") 2>conftest.er1
23923 grep -v '^ *+' conftest.er1 >conftest.err
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } && {
23928 test -z "$ac_c_werror_flag" ||
23929 test ! -s conftest.err
23930 } && test -s conftest$ac_exeext &&
23931 $as_test_x conftest$ac_exeext; then
23932 eval "$as_ac_var=yes"
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 eval "$as_ac_var=no"
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941 conftest$ac_exeext conftest.$ac_ext
23943 ac_res=`eval echo '${'$as_ac_var'}'`
23944 { echo "$as_me:$LINENO: result: $ac_res" >&5
23945 echo "${ECHO_T}$ac_res" >&6; }
23946 if test `eval echo '${'$as_ac_var'}'` = yes; then
23947 cat >>confdefs.h <<_ACEOF
23948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23967 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
23981 gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
23988 { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
23989 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
23990 if test "${gl_cv_c_inline_effective+set}" = set; then
23991 echo $ECHO_N "(cached) $ECHO_C" >&6
23993 if test $ac_cv_c_inline = no; then
23994 gl_cv_c_inline_effective=no
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24006 #ifdef __NO_INLINE__
24007 #error "inline is not effective"
24013 rm -f conftest.$ac_objext
24014 if { (ac_try="$ac_compile"
24015 case "(($ac_try" in
24016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017 *) ac_try_echo=$ac_try;;
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020 (eval "$ac_compile") 2>conftest.er1
24022 grep -v '^ *+' conftest.er1 >conftest.err
24024 cat conftest.err >&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } && {
24027 test -z "$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 } && test -s conftest.$ac_objext; then
24030 gl_cv_c_inline_effective=yes
24032 echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24035 gl_cv_c_inline_effective=no
24038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
24043 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
24044 if test $gl_cv_c_inline_effective = yes; then
24046 cat >>confdefs.h <<\_ACEOF
24047 #define HAVE_INLINE 1
24061 gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
24071 gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
24081 gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
24091 gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
24123 { echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
24124 echo $ECHO_N "checking whether inttypes.h conforms to C99... $ECHO_C" >&6; }
24125 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
24126 echo $ECHO_N "(cached) $ECHO_C" >&6
24128 gl_cv_header_working_inttypes_h=no
24129 if test "$gl_cv_header_working_stdint_h" = yes \
24130 && test $ac_cv_header_inttypes_h = yes \
24131 && test "$ac_cv_have_decl_imaxabs" = yes \
24132 && test "$ac_cv_have_decl_imaxdiv" = yes \
24133 && test "$ac_cv_have_decl_strtoimax" = yes \
24134 && test "$ac_cv_have_decl_strtoumax" = yes; then
24135 cat >conftest.$ac_ext <<_ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24143 #include <stddef.h>
24144 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
24145 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
24146 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
24147 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
24148 #include <inttypes.h>
24150 /* No need to duplicate the tests of stdint.m4; they are subsumed by
24151 $gl_cv_header_working_stdint_h = yes. */
24153 /* Tests for macros supposed to be defined in inttypes.h. */
24155 const char *k = /* implicit string concatenation */
24160 PRIo8 PRIu8 PRIx8 PRIX8
24166 PRIo16 PRIu16 PRIx16 PRIX16
24172 PRIo32 PRIu32 PRIx32 PRIX32
24178 PRIo64 PRIu64 PRIx64 PRIX64
24180 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
24181 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
24182 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
24183 PRIdLEAST64 PRIiLEAST64
24184 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
24185 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
24186 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
24187 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
24188 PRIdFAST64 PRIiFAST64
24189 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
24190 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
24195 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
24198 const char *l = /* implicit string concatenation */
24209 SCNo16 SCNu16 SCNx16
24215 SCNo32 SCNu32 SCNx32
24221 SCNo64 SCNu64 SCNx64
24223 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
24224 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
24225 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
24226 SCNdLEAST64 SCNiLEAST64
24227 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
24228 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
24229 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
24230 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
24231 SCNdFAST64 SCNiFAST64
24232 SCNoFAST64 SCNuFAST64 SCNxFAST64
24233 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
24238 SCNoPTR SCNuPTR SCNxPTR
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_compile") 2>conftest.er1
24259 grep -v '^ *+' conftest.er1 >conftest.err
24261 cat conftest.err >&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && {
24264 test -z "$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24266 } && test -s conftest.$ac_objext; then
24267 gl_cv_header_working_inttypes_h=yes
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24278 { echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
24279 echo "${ECHO_T}$gl_cv_header_working_inttypes_h" >&6; }
24281 if false && test $gl_cv_header_working_inttypes_h = yes; then
24296 if test $gl_cv_have_include_next = yes; then
24297 gl_cv_next_inttypes_h='<'inttypes.h'>'
24299 { echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
24300 echo $ECHO_N "checking absolute name of <inttypes.h>... $ECHO_C" >&6; }
24301 if test "${gl_cv_next_inttypes_h+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24305 if test $ac_cv_header_inttypes_h = yes; then
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 #include <inttypes.h>
24315 gl_cv_next_inttypes_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24316 sed -n '\#/inttypes.h#{
24317 s#.*"\(.*/inttypes.h\)".*#\1#
24323 gl_cv_next_inttypes_h='<'inttypes.h'>'
24327 { echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
24328 echo "${ECHO_T}$gl_cv_next_inttypes_h" >&6; }
24330 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
24336 cat >>confdefs.h <<\_ACEOF
24337 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
24344 if test -n "$STDINT_H"; then
24345 PRIPTR_PREFIX='"l"'
24347 for glpfx in '' l ll I64; do
24349 '') gltype1='int';;
24350 l) gltype1='long int';;
24351 ll) gltype1='long long int';;
24352 I64) gltype1='__int64';;
24354 cat >conftest.$ac_ext <<_ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h. */
24360 #include <stdint.h>
24361 extern intptr_t foo;
24362 extern $gltype1 foo;
24371 rm -f conftest.$ac_objext
24372 if { (ac_try="$ac_compile"
24373 case "(($ac_try" in
24374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375 *) ac_try_echo=$ac_try;;
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378 (eval "$ac_compile") 2>conftest.er1
24380 grep -v '^ *+' conftest.er1 >conftest.err
24382 cat conftest.err >&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } && {
24385 test -z "$ac_c_werror_flag" ||
24386 test ! -s conftest.err
24387 } && test -s conftest.$ac_objext; then
24388 PRIPTR_PREFIX='"'$glpfx'"'
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397 test -n "$PRIPTR_PREFIX" && break
24402 if test "$ac_cv_have_decl_imaxabs" = yes; then
24403 HAVE_DECL_IMAXABS=1
24405 HAVE_DECL_IMAXABS=0
24408 if test "$ac_cv_have_decl_imaxdiv" = yes; then
24409 HAVE_DECL_IMAXDIV=1
24411 HAVE_DECL_IMAXDIV=0
24414 if test "$ac_cv_have_decl_strtoimax" = yes; then
24415 HAVE_DECL_STRTOIMAX=1
24417 HAVE_DECL_STRTOIMAX=0
24420 if test "$ac_cv_have_decl_strtoumax" = yes; then
24421 HAVE_DECL_STRTOUMAX=1
24423 HAVE_DECL_STRTOUMAX=0
24427 { echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
24428 echo $ECHO_N "checking whether INT32_MAX < INTMAX_MAX... $ECHO_C" >&6; }
24429 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
24430 echo $ECHO_N "(cached) $ECHO_C" >&6
24432 cat >conftest.$ac_ext <<_ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24438 /* Work also in C++ mode. */
24439 #define __STDC_LIMIT_MACROS 1
24441 /* Work if build is not clean. */
24442 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24444 #include <limits.h>
24446 #include <stdint.h>
24449 #if defined INT32_MAX && defined INTMAX_MAX
24450 #define CONDITION (INT32_MAX < INTMAX_MAX)
24451 #elif HAVE_LONG_LONG_INT
24452 #define CONDITION (sizeof (int) < sizeof (long long int))
24454 #define CONDITION 0
24456 int test[CONDITION ? 1 : -1];
24465 rm -f conftest.$ac_objext
24466 if { (ac_try="$ac_compile"
24467 case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472 (eval "$ac_compile") 2>conftest.er1
24474 grep -v '^ *+' conftest.er1 >conftest.err
24476 cat conftest.err >&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } && {
24479 test -z "$ac_c_werror_flag" ||
24480 test ! -s conftest.err
24481 } && test -s conftest.$ac_objext; then
24482 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
24484 echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24487 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492 { echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
24493 echo "${ECHO_T}$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
24494 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
24495 INT32_MAX_LT_INTMAX_MAX=1;
24497 INT32_MAX_LT_INTMAX_MAX=0;
24502 { echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
24503 echo $ECHO_N "checking whether INT64_MAX == LONG_MAX... $ECHO_C" >&6; }
24504 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
24505 echo $ECHO_N "(cached) $ECHO_C" >&6
24507 cat >conftest.$ac_ext <<_ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24513 /* Work also in C++ mode. */
24514 #define __STDC_LIMIT_MACROS 1
24516 /* Work if build is not clean. */
24517 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24519 #include <limits.h>
24521 #include <stdint.h>
24524 #if defined INT64_MAX
24525 #define CONDITION (INT64_MAX == LONG_MAX)
24526 #elif HAVE_LONG_LONG_INT
24527 #define CONDITION (sizeof (long long int) == sizeof (long int))
24529 #define CONDITION 0
24531 int test[CONDITION ? 1 : -1];
24540 rm -f conftest.$ac_objext
24541 if { (ac_try="$ac_compile"
24542 case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547 (eval "$ac_compile") 2>conftest.er1
24549 grep -v '^ *+' conftest.er1 >conftest.err
24551 cat conftest.err >&5
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); } && {
24554 test -z "$ac_c_werror_flag" ||
24555 test ! -s conftest.err
24556 } && test -s conftest.$ac_objext; then
24557 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
24565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24567 { echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
24568 echo "${ECHO_T}$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
24569 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
24570 INT64_MAX_EQ_LONG_MAX=1;
24572 INT64_MAX_EQ_LONG_MAX=0;
24577 { echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
24578 echo $ECHO_N "checking whether UINT32_MAX < UINTMAX_MAX... $ECHO_C" >&6; }
24579 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
24580 echo $ECHO_N "(cached) $ECHO_C" >&6
24582 cat >conftest.$ac_ext <<_ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h. */
24588 /* Work also in C++ mode. */
24589 #define __STDC_LIMIT_MACROS 1
24591 /* Work if build is not clean. */
24592 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24594 #include <limits.h>
24596 #include <stdint.h>
24599 #if defined UINT32_MAX && defined UINTMAX_MAX
24600 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
24601 #elif HAVE_LONG_LONG_INT
24602 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
24604 #define CONDITION 0
24606 int test[CONDITION ? 1 : -1];
24615 rm -f conftest.$ac_objext
24616 if { (ac_try="$ac_compile"
24617 case "(($ac_try" in
24618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619 *) ac_try_echo=$ac_try;;
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622 (eval "$ac_compile") 2>conftest.er1
24624 grep -v '^ *+' conftest.er1 >conftest.err
24626 cat conftest.err >&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); } && {
24629 test -z "$ac_c_werror_flag" ||
24630 test ! -s conftest.err
24631 } && test -s conftest.$ac_objext; then
24632 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
24634 echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24637 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24642 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
24643 echo "${ECHO_T}$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
24644 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
24645 UINT32_MAX_LT_UINTMAX_MAX=1;
24647 UINT32_MAX_LT_UINTMAX_MAX=0;
24652 { echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
24653 echo $ECHO_N "checking whether UINT64_MAX == ULONG_MAX... $ECHO_C" >&6; }
24654 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24657 cat >conftest.$ac_ext <<_ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 /* Work also in C++ mode. */
24664 #define __STDC_LIMIT_MACROS 1
24666 /* Work if build is not clean. */
24667 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24669 #include <limits.h>
24671 #include <stdint.h>
24674 #if defined UINT64_MAX
24675 #define CONDITION (UINT64_MAX == ULONG_MAX)
24676 #elif HAVE_LONG_LONG_INT
24677 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
24679 #define CONDITION 0
24681 int test[CONDITION ? 1 : -1];
24690 rm -f conftest.$ac_objext
24691 if { (ac_try="$ac_compile"
24692 case "(($ac_try" in
24693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697 (eval "$ac_compile") 2>conftest.er1
24699 grep -v '^ *+' conftest.er1 >conftest.err
24701 cat conftest.err >&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); } && {
24704 test -z "$ac_c_werror_flag" ||
24705 test ! -s conftest.err
24706 } && test -s conftest.$ac_objext; then
24707 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
24715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24717 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
24718 echo "${ECHO_T}$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
24719 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
24720 UINT64_MAX_EQ_ULONG_MAX=1;
24722 UINT64_MAX_EQ_ULONG_MAX=0;
24727 INTTYPES_H='inttypes.h'
24743 for ac_func in lchown
24745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24759 #define $ac_func innocuous_$ac_func
24761 /* System header to define __stub macros and hopefully few prototypes,
24762 which can conflict with char $ac_func (); below.
24763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24764 <limits.h> exists even on freestanding compilers. */
24767 # include <limits.h>
24769 # include <assert.h>
24774 /* Override any GCC internal prototype to avoid an error.
24775 Use char because int might match the return type of a GCC
24776 builtin and then its argument prototype would still apply. */
24781 /* The GNU C library defines this for functions which it implements
24782 to always fail with ENOSYS. Some functions are actually named
24783 something starting with __ and the normal name is an alias. */
24784 #if defined __stub_$ac_func || defined __stub___$ac_func
24791 return $ac_func ();
24796 rm -f conftest.$ac_objext conftest$ac_exeext
24797 if { (ac_try="$ac_link"
24798 case "(($ac_try" in
24799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800 *) ac_try_echo=$ac_try;;
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803 (eval "$ac_link") 2>conftest.er1
24805 grep -v '^ *+' conftest.er1 >conftest.err
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } && {
24810 test -z "$ac_c_werror_flag" ||
24811 test ! -s conftest.err
24812 } && test -s conftest$ac_exeext &&
24813 $as_test_x conftest$ac_exeext; then
24814 eval "$as_ac_var=yes"
24816 echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24819 eval "$as_ac_var=no"
24822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24823 conftest$ac_exeext conftest.$ac_ext
24825 ac_res=`eval echo '${'$as_ac_var'}'`
24826 { echo "$as_me:$LINENO: result: $ac_res" >&5
24827 echo "${ECHO_T}$ac_res" >&6; }
24828 if test `eval echo '${'$as_ac_var'}'` = yes; then
24829 cat >>confdefs.h <<_ACEOF
24830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24835 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24841 if test $ac_cv_func_lchown = no; then
24859 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
24864 { echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
24865 echo $ECHO_N "checking whether lseek detects pipes... $ECHO_C" >&6; }
24866 if test "${gl_cv_func_lseek_pipe+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 if test $cross_compiling = no; then
24870 cat >conftest.$ac_ext <<_ACEOF
24872 #include <sys/types.h> /* for off_t */
24873 #include <stdio.h> /* for SEEK_CUR */
24874 #include <unistd.h>
24877 /* Exit with success only if stdin is seekable. */
24878 return lseek (0, (off_t)0, SEEK_CUR) < 0;
24881 rm -f conftest.$ac_objext conftest$ac_exeext
24882 if { (ac_try="$ac_link"
24883 case "(($ac_try" in
24884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885 *) ac_try_echo=$ac_try;;
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888 (eval "$ac_link") 2>conftest.er1
24890 grep -v '^ *+' conftest.er1 >conftest.err
24892 cat conftest.err >&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); } && {
24895 test -z "$ac_c_werror_flag" ||
24896 test ! -s conftest.err
24897 } && test -s conftest$ac_exeext &&
24898 $as_test_x conftest$ac_exeext; then
24899 if test -s conftest$ac_exeext \
24900 && ./conftest$ac_exeext < conftest.$ac_ext \
24901 && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
24902 gl_cv_func_lseek_pipe=yes
24904 gl_cv_func_lseek_pipe=no
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 gl_cv_func_lseek_pipe=no
24913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24914 conftest$ac_exeext conftest.$ac_ext
24916 cat >conftest.$ac_ext <<_ACEOF
24918 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
24919 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
24923 rm -f conftest.$ac_objext
24924 if { (ac_try="$ac_compile"
24925 case "(($ac_try" in
24926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927 *) ac_try_echo=$ac_try;;
24929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24930 (eval "$ac_compile") 2>conftest.er1
24932 grep -v '^ *+' conftest.er1 >conftest.err
24934 cat conftest.err >&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } && {
24937 test -z "$ac_c_werror_flag" ||
24938 test ! -s conftest.err
24939 } && test -s conftest.$ac_objext; then
24940 gl_cv_func_lseek_pipe=yes
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 gl_cv_func_lseek_pipe=no
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24951 { echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
24952 echo "${ECHO_T}$gl_cv_func_lseek_pipe" >&6; }
24953 if test $gl_cv_func_lseek_pipe = no; then
24963 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
24968 cat >>confdefs.h <<\_ACEOF
24969 #define LSEEK_PIPE_BROKEN 1
24981 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24982 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
24983 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 rm -f conftest.sym conftest.file
24987 echo >conftest.file
24988 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24989 if test "$cross_compiling" = yes; then
24990 ac_cv_func_lstat_dereferences_slashed_symlink=no
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 $ac_includes_default
25003 /* Linux will dereference the symlink and fail.
25004 That is better in the sense that it means we will not
25005 have to compile and use the lstat wrapper. */
25006 return lstat ("conftest.sym/", &sbuf) == 0;
25011 rm -f conftest$ac_exeext
25012 if { (ac_try="$ac_link"
25013 case "(($ac_try" in
25014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015 *) ac_try_echo=$ac_try;;
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018 (eval "$ac_link") 2>&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25022 { (case "(($ac_try" in
25023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_try") 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25033 echo "$as_me: program exited with status $ac_status" >&5
25034 echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25037 ( exit $ac_status )
25038 ac_cv_func_lstat_dereferences_slashed_symlink=no
25040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25045 # If the `ln -s' command failed, then we probably don't even
25046 # have an lstat function.
25047 ac_cv_func_lstat_dereferences_slashed_symlink=no
25049 rm -f conftest.sym conftest.file
25052 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25053 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25055 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25057 cat >>confdefs.h <<_ACEOF
25058 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25062 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25071 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
25075 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25078 # Prerequisites of lib/lstat.c.
25087 for ac_header in stdlib.h
25089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25096 ac_res=`eval echo '${'$as_ac_Header'}'`
25097 { echo "$as_me:$LINENO: result: $ac_res" >&5
25098 echo "${ECHO_T}$ac_res" >&6; }
25100 # Is the header compilable?
25101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25103 cat >conftest.$ac_ext <<_ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 $ac_includes_default
25110 #include <$ac_header>
25112 rm -f conftest.$ac_objext
25113 if { (ac_try="$ac_compile"
25114 case "(($ac_try" in
25115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116 *) ac_try_echo=$ac_try;;
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 (eval "$ac_compile") 2>conftest.er1
25121 grep -v '^ *+' conftest.er1 >conftest.err
25123 cat conftest.err >&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); } && {
25126 test -z "$ac_c_werror_flag" ||
25127 test ! -s conftest.err
25128 } && test -s conftest.$ac_objext; then
25129 ac_header_compiler=yes
25131 echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25134 ac_header_compiler=no
25137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25139 echo "${ECHO_T}$ac_header_compiler" >&6; }
25141 # Is the header present?
25142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25144 cat >conftest.$ac_ext <<_ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h. */
25150 #include <$ac_header>
25152 if { (ac_try="$ac_cpp conftest.$ac_ext"
25153 case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25160 grep -v '^ *+' conftest.er1 >conftest.err
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } >/dev/null && {
25165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25168 ac_header_preproc=yes
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25173 ac_header_preproc=no
25176 rm -f conftest.err conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25178 echo "${ECHO_T}$ac_header_preproc" >&6; }
25180 # So? What about this header?
25181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25187 ac_header_preproc=yes
25190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25203 ## ------------------------------ ##
25204 ## Report this to bug-tar@gnu.org ##
25205 ## ------------------------------ ##
25207 ) | sed "s/^/$as_me: WARNING: /" >&2
25210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25215 eval "$as_ac_Header=\$ac_header_preproc"
25217 ac_res=`eval echo '${'$as_ac_Header'}'`
25218 { echo "$as_me:$LINENO: result: $ac_res" >&5
25219 echo "${ECHO_T}$ac_res" >&6; }
25222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25223 cat >>confdefs.h <<_ACEOF
25224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25231 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
25232 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
25233 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 if test "$cross_compiling" = yes; then
25237 ac_cv_func_malloc_0_nonnull=no
25239 cat >conftest.$ac_ext <<_ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h. */
25245 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
25246 # include <stdlib.h>
25254 return ! malloc (0);
25259 rm -f conftest$ac_exeext
25260 if { (ac_try="$ac_link"
25261 case "(($ac_try" in
25262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263 *) ac_try_echo=$ac_try;;
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266 (eval "$ac_link") 2>&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25270 { (case "(($ac_try" in
25271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272 *) ac_try_echo=$ac_try;;
25274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25275 (eval "$ac_try") 2>&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 ac_cv_func_malloc_0_nonnull=yes
25281 echo "$as_me: program exited with status $ac_status" >&5
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25285 ( exit $ac_status )
25286 ac_cv_func_malloc_0_nonnull=no
25288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25293 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
25294 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
25295 if test $ac_cv_func_malloc_0_nonnull = yes; then
25297 cat >>confdefs.h <<\_ACEOF
25298 #define HAVE_MALLOC 1
25302 cat >>confdefs.h <<\_ACEOF
25303 #define HAVE_MALLOC 0
25314 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25317 cat >>confdefs.h <<\_ACEOF
25318 #define malloc rpl_malloc
25326 cat >>confdefs.h <<\_ACEOF
25327 #define GNULIB_MALLOC_GNU 1
25332 if test $gl_cv_func_malloc_posix = yes; then
25333 HAVE_MALLOC_POSIX=1
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_MALLOC_POSIX 1
25348 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25350 HAVE_MALLOC_POSIX=0
25356 GNULIB_MALLOC_POSIX=1
25373 GNULIB_MBSCASECMP=1
25390 for ac_func in memchr
25392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25396 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 cat >conftest.$ac_ext <<_ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h. */
25404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25406 #define $ac_func innocuous_$ac_func
25408 /* System header to define __stub macros and hopefully few prototypes,
25409 which can conflict with char $ac_func (); below.
25410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25411 <limits.h> exists even on freestanding compilers. */
25414 # include <limits.h>
25416 # include <assert.h>
25421 /* Override any GCC internal prototype to avoid an error.
25422 Use char because int might match the return type of a GCC
25423 builtin and then its argument prototype would still apply. */
25428 /* The GNU C library defines this for functions which it implements
25429 to always fail with ENOSYS. Some functions are actually named
25430 something starting with __ and the normal name is an alias. */
25431 #if defined __stub_$ac_func || defined __stub___$ac_func
25438 return $ac_func ();
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (ac_try="$ac_link"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_link") 2>conftest.er1
25452 grep -v '^ *+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } && {
25457 test -z "$ac_c_werror_flag" ||
25458 test ! -s conftest.err
25459 } && test -s conftest$ac_exeext &&
25460 $as_test_x conftest$ac_exeext; then
25461 eval "$as_ac_var=yes"
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 eval "$as_ac_var=no"
25469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25470 conftest$ac_exeext conftest.$ac_ext
25472 ac_res=`eval echo '${'$as_ac_var'}'`
25473 { echo "$as_me:$LINENO: result: $ac_res" >&5
25474 echo "${ECHO_T}$ac_res" >&6; }
25475 if test `eval echo '${'$as_ac_var'}'` = yes; then
25476 cat >>confdefs.h <<_ACEOF
25477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25482 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25488 if test $ac_cv_func_memchr = no; then
25491 for ac_header in bp-sym.h
25493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25498 echo $ECHO_N "(cached) $ECHO_C" >&6
25500 ac_res=`eval echo '${'$as_ac_Header'}'`
25501 { echo "$as_me:$LINENO: result: $ac_res" >&5
25502 echo "${ECHO_T}$ac_res" >&6; }
25504 # Is the header compilable?
25505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25507 cat >conftest.$ac_ext <<_ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25513 $ac_includes_default
25514 #include <$ac_header>
25516 rm -f conftest.$ac_objext
25517 if { (ac_try="$ac_compile"
25518 case "(($ac_try" in
25519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25520 *) ac_try_echo=$ac_try;;
25522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25523 (eval "$ac_compile") 2>conftest.er1
25525 grep -v '^ *+' conftest.er1 >conftest.err
25527 cat conftest.err >&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } && {
25530 test -z "$ac_c_werror_flag" ||
25531 test ! -s conftest.err
25532 } && test -s conftest.$ac_objext; then
25533 ac_header_compiler=yes
25535 echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25538 ac_header_compiler=no
25541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25543 echo "${ECHO_T}$ac_header_compiler" >&6; }
25545 # Is the header present?
25546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25548 cat >conftest.$ac_ext <<_ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25554 #include <$ac_header>
25556 if { (ac_try="$ac_cpp conftest.$ac_ext"
25557 case "(($ac_try" in
25558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559 *) ac_try_echo=$ac_try;;
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25564 grep -v '^ *+' conftest.er1 >conftest.err
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } >/dev/null && {
25569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25572 ac_header_preproc=yes
25574 echo "$as_me: failed program was:" >&5
25575 sed 's/^/| /' conftest.$ac_ext >&5
25577 ac_header_preproc=no
25580 rm -f conftest.err conftest.$ac_ext
25581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25582 echo "${ECHO_T}$ac_header_preproc" >&6; }
25584 # So? What about this header?
25585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25591 ac_header_preproc=yes
25594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25607 ## ------------------------------ ##
25608 ## Report this to bug-tar@gnu.org ##
25609 ## ------------------------------ ##
25611 ) | sed "s/^/$as_me: WARNING: /" >&2
25614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25619 eval "$as_ac_Header=\$ac_header_preproc"
25621 ac_res=`eval echo '${'$as_ac_Header'}'`
25622 { echo "$as_me:$LINENO: result: $ac_res" >&5
25623 echo "${ECHO_T}$ac_res" >&6; }
25626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25627 cat >>confdefs.h <<_ACEOF
25628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25653 for ac_func in mempcpy
25655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25661 cat >conftest.$ac_ext <<_ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25669 #define $ac_func innocuous_$ac_func
25671 /* System header to define __stub macros and hopefully few prototypes,
25672 which can conflict with char $ac_func (); below.
25673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25674 <limits.h> exists even on freestanding compilers. */
25677 # include <limits.h>
25679 # include <assert.h>
25684 /* Override any GCC internal prototype to avoid an error.
25685 Use char because int might match the return type of a GCC
25686 builtin and then its argument prototype would still apply. */
25691 /* The GNU C library defines this for functions which it implements
25692 to always fail with ENOSYS. Some functions are actually named
25693 something starting with __ and the normal name is an alias. */
25694 #if defined __stub_$ac_func || defined __stub___$ac_func
25701 return $ac_func ();
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (ac_try="$ac_link"
25708 case "(($ac_try" in
25709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710 *) ac_try_echo=$ac_try;;
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713 (eval "$ac_link") 2>conftest.er1
25715 grep -v '^ *+' conftest.er1 >conftest.err
25717 cat conftest.err >&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } && {
25720 test -z "$ac_c_werror_flag" ||
25721 test ! -s conftest.err
25722 } && test -s conftest$ac_exeext &&
25723 $as_test_x conftest$ac_exeext; then
25724 eval "$as_ac_var=yes"
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 eval "$as_ac_var=no"
25732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25733 conftest$ac_exeext conftest.$ac_ext
25735 ac_res=`eval echo '${'$as_ac_var'}'`
25736 { echo "$as_me:$LINENO: result: $ac_res" >&5
25737 echo "${ECHO_T}$ac_res" >&6; }
25738 if test `eval echo '${'$as_ac_var'}'` = yes; then
25739 cat >>confdefs.h <<_ACEOF
25740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25745 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25751 if test $ac_cv_func_mempcpy = no; then
25770 if test $ac_cv_have_decl_memrchr = no; then
25771 HAVE_DECL_MEMRCHR=0
25783 for ac_func in memrchr
25785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25789 echo $ECHO_N "(cached) $ECHO_C" >&6
25791 cat >conftest.$ac_ext <<_ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25799 #define $ac_func innocuous_$ac_func
25801 /* System header to define __stub macros and hopefully few prototypes,
25802 which can conflict with char $ac_func (); below.
25803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25804 <limits.h> exists even on freestanding compilers. */
25807 # include <limits.h>
25809 # include <assert.h>
25814 /* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25821 /* The GNU C library defines this for functions which it implements
25822 to always fail with ENOSYS. Some functions are actually named
25823 something starting with __ and the normal name is an alias. */
25824 #if defined __stub_$ac_func || defined __stub___$ac_func
25831 return $ac_func ();
25836 rm -f conftest.$ac_objext conftest$ac_exeext
25837 if { (ac_try="$ac_link"
25838 case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843 (eval "$ac_link") 2>conftest.er1
25845 grep -v '^ *+' conftest.er1 >conftest.err
25847 cat conftest.err >&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); } && {
25850 test -z "$ac_c_werror_flag" ||
25851 test ! -s conftest.err
25852 } && test -s conftest$ac_exeext &&
25853 $as_test_x conftest$ac_exeext; then
25854 eval "$as_ac_var=yes"
25856 echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25859 eval "$as_ac_var=no"
25862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25863 conftest$ac_exeext conftest.$ac_ext
25865 ac_res=`eval echo '${'$as_ac_var'}'`
25866 { echo "$as_me:$LINENO: result: $ac_res" >&5
25867 echo "${ECHO_T}$ac_res" >&6; }
25868 if test `eval echo '${'$as_ac_var'}'` = yes; then
25869 cat >>confdefs.h <<_ACEOF
25870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25875 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25881 if test $ac_cv_func_memrchr = no; then
25899 for ac_func in memset
25901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25905 echo $ECHO_N "(cached) $ECHO_C" >&6
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25915 #define $ac_func innocuous_$ac_func
25917 /* System header to define __stub macros and hopefully few prototypes,
25918 which can conflict with char $ac_func (); below.
25919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25920 <limits.h> exists even on freestanding compilers. */
25923 # include <limits.h>
25925 # include <assert.h>
25930 /* Override any GCC internal prototype to avoid an error.
25931 Use char because int might match the return type of a GCC
25932 builtin and then its argument prototype would still apply. */
25937 /* The GNU C library defines this for functions which it implements
25938 to always fail with ENOSYS. Some functions are actually named
25939 something starting with __ and the normal name is an alias. */
25940 #if defined __stub_$ac_func || defined __stub___$ac_func
25947 return $ac_func ();
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956 *) ac_try_echo=$ac_try;;
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959 (eval "$ac_link") 2>conftest.er1
25961 grep -v '^ *+' conftest.er1 >conftest.err
25963 cat conftest.err >&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } && {
25966 test -z "$ac_c_werror_flag" ||
25967 test ! -s conftest.err
25968 } && test -s conftest$ac_exeext &&
25969 $as_test_x conftest$ac_exeext; then
25970 eval "$as_ac_var=yes"
25972 echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25975 eval "$as_ac_var=no"
25978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25979 conftest$ac_exeext conftest.$ac_ext
25981 ac_res=`eval echo '${'$as_ac_var'}'`
25982 { echo "$as_me:$LINENO: result: $ac_res" >&5
25983 echo "${ECHO_T}$ac_res" >&6; }
25984 if test `eval echo '${'$as_ac_var'}'` = yes; then
25985 cat >>confdefs.h <<_ACEOF
25986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25991 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25997 if test $ac_cv_func_memset = no; then
26014 for ac_func in mkdtemp
26016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26020 echo $ECHO_N "(cached) $ECHO_C" >&6
26022 cat >conftest.$ac_ext <<_ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26030 #define $ac_func innocuous_$ac_func
26032 /* System header to define __stub macros and hopefully few prototypes,
26033 which can conflict with char $ac_func (); below.
26034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26035 <limits.h> exists even on freestanding compilers. */
26038 # include <limits.h>
26040 # include <assert.h>
26045 /* Override any GCC internal prototype to avoid an error.
26046 Use char because int might match the return type of a GCC
26047 builtin and then its argument prototype would still apply. */
26052 /* The GNU C library defines this for functions which it implements
26053 to always fail with ENOSYS. Some functions are actually named
26054 something starting with __ and the normal name is an alias. */
26055 #if defined __stub_$ac_func || defined __stub___$ac_func
26062 return $ac_func ();
26067 rm -f conftest.$ac_objext conftest$ac_exeext
26068 if { (ac_try="$ac_link"
26069 case "(($ac_try" in
26070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071 *) ac_try_echo=$ac_try;;
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074 (eval "$ac_link") 2>conftest.er1
26076 grep -v '^ *+' conftest.er1 >conftest.err
26078 cat conftest.err >&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); } && {
26081 test -z "$ac_c_werror_flag" ||
26082 test ! -s conftest.err
26083 } && test -s conftest$ac_exeext &&
26084 $as_test_x conftest$ac_exeext; then
26085 eval "$as_ac_var=yes"
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 eval "$as_ac_var=no"
26093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26094 conftest$ac_exeext conftest.$ac_ext
26096 ac_res=`eval echo '${'$as_ac_var'}'`
26097 { echo "$as_me:$LINENO: result: $ac_res" >&5
26098 echo "${ECHO_T}$ac_res" >&6; }
26099 if test `eval echo '${'$as_ac_var'}'` = yes; then
26100 cat >>confdefs.h <<_ACEOF
26101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26106 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26112 if test $ac_cv_func_mkdtemp = no; then
26135 { echo "$as_me:$LINENO: checking for working mktime" >&5
26136 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
26137 if test "${ac_cv_func_working_mktime+set}" = set; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 if test "$cross_compiling" = yes; then
26141 ac_cv_func_working_mktime=no
26143 cat >conftest.$ac_ext <<_ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 /* Test program from Paul Eggert and Tony Leneis. */
26150 #include <limits.h>
26151 #include <stdlib.h>
26154 #ifdef HAVE_UNISTD_H
26155 # include <unistd.h>
26159 # define alarm(X) /* empty */
26162 /* Work around redefinition to rpl_putenv by other config tests. */
26165 static time_t time_t_max;
26166 static time_t time_t_min;
26168 /* Values we'll use to set the TZ environment variable. */
26169 static char *tz_strings[] = {
26170 (char *) 0, "TZ=GMT0", "TZ=JST-9",
26171 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
26173 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
26175 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
26176 Based on a problem report from Andreas Jaeger. */
26178 spring_forward_gap ()
26180 /* glibc (up to about 1998-10-07) failed this test. */
26183 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
26184 instead of "TZ=America/Vancouver" in order to detect the bug even
26185 on systems that don't support the Olson extension, or don't have the
26186 full zoneinfo tables installed. */
26187 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
26196 return mktime (&tm) != (time_t) -1;
26204 return ! (lt = localtime (&now)) || mktime (lt) == now;
26211 return (mktime_test1 (now)
26212 && mktime_test1 ((time_t) (time_t_max - now))
26213 && mktime_test1 ((time_t) (time_t_min + now)));
26219 /* Based on code from Ariel Faigon. */
26229 return tm.tm_mon == 2 && tm.tm_mday == 31;
26238 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
26239 now = mktime (&tm);
26240 if (now != (time_t) -1)
26242 struct tm *lt = localtime (&now);
26244 && lt->tm_year == tm.tm_year
26245 && lt->tm_mon == tm.tm_mon
26246 && lt->tm_mday == tm.tm_mday
26247 && lt->tm_hour == tm.tm_hour
26248 && lt->tm_min == tm.tm_min
26249 && lt->tm_sec == tm.tm_sec
26250 && lt->tm_yday == tm.tm_yday
26251 && lt->tm_wday == tm.tm_wday
26252 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
26253 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
26262 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
26263 ignoring leap seconds. */
26264 unsigned long int answer = 2527315200UL;
26268 tm.tm_year = 2050 - 1900;
26271 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
26274 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
26275 instead of "TZ=America/Vancouver" in order to detect the bug even
26276 on systems that don't support the Olson extension, or don't have the
26277 full zoneinfo tables installed. */
26278 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
26282 /* Check that the result is either a failure, or close enough
26283 to the correct answer that we can assume the discrepancy is
26284 due to leap seconds. */
26285 return (t == (time_t) -1
26286 || (0 < t && answer - 120 <= t && t <= answer + 120));
26295 /* This test makes some buggy mktime implementations loop.
26296 Give up after 60 seconds; a mktime slower than that
26297 isn't worth using anyway. */
26302 t = (time_t_max << 1) + 1;
26303 if (t <= time_t_max)
26307 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
26309 delta = time_t_max / 997; /* a suitable prime number */
26310 for (i = 0; i < N_STRINGS; i++)
26313 putenv (tz_strings[i]);
26315 for (t = 0; t <= time_t_max - delta; t += delta)
26316 if (! mktime_test (t))
26318 if (! (mktime_test ((time_t) 1)
26319 && mktime_test ((time_t) (60 * 60))
26320 && mktime_test ((time_t) (60 * 60 * 24))))
26323 for (j = 1; ; j <<= 1)
26324 if (! bigtime_test (j))
26326 else if (INT_MAX / 2 < j)
26328 if (! bigtime_test (INT_MAX))
26331 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
26334 rm -f conftest$ac_exeext
26335 if { (ac_try="$ac_link"
26336 case "(($ac_try" in
26337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338 *) ac_try_echo=$ac_try;;
26340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341 (eval "$ac_link") 2>&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26345 { (case "(($ac_try" in
26346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347 *) ac_try_echo=$ac_try;;
26349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350 (eval "$ac_try") 2>&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); }; }; then
26354 ac_cv_func_working_mktime=yes
26356 echo "$as_me: program exited with status $ac_status" >&5
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26360 ( exit $ac_status )
26361 ac_cv_func_working_mktime=no
26363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26368 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
26369 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
26370 if test $ac_cv_func_working_mktime = no; then
26379 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
26383 if test $ac_cv_func_working_mktime = no; then
26385 cat >>confdefs.h <<\_ACEOF
26386 #define mktime rpl_mktime
26403 gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
26418 { echo "$as_me:$LINENO: checking for obstacks" >&5
26419 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
26420 if test "${ac_cv_func_obstack+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26423 cat >conftest.$ac_ext <<_ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h. */
26429 $ac_includes_default
26430 #include "obstack.h"
26434 struct obstack mem;
26435 #define obstack_chunk_alloc malloc
26436 #define obstack_chunk_free free
26437 obstack_init (&mem);
26438 obstack_free (&mem, 0);
26443 rm -f conftest.$ac_objext conftest$ac_exeext
26444 if { (ac_try="$ac_link"
26445 case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_link") 2>conftest.er1
26452 grep -v '^ *+' conftest.er1 >conftest.err
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } && {
26457 test -z "$ac_c_werror_flag" ||
26458 test ! -s conftest.err
26459 } && test -s conftest$ac_exeext &&
26460 $as_test_x conftest$ac_exeext; then
26461 ac_cv_func_obstack=yes
26463 echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26466 ac_cv_func_obstack=no
26469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26470 conftest$ac_exeext conftest.$ac_ext
26472 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
26473 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
26474 if test $ac_cv_func_obstack = yes; then
26476 cat >>confdefs.h <<\_ACEOF
26477 #define HAVE_OBSTACK 1
26489 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
26499 if test $REPLACE_OPEN != 1; then
26508 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
26519 { echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
26520 echo $ECHO_N "checking whether open recognizes a trailing slash... $ECHO_C" >&6; }
26521 if test "${gl_cv_func_open_slash+set}" = set; then
26522 echo $ECHO_N "(cached) $ECHO_C" >&6
26525 if test "$cross_compiling" = yes; then
26528 solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
26529 hpux*) gl_cv_func_open_slash="guessing no" ;;
26530 *) gl_cv_func_open_slash="guessing yes" ;;
26534 cat >conftest.$ac_ext <<_ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26543 # include <unistd.h>
26547 return open ("conftest.sl/", O_CREAT, 0600) >= 0;
26550 rm -f conftest$ac_exeext
26551 if { (ac_try="$ac_link"
26552 case "(($ac_try" in
26553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554 *) ac_try_echo=$ac_try;;
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557 (eval "$ac_link") 2>&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26561 { (case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566 (eval "$ac_try") 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; }; then
26570 gl_cv_func_open_slash=yes
26572 echo "$as_me: program exited with status $ac_status" >&5
26573 echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26576 ( exit $ac_status )
26577 gl_cv_func_open_slash=no
26579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26586 { echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
26587 echo "${ECHO_T}$gl_cv_func_open_slash" >&6; }
26588 case "$gl_cv_func_open_slash" in
26591 cat >>confdefs.h <<\_ACEOF
26592 #define OPEN_TRAILING_SLASH_BUG 1
26597 if test $REPLACE_OPEN != 1; then
26606 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
26622 cat >>confdefs.h <<\_ACEOF
26623 #define GNULIB_OPEN 1
26640 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
26680 for ac_func in fchmodat mkdirat openat
26682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 cat >conftest.$ac_ext <<_ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h. */
26694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26696 #define $ac_func innocuous_$ac_func
26698 /* System header to define __stub macros and hopefully few prototypes,
26699 which can conflict with char $ac_func (); below.
26700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26701 <limits.h> exists even on freestanding compilers. */
26704 # include <limits.h>
26706 # include <assert.h>
26711 /* Override any GCC internal prototype to avoid an error.
26712 Use char because int might match the return type of a GCC
26713 builtin and then its argument prototype would still apply. */
26718 /* The GNU C library defines this for functions which it implements
26719 to always fail with ENOSYS. Some functions are actually named
26720 something starting with __ and the normal name is an alias. */
26721 #if defined __stub_$ac_func || defined __stub___$ac_func
26728 return $ac_func ();
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (ac_try="$ac_link"
26735 case "(($ac_try" in
26736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737 *) ac_try_echo=$ac_try;;
26739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26740 (eval "$ac_link") 2>conftest.er1
26742 grep -v '^ *+' conftest.er1 >conftest.err
26744 cat conftest.err >&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } && {
26747 test -z "$ac_c_werror_flag" ||
26748 test ! -s conftest.err
26749 } && test -s conftest$ac_exeext &&
26750 $as_test_x conftest$ac_exeext; then
26751 eval "$as_ac_var=yes"
26753 echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26756 eval "$as_ac_var=no"
26759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26760 conftest$ac_exeext conftest.$ac_ext
26762 ac_res=`eval echo '${'$as_ac_var'}'`
26763 { echo "$as_me:$LINENO: result: $ac_res" >&5
26764 echo "${ECHO_T}$ac_res" >&6; }
26765 if test `eval echo '${'$as_ac_var'}'` = yes; then
26766 cat >>confdefs.h <<_ACEOF
26767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26772 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26779 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
26789 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
26793 cat >>confdefs.h <<\_ACEOF
26794 #define __OPENAT_PREFIX rpl_
26802 # Assume we'll use the replacement function.
26803 # The only case in which we won't is when we have fchownat, and it works.
26804 use_replacement_fchownat=yes
26806 { echo "$as_me:$LINENO: checking for fchownat" >&5
26807 echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
26808 if test "${ac_cv_func_fchownat+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
26818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26819 #define fchownat innocuous_fchownat
26821 /* System header to define __stub macros and hopefully few prototypes,
26822 which can conflict with char fchownat (); below.
26823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26824 <limits.h> exists even on freestanding compilers. */
26827 # include <limits.h>
26829 # include <assert.h>
26834 /* Override any GCC internal prototype to avoid an error.
26835 Use char because int might match the return type of a GCC
26836 builtin and then its argument prototype would still apply. */
26841 /* The GNU C library defines this for functions which it implements
26842 to always fail with ENOSYS. Some functions are actually named
26843 something starting with __ and the normal name is an alias. */
26844 #if defined __stub_fchownat || defined __stub___fchownat
26851 return fchownat ();
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (ac_try="$ac_link"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_link") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1 >conftest.err
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest$ac_exeext &&
26873 $as_test_x conftest$ac_exeext; then
26874 ac_cv_func_fchownat=yes
26876 echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26879 ac_cv_func_fchownat=no
26882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26883 conftest$ac_exeext conftest.$ac_ext
26885 { echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
26886 echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
26887 if test $ac_cv_func_fchownat = yes; then
26893 if test $have_fchownat = yes; then
26895 { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
26896 echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
26897 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
26898 echo $ECHO_N "(cached) $ECHO_C" >&6
26901 gl_dangle=conftest.dangle
26902 # Remove any remnants of a previous test.
26904 # Arrange for deletion of the temporary file this test creates.
26905 ac_clean_files="$ac_clean_files $gl_dangle"
26906 ln -s conftest.no-such $gl_dangle
26907 if test "$cross_compiling" = yes; then
26908 gl_cv_func_fchownat_nofollow_works=no
26910 cat >conftest.$ac_ext <<_ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h. */
26918 #include <unistd.h>
26919 #include <stdlib.h>
26921 #include <sys/types.h>
26925 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
26926 AT_SYMLINK_NOFOLLOW) != 0
26927 && errno == ENOENT);
26931 rm -f conftest$ac_exeext
26932 if { (ac_try="$ac_link"
26933 case "(($ac_try" in
26934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935 *) ac_try_echo=$ac_try;;
26937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938 (eval "$ac_link") 2>&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26942 { (case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_try") 2>&5
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; }; then
26951 gl_cv_func_fchownat_nofollow_works=yes
26953 echo "$as_me: program exited with status $ac_status" >&5
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26957 ( exit $ac_status )
26958 gl_cv_func_fchownat_nofollow_works=no
26960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26966 { echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
26967 echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
26968 if test $gl_cv_func_fchownat_nofollow_works = no; then
26971 use_replacement_fchownat=no
26977 if test $use_replacement_fchownat = yes; then
26986 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
26989 cat >>confdefs.h <<\_ACEOF
26990 #define fchownat rpl_fchownat
27013 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
27026 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
27035 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
27036 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
27037 if test "${ac_cv_type_mbstate_t+set}" = set; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 cat >conftest.$ac_ext <<_ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27046 $ac_includes_default
27047 # include <wchar.h>
27051 mbstate_t x; return sizeof x;
27056 rm -f conftest.$ac_objext
27057 if { (ac_try="$ac_compile"
27058 case "(($ac_try" in
27059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060 *) ac_try_echo=$ac_try;;
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063 (eval "$ac_compile") 2>conftest.er1
27065 grep -v '^ *+' conftest.er1 >conftest.err
27067 cat conftest.err >&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } && {
27070 test -z "$ac_c_werror_flag" ||
27071 test ! -s conftest.err
27072 } && test -s conftest.$ac_objext; then
27073 ac_cv_type_mbstate_t=yes
27075 echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27078 ac_cv_type_mbstate_t=no
27081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27083 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
27084 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
27085 if test $ac_cv_type_mbstate_t = yes; then
27087 cat >>confdefs.h <<\_ACEOF
27088 #define HAVE_MBSTATE_T 1
27093 cat >>confdefs.h <<\_ACEOF
27094 #define mbstate_t int
27099 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
27100 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
27101 if test "${gl_cv_func_mbrtowc+set}" = set; then
27102 echo $ECHO_N "(cached) $ECHO_C" >&6
27104 cat >conftest.$ac_ext <<_ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h. */
27115 char const s[] = "";
27118 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27123 rm -f conftest.$ac_objext conftest$ac_exeext
27124 if { (ac_try="$ac_link"
27125 case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_link") 2>conftest.er1
27132 grep -v '^ *+' conftest.er1 >conftest.err
27134 cat conftest.err >&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } && {
27137 test -z "$ac_c_werror_flag" ||
27138 test ! -s conftest.err
27139 } && test -s conftest$ac_exeext &&
27140 $as_test_x conftest$ac_exeext; then
27141 gl_cv_func_mbrtowc=yes
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 gl_cv_func_mbrtowc=no
27149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27150 conftest$ac_exeext conftest.$ac_ext
27152 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
27153 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
27154 if test $gl_cv_func_mbrtowc = yes; then
27156 cat >>confdefs.h <<\_ACEOF
27157 #define HAVE_MBRTOWC 1
27176 for ac_func in rawmemchr
27178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 cat >conftest.$ac_ext <<_ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27192 #define $ac_func innocuous_$ac_func
27194 /* System header to define __stub macros and hopefully few prototypes,
27195 which can conflict with char $ac_func (); below.
27196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27197 <limits.h> exists even on freestanding compilers. */
27200 # include <limits.h>
27202 # include <assert.h>
27207 /* Override any GCC internal prototype to avoid an error.
27208 Use char because int might match the return type of a GCC
27209 builtin and then its argument prototype would still apply. */
27214 /* The GNU C library defines this for functions which it implements
27215 to always fail with ENOSYS. Some functions are actually named
27216 something starting with __ and the normal name is an alias. */
27217 #if defined __stub_$ac_func || defined __stub___$ac_func
27224 return $ac_func ();
27229 rm -f conftest.$ac_objext conftest$ac_exeext
27230 if { (ac_try="$ac_link"
27231 case "(($ac_try" in
27232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233 *) ac_try_echo=$ac_try;;
27235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236 (eval "$ac_link") 2>conftest.er1
27238 grep -v '^ *+' conftest.er1 >conftest.err
27240 cat conftest.err >&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); } && {
27243 test -z "$ac_c_werror_flag" ||
27244 test ! -s conftest.err
27245 } && test -s conftest$ac_exeext &&
27246 $as_test_x conftest$ac_exeext; then
27247 eval "$as_ac_var=yes"
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 eval "$as_ac_var=no"
27255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27256 conftest$ac_exeext conftest.$ac_ext
27258 ac_res=`eval echo '${'$as_ac_var'}'`
27259 { echo "$as_me:$LINENO: result: $ac_res" >&5
27260 echo "${ECHO_T}$ac_res" >&6; }
27261 if test `eval echo '${'$as_ac_var'}'` = yes; then
27262 cat >>confdefs.h <<_ACEOF
27263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27268 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
27274 if test $ac_cv_func_rawmemchr = no; then
27291 if test $ac_cv_func_readlink = no; then
27301 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
27314 if test $gl_cv_func_malloc_posix = yes; then
27315 HAVE_REALLOC_POSIX=1
27317 cat >>confdefs.h <<\_ACEOF
27318 #define HAVE_REALLOC_POSIX 1
27330 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
27332 HAVE_REALLOC_POSIX=0
27338 GNULIB_REALLOC_POSIX=1
27349 # Check whether --with-included-regex was given.
27350 if test "${with_included_regex+set}" = set; then
27351 withval=$with_included_regex;
27355 case $with_included_regex in #(
27356 yes|no) ac_use_included_regex=$with_included_regex
27359 # If the system regex support is good enough that it passes the
27360 # following run test, then default to *not* using the included regex.c.
27361 # If cross compiling, assume the test would fail and use the included
27363 { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
27364 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
27365 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27368 if test "$cross_compiling" = yes; then
27369 gl_cv_func_re_compile_pattern_working=no
27371 cat >conftest.$ac_ext <<_ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27377 $ac_includes_default
27379 #include <locale.h>
27381 #include <limits.h>
27387 static struct re_pattern_buffer regex;
27388 unsigned char folded_chars[UCHAR_MAX + 1];
27391 struct re_registers regs;
27394 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
27395 This test needs valgrind to catch the bug on Debian
27396 GNU/Linux 3.1 x86, but it might catch the bug better
27397 on other platforms and it shouldn't hurt to try the
27399 if (setlocale (LC_ALL, "en_US.UTF-8"))
27401 static char const pat[] = "insert into";
27402 static char const data[] =
27403 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
27404 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
27406 memset (®ex, 0, sizeof regex);
27407 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
27410 if (re_search (®ex, data, sizeof data - 1,
27411 0, sizeof data - 1, ®s)
27414 if (! setlocale (LC_ALL, "C"))
27419 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
27420 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
27421 memset (®ex, 0, sizeof regex);
27422 s = re_compile_pattern ("a[^x]b", 6, ®ex);
27426 /* This should fail, but succeeds for glibc-2.5. */
27427 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
27430 /* This regular expression is from Spencer ere test number 75
27432 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
27433 memset (®ex, 0, sizeof regex);
27434 for (i = 0; i <= UCHAR_MAX; i++)
27435 folded_chars[i] = i;
27436 regex.translate = folded_chars;
27437 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
27438 /* This should fail with _Invalid character class name_ error. */
27442 /* This should succeed, but does not for glibc-2.1.3. */
27443 memset (®ex, 0, sizeof regex);
27444 s = re_compile_pattern ("{1", 2, ®ex);
27449 /* The following example is derived from a problem report
27450 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
27451 memset (®ex, 0, sizeof regex);
27452 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
27456 /* This should match, but does not for glibc-2.2.1. */
27457 if (re_match (®ex, "an", 2, 0, ®s) != 2)
27460 memset (®ex, 0, sizeof regex);
27461 s = re_compile_pattern ("x", 1, ®ex);
27465 /* glibc-2.2.93 does not work with a negative RANGE argument. */
27466 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
27469 /* The version of regex.c in older versions of gnulib
27470 ignored RE_ICASE. Detect that problem too. */
27471 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
27472 memset (®ex, 0, sizeof regex);
27473 s = re_compile_pattern ("x", 1, ®ex);
27477 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
27480 /* Catch a bug reported by Vin Shelton in
27481 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
27483 re_set_syntax (RE_SYNTAX_POSIX_BASIC
27484 & ~RE_CONTEXT_INVALID_DUP
27485 & ~RE_NO_EMPTY_RANGES);
27486 memset (®ex, 0, sizeof regex);
27487 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
27491 /* REG_STARTEND was added to glibc on 2004-01-15.
27492 Reject older versions. */
27493 if (! REG_STARTEND)
27496 /* Reject hosts whose regoff_t values are too narrow.
27497 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
27499 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
27500 || sizeof (regoff_t) < sizeof (ssize_t))
27508 rm -f conftest$ac_exeext
27509 if { (ac_try="$ac_link"
27510 case "(($ac_try" in
27511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512 *) ac_try_echo=$ac_try;;
27514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515 (eval "$ac_link") 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27519 { (case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_try") 2>&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; }; then
27528 gl_cv_func_re_compile_pattern_working=yes
27530 echo "$as_me: program exited with status $ac_status" >&5
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27534 ( exit $ac_status )
27535 gl_cv_func_re_compile_pattern_working=no
27537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27542 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
27543 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
27544 case $gl_cv_func_re_compile_pattern_working in #(
27545 yes) ac_use_included_regex=no;; #(
27546 no) ac_use_included_regex=yes;;
27549 *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
27550 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
27551 { (exit 1); exit 1; }; }
27555 if test $ac_use_included_regex = yes; then
27557 cat >>confdefs.h <<\_ACEOF
27558 #define _REGEX_LARGE_OFFSETS 1
27562 cat >>confdefs.h <<\_ACEOF
27563 #define re_syntax_options rpl_re_syntax_options
27567 cat >>confdefs.h <<\_ACEOF
27568 #define re_set_syntax rpl_re_set_syntax
27572 cat >>confdefs.h <<\_ACEOF
27573 #define re_compile_pattern rpl_re_compile_pattern
27577 cat >>confdefs.h <<\_ACEOF
27578 #define re_compile_fastmap rpl_re_compile_fastmap
27582 cat >>confdefs.h <<\_ACEOF
27583 #define re_search rpl_re_search
27587 cat >>confdefs.h <<\_ACEOF
27588 #define re_search_2 rpl_re_search_2
27592 cat >>confdefs.h <<\_ACEOF
27593 #define re_match rpl_re_match
27597 cat >>confdefs.h <<\_ACEOF
27598 #define re_match_2 rpl_re_match_2
27602 cat >>confdefs.h <<\_ACEOF
27603 #define re_set_registers rpl_re_set_registers
27607 cat >>confdefs.h <<\_ACEOF
27608 #define re_comp rpl_re_comp
27612 cat >>confdefs.h <<\_ACEOF
27613 #define re_exec rpl_re_exec
27617 cat >>confdefs.h <<\_ACEOF
27618 #define regcomp rpl_regcomp
27622 cat >>confdefs.h <<\_ACEOF
27623 #define regexec rpl_regexec
27627 cat >>confdefs.h <<\_ACEOF
27628 #define regerror rpl_regerror
27632 cat >>confdefs.h <<\_ACEOF
27633 #define regfree rpl_regfree
27644 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
27651 for ac_header in libintl.h
27653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27658 echo $ECHO_N "(cached) $ECHO_C" >&6
27660 ac_res=`eval echo '${'$as_ac_Header'}'`
27661 { echo "$as_me:$LINENO: result: $ac_res" >&5
27662 echo "${ECHO_T}$ac_res" >&6; }
27664 # Is the header compilable?
27665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27667 cat >conftest.$ac_ext <<_ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h. */
27673 $ac_includes_default
27674 #include <$ac_header>
27676 rm -f conftest.$ac_objext
27677 if { (ac_try="$ac_compile"
27678 case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_compile") 2>conftest.er1
27685 grep -v '^ *+' conftest.er1 >conftest.err
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } && {
27690 test -z "$ac_c_werror_flag" ||
27691 test ! -s conftest.err
27692 } && test -s conftest.$ac_objext; then
27693 ac_header_compiler=yes
27695 echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27698 ac_header_compiler=no
27701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27703 echo "${ECHO_T}$ac_header_compiler" >&6; }
27705 # Is the header present?
27706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27708 cat >conftest.$ac_ext <<_ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h. */
27714 #include <$ac_header>
27716 if { (ac_try="$ac_cpp conftest.$ac_ext"
27717 case "(($ac_try" in
27718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719 *) ac_try_echo=$ac_try;;
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27724 grep -v '^ *+' conftest.er1 >conftest.err
27726 cat conftest.err >&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } >/dev/null && {
27729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27730 test ! -s conftest.err
27732 ac_header_preproc=yes
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27737 ac_header_preproc=no
27740 rm -f conftest.err conftest.$ac_ext
27741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27742 echo "${ECHO_T}$ac_header_preproc" >&6; }
27744 # So? What about this header?
27745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27751 ac_header_preproc=yes
27754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27767 ## ------------------------------ ##
27768 ## Report this to bug-tar@gnu.org ##
27769 ## ------------------------------ ##
27771 ) | sed "s/^/$as_me: WARNING: /" >&2
27774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27777 echo $ECHO_N "(cached) $ECHO_C" >&6
27779 eval "$as_ac_Header=\$ac_header_preproc"
27781 ac_res=`eval echo '${'$as_ac_Header'}'`
27782 { echo "$as_me:$LINENO: result: $ac_res" >&5
27783 echo "${ECHO_T}$ac_res" >&6; }
27786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787 cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27809 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
27810 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
27811 if test "${ac_cv_have_decl_isblank+set}" = set; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
27814 cat >conftest.$ac_ext <<_ACEOF
27817 cat confdefs.h >>conftest.$ac_ext
27818 cat >>conftest.$ac_ext <<_ACEOF
27819 /* end confdefs.h. */
27833 rm -f conftest.$ac_objext
27834 if { (ac_try="$ac_compile"
27835 case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840 (eval "$ac_compile") 2>conftest.er1
27842 grep -v '^ *+' conftest.er1 >conftest.err
27844 cat conftest.err >&5
27845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); } && {
27847 test -z "$ac_c_werror_flag" ||
27848 test ! -s conftest.err
27849 } && test -s conftest.$ac_objext; then
27850 ac_cv_have_decl_isblank=yes
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 ac_cv_have_decl_isblank=no
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27860 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
27861 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
27862 if test $ac_cv_have_decl_isblank = yes; then
27864 cat >>confdefs.h <<_ACEOF
27865 #define HAVE_DECL_ISBLANK 1
27870 cat >>confdefs.h <<_ACEOF
27871 #define HAVE_DECL_ISBLANK 0
27891 for ac_func in rmdir
27893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27897 echo $ECHO_N "(cached) $ECHO_C" >&6
27899 cat >conftest.$ac_ext <<_ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h. */
27905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27907 #define $ac_func innocuous_$ac_func
27909 /* System header to define __stub macros and hopefully few prototypes,
27910 which can conflict with char $ac_func (); below.
27911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27912 <limits.h> exists even on freestanding compilers. */
27915 # include <limits.h>
27917 # include <assert.h>
27922 /* Override any GCC internal prototype to avoid an error.
27923 Use char because int might match the return type of a GCC
27924 builtin and then its argument prototype would still apply. */
27929 /* The GNU C library defines this for functions which it implements
27930 to always fail with ENOSYS. Some functions are actually named
27931 something starting with __ and the normal name is an alias. */
27932 #if defined __stub_$ac_func || defined __stub___$ac_func
27939 return $ac_func ();
27944 rm -f conftest.$ac_objext conftest$ac_exeext
27945 if { (ac_try="$ac_link"
27946 case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951 (eval "$ac_link") 2>conftest.er1
27953 grep -v '^ *+' conftest.er1 >conftest.err
27955 cat conftest.err >&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } && {
27958 test -z "$ac_c_werror_flag" ||
27959 test ! -s conftest.err
27960 } && test -s conftest$ac_exeext &&
27961 $as_test_x conftest$ac_exeext; then
27962 eval "$as_ac_var=yes"
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 eval "$as_ac_var=no"
27970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27971 conftest$ac_exeext conftest.$ac_ext
27973 ac_res=`eval echo '${'$as_ac_var'}'`
27974 { echo "$as_me:$LINENO: result: $ac_res" >&5
27975 echo "${ECHO_T}$ac_res" >&6; }
27976 if test `eval echo '${'$as_ac_var'}'` = yes; then
27977 cat >>confdefs.h <<_ACEOF
27978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27983 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28003 for ac_func in rpmatch
28005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28011 cat >conftest.$ac_ext <<_ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28019 #define $ac_func innocuous_$ac_func
28021 /* System header to define __stub macros and hopefully few prototypes,
28022 which can conflict with char $ac_func (); below.
28023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28024 <limits.h> exists even on freestanding compilers. */
28027 # include <limits.h>
28029 # include <assert.h>
28034 /* Override any GCC internal prototype to avoid an error.
28035 Use char because int might match the return type of a GCC
28036 builtin and then its argument prototype would still apply. */
28041 /* The GNU C library defines this for functions which it implements
28042 to always fail with ENOSYS. Some functions are actually named
28043 something starting with __ and the normal name is an alias. */
28044 #if defined __stub_$ac_func || defined __stub___$ac_func
28051 return $ac_func ();
28056 rm -f conftest.$ac_objext conftest$ac_exeext
28057 if { (ac_try="$ac_link"
28058 case "(($ac_try" in
28059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060 *) ac_try_echo=$ac_try;;
28062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063 (eval "$ac_link") 2>conftest.er1
28065 grep -v '^ *+' conftest.er1 >conftest.err
28067 cat conftest.err >&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); } && {
28070 test -z "$ac_c_werror_flag" ||
28071 test ! -s conftest.err
28072 } && test -s conftest$ac_exeext &&
28073 $as_test_x conftest$ac_exeext; then
28074 eval "$as_ac_var=yes"
28076 echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28079 eval "$as_ac_var=no"
28082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28083 conftest$ac_exeext conftest.$ac_ext
28085 ac_res=`eval echo '${'$as_ac_var'}'`
28086 { echo "$as_me:$LINENO: result: $ac_res" >&5
28087 echo "${ECHO_T}$ac_res" >&6; }
28088 if test `eval echo '${'$as_ac_var'}'` = yes; then
28089 cat >>confdefs.h <<_ACEOF
28090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28095 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28101 if test $ac_cv_func_rpmatch = no; then
28104 { echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
28105 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6; }
28106 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28109 cat >conftest.$ac_ext <<_ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28115 #include <langinfo.h>
28119 char* cs = nl_langinfo(YESEXPR); return !cs;
28124 rm -f conftest.$ac_objext conftest$ac_exeext
28125 if { (ac_try="$ac_link"
28126 case "(($ac_try" in
28127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128 *) ac_try_echo=$ac_try;;
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131 (eval "$ac_link") 2>conftest.er1
28133 grep -v '^ *+' conftest.er1 >conftest.err
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } && {
28138 test -z "$ac_c_werror_flag" ||
28139 test ! -s conftest.err
28140 } && test -s conftest$ac_exeext &&
28141 $as_test_x conftest$ac_exeext; then
28142 gl_cv_langinfo_yesexpr=yes
28144 echo "$as_me: failed program was:" >&5
28145 sed 's/^/| /' conftest.$ac_ext >&5
28147 gl_cv_langinfo_yesexpr=no
28150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28151 conftest$ac_exeext conftest.$ac_ext
28154 { echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
28155 echo "${ECHO_T}$gl_cv_langinfo_yesexpr" >&6; }
28156 if test $gl_cv_langinfo_yesexpr = yes; then
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_LANGINFO_YESEXPR 1
28179 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
28195 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
28213 gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
28231 gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
28242 if test $ac_cv_func_setenv = no; then
28252 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
28264 for ac_header in search.h
28266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28271 echo $ECHO_N "(cached) $ECHO_C" >&6
28273 ac_res=`eval echo '${'$as_ac_Header'}'`
28274 { echo "$as_me:$LINENO: result: $ac_res" >&5
28275 echo "${ECHO_T}$ac_res" >&6; }
28277 # Is the header compilable?
28278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28280 cat >conftest.$ac_ext <<_ACEOF
28283 cat confdefs.h >>conftest.$ac_ext
28284 cat >>conftest.$ac_ext <<_ACEOF
28285 /* end confdefs.h. */
28286 $ac_includes_default
28287 #include <$ac_header>
28289 rm -f conftest.$ac_objext
28290 if { (ac_try="$ac_compile"
28291 case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_compile") 2>conftest.er1
28298 grep -v '^ *+' conftest.er1 >conftest.err
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } && {
28303 test -z "$ac_c_werror_flag" ||
28304 test ! -s conftest.err
28305 } && test -s conftest.$ac_objext; then
28306 ac_header_compiler=yes
28308 echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28311 ac_header_compiler=no
28314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28316 echo "${ECHO_T}$ac_header_compiler" >&6; }
28318 # Is the header present?
28319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28321 cat >conftest.$ac_ext <<_ACEOF
28324 cat confdefs.h >>conftest.$ac_ext
28325 cat >>conftest.$ac_ext <<_ACEOF
28326 /* end confdefs.h. */
28327 #include <$ac_header>
28329 if { (ac_try="$ac_cpp conftest.$ac_ext"
28330 case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28337 grep -v '^ *+' conftest.er1 >conftest.err
28339 cat conftest.err >&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } >/dev/null && {
28342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28343 test ! -s conftest.err
28345 ac_header_preproc=yes
28347 echo "$as_me: failed program was:" >&5
28348 sed 's/^/| /' conftest.$ac_ext >&5
28350 ac_header_preproc=no
28353 rm -f conftest.err conftest.$ac_ext
28354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28355 echo "${ECHO_T}$ac_header_preproc" >&6; }
28357 # So? What about this header?
28358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28364 ac_header_preproc=yes
28367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28380 ## ------------------------------ ##
28381 ## Report this to bug-tar@gnu.org ##
28382 ## ------------------------------ ##
28384 ) | sed "s/^/$as_me: WARNING: /" >&2
28387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28390 echo $ECHO_N "(cached) $ECHO_C" >&6
28392 eval "$as_ac_Header=\$ac_header_preproc"
28394 ac_res=`eval echo '${'$as_ac_Header'}'`
28395 { echo "$as_me:$LINENO: result: $ac_res" >&5
28396 echo "${ECHO_T}$ac_res" >&6; }
28399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28400 cat >>confdefs.h <<_ACEOF
28401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28409 for ac_func in tsearch
28411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28415 echo $ECHO_N "(cached) $ECHO_C" >&6
28417 cat >conftest.$ac_ext <<_ACEOF
28420 cat confdefs.h >>conftest.$ac_ext
28421 cat >>conftest.$ac_ext <<_ACEOF
28422 /* end confdefs.h. */
28423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28425 #define $ac_func innocuous_$ac_func
28427 /* System header to define __stub macros and hopefully few prototypes,
28428 which can conflict with char $ac_func (); below.
28429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28430 <limits.h> exists even on freestanding compilers. */
28433 # include <limits.h>
28435 # include <assert.h>
28440 /* Override any GCC internal prototype to avoid an error.
28441 Use char because int might match the return type of a GCC
28442 builtin and then its argument prototype would still apply. */
28447 /* The GNU C library defines this for functions which it implements
28448 to always fail with ENOSYS. Some functions are actually named
28449 something starting with __ and the normal name is an alias. */
28450 #if defined __stub_$ac_func || defined __stub___$ac_func
28457 return $ac_func ();
28462 rm -f conftest.$ac_objext conftest$ac_exeext
28463 if { (ac_try="$ac_link"
28464 case "(($ac_try" in
28465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466 *) ac_try_echo=$ac_try;;
28468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469 (eval "$ac_link") 2>conftest.er1
28471 grep -v '^ *+' conftest.er1 >conftest.err
28473 cat conftest.err >&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } && {
28476 test -z "$ac_c_werror_flag" ||
28477 test ! -s conftest.err
28478 } && test -s conftest$ac_exeext &&
28479 $as_test_x conftest$ac_exeext; then
28480 eval "$as_ac_var=yes"
28482 echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28485 eval "$as_ac_var=no"
28488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28489 conftest$ac_exeext conftest.$ac_ext
28491 ac_res=`eval echo '${'$as_ac_var'}'`
28492 { echo "$as_me:$LINENO: result: $ac_res" >&5
28493 echo "${ECHO_T}$ac_res" >&6; }
28494 if test `eval echo '${'$as_ac_var'}'` = yes; then
28495 cat >>confdefs.h <<_ACEOF
28496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28511 { echo "$as_me:$LINENO: checking whether sleep is declared" >&5
28512 echo $ECHO_N "checking whether sleep is declared... $ECHO_C" >&6; }
28513 if test "${ac_cv_have_decl_sleep+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28516 cat >conftest.$ac_ext <<_ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h. */
28522 #include <unistd.h>
28535 rm -f conftest.$ac_objext
28536 if { (ac_try="$ac_compile"
28537 case "(($ac_try" in
28538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539 *) ac_try_echo=$ac_try;;
28541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28542 (eval "$ac_compile") 2>conftest.er1
28544 grep -v '^ *+' conftest.er1 >conftest.err
28546 cat conftest.err >&5
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); } && {
28549 test -z "$ac_c_werror_flag" ||
28550 test ! -s conftest.err
28551 } && test -s conftest.$ac_objext; then
28552 ac_cv_have_decl_sleep=yes
28554 echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28557 ac_cv_have_decl_sleep=no
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
28563 echo "${ECHO_T}$ac_cv_have_decl_sleep" >&6; }
28564 if test $ac_cv_have_decl_sleep = yes; then
28566 cat >>confdefs.h <<_ACEOF
28567 #define HAVE_DECL_SLEEP 1
28572 cat >>confdefs.h <<_ACEOF
28573 #define HAVE_DECL_SLEEP 0
28580 if test $ac_cv_have_decl_sleep != yes; then
28590 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
28601 gl_cv_func_snprintf_usable=no
28603 for ac_func in snprintf
28605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28609 echo $ECHO_N "(cached) $ECHO_C" >&6
28611 cat >conftest.$ac_ext <<_ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h. */
28617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28619 #define $ac_func innocuous_$ac_func
28621 /* System header to define __stub macros and hopefully few prototypes,
28622 which can conflict with char $ac_func (); below.
28623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28624 <limits.h> exists even on freestanding compilers. */
28627 # include <limits.h>
28629 # include <assert.h>
28634 /* Override any GCC internal prototype to avoid an error.
28635 Use char because int might match the return type of a GCC
28636 builtin and then its argument prototype would still apply. */
28641 /* The GNU C library defines this for functions which it implements
28642 to always fail with ENOSYS. Some functions are actually named
28643 something starting with __ and the normal name is an alias. */
28644 #if defined __stub_$ac_func || defined __stub___$ac_func
28651 return $ac_func ();
28656 rm -f conftest.$ac_objext conftest$ac_exeext
28657 if { (ac_try="$ac_link"
28658 case "(($ac_try" in
28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660 *) ac_try_echo=$ac_try;;
28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663 (eval "$ac_link") 2>conftest.er1
28665 grep -v '^ *+' conftest.er1 >conftest.err
28667 cat conftest.err >&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } && {
28670 test -z "$ac_c_werror_flag" ||
28671 test ! -s conftest.err
28672 } && test -s conftest$ac_exeext &&
28673 $as_test_x conftest$ac_exeext; then
28674 eval "$as_ac_var=yes"
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28679 eval "$as_ac_var=no"
28682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28683 conftest$ac_exeext conftest.$ac_ext
28685 ac_res=`eval echo '${'$as_ac_var'}'`
28686 { echo "$as_me:$LINENO: result: $ac_res" >&5
28687 echo "${ECHO_T}$ac_res" >&6; }
28688 if test `eval echo '${'$as_ac_var'}'` = yes; then
28689 cat >>confdefs.h <<_ACEOF
28690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28696 if test $ac_cv_func_snprintf = yes; then
28699 { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
28700 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
28701 if test "${gl_cv_func_snprintf_size1+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 if test "$cross_compiling" = yes; then
28706 gl_cv_func_snprintf_size1="guessing yes"
28708 cat >conftest.$ac_ext <<_ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h. */
28718 static char buf[8] = "DEADBEEF";
28719 snprintf (buf, 1, "%d", 12345);
28720 return buf[1] != 'E';
28723 rm -f conftest$ac_exeext
28724 if { (ac_try="$ac_link"
28725 case "(($ac_try" in
28726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727 *) ac_try_echo=$ac_try;;
28729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730 (eval "$ac_link") 2>&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28734 { (case "(($ac_try" in
28735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28736 *) ac_try_echo=$ac_try;;
28738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28739 (eval "$ac_try") 2>&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
28743 gl_cv_func_snprintf_size1=yes
28745 echo "$as_me: program exited with status $ac_status" >&5
28746 echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28749 ( exit $ac_status )
28750 gl_cv_func_snprintf_size1=no
28752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28758 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
28759 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
28761 case "$gl_cv_func_snprintf_size1" in
28763 gl_cv_func_snprintf_usable=yes
28767 if test $gl_cv_func_snprintf_usable = no; then
28778 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
28780 if test $ac_cv_func_snprintf = yes; then
28790 if test $ac_cv_have_decl_snprintf = no; then
28791 HAVE_DECL_SNPRINTF=0
28799 { echo "$as_me:$LINENO: checking for ssize_t" >&5
28800 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
28801 if test "${gt_cv_ssize_t+set}" = set; then
28802 echo $ECHO_N "(cached) $ECHO_C" >&6
28804 cat >conftest.$ac_ext <<_ACEOF
28807 cat confdefs.h >>conftest.$ac_ext
28808 cat >>conftest.$ac_ext <<_ACEOF
28809 /* end confdefs.h. */
28810 #include <sys/types.h>
28814 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28820 rm -f conftest.$ac_objext
28821 if { (ac_try="$ac_compile"
28822 case "(($ac_try" in
28823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824 *) ac_try_echo=$ac_try;;
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827 (eval "$ac_compile") 2>conftest.er1
28829 grep -v '^ *+' conftest.er1 >conftest.err
28831 cat conftest.err >&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } && {
28834 test -z "$ac_c_werror_flag" ||
28835 test ! -s conftest.err
28836 } && test -s conftest.$ac_objext; then
28839 echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28847 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28848 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
28849 if test $gt_cv_ssize_t = no; then
28851 cat >>confdefs.h <<\_ACEOF
28852 #define ssize_t int
28867 { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
28868 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
28869 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28872 cat >conftest.$ac_ext <<_ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h. */
28878 #include <sys/types.h>
28879 #include <sys/stat.h>
28884 static struct stat ac_aggr;
28885 if (ac_aggr.st_atim.tv_nsec)
28891 rm -f conftest.$ac_objext
28892 if { (ac_try="$ac_compile"
28893 case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_compile") 2>conftest.er1
28900 grep -v '^ *+' conftest.er1 >conftest.err
28902 cat conftest.err >&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } && {
28905 test -z "$ac_c_werror_flag" ||
28906 test ! -s conftest.err
28907 } && test -s conftest.$ac_objext; then
28908 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
28910 echo "$as_me: failed program was:" >&5
28911 sed 's/^/| /' conftest.$ac_ext >&5
28913 cat >conftest.$ac_ext <<_ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28919 #include <sys/types.h>
28920 #include <sys/stat.h>
28925 static struct stat ac_aggr;
28926 if (sizeof ac_aggr.st_atim.tv_nsec)
28932 rm -f conftest.$ac_objext
28933 if { (ac_try="$ac_compile"
28934 case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_compile") 2>conftest.er1
28941 grep -v '^ *+' conftest.er1 >conftest.err
28943 cat conftest.err >&5
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } && {
28946 test -z "$ac_c_werror_flag" ||
28947 test ! -s conftest.err
28948 } && test -s conftest.$ac_objext; then
28949 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
28951 echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28954 ac_cv_member_struct_stat_st_atim_tv_nsec=no
28957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28962 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
28963 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
28964 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
28966 cat >>confdefs.h <<_ACEOF
28967 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
28970 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
28971 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
28972 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28975 cat >conftest.$ac_ext <<_ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h. */
28982 #include <sys/types.h>
28983 #include <sys/stat.h>
28984 #if HAVE_SYS_TIME_H
28985 # include <sys/time.h>
28988 struct timespec ts;
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_compile") 2>conftest.er1
29010 grep -v '^ *+' conftest.er1 >conftest.err
29012 cat conftest.err >&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); } && {
29015 test -z "$ac_c_werror_flag" ||
29016 test ! -s conftest.err
29017 } && test -s conftest.$ac_objext; then
29018 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29023 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
29026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29028 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
29029 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
29030 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
29032 cat >>confdefs.h <<\_ACEOF
29033 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
29038 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
29039 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
29040 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
29041 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 cat >conftest.$ac_ext <<_ACEOF
29046 cat confdefs.h >>conftest.$ac_ext
29047 cat >>conftest.$ac_ext <<_ACEOF
29048 /* end confdefs.h. */
29049 #include <sys/types.h>
29050 #include <sys/stat.h>
29055 static struct stat ac_aggr;
29056 if (ac_aggr.st_atimespec.tv_nsec)
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_compile") 2>conftest.er1
29071 grep -v '^ *+' conftest.er1 >conftest.err
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } && {
29076 test -z "$ac_c_werror_flag" ||
29077 test ! -s conftest.err
29078 } && test -s conftest.$ac_objext; then
29079 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29084 cat >conftest.$ac_ext <<_ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h. */
29090 #include <sys/types.h>
29091 #include <sys/stat.h>
29096 static struct stat ac_aggr;
29097 if (sizeof ac_aggr.st_atimespec.tv_nsec)
29103 rm -f conftest.$ac_objext
29104 if { (ac_try="$ac_compile"
29105 case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_compile") 2>conftest.er1
29112 grep -v '^ *+' conftest.er1 >conftest.err
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } && {
29117 test -z "$ac_c_werror_flag" ||
29118 test ! -s conftest.err
29119 } && test -s conftest.$ac_objext; then
29120 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
29122 echo "$as_me: failed program was:" >&5
29123 sed 's/^/| /' conftest.$ac_ext >&5
29125 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
29128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29133 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
29134 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
29135 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
29137 cat >>confdefs.h <<_ACEOF
29138 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
29143 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
29144 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
29145 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&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 #include <sys/types.h>
29155 #include <sys/stat.h>
29160 static struct stat ac_aggr;
29161 if (ac_aggr.st_atimensec)
29167 rm -f conftest.$ac_objext
29168 if { (ac_try="$ac_compile"
29169 case "(($ac_try" in
29170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171 *) ac_try_echo=$ac_try;;
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174 (eval "$ac_compile") 2>conftest.er1
29176 grep -v '^ *+' conftest.er1 >conftest.err
29178 cat conftest.err >&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } && {
29181 test -z "$ac_c_werror_flag" ||
29182 test ! -s conftest.err
29183 } && test -s conftest.$ac_objext; then
29184 ac_cv_member_struct_stat_st_atimensec=yes
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 cat >conftest.$ac_ext <<_ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h. */
29195 #include <sys/types.h>
29196 #include <sys/stat.h>
29201 static struct stat ac_aggr;
29202 if (sizeof ac_aggr.st_atimensec)
29208 rm -f conftest.$ac_objext
29209 if { (ac_try="$ac_compile"
29210 case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_compile") 2>conftest.er1
29217 grep -v '^ *+' conftest.er1 >conftest.err
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } && {
29222 test -z "$ac_c_werror_flag" ||
29223 test ! -s conftest.err
29224 } && test -s conftest.$ac_objext; then
29225 ac_cv_member_struct_stat_st_atimensec=yes
29227 echo "$as_me: failed program was:" >&5
29228 sed 's/^/| /' conftest.$ac_ext >&5
29230 ac_cv_member_struct_stat_st_atimensec=no
29233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
29239 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
29240 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
29242 cat >>confdefs.h <<_ACEOF
29243 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
29248 { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
29249 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
29250 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29253 cat >conftest.$ac_ext <<_ACEOF
29256 cat confdefs.h >>conftest.$ac_ext
29257 cat >>conftest.$ac_ext <<_ACEOF
29258 /* end confdefs.h. */
29259 #include <sys/types.h>
29260 #include <sys/stat.h>
29265 static struct stat ac_aggr;
29266 if (ac_aggr.st_atim.st__tim.tv_nsec)
29272 rm -f conftest.$ac_objext
29273 if { (ac_try="$ac_compile"
29274 case "(($ac_try" in
29275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276 *) ac_try_echo=$ac_try;;
29278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279 (eval "$ac_compile") 2>conftest.er1
29281 grep -v '^ *+' conftest.er1 >conftest.err
29283 cat conftest.err >&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } && {
29286 test -z "$ac_c_werror_flag" ||
29287 test ! -s conftest.err
29288 } && test -s conftest.$ac_objext; then
29289 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
29291 echo "$as_me: failed program was:" >&5
29292 sed 's/^/| /' conftest.$ac_ext >&5
29294 cat >conftest.$ac_ext <<_ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h. */
29300 #include <sys/types.h>
29301 #include <sys/stat.h>
29306 static struct stat ac_aggr;
29307 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
29313 rm -f conftest.$ac_objext
29314 if { (ac_try="$ac_compile"
29315 case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_compile") 2>conftest.er1
29322 grep -v '^ *+' conftest.er1 >conftest.err
29324 cat conftest.err >&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } && {
29327 test -z "$ac_c_werror_flag" ||
29328 test ! -s conftest.err
29329 } && test -s conftest.$ac_objext; then
29330 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
29332 echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29335 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
29338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
29344 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
29345 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
29347 cat >>confdefs.h <<_ACEOF
29348 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
29370 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
29371 echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
29372 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29375 cat >conftest.$ac_ext <<_ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29381 #include <sys/types.h>
29382 #include <sys/stat.h>
29387 static struct stat ac_aggr;
29388 if (ac_aggr.st_birthtimespec.tv_nsec)
29394 rm -f conftest.$ac_objext
29395 if { (ac_try="$ac_compile"
29396 case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_compile") 2>conftest.er1
29403 grep -v '^ *+' conftest.er1 >conftest.err
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } && {
29408 test -z "$ac_c_werror_flag" ||
29409 test ! -s conftest.err
29410 } && test -s conftest.$ac_objext; then
29411 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
29413 echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29416 cat >conftest.$ac_ext <<_ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29422 #include <sys/types.h>
29423 #include <sys/stat.h>
29428 static struct stat ac_aggr;
29429 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
29435 rm -f conftest.$ac_objext
29436 if { (ac_try="$ac_compile"
29437 case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_compile") 2>conftest.er1
29444 grep -v '^ *+' conftest.er1 >conftest.err
29446 cat conftest.err >&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); } && {
29449 test -z "$ac_c_werror_flag" ||
29450 test ! -s conftest.err
29451 } && test -s conftest.$ac_objext; then
29452 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
29454 echo "$as_me: failed program was:" >&5
29455 sed 's/^/| /' conftest.$ac_ext >&5
29457 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
29460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
29466 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
29467 if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
29469 cat >>confdefs.h <<_ACEOF
29470 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
29475 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
29476 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
29477 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
29478 echo $ECHO_N "(cached) $ECHO_C" >&6
29480 cat >conftest.$ac_ext <<_ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29486 #include <sys/types.h>
29487 #include <sys/stat.h>
29492 static struct stat ac_aggr;
29493 if (ac_aggr.st_birthtimensec)
29499 rm -f conftest.$ac_objext
29500 if { (ac_try="$ac_compile"
29501 case "(($ac_try" in
29502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503 *) ac_try_echo=$ac_try;;
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506 (eval "$ac_compile") 2>conftest.er1
29508 grep -v '^ *+' conftest.er1 >conftest.err
29510 cat conftest.err >&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); } && {
29513 test -z "$ac_c_werror_flag" ||
29514 test ! -s conftest.err
29515 } && test -s conftest.$ac_objext; then
29516 ac_cv_member_struct_stat_st_birthtimensec=yes
29518 echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29521 cat >conftest.$ac_ext <<_ACEOF
29524 cat confdefs.h >>conftest.$ac_ext
29525 cat >>conftest.$ac_ext <<_ACEOF
29526 /* end confdefs.h. */
29527 #include <sys/types.h>
29528 #include <sys/stat.h>
29533 static struct stat ac_aggr;
29534 if (sizeof ac_aggr.st_birthtimensec)
29540 rm -f conftest.$ac_objext
29541 if { (ac_try="$ac_compile"
29542 case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547 (eval "$ac_compile") 2>conftest.er1
29549 grep -v '^ *+' conftest.er1 >conftest.err
29551 cat conftest.err >&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } && {
29554 test -z "$ac_c_werror_flag" ||
29555 test ! -s conftest.err
29556 } && test -s conftest.$ac_objext; then
29557 ac_cv_member_struct_stat_st_birthtimensec=yes
29559 echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29562 ac_cv_member_struct_stat_st_birthtimensec=no
29565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
29571 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
29572 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
29574 cat >>confdefs.h <<_ACEOF
29575 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
29580 { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
29581 echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
29582 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 cat >conftest.$ac_ext <<_ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29591 #include <sys/types.h>
29592 #include <sys/stat.h>
29597 static struct stat ac_aggr;
29598 if (ac_aggr.st_birthtim.tv_nsec)
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_compile") 2>conftest.er1
29613 grep -v '^ *+' conftest.er1 >conftest.err
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } && {
29618 test -z "$ac_c_werror_flag" ||
29619 test ! -s conftest.err
29620 } && test -s conftest.$ac_objext; then
29621 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
29623 echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29626 cat >conftest.$ac_ext <<_ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29632 #include <sys/types.h>
29633 #include <sys/stat.h>
29638 static struct stat ac_aggr;
29639 if (sizeof ac_aggr.st_birthtim.tv_nsec)
29645 rm -f conftest.$ac_objext
29646 if { (ac_try="$ac_compile"
29647 case "(($ac_try" in
29648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649 *) ac_try_echo=$ac_try;;
29651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652 (eval "$ac_compile") 2>conftest.er1
29654 grep -v '^ *+' conftest.er1 >conftest.err
29656 cat conftest.err >&5
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); } && {
29659 test -z "$ac_c_werror_flag" ||
29660 test ! -s conftest.err
29661 } && test -s conftest.$ac_objext; then
29662 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
29664 echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29667 ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
29670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29675 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
29676 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
29677 if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
29679 cat >>confdefs.h <<_ACEOF
29680 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
29693 NEXT_STDARG_H='<stdarg.h>';
29694 { echo "$as_me:$LINENO: checking for va_copy" >&5
29695 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
29696 if test "${gl_cv_func_va_copy+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29700 cat >conftest.$ac_ext <<_ACEOF
29703 cat confdefs.h >>conftest.$ac_ext
29704 cat >>conftest.$ac_ext <<_ACEOF
29705 /* end confdefs.h. */
29706 #include <stdarg.h>
29712 void (*func) (va_list, va_list) = va_copy;
29719 rm -f conftest.$ac_objext
29720 if { (ac_try="$ac_compile"
29721 case "(($ac_try" in
29722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723 *) ac_try_echo=$ac_try;;
29725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726 (eval "$ac_compile") 2>conftest.er1
29728 grep -v '^ *+' conftest.er1 >conftest.err
29730 cat conftest.err >&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); } && {
29733 test -z "$ac_c_werror_flag" ||
29734 test ! -s conftest.err
29735 } && test -s conftest.$ac_objext; then
29736 gl_cv_func_va_copy=yes
29738 echo "$as_me: failed program was:" >&5
29739 sed 's/^/| /' conftest.$ac_ext >&5
29741 gl_cv_func_va_copy=no
29744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29747 { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
29748 echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
29749 if test $gl_cv_func_va_copy = no; then
29750 cat >conftest.$ac_ext <<_ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h. */
29756 #if defined _AIX && !defined __GNUC__
29761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29762 $EGREP "vaccine" >/dev/null 2>&1; then
29769 if test $gl_aixcc = yes; then
29781 if test $gl_cv_have_include_next = yes; then
29782 gl_cv_next_stdarg_h='<'stdarg.h'>'
29784 { echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
29785 echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6; }
29786 if test "${gl_cv_next_stdarg_h+set}" = set; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29790 if test $ac_cv_header_stdarg_h = yes; then
29791 cat >conftest.$ac_ext <<_ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h. */
29797 #include <stdarg.h>
29800 gl_cv_next_stdarg_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29801 sed -n '\#/stdarg.h#{
29802 s#.*"\(.*/stdarg.h\)".*#\1#
29808 gl_cv_next_stdarg_h='<'stdarg.h'>'
29812 { echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
29813 echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6; }
29815 NEXT_STDARG_H=$gl_cv_next_stdarg_h
29819 if test "$gl_cv_next_stdarg_h" = '""'; then
29820 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
29821 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
29824 if test "${gl_cv_func___va_copy+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29834 #include <stdarg.h>
29847 rm -f conftest.$ac_objext
29848 if { (ac_try="$ac_compile"
29849 case "(($ac_try" in
29850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_compile") 2>conftest.er1
29856 grep -v '^ *+' conftest.er1 >conftest.err
29858 cat conftest.err >&5
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); } && {
29861 test -z "$ac_c_werror_flag" ||
29862 test ! -s conftest.err
29863 } && test -s conftest.$ac_objext; then
29864 gl_cv_func___va_copy=yes
29866 echo "$as_me: failed program was:" >&5
29867 sed 's/^/| /' conftest.$ac_ext >&5
29869 gl_cv_func___va_copy=no
29872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29875 if test $gl_cv_func___va_copy = yes; then
29877 cat >>confdefs.h <<\_ACEOF
29878 #define va_copy __va_copy
29885 cat >>confdefs.h <<\_ACEOF
29886 #define va_copy gl_va_copy
29896 # Define two additional variables used in the Makefile substitution.
29898 if test "$ac_cv_header_stdbool_h" = yes; then
29901 STDBOOL_H='stdbool.h'
29905 if test "$ac_cv_type__Bool" = yes; then
29915 if test $ac_cv_type_long_long_int = yes; then
29916 HAVE_LONG_LONG_INT=1
29918 HAVE_LONG_LONG_INT=0
29922 if test $ac_cv_type_unsigned_long_long_int = yes; then
29923 HAVE_UNSIGNED_LONG_LONG_INT=1
29925 HAVE_UNSIGNED_LONG_LONG_INT=0
29929 if test $ac_cv_header_inttypes_h = yes; then
29936 if test $ac_cv_header_sys_types_h = yes; then
29953 if test $gl_cv_have_include_next = yes; then
29954 gl_cv_next_stdint_h='<'stdint.h'>'
29956 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
29957 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
29958 if test "${gl_cv_next_stdint_h+set}" = set; then
29959 echo $ECHO_N "(cached) $ECHO_C" >&6
29962 if test $ac_cv_header_stdint_h = yes; then
29963 cat >conftest.$ac_ext <<_ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29969 #include <stdint.h>
29972 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29973 sed -n '\#/stdint.h#{
29974 s#.*"\(.*/stdint.h\)".*#\1#
29980 gl_cv_next_stdint_h='<'stdint.h'>'
29984 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
29985 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
29987 NEXT_STDINT_H=$gl_cv_next_stdint_h
29991 if test $ac_cv_header_stdint_h = yes; then
29998 if test $ac_cv_header_stdint_h = yes; then
29999 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
30000 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
30001 if test "${gl_cv_header_working_stdint_h+set}" = set; then
30002 echo $ECHO_N "(cached) $ECHO_C" >&6
30004 gl_cv_header_working_stdint_h=no
30005 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30013 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
30014 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
30015 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
30016 #include <stdint.h>
30017 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
30018 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
30019 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
30023 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30024 included before <wchar.h>. */
30025 #include <stddef.h>
30026 #include <signal.h>
30028 # include <stdio.h>
30030 # include <wchar.h>
30035 int8_t a1 = INT8_MAX;
30036 int8_t a1min = INT8_MIN;
30039 int16_t a2 = INT16_MAX;
30040 int16_t a2min = INT16_MIN;
30043 int32_t a3 = INT32_MAX;
30044 int32_t a3min = INT32_MIN;
30047 int64_t a4 = INT64_MAX;
30048 int64_t a4min = INT64_MIN;
30051 uint8_t b1 = UINT8_MAX;
30053 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
30056 uint16_t b2 = UINT16_MAX;
30059 uint32_t b3 = UINT32_MAX;
30062 uint64_t b4 = UINT64_MAX;
30064 int_least8_t c1 = INT8_C (0x7f);
30065 int_least8_t c1max = INT_LEAST8_MAX;
30066 int_least8_t c1min = INT_LEAST8_MIN;
30067 int_least16_t c2 = INT16_C (0x7fff);
30068 int_least16_t c2max = INT_LEAST16_MAX;
30069 int_least16_t c2min = INT_LEAST16_MIN;
30070 int_least32_t c3 = INT32_C (0x7fffffff);
30071 int_least32_t c3max = INT_LEAST32_MAX;
30072 int_least32_t c3min = INT_LEAST32_MIN;
30073 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
30074 int_least64_t c4max = INT_LEAST64_MAX;
30075 int_least64_t c4min = INT_LEAST64_MIN;
30076 uint_least8_t d1 = UINT8_C (0xff);
30077 uint_least8_t d1max = UINT_LEAST8_MAX;
30078 uint_least16_t d2 = UINT16_C (0xffff);
30079 uint_least16_t d2max = UINT_LEAST16_MAX;
30080 uint_least32_t d3 = UINT32_C (0xffffffff);
30081 uint_least32_t d3max = UINT_LEAST32_MAX;
30082 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
30083 uint_least64_t d4max = UINT_LEAST64_MAX;
30084 int_fast8_t e1 = INT_FAST8_MAX;
30085 int_fast8_t e1min = INT_FAST8_MIN;
30086 int_fast16_t e2 = INT_FAST16_MAX;
30087 int_fast16_t e2min = INT_FAST16_MIN;
30088 int_fast32_t e3 = INT_FAST32_MAX;
30089 int_fast32_t e3min = INT_FAST32_MIN;
30090 int_fast64_t e4 = INT_FAST64_MAX;
30091 int_fast64_t e4min = INT_FAST64_MIN;
30092 uint_fast8_t f1 = UINT_FAST8_MAX;
30093 uint_fast16_t f2 = UINT_FAST16_MAX;
30094 uint_fast32_t f3 = UINT_FAST32_MAX;
30095 uint_fast64_t f4 = UINT_FAST64_MAX;
30097 intptr_t g = INTPTR_MAX;
30098 intptr_t gmin = INTPTR_MIN;
30101 uintptr_t h = UINTPTR_MAX;
30103 intmax_t i = INTMAX_MAX;
30104 uintmax_t j = UINTMAX_MAX;
30106 #include <limits.h> /* for CHAR_BIT */
30107 #define TYPE_MINIMUM(t) \
30108 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
30109 #define TYPE_MAXIMUM(t) \
30110 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
30113 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
30114 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
30116 /* Detect bug in FreeBSD 6.0 / ia64. */
30117 int check_SIG_ATOMIC:
30118 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
30119 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
30121 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
30123 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
30124 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
30126 /* Detect bug in mingw. */
30128 WINT_MIN == TYPE_MINIMUM (wint_t)
30129 && WINT_MAX == TYPE_MAXIMUM (wint_t)
30132 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
30134 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
30135 int check_UINT16_C:
30136 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
30138 /* Detect bugs in OpenBSD 3.9 stdint.h. */
30140 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
30143 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
30146 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
30149 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
30151 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
30152 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
30153 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
30154 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
30155 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
30156 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
30157 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
30158 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
30159 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
30160 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
30161 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
30174 case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_compile") 2>conftest.er1
30181 grep -v '^ *+' conftest.er1 >conftest.err
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } && {
30186 test -z "$ac_c_werror_flag" ||
30187 test ! -s conftest.err
30188 } && test -s conftest.$ac_objext; then
30189 gl_cv_header_working_stdint_h=yes
30191 echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30199 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
30200 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
30202 if test "$gl_cv_header_working_stdint_h" = yes; then
30207 for ac_header in sys/inttypes.h sys/bitypes.h
30209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30214 echo $ECHO_N "(cached) $ECHO_C" >&6
30216 ac_res=`eval echo '${'$as_ac_Header'}'`
30217 { echo "$as_me:$LINENO: result: $ac_res" >&5
30218 echo "${ECHO_T}$ac_res" >&6; }
30220 # Is the header compilable?
30221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30223 cat >conftest.$ac_ext <<_ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h. */
30229 $ac_includes_default
30230 #include <$ac_header>
30232 rm -f conftest.$ac_objext
30233 if { (ac_try="$ac_compile"
30234 case "(($ac_try" in
30235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30236 *) ac_try_echo=$ac_try;;
30238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30239 (eval "$ac_compile") 2>conftest.er1
30241 grep -v '^ *+' conftest.er1 >conftest.err
30243 cat conftest.err >&5
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); } && {
30246 test -z "$ac_c_werror_flag" ||
30247 test ! -s conftest.err
30248 } && test -s conftest.$ac_objext; then
30249 ac_header_compiler=yes
30251 echo "$as_me: failed program was:" >&5
30252 sed 's/^/| /' conftest.$ac_ext >&5
30254 ac_header_compiler=no
30257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30259 echo "${ECHO_T}$ac_header_compiler" >&6; }
30261 # Is the header present?
30262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30264 cat >conftest.$ac_ext <<_ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h. */
30270 #include <$ac_header>
30272 if { (ac_try="$ac_cpp conftest.$ac_ext"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30280 grep -v '^ *+' conftest.er1 >conftest.err
30282 cat conftest.err >&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } >/dev/null && {
30285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30286 test ! -s conftest.err
30288 ac_header_preproc=yes
30290 echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30293 ac_header_preproc=no
30296 rm -f conftest.err conftest.$ac_ext
30297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30298 echo "${ECHO_T}$ac_header_preproc" >&6; }
30300 # So? What about this header?
30301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30307 ac_header_preproc=yes
30310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30323 ## ------------------------------ ##
30324 ## Report this to bug-tar@gnu.org ##
30325 ## ------------------------------ ##
30327 ) | sed "s/^/$as_me: WARNING: /" >&2
30330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30335 eval "$as_ac_Header=\$ac_header_preproc"
30337 ac_res=`eval echo '${'$as_ac_Header'}'`
30338 { echo "$as_me:$LINENO: result: $ac_res" >&5
30339 echo "${ECHO_T}$ac_res" >&6; }
30342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30343 cat >>confdefs.h <<_ACEOF
30344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30351 if test $ac_cv_header_sys_inttypes_h = yes; then
30352 HAVE_SYS_INTTYPES_H=1
30354 HAVE_SYS_INTTYPES_H=0
30357 if test $ac_cv_header_sys_bitypes_h = yes; then
30358 HAVE_SYS_BITYPES_H=1
30360 HAVE_SYS_BITYPES_H=0
30379 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
30380 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30381 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
30382 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30383 echo $ECHO_N "(cached) $ECHO_C" >&6
30385 if test "$cross_compiling" = yes; then
30386 # Depending upon the size, compute the lo and hi bounds.
30387 cat >conftest.$ac_ext <<_ACEOF
30390 cat confdefs.h >>conftest.$ac_ext
30391 cat >>conftest.$ac_ext <<_ACEOF
30392 /* end confdefs.h. */
30394 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30395 included before <wchar.h>. */
30396 #include <stddef.h>
30397 #include <signal.h>
30399 # include <stdio.h>
30401 # include <wchar.h>
30404 #include <limits.h>
30408 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30415 rm -f conftest.$ac_objext
30416 if { (ac_try="$ac_compile"
30417 case "(($ac_try" in
30418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419 *) ac_try_echo=$ac_try;;
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422 (eval "$ac_compile") 2>conftest.er1
30424 grep -v '^ *+' conftest.er1 >conftest.err
30426 cat conftest.err >&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); } && {
30429 test -z "$ac_c_werror_flag" ||
30430 test ! -s conftest.err
30431 } && test -s conftest.$ac_objext; then
30434 cat >conftest.$ac_ext <<_ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30441 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30442 included before <wchar.h>. */
30443 #include <stddef.h>
30444 #include <signal.h>
30446 # include <stdio.h>
30448 # include <wchar.h>
30451 #include <limits.h>
30455 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30462 rm -f conftest.$ac_objext
30463 if { (ac_try="$ac_compile"
30464 case "(($ac_try" in
30465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466 *) ac_try_echo=$ac_try;;
30468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469 (eval "$ac_compile") 2>conftest.er1
30471 grep -v '^ *+' conftest.er1 >conftest.err
30473 cat conftest.err >&5
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } && {
30476 test -z "$ac_c_werror_flag" ||
30477 test ! -s conftest.err
30478 } && test -s conftest.$ac_objext; then
30479 ac_hi=$ac_mid; break
30481 echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30484 ac_lo=`expr $ac_mid + 1`
30485 if test $ac_lo -le $ac_mid; then
30489 ac_mid=`expr 2 '*' $ac_mid + 1`
30492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30495 echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30498 cat >conftest.$ac_ext <<_ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h. */
30505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30506 included before <wchar.h>. */
30507 #include <stddef.h>
30508 #include <signal.h>
30510 # include <stdio.h>
30512 # include <wchar.h>
30515 #include <limits.h>
30519 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30526 rm -f conftest.$ac_objext
30527 if { (ac_try="$ac_compile"
30528 case "(($ac_try" in
30529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530 *) ac_try_echo=$ac_try;;
30532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30533 (eval "$ac_compile") 2>conftest.er1
30535 grep -v '^ *+' conftest.er1 >conftest.err
30537 cat conftest.err >&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); } && {
30540 test -z "$ac_c_werror_flag" ||
30541 test ! -s conftest.err
30542 } && test -s conftest.$ac_objext; then
30545 cat >conftest.$ac_ext <<_ACEOF
30548 cat confdefs.h >>conftest.$ac_ext
30549 cat >>conftest.$ac_ext <<_ACEOF
30550 /* end confdefs.h. */
30552 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30553 included before <wchar.h>. */
30554 #include <stddef.h>
30555 #include <signal.h>
30557 # include <stdio.h>
30559 # include <wchar.h>
30562 #include <limits.h>
30566 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30573 rm -f conftest.$ac_objext
30574 if { (ac_try="$ac_compile"
30575 case "(($ac_try" in
30576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577 *) ac_try_echo=$ac_try;;
30579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580 (eval "$ac_compile") 2>conftest.er1
30582 grep -v '^ *+' conftest.er1 >conftest.err
30584 cat conftest.err >&5
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); } && {
30587 test -z "$ac_c_werror_flag" ||
30588 test ! -s conftest.err
30589 } && test -s conftest.$ac_objext; then
30590 ac_lo=$ac_mid; break
30592 echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30595 ac_hi=`expr '(' $ac_mid ')' - 1`
30596 if test $ac_mid -le $ac_hi; then
30600 ac_mid=`expr 2 '*' $ac_mid`
30603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30606 echo "$as_me: failed program was:" >&5
30607 sed 's/^/| /' conftest.$ac_ext >&5
30612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30616 # Binary search between lo and hi bounds.
30617 while test "x$ac_lo" != "x$ac_hi"; do
30618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30619 cat >conftest.$ac_ext <<_ACEOF
30622 cat confdefs.h >>conftest.$ac_ext
30623 cat >>conftest.$ac_ext <<_ACEOF
30624 /* end confdefs.h. */
30626 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30627 included before <wchar.h>. */
30628 #include <stddef.h>
30629 #include <signal.h>
30631 # include <stdio.h>
30633 # include <wchar.h>
30636 #include <limits.h>
30640 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30647 rm -f conftest.$ac_objext
30648 if { (ac_try="$ac_compile"
30649 case "(($ac_try" in
30650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651 *) ac_try_echo=$ac_try;;
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654 (eval "$ac_compile") 2>conftest.er1
30656 grep -v '^ *+' conftest.er1 >conftest.err
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } && {
30661 test -z "$ac_c_werror_flag" ||
30662 test ! -s conftest.err
30663 } && test -s conftest.$ac_objext; then
30666 echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30669 ac_lo=`expr '(' $ac_mid ')' + 1`
30672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30675 ?*) result=$ac_lo;;
30676 '') result=unknown ;;
30679 cat >conftest.$ac_ext <<_ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h. */
30686 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30687 included before <wchar.h>. */
30688 #include <stddef.h>
30689 #include <signal.h>
30691 # include <stdio.h>
30693 # include <wchar.h>
30696 #include <limits.h>
30697 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30698 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30700 #include <stdlib.h>
30705 FILE *f = fopen ("conftest.val", "w");
30708 if ((sizeof ($gltype) * CHAR_BIT) < 0)
30710 long int i = longval ();
30711 if (i != (sizeof ($gltype) * CHAR_BIT))
30713 fprintf (f, "%ld\n", i);
30717 unsigned long int i = ulongval ();
30718 if (i != (sizeof ($gltype) * CHAR_BIT))
30720 fprintf (f, "%lu\n", i);
30722 return ferror (f) || fclose (f) != 0;
30728 rm -f conftest$ac_exeext
30729 if { (ac_try="$ac_link"
30730 case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_link") 2>&5
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30739 { (case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_try") 2>&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; }; then
30748 result=`cat conftest.val`
30750 echo "$as_me: program exited with status $ac_status" >&5
30751 echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30754 ( exit $ac_status )
30757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30760 eval gl_cv_bitsizeof_${gltype}=\$result
30763 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
30764 { echo "$as_me:$LINENO: result: $ac_res" >&5
30765 echo "${ECHO_T}$ac_res" >&6; }
30766 eval result=\$gl_cv_bitsizeof_${gltype}
30767 if test $result = unknown; then
30770 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30771 cat >>confdefs.h <<_ACEOF
30772 #define BITSIZEOF_${GLTYPE} $result
30775 eval BITSIZEOF_${GLTYPE}=\$result
30784 for gltype in sig_atomic_t wchar_t wint_t ; do
30785 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
30786 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
30787 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
30788 echo $ECHO_N "(cached) $ECHO_C" >&6
30790 cat >conftest.$ac_ext <<_ACEOF
30793 cat confdefs.h >>conftest.$ac_ext
30794 cat >>conftest.$ac_ext <<_ACEOF
30795 /* end confdefs.h. */
30797 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30798 included before <wchar.h>. */
30799 #include <stddef.h>
30800 #include <signal.h>
30802 # include <stdio.h>
30804 # include <wchar.h>
30807 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
30816 rm -f conftest.$ac_objext
30817 if { (ac_try="$ac_compile"
30818 case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_compile") 2>conftest.er1
30825 grep -v '^ *+' conftest.er1 >conftest.err
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } && {
30830 test -z "$ac_c_werror_flag" ||
30831 test ! -s conftest.err
30832 } && test -s conftest.$ac_objext; then
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30842 eval gl_cv_type_${gltype}_signed=\$result
30845 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
30846 { echo "$as_me:$LINENO: result: $ac_res" >&5
30847 echo "${ECHO_T}$ac_res" >&6; }
30848 eval result=\$gl_cv_type_${gltype}_signed
30849 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30850 if test "$result" = yes; then
30851 cat >>confdefs.h <<_ACEOF
30852 #define HAVE_SIGNED_${GLTYPE} 1
30855 eval HAVE_SIGNED_${GLTYPE}=1
30857 eval HAVE_SIGNED_${GLTYPE}=0
30862 gl_cv_type_ptrdiff_t_signed=yes
30863 gl_cv_type_size_t_signed=no
30871 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
30872 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30873 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
30874 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30877 eval gl_cv_type_${gltype}_suffix=no
30878 eval result=\$gl_cv_type_${gltype}_signed
30879 if test "$result" = yes; then
30884 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30886 '') gltype1='int';;
30887 l) gltype1='long int';;
30888 ll) gltype1='long long int';;
30889 i64) gltype1='__int64';;
30890 u) gltype1='unsigned int';;
30891 ul) gltype1='unsigned long int';;
30892 ull) gltype1='unsigned long long int';;
30893 ui64)gltype1='unsigned __int64';;
30895 cat >conftest.$ac_ext <<_ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h. */
30902 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30903 included before <wchar.h>. */
30904 #include <stddef.h>
30905 #include <signal.h>
30907 # include <stdio.h>
30909 # include <wchar.h>
30912 extern $gltype foo;
30913 extern $gltype1 foo;
30922 rm -f conftest.$ac_objext
30923 if { (ac_try="$ac_compile"
30924 case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_compile") 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } && {
30936 test -z "$ac_c_werror_flag" ||
30937 test ! -s conftest.err
30938 } && test -s conftest.$ac_objext; then
30939 eval gl_cv_type_${gltype}_suffix=\$glsuf
30941 echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30948 eval result=\$gl_cv_type_${gltype}_suffix
30949 test "$result" != no && break
30952 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
30953 { echo "$as_me:$LINENO: result: $ac_res" >&5
30954 echo "${ECHO_T}$ac_res" >&6; }
30955 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30956 eval result=\$gl_cv_type_${gltype}_suffix
30957 test "$result" = no && result=
30958 eval ${GLTYPE}_SUFFIX=\$result
30959 cat >>confdefs.h <<_ACEOF
30960 #define ${GLTYPE}_SUFFIX $result
30983 if test $gl_cv_have_include_next = yes; then
30984 gl_cv_next_stdio_h='<'stdio.h'>'
30986 { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
30987 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
30988 if test "${gl_cv_next_stdio_h+set}" = set; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30992 if test $ac_cv_header_stdio_h = yes; then
30993 cat >conftest.$ac_ext <<_ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h. */
31002 gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31003 sed -n '\#/stdio.h#{
31004 s#.*"\(.*/stdio.h\)".*#\1#
31010 gl_cv_next_stdio_h='<'stdio.h'>'
31014 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
31015 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
31017 NEXT_STDIO_H=$gl_cv_next_stdio_h
31045 if test $gl_cv_have_include_next = yes; then
31046 gl_cv_next_stdlib_h='<'stdlib.h'>'
31048 { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
31049 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
31050 if test "${gl_cv_next_stdlib_h+set}" = set; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31054 if test $ac_cv_header_stdlib_h = yes; then
31055 cat >conftest.$ac_ext <<_ACEOF
31058 cat confdefs.h >>conftest.$ac_ext
31059 cat >>conftest.$ac_ext <<_ACEOF
31060 /* end confdefs.h. */
31061 #include <stdlib.h>
31064 gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31065 sed -n '\#/stdlib.h#{
31066 s#.*"\(.*/stdlib.h\)".*#\1#
31072 gl_cv_next_stdlib_h='<'stdlib.h'>'
31076 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
31077 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
31079 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
31083 { echo "$as_me:$LINENO: checking for struct random_data" >&5
31084 echo $ECHO_N "checking for struct random_data... $ECHO_C" >&6; }
31085 if test "${ac_cv_type_struct_random_data+set}" = set; then
31086 echo $ECHO_N "(cached) $ECHO_C" >&6
31088 cat >conftest.$ac_ext <<_ACEOF
31091 cat confdefs.h >>conftest.$ac_ext
31092 cat >>conftest.$ac_ext <<_ACEOF
31093 /* end confdefs.h. */
31094 #include <stdlib.h>
31096 typedef struct random_data ac__type_new_;
31100 if ((ac__type_new_ *) 0)
31102 if (sizeof (ac__type_new_))
31108 rm -f conftest.$ac_objext
31109 if { (ac_try="$ac_compile"
31110 case "(($ac_try" in
31111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112 *) ac_try_echo=$ac_try;;
31114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115 (eval "$ac_compile") 2>conftest.er1
31117 grep -v '^ *+' conftest.er1 >conftest.err
31119 cat conftest.err >&5
31120 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 ac_cv_type_struct_random_data=yes
31127 echo "$as_me: failed program was:" >&5
31128 sed 's/^/| /' conftest.$ac_ext >&5
31130 ac_cv_type_struct_random_data=no
31133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31135 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
31136 echo "${ECHO_T}$ac_cv_type_struct_random_data" >&6; }
31137 if test $ac_cv_type_struct_random_data = yes; then
31139 cat >>confdefs.h <<_ACEOF
31140 #define HAVE_STRUCT_RANDOM_DATA 1
31145 HAVE_STRUCT_RANDOM_DATA=0
31164 for ac_func in stpcpy
31166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31170 echo $ECHO_N "(cached) $ECHO_C" >&6
31172 cat >conftest.$ac_ext <<_ACEOF
31175 cat confdefs.h >>conftest.$ac_ext
31176 cat >>conftest.$ac_ext <<_ACEOF
31177 /* end confdefs.h. */
31178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31180 #define $ac_func innocuous_$ac_func
31182 /* System header to define __stub macros and hopefully few prototypes,
31183 which can conflict with char $ac_func (); below.
31184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31185 <limits.h> exists even on freestanding compilers. */
31188 # include <limits.h>
31190 # include <assert.h>
31195 /* Override any GCC internal prototype to avoid an error.
31196 Use char because int might match the return type of a GCC
31197 builtin and then its argument prototype would still apply. */
31202 /* The GNU C library defines this for functions which it implements
31203 to always fail with ENOSYS. Some functions are actually named
31204 something starting with __ and the normal name is an alias. */
31205 #if defined __stub_$ac_func || defined __stub___$ac_func
31212 return $ac_func ();
31217 rm -f conftest.$ac_objext conftest$ac_exeext
31218 if { (ac_try="$ac_link"
31219 case "(($ac_try" in
31220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221 *) ac_try_echo=$ac_try;;
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224 (eval "$ac_link") 2>conftest.er1
31226 grep -v '^ *+' conftest.er1 >conftest.err
31228 cat conftest.err >&5
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); } && {
31231 test -z "$ac_c_werror_flag" ||
31232 test ! -s conftest.err
31233 } && test -s conftest$ac_exeext &&
31234 $as_test_x conftest$ac_exeext; then
31235 eval "$as_ac_var=yes"
31237 echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31240 eval "$as_ac_var=no"
31243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31244 conftest$ac_exeext conftest.$ac_ext
31246 ac_res=`eval echo '${'$as_ac_var'}'`
31247 { echo "$as_me:$LINENO: result: $ac_res" >&5
31248 echo "${ECHO_T}$ac_res" >&6; }
31249 if test `eval echo '${'$as_ac_var'}'` = yes; then
31250 cat >>confdefs.h <<_ACEOF
31251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31256 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31262 if test $ac_cv_func_stpcpy = no; then
31285 for ac_func in strcasecmp
31287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31291 echo $ECHO_N "(cached) $ECHO_C" >&6
31293 cat >conftest.$ac_ext <<_ACEOF
31296 cat confdefs.h >>conftest.$ac_ext
31297 cat >>conftest.$ac_ext <<_ACEOF
31298 /* end confdefs.h. */
31299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31301 #define $ac_func innocuous_$ac_func
31303 /* System header to define __stub macros and hopefully few prototypes,
31304 which can conflict with char $ac_func (); below.
31305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31306 <limits.h> exists even on freestanding compilers. */
31309 # include <limits.h>
31311 # include <assert.h>
31316 /* Override any GCC internal prototype to avoid an error.
31317 Use char because int might match the return type of a GCC
31318 builtin and then its argument prototype would still apply. */
31323 /* The GNU C library defines this for functions which it implements
31324 to always fail with ENOSYS. Some functions are actually named
31325 something starting with __ and the normal name is an alias. */
31326 #if defined __stub_$ac_func || defined __stub___$ac_func
31333 return $ac_func ();
31338 rm -f conftest.$ac_objext conftest$ac_exeext
31339 if { (ac_try="$ac_link"
31340 case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_link") 2>conftest.er1
31347 grep -v '^ *+' conftest.er1 >conftest.err
31349 cat conftest.err >&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); } && {
31352 test -z "$ac_c_werror_flag" ||
31353 test ! -s conftest.err
31354 } && test -s conftest$ac_exeext &&
31355 $as_test_x conftest$ac_exeext; then
31356 eval "$as_ac_var=yes"
31358 echo "$as_me: failed program was:" >&5
31359 sed 's/^/| /' conftest.$ac_ext >&5
31361 eval "$as_ac_var=no"
31364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31365 conftest$ac_exeext conftest.$ac_ext
31367 ac_res=`eval echo '${'$as_ac_var'}'`
31368 { echo "$as_me:$LINENO: result: $ac_res" >&5
31369 echo "${ECHO_T}$ac_res" >&6; }
31370 if test `eval echo '${'$as_ac_var'}'` = yes; then
31371 cat >>confdefs.h <<_ACEOF
31372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31377 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31383 if test $ac_cv_func_strcasecmp = no; then
31401 for ac_func in strncasecmp
31403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31407 echo $ECHO_N "(cached) $ECHO_C" >&6
31409 cat >conftest.$ac_ext <<_ACEOF
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h. */
31415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31417 #define $ac_func innocuous_$ac_func
31419 /* System header to define __stub macros and hopefully few prototypes,
31420 which can conflict with char $ac_func (); below.
31421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31422 <limits.h> exists even on freestanding compilers. */
31425 # include <limits.h>
31427 # include <assert.h>
31432 /* Override any GCC internal prototype to avoid an error.
31433 Use char because int might match the return type of a GCC
31434 builtin and then its argument prototype would still apply. */
31439 /* The GNU C library defines this for functions which it implements
31440 to always fail with ENOSYS. Some functions are actually named
31441 something starting with __ and the normal name is an alias. */
31442 #if defined __stub_$ac_func || defined __stub___$ac_func
31449 return $ac_func ();
31454 rm -f conftest.$ac_objext conftest$ac_exeext
31455 if { (ac_try="$ac_link"
31456 case "(($ac_try" in
31457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31458 *) ac_try_echo=$ac_try;;
31460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461 (eval "$ac_link") 2>conftest.er1
31463 grep -v '^ *+' conftest.er1 >conftest.err
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } && {
31468 test -z "$ac_c_werror_flag" ||
31469 test ! -s conftest.err
31470 } && test -s conftest$ac_exeext &&
31471 $as_test_x conftest$ac_exeext; then
31472 eval "$as_ac_var=yes"
31474 echo "$as_me: failed program was:" >&5
31475 sed 's/^/| /' conftest.$ac_ext >&5
31477 eval "$as_ac_var=no"
31480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31481 conftest$ac_exeext conftest.$ac_ext
31483 ac_res=`eval echo '${'$as_ac_var'}'`
31484 { echo "$as_me:$LINENO: result: $ac_res" >&5
31485 echo "${ECHO_T}$ac_res" >&6; }
31486 if test `eval echo '${'$as_ac_var'}'` = yes; then
31487 cat >>confdefs.h <<_ACEOF
31488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31493 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31499 if test $ac_cv_func_strncasecmp = no; then
31504 { echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
31505 echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6; }
31506 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
31507 echo $ECHO_N "(cached) $ECHO_C" >&6
31509 cat >conftest.$ac_ext <<_ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h. */
31515 $ac_includes_default
31519 #ifndef strncasecmp
31520 (void) strncasecmp;
31527 rm -f conftest.$ac_objext
31528 if { (ac_try="$ac_compile"
31529 case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_compile") 2>conftest.er1
31536 grep -v '^ *+' conftest.er1 >conftest.err
31538 cat conftest.err >&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); } && {
31541 test -z "$ac_c_werror_flag" ||
31542 test ! -s conftest.err
31543 } && test -s conftest.$ac_objext; then
31544 ac_cv_have_decl_strncasecmp=yes
31546 echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31549 ac_cv_have_decl_strncasecmp=no
31552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
31555 echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6; }
31556 if test $ac_cv_have_decl_strncasecmp = yes; then
31558 cat >>confdefs.h <<_ACEOF
31559 #define HAVE_DECL_STRNCASECMP 1
31564 cat >>confdefs.h <<_ACEOF
31565 #define HAVE_DECL_STRNCASECMP 0
31572 if test $ac_cv_have_decl_strncasecmp = no; then
31573 HAVE_DECL_STRNCASECMP=0
31590 for ac_func in strchrnul
31592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31598 cat >conftest.$ac_ext <<_ACEOF
31601 cat confdefs.h >>conftest.$ac_ext
31602 cat >>conftest.$ac_ext <<_ACEOF
31603 /* end confdefs.h. */
31604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31606 #define $ac_func innocuous_$ac_func
31608 /* System header to define __stub macros and hopefully few prototypes,
31609 which can conflict with char $ac_func (); below.
31610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31611 <limits.h> exists even on freestanding compilers. */
31614 # include <limits.h>
31616 # include <assert.h>
31621 /* Override any GCC internal prototype to avoid an error.
31622 Use char because int might match the return type of a GCC
31623 builtin and then its argument prototype would still apply. */
31628 /* The GNU C library defines this for functions which it implements
31629 to always fail with ENOSYS. Some functions are actually named
31630 something starting with __ and the normal name is an alias. */
31631 #if defined __stub_$ac_func || defined __stub___$ac_func
31638 return $ac_func ();
31643 rm -f conftest.$ac_objext conftest$ac_exeext
31644 if { (ac_try="$ac_link"
31645 case "(($ac_try" in
31646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31647 *) ac_try_echo=$ac_try;;
31649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650 (eval "$ac_link") 2>conftest.er1
31652 grep -v '^ *+' conftest.er1 >conftest.err
31654 cat conftest.err >&5
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); } && {
31657 test -z "$ac_c_werror_flag" ||
31658 test ! -s conftest.err
31659 } && test -s conftest$ac_exeext &&
31660 $as_test_x conftest$ac_exeext; then
31661 eval "$as_ac_var=yes"
31663 echo "$as_me: failed program was:" >&5
31664 sed 's/^/| /' conftest.$ac_ext >&5
31666 eval "$as_ac_var=no"
31669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31670 conftest$ac_exeext conftest.$ac_ext
31672 ac_res=`eval echo '${'$as_ac_var'}'`
31673 { echo "$as_me:$LINENO: result: $ac_res" >&5
31674 echo "${ECHO_T}$ac_res" >&6; }
31675 if test `eval echo '${'$as_ac_var'}'` = yes; then
31676 cat >>confdefs.h <<_ACEOF
31677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31682 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31688 if test $ac_cv_func_strchrnul = no; then
31708 for ac_func in strdup
31710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31714 echo $ECHO_N "(cached) $ECHO_C" >&6
31716 cat >conftest.$ac_ext <<_ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h. */
31722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31724 #define $ac_func innocuous_$ac_func
31726 /* System header to define __stub macros and hopefully few prototypes,
31727 which can conflict with char $ac_func (); below.
31728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31729 <limits.h> exists even on freestanding compilers. */
31732 # include <limits.h>
31734 # include <assert.h>
31739 /* Override any GCC internal prototype to avoid an error.
31740 Use char because int might match the return type of a GCC
31741 builtin and then its argument prototype would still apply. */
31746 /* The GNU C library defines this for functions which it implements
31747 to always fail with ENOSYS. Some functions are actually named
31748 something starting with __ and the normal name is an alias. */
31749 #if defined __stub_$ac_func || defined __stub___$ac_func
31756 return $ac_func ();
31761 rm -f conftest.$ac_objext conftest$ac_exeext
31762 if { (ac_try="$ac_link"
31763 case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_link") 2>conftest.er1
31770 grep -v '^ *+' conftest.er1 >conftest.err
31772 cat conftest.err >&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); } && {
31775 test -z "$ac_c_werror_flag" ||
31776 test ! -s conftest.err
31777 } && test -s conftest$ac_exeext &&
31778 $as_test_x conftest$ac_exeext; then
31779 eval "$as_ac_var=yes"
31781 echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31784 eval "$as_ac_var=no"
31787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31788 conftest$ac_exeext conftest.$ac_ext
31790 ac_res=`eval echo '${'$as_ac_var'}'`
31791 { echo "$as_me:$LINENO: result: $ac_res" >&5
31792 echo "${ECHO_T}$ac_res" >&6; }
31793 if test `eval echo '${'$as_ac_var'}'` = yes; then
31794 cat >>confdefs.h <<_ACEOF
31795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31800 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31810 if test $ac_cv_have_decl_strdup = no; then
31821 if test $REPLACE_STRERROR = 1; then
31830 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
31833 cat >>confdefs.h <<_ACEOF
31834 #define REPLACE_STRERROR $REPLACE_STRERROR
31857 if test $ac_cv_have_decl_strndup = no; then
31858 HAVE_DECL_STRNDUP=0
31861 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
31862 { echo "$as_me:$LINENO: checking for working strndup" >&5
31863 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
31864 if test "${gl_cv_func_strndup+set}" = set; then
31865 echo $ECHO_N "(cached) $ECHO_C" >&6
31867 if test "$cross_compiling" = yes; then
31868 { echo "$as_me:$LINENO: checking for strndup" >&5
31869 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
31870 if test "${ac_cv_func_strndup+set}" = set; then
31871 echo $ECHO_N "(cached) $ECHO_C" >&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 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
31880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31881 #define strndup innocuous_strndup
31883 /* System header to define __stub macros and hopefully few prototypes,
31884 which can conflict with char strndup (); below.
31885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31886 <limits.h> exists even on freestanding compilers. */
31889 # include <limits.h>
31891 # include <assert.h>
31896 /* Override any GCC internal prototype to avoid an error.
31897 Use char because int might match the return type of a GCC
31898 builtin and then its argument prototype would still apply. */
31903 /* The GNU C library defines this for functions which it implements
31904 to always fail with ENOSYS. Some functions are actually named
31905 something starting with __ and the normal name is an alias. */
31906 #if defined __stub_strndup || defined __stub___strndup
31918 rm -f conftest.$ac_objext conftest$ac_exeext
31919 if { (ac_try="$ac_link"
31920 case "(($ac_try" in
31921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922 *) ac_try_echo=$ac_try;;
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925 (eval "$ac_link") 2>conftest.er1
31927 grep -v '^ *+' conftest.er1 >conftest.err
31929 cat conftest.err >&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } && {
31932 test -z "$ac_c_werror_flag" ||
31933 test ! -s conftest.err
31934 } && test -s conftest$ac_exeext &&
31935 $as_test_x conftest$ac_exeext; then
31936 ac_cv_func_strndup=yes
31938 echo "$as_me: failed program was:" >&5
31939 sed 's/^/| /' conftest.$ac_ext >&5
31941 ac_cv_func_strndup=no
31944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31945 conftest$ac_exeext conftest.$ac_ext
31947 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
31948 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
31949 if test $ac_cv_func_strndup = yes; then
31950 cat >conftest.$ac_ext <<_ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h. */
31962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31963 $EGREP "too risky" >/dev/null 2>&1; then
31964 gl_cv_func_strndup=no
31966 gl_cv_func_strndup=yes
31971 gl_cv_func_strndup=no
31975 cat >conftest.$ac_ext <<_ACEOF
31979 cat confdefs.h >>conftest.$ac_ext
31980 cat >>conftest.$ac_ext <<_ACEOF
31981 /* end confdefs.h. */
31982 #include <string.h>
31983 #include <stdlib.h>
31988 #ifndef HAVE_DECL_STRNDUP
31989 extern char *strndup (const char *, size_t);
31992 s = strndup ("some longer string", 15);
31994 s = strndup ("shorter string", 13);
31995 return s[13] != '\0';
32000 rm -f conftest$ac_exeext
32001 if { (ac_try="$ac_link"
32002 case "(($ac_try" in
32003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32004 *) ac_try_echo=$ac_try;;
32006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32007 (eval "$ac_link") 2>&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32011 { (case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_try") 2>&5
32018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019 (exit $ac_status); }; }; then
32020 gl_cv_func_strndup=yes
32022 echo "$as_me: program exited with status $ac_status" >&5
32023 echo "$as_me: failed program was:" >&5
32024 sed 's/^/| /' conftest.$ac_ext >&5
32026 ( exit $ac_status )
32027 gl_cv_func_strndup=no
32029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32034 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
32035 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
32036 if test $gl_cv_func_strndup = yes; then
32038 cat >>confdefs.h <<\_ACEOF
32039 #define HAVE_STRNDUP 1
32052 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
32069 if test $ac_cv_have_decl_strnlen = no; then
32070 HAVE_DECL_STRNLEN=0
32073 { echo "$as_me:$LINENO: checking for working strnlen" >&5
32074 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
32075 if test "${ac_cv_func_strnlen_working+set}" = set; then
32076 echo $ECHO_N "(cached) $ECHO_C" >&6
32078 if test "$cross_compiling" = yes; then
32079 ac_cv_func_strnlen_working=no
32081 cat >conftest.$ac_ext <<_ACEOF
32084 cat confdefs.h >>conftest.$ac_ext
32085 cat >>conftest.$ac_ext <<_ACEOF
32086 /* end confdefs.h. */
32087 $ac_includes_default
32093 #define S_LEN (sizeof S - 1)
32095 /* At least one implementation is buggy: that of AIX 4.3 would
32096 give strnlen (S, 1) == 3. */
32099 for (i = 0; i < S_LEN + 1; ++i)
32101 int expected = i <= S_LEN ? i : S_LEN;
32102 if (strnlen (S, i) != expected)
32111 rm -f conftest$ac_exeext
32112 if { (ac_try="$ac_link"
32113 case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_link") 2>&5
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32122 { (case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_try") 2>&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; }; then
32131 ac_cv_func_strnlen_working=yes
32133 echo "$as_me: program exited with status $ac_status" >&5
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32137 ( exit $ac_status )
32138 ac_cv_func_strnlen_working=no
32140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32145 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
32146 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
32147 test $ac_cv_func_strnlen_working = no &&
32155 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
32158 if test $ac_cv_func_strnlen_working = no; then
32159 # This is necessary because automake-1.6.1 doesn't understand
32160 # that the above use of AC_FUNC_STRNLEN means we may have to use
32162 #AC_LIBOBJ(strnlen)
32164 cat >>confdefs.h <<\_ACEOF
32165 #define strnlen rpl_strnlen
32179 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
32180 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
32181 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
32182 echo $ECHO_N "(cached) $ECHO_C" >&6
32184 cat >conftest.$ac_ext <<_ACEOF
32187 cat confdefs.h >>conftest.$ac_ext
32188 cat >>conftest.$ac_ext <<_ACEOF
32189 /* end confdefs.h. */
32190 #include <inttypes.h>
32192 inttypes_h_defines_strtoimax
32195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32196 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
32197 gl_cv_func_strtoimax_macro=yes
32199 gl_cv_func_strtoimax_macro=no
32204 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
32205 echo "${ECHO_T}$gl_cv_func_strtoimax_macro" >&6; }
32207 if test "$gl_cv_func_strtoimax_macro" != yes; then
32217 for ac_func in strtoimax
32219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32223 echo $ECHO_N "(cached) $ECHO_C" >&6
32225 cat >conftest.$ac_ext <<_ACEOF
32228 cat confdefs.h >>conftest.$ac_ext
32229 cat >>conftest.$ac_ext <<_ACEOF
32230 /* end confdefs.h. */
32231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32233 #define $ac_func innocuous_$ac_func
32235 /* System header to define __stub macros and hopefully few prototypes,
32236 which can conflict with char $ac_func (); below.
32237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32238 <limits.h> exists even on freestanding compilers. */
32241 # include <limits.h>
32243 # include <assert.h>
32248 /* Override any GCC internal prototype to avoid an error.
32249 Use char because int might match the return type of a GCC
32250 builtin and then its argument prototype would still apply. */
32255 /* The GNU C library defines this for functions which it implements
32256 to always fail with ENOSYS. Some functions are actually named
32257 something starting with __ and the normal name is an alias. */
32258 #if defined __stub_$ac_func || defined __stub___$ac_func
32265 return $ac_func ();
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (ac_try="$ac_link"
32272 case "(($ac_try" in
32273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277 (eval "$ac_link") 2>conftest.er1
32279 grep -v '^ *+' conftest.er1 >conftest.err
32281 cat conftest.err >&5
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } && {
32284 test -z "$ac_c_werror_flag" ||
32285 test ! -s conftest.err
32286 } && test -s conftest$ac_exeext &&
32287 $as_test_x conftest$ac_exeext; then
32288 eval "$as_ac_var=yes"
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 eval "$as_ac_var=no"
32296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32297 conftest$ac_exeext conftest.$ac_ext
32299 ac_res=`eval echo '${'$as_ac_var'}'`
32300 { echo "$as_me:$LINENO: result: $ac_res" >&5
32301 echo "${ECHO_T}$ac_res" >&6; }
32302 if test `eval echo '${'$as_ac_var'}'` = yes; then
32303 cat >>confdefs.h <<_ACEOF
32304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32309 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32315 if test $ac_cv_func_strtoimax = no; then
32317 { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
32318 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
32319 if test "${ac_cv_have_decl_strtoll+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32322 cat >conftest.$ac_ext <<_ACEOF
32325 cat confdefs.h >>conftest.$ac_ext
32326 cat >>conftest.$ac_ext <<_ACEOF
32327 /* end confdefs.h. */
32328 $ac_includes_default
32340 rm -f conftest.$ac_objext
32341 if { (ac_try="$ac_compile"
32342 case "(($ac_try" in
32343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32344 *) ac_try_echo=$ac_try;;
32346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32347 (eval "$ac_compile") 2>conftest.er1
32349 grep -v '^ *+' conftest.er1 >conftest.err
32351 cat conftest.err >&5
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); } && {
32354 test -z "$ac_c_werror_flag" ||
32355 test ! -s conftest.err
32356 } && test -s conftest.$ac_objext; then
32357 ac_cv_have_decl_strtoll=yes
32359 echo "$as_me: failed program was:" >&5
32360 sed 's/^/| /' conftest.$ac_ext >&5
32362 ac_cv_have_decl_strtoll=no
32365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
32368 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
32369 if test $ac_cv_have_decl_strtoll = yes; then
32371 cat >>confdefs.h <<_ACEOF
32372 #define HAVE_DECL_STRTOLL 1
32377 cat >>confdefs.h <<_ACEOF
32378 #define HAVE_DECL_STRTOLL 0
32404 for ac_func in strtol
32406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32410 echo $ECHO_N "(cached) $ECHO_C" >&6
32412 cat >conftest.$ac_ext <<_ACEOF
32415 cat confdefs.h >>conftest.$ac_ext
32416 cat >>conftest.$ac_ext <<_ACEOF
32417 /* end confdefs.h. */
32418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32420 #define $ac_func innocuous_$ac_func
32422 /* System header to define __stub macros and hopefully few prototypes,
32423 which can conflict with char $ac_func (); below.
32424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32425 <limits.h> exists even on freestanding compilers. */
32428 # include <limits.h>
32430 # include <assert.h>
32435 /* Override any GCC internal prototype to avoid an error.
32436 Use char because int might match the return type of a GCC
32437 builtin and then its argument prototype would still apply. */
32442 /* The GNU C library defines this for functions which it implements
32443 to always fail with ENOSYS. Some functions are actually named
32444 something starting with __ and the normal name is an alias. */
32445 #if defined __stub_$ac_func || defined __stub___$ac_func
32452 return $ac_func ();
32457 rm -f conftest.$ac_objext conftest$ac_exeext
32458 if { (ac_try="$ac_link"
32459 case "(($ac_try" in
32460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_link") 2>conftest.er1
32466 grep -v '^ *+' conftest.er1 >conftest.err
32468 cat conftest.err >&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } && {
32471 test -z "$ac_c_werror_flag" ||
32472 test ! -s conftest.err
32473 } && test -s conftest$ac_exeext &&
32474 $as_test_x conftest$ac_exeext; then
32475 eval "$as_ac_var=yes"
32477 echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.$ac_ext >&5
32480 eval "$as_ac_var=no"
32483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32484 conftest$ac_exeext conftest.$ac_ext
32486 ac_res=`eval echo '${'$as_ac_var'}'`
32487 { echo "$as_me:$LINENO: result: $ac_res" >&5
32488 echo "${ECHO_T}$ac_res" >&6; }
32489 if test `eval echo '${'$as_ac_var'}'` = yes; then
32490 cat >>confdefs.h <<_ACEOF
32491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32496 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32506 if test "$ac_cv_type_long_long_int" = yes; then
32516 for ac_func in strtoll
32518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32522 echo $ECHO_N "(cached) $ECHO_C" >&6
32524 cat >conftest.$ac_ext <<_ACEOF
32527 cat confdefs.h >>conftest.$ac_ext
32528 cat >>conftest.$ac_ext <<_ACEOF
32529 /* end confdefs.h. */
32530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32532 #define $ac_func innocuous_$ac_func
32534 /* System header to define __stub macros and hopefully few prototypes,
32535 which can conflict with char $ac_func (); below.
32536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32537 <limits.h> exists even on freestanding compilers. */
32540 # include <limits.h>
32542 # include <assert.h>
32547 /* Override any GCC internal prototype to avoid an error.
32548 Use char because int might match the return type of a GCC
32549 builtin and then its argument prototype would still apply. */
32554 /* The GNU C library defines this for functions which it implements
32555 to always fail with ENOSYS. Some functions are actually named
32556 something starting with __ and the normal name is an alias. */
32557 #if defined __stub_$ac_func || defined __stub___$ac_func
32564 return $ac_func ();
32569 rm -f conftest.$ac_objext conftest$ac_exeext
32570 if { (ac_try="$ac_link"
32571 case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_link") 2>conftest.er1
32578 grep -v '^ *+' conftest.er1 >conftest.err
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); } && {
32583 test -z "$ac_c_werror_flag" ||
32584 test ! -s conftest.err
32585 } && test -s conftest$ac_exeext &&
32586 $as_test_x conftest$ac_exeext; then
32587 eval "$as_ac_var=yes"
32589 echo "$as_me: failed program was:" >&5
32590 sed 's/^/| /' conftest.$ac_ext >&5
32592 eval "$as_ac_var=no"
32595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32596 conftest$ac_exeext conftest.$ac_ext
32598 ac_res=`eval echo '${'$as_ac_var'}'`
32599 { echo "$as_me:$LINENO: result: $ac_res" >&5
32600 echo "${ECHO_T}$ac_res" >&6; }
32601 if test `eval echo '${'$as_ac_var'}'` = yes; then
32602 cat >>confdefs.h <<_ACEOF
32603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32608 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32614 if test $ac_cv_func_strtoll = no; then
32636 for ac_func in strtoul
32638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32642 echo $ECHO_N "(cached) $ECHO_C" >&6
32644 cat >conftest.$ac_ext <<_ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32652 #define $ac_func innocuous_$ac_func
32654 /* System header to define __stub macros and hopefully few prototypes,
32655 which can conflict with char $ac_func (); below.
32656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32657 <limits.h> exists even on freestanding compilers. */
32660 # include <limits.h>
32662 # include <assert.h>
32667 /* Override any GCC internal prototype to avoid an error.
32668 Use char because int might match the return type of a GCC
32669 builtin and then its argument prototype would still apply. */
32674 /* The GNU C library defines this for functions which it implements
32675 to always fail with ENOSYS. Some functions are actually named
32676 something starting with __ and the normal name is an alias. */
32677 #if defined __stub_$ac_func || defined __stub___$ac_func
32684 return $ac_func ();
32689 rm -f conftest.$ac_objext conftest$ac_exeext
32690 if { (ac_try="$ac_link"
32691 case "(($ac_try" in
32692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32693 *) ac_try_echo=$ac_try;;
32695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32696 (eval "$ac_link") 2>conftest.er1
32698 grep -v '^ *+' conftest.er1 >conftest.err
32700 cat conftest.err >&5
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); } && {
32703 test -z "$ac_c_werror_flag" ||
32704 test ! -s conftest.err
32705 } && test -s conftest$ac_exeext &&
32706 $as_test_x conftest$ac_exeext; then
32707 eval "$as_ac_var=yes"
32709 echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32712 eval "$as_ac_var=no"
32715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32716 conftest$ac_exeext conftest.$ac_ext
32718 ac_res=`eval echo '${'$as_ac_var'}'`
32719 { echo "$as_me:$LINENO: result: $ac_res" >&5
32720 echo "${ECHO_T}$ac_res" >&6; }
32721 if test `eval echo '${'$as_ac_var'}'` = yes; then
32722 cat >>confdefs.h <<_ACEOF
32723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32728 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32738 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
32748 for ac_func in strtoull
32750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32756 cat >conftest.$ac_ext <<_ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h. */
32762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32764 #define $ac_func innocuous_$ac_func
32766 /* System header to define __stub macros and hopefully few prototypes,
32767 which can conflict with char $ac_func (); below.
32768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32769 <limits.h> exists even on freestanding compilers. */
32772 # include <limits.h>
32774 # include <assert.h>
32779 /* Override any GCC internal prototype to avoid an error.
32780 Use char because int might match the return type of a GCC
32781 builtin and then its argument prototype would still apply. */
32786 /* The GNU C library defines this for functions which it implements
32787 to always fail with ENOSYS. Some functions are actually named
32788 something starting with __ and the normal name is an alias. */
32789 #if defined __stub_$ac_func || defined __stub___$ac_func
32796 return $ac_func ();
32801 rm -f conftest.$ac_objext conftest$ac_exeext
32802 if { (ac_try="$ac_link"
32803 case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_link") 2>conftest.er1
32810 grep -v '^ *+' conftest.er1 >conftest.err
32812 cat conftest.err >&5
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); } && {
32815 test -z "$ac_c_werror_flag" ||
32816 test ! -s conftest.err
32817 } && test -s conftest$ac_exeext &&
32818 $as_test_x conftest$ac_exeext; then
32819 eval "$as_ac_var=yes"
32821 echo "$as_me: failed program was:" >&5
32822 sed 's/^/| /' conftest.$ac_ext >&5
32824 eval "$as_ac_var=no"
32827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32828 conftest$ac_exeext conftest.$ac_ext
32830 ac_res=`eval echo '${'$as_ac_var'}'`
32831 { echo "$as_me:$LINENO: result: $ac_res" >&5
32832 echo "${ECHO_T}$ac_res" >&6; }
32833 if test `eval echo '${'$as_ac_var'}'` = yes; then
32834 cat >>confdefs.h <<_ACEOF
32835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32840 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32846 if test $ac_cv_func_strtoull = no; then
32862 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
32863 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
32864 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
32865 echo $ECHO_N "(cached) $ECHO_C" >&6
32867 cat >conftest.$ac_ext <<_ACEOF
32870 cat confdefs.h >>conftest.$ac_ext
32871 cat >>conftest.$ac_ext <<_ACEOF
32872 /* end confdefs.h. */
32873 #include <inttypes.h>
32875 inttypes_h_defines_strtoumax
32878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32879 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
32880 gl_cv_func_strtoumax_macro=yes
32882 gl_cv_func_strtoumax_macro=no
32887 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
32888 echo "${ECHO_T}$gl_cv_func_strtoumax_macro" >&6; }
32890 if test "$gl_cv_func_strtoumax_macro" != yes; then
32900 for ac_func in strtoumax
32902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32906 echo $ECHO_N "(cached) $ECHO_C" >&6
32908 cat >conftest.$ac_ext <<_ACEOF
32911 cat confdefs.h >>conftest.$ac_ext
32912 cat >>conftest.$ac_ext <<_ACEOF
32913 /* end confdefs.h. */
32914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32916 #define $ac_func innocuous_$ac_func
32918 /* System header to define __stub macros and hopefully few prototypes,
32919 which can conflict with char $ac_func (); below.
32920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32921 <limits.h> exists even on freestanding compilers. */
32924 # include <limits.h>
32926 # include <assert.h>
32931 /* Override any GCC internal prototype to avoid an error.
32932 Use char because int might match the return type of a GCC
32933 builtin and then its argument prototype would still apply. */
32938 /* The GNU C library defines this for functions which it implements
32939 to always fail with ENOSYS. Some functions are actually named
32940 something starting with __ and the normal name is an alias. */
32941 #if defined __stub_$ac_func || defined __stub___$ac_func
32948 return $ac_func ();
32953 rm -f conftest.$ac_objext conftest$ac_exeext
32954 if { (ac_try="$ac_link"
32955 case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_link") 2>conftest.er1
32962 grep -v '^ *+' conftest.er1 >conftest.err
32964 cat conftest.err >&5
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); } && {
32967 test -z "$ac_c_werror_flag" ||
32968 test ! -s conftest.err
32969 } && test -s conftest$ac_exeext &&
32970 $as_test_x conftest$ac_exeext; then
32971 eval "$as_ac_var=yes"
32973 echo "$as_me: failed program was:" >&5
32974 sed 's/^/| /' conftest.$ac_ext >&5
32976 eval "$as_ac_var=no"
32979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32980 conftest$ac_exeext conftest.$ac_ext
32982 ac_res=`eval echo '${'$as_ac_var'}'`
32983 { echo "$as_me:$LINENO: result: $ac_res" >&5
32984 echo "${ECHO_T}$ac_res" >&6; }
32985 if test `eval echo '${'$as_ac_var'}'` = yes; then
32986 cat >>confdefs.h <<_ACEOF
32987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32992 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32998 if test $ac_cv_func_strtoumax = no; then
33000 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
33001 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
33002 if test "${ac_cv_have_decl_strtoull+set}" = set; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
33005 cat >conftest.$ac_ext <<_ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h. */
33011 $ac_includes_default
33023 rm -f conftest.$ac_objext
33024 if { (ac_try="$ac_compile"
33025 case "(($ac_try" in
33026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027 *) ac_try_echo=$ac_try;;
33029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030 (eval "$ac_compile") 2>conftest.er1
33032 grep -v '^ *+' conftest.er1 >conftest.err
33034 cat conftest.err >&5
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); } && {
33037 test -z "$ac_c_werror_flag" ||
33038 test ! -s conftest.err
33039 } && test -s conftest.$ac_objext; then
33040 ac_cv_have_decl_strtoull=yes
33042 echo "$as_me: failed program was:" >&5
33043 sed 's/^/| /' conftest.$ac_ext >&5
33045 ac_cv_have_decl_strtoull=no
33048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33050 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
33051 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
33052 if test $ac_cv_have_decl_strtoull = yes; then
33054 cat >>confdefs.h <<_ACEOF
33055 #define HAVE_DECL_STRTOULL 1
33060 cat >>confdefs.h <<_ACEOF
33061 #define HAVE_DECL_STRTOULL 0
33086 if test $ac_cv_func_lstat = yes; then
33107 if test $gl_cv_have_include_next = yes; then
33108 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33110 { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
33111 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
33112 if test "${gl_cv_next_sys_stat_h+set}" = set; then
33113 echo $ECHO_N "(cached) $ECHO_C" >&6
33116 if test $ac_cv_header_sys_stat_h = yes; then
33117 cat >conftest.$ac_ext <<_ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33123 #include <sys/stat.h>
33126 gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33127 sed -n '\#/sys/stat.h#{
33128 s#.*"\(.*/sys/stat.h\)".*#\1#
33134 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33138 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
33139 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
33141 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
33145 SYS_STAT_H='sys/stat.h'
33148 { echo "$as_me:$LINENO: checking for nlink_t" >&5
33149 echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6; }
33150 if test "${ac_cv_type_nlink_t+set}" = set; then
33151 echo $ECHO_N "(cached) $ECHO_C" >&6
33153 cat >conftest.$ac_ext <<_ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h. */
33159 #include <sys/types.h>
33160 #include <sys/stat.h>
33162 typedef nlink_t ac__type_new_;
33166 if ((ac__type_new_ *) 0)
33168 if (sizeof (ac__type_new_))
33174 rm -f conftest.$ac_objext
33175 if { (ac_try="$ac_compile"
33176 case "(($ac_try" in
33177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178 *) ac_try_echo=$ac_try;;
33180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181 (eval "$ac_compile") 2>conftest.er1
33183 grep -v '^ *+' conftest.er1 >conftest.err
33185 cat conftest.err >&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } && {
33188 test -z "$ac_c_werror_flag" ||
33189 test ! -s conftest.err
33190 } && test -s conftest.$ac_objext; then
33191 ac_cv_type_nlink_t=yes
33193 echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33196 ac_cv_type_nlink_t=no
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33201 { echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
33202 echo "${ECHO_T}$ac_cv_type_nlink_t" >&6; }
33203 if test $ac_cv_type_nlink_t = yes; then
33207 cat >>confdefs.h <<\_ACEOF
33208 #define nlink_t int
33215 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
33216 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
33217 if test -z "$MKDIR_P"; then
33218 if test "${ac_cv_path_mkdir+set}" = set; then
33219 echo $ECHO_N "(cached) $ECHO_C" >&6
33221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33222 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
33225 test -z "$as_dir" && as_dir=.
33226 for ac_prog in mkdir gmkdir; do
33227 for ac_exec_ext in '' $ac_executable_extensions; do
33228 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
33229 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
33230 'mkdir (GNU coreutils) '* | \
33231 'mkdir (coreutils) '* | \
33232 'mkdir (fileutils) '4.1*)
33233 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
33243 if test "${ac_cv_path_mkdir+set}" = set; then
33244 MKDIR_P="$ac_cv_path_mkdir -p"
33246 # As a last resort, use the slow shell script. Don't cache a
33247 # value for MKDIR_P within a source directory, because that will
33248 # break other packages using the cache if that directory is
33249 # removed, or if the value is a relative name.
33250 test -d ./--version && rmdir ./--version
33251 MKDIR_P="$ac_install_sh -d"
33254 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
33255 echo "${ECHO_T}$MKDIR_P" >&6; }
33260 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
33261 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
33262 if test -z "$MKDIR_P"; then
33263 if test "${ac_cv_path_mkdir+set}" = set; then
33264 echo $ECHO_N "(cached) $ECHO_C" >&6
33266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33267 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
33270 test -z "$as_dir" && as_dir=.
33271 for ac_prog in mkdir gmkdir; do
33272 for ac_exec_ext in '' $ac_executable_extensions; do
33273 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
33274 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
33275 'mkdir (GNU coreutils) '* | \
33276 'mkdir (coreutils) '* | \
33277 'mkdir (fileutils) '4.1*)
33278 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
33288 if test "${ac_cv_path_mkdir+set}" = set; then
33289 MKDIR_P="$ac_cv_path_mkdir -p"
33291 # As a last resort, use the slow shell script. Don't cache a
33292 # value for MKDIR_P within a source directory, because that will
33293 # break other packages using the cache if that directory is
33294 # removed, or if the value is a relative name.
33295 test -d ./--version && rmdir ./--version
33296 MKDIR_P="$ac_install_sh -d"
33299 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
33300 echo "${ECHO_T}$MKDIR_P" >&6; }
33309 if test $ac_cv_header_sysexits_h = yes; then
33321 if test $gl_cv_have_include_next = yes; then
33322 gl_cv_next_sysexits_h='<'sysexits.h'>'
33324 { echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
33325 echo $ECHO_N "checking absolute name of <sysexits.h>... $ECHO_C" >&6; }
33326 if test "${gl_cv_next_sysexits_h+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33330 if test $ac_cv_header_sysexits_h = yes; then
33331 cat >conftest.$ac_ext <<_ACEOF
33334 cat confdefs.h >>conftest.$ac_ext
33335 cat >>conftest.$ac_ext <<_ACEOF
33336 /* end confdefs.h. */
33337 #include <sysexits.h>
33340 gl_cv_next_sysexits_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33341 sed -n '\#/sysexits.h#{
33342 s#.*"\(.*/sysexits.h\)".*#\1#
33348 gl_cv_next_sysexits_h='<'sysexits.h'>'
33352 { echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
33353 echo "${ECHO_T}$gl_cv_next_sysexits_h" >&6; }
33355 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
33359 cat >conftest.$ac_ext <<_ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h. */
33365 #include <sysexits.h>
33377 case EX_UNAVAILABLE:
33394 rm -f conftest.$ac_objext
33395 if { (ac_try="$ac_compile"
33396 case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_compile") 2>conftest.er1
33403 grep -v '^ *+' conftest.er1 >conftest.err
33405 cat conftest.err >&5
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } && {
33408 test -z "$ac_c_werror_flag" ||
33409 test ! -s conftest.err
33410 } && test -s conftest.$ac_objext; then
33413 echo "$as_me: failed program was:" >&5
33414 sed 's/^/| /' conftest.$ac_ext >&5
33416 SYSEXITS_H=sysexits.h
33419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33422 SYSEXITS_H=sysexits.h
33438 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
33453 { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
33454 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
33455 if test "${gl_cv_time_r_posix+set}" = set; then
33456 echo $ECHO_N "(cached) $ECHO_C" >&6
33458 cat >conftest.$ac_ext <<_ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h. */
33468 /* We don't need to append 'restrict's to the argument types,
33469 even though the POSIX signature has the 'restrict's,
33470 since C99 says they can't affect type compatibility. */
33471 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
33473 /* Check the return type is a pointer. On HP-UX 10 it is 'int'. */
33474 *localtime_r (0, 0);
33479 rm -f conftest.$ac_objext
33480 if { (ac_try="$ac_compile"
33481 case "(($ac_try" in
33482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33483 *) ac_try_echo=$ac_try;;
33485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33486 (eval "$ac_compile") 2>conftest.er1
33488 grep -v '^ *+' conftest.er1 >conftest.err
33490 cat conftest.err >&5
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); } && {
33493 test -z "$ac_c_werror_flag" ||
33494 test ! -s conftest.err
33495 } && test -s conftest.$ac_objext; then
33496 gl_cv_time_r_posix=yes
33498 echo "$as_me: failed program was:" >&5
33499 sed 's/^/| /' conftest.$ac_ext >&5
33501 gl_cv_time_r_posix=no
33504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33506 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
33507 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
33508 if test $gl_cv_time_r_posix = yes; then
33509 REPLACE_LOCALTIME_R=0
33511 REPLACE_LOCALTIME_R=1
33520 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
33543 if test $gl_cv_have_include_next = yes; then
33544 gl_cv_next_unistd_h='<'unistd.h'>'
33546 { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
33547 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
33548 if test "${gl_cv_next_unistd_h+set}" = set; then
33549 echo $ECHO_N "(cached) $ECHO_C" >&6
33552 if test $ac_cv_header_unistd_h = yes; then
33553 cat >conftest.$ac_ext <<_ACEOF
33556 cat confdefs.h >>conftest.$ac_ext
33557 cat >>conftest.$ac_ext <<_ACEOF
33558 /* end confdefs.h. */
33559 #include <unistd.h>
33562 gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33563 sed -n '\#/unistd.h#{
33564 s#.*"\(.*/unistd.h\)".*#\1#
33570 gl_cv_next_unistd_h='<'unistd.h'>'
33574 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
33575 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
33577 NEXT_UNISTD_H=$gl_cv_next_unistd_h
33588 if test $ac_cv_header_unistd_h = yes; then
33610 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
33620 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
33630 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
33650 gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
33653 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
33654 # and Cygwin never let anyone (even root) unlink directories.
33655 # If anyone knows of another system for which unlink can never
33656 # remove a directory, please report it to <bug-coreutils@gnu.org>.
33657 # Unfortunately this is difficult to test for, since it requires root access
33658 # and might create garbage in the file system,
33659 # so the code below simply relies on the kernel name and version number.
33662 *-*-linux-* | *-*-linux | \
33663 *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
33666 cat >>confdefs.h <<\_ACEOF
33667 #define UNLINK_CANNOT_UNLINK_DIR 1
33674 cat >>confdefs.h <<\_ACEOF
33675 #define USE_UNLOCKED_IO 1
33737 for ac_func in unsetenv
33739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33743 echo $ECHO_N "(cached) $ECHO_C" >&6
33745 cat >conftest.$ac_ext <<_ACEOF
33748 cat confdefs.h >>conftest.$ac_ext
33749 cat >>conftest.$ac_ext <<_ACEOF
33750 /* end confdefs.h. */
33751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33753 #define $ac_func innocuous_$ac_func
33755 /* System header to define __stub macros and hopefully few prototypes,
33756 which can conflict with char $ac_func (); below.
33757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33758 <limits.h> exists even on freestanding compilers. */
33761 # include <limits.h>
33763 # include <assert.h>
33768 /* Override any GCC internal prototype to avoid an error.
33769 Use char because int might match the return type of a GCC
33770 builtin and then its argument prototype would still apply. */
33775 /* The GNU C library defines this for functions which it implements
33776 to always fail with ENOSYS. Some functions are actually named
33777 something starting with __ and the normal name is an alias. */
33778 #if defined __stub_$ac_func || defined __stub___$ac_func
33785 return $ac_func ();
33790 rm -f conftest.$ac_objext conftest$ac_exeext
33791 if { (ac_try="$ac_link"
33792 case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_link") 2>conftest.er1
33799 grep -v '^ *+' conftest.er1 >conftest.err
33801 cat conftest.err >&5
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); } && {
33804 test -z "$ac_c_werror_flag" ||
33805 test ! -s conftest.err
33806 } && test -s conftest$ac_exeext &&
33807 $as_test_x conftest$ac_exeext; then
33808 eval "$as_ac_var=yes"
33810 echo "$as_me: failed program was:" >&5
33811 sed 's/^/| /' conftest.$ac_ext >&5
33813 eval "$as_ac_var=no"
33816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33817 conftest$ac_exeext conftest.$ac_ext
33819 ac_res=`eval echo '${'$as_ac_var'}'`
33820 { echo "$as_me:$LINENO: result: $ac_res" >&5
33821 echo "${ECHO_T}$ac_res" >&6; }
33822 if test `eval echo '${'$as_ac_var'}'` = yes; then
33823 cat >>confdefs.h <<_ACEOF
33824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33830 if test $ac_cv_func_unsetenv = no; then
33840 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
33852 { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
33853 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
33854 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
33855 echo $ECHO_N "(cached) $ECHO_C" >&6
33857 cat >conftest.$ac_ext <<_ACEOF
33860 cat confdefs.h >>conftest.$ac_ext
33861 cat >>conftest.$ac_ext <<_ACEOF
33862 /* end confdefs.h. */
33863 #include <stdlib.h>
33868 #if defined(__STDC__) || defined(__cplusplus)
33869 int unsetenv (const char *name);
33882 rm -f conftest.$ac_objext
33883 if { (ac_try="$ac_compile"
33884 case "(($ac_try" in
33885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_compile") 2>conftest.er1
33891 grep -v '^ *+' conftest.er1 >conftest.err
33893 cat conftest.err >&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } && {
33896 test -z "$ac_c_werror_flag" ||
33897 test ! -s conftest.err
33898 } && test -s conftest.$ac_objext; then
33899 gt_cv_func_unsetenv_ret='int'
33901 echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33904 gt_cv_func_unsetenv_ret='void'
33907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33909 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
33910 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
33911 if test $gt_cv_func_unsetenv_ret = 'void'; then
33922 if test $ac_cv_func_utime_null = no; then
33931 gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
33934 cat >>confdefs.h <<\_ACEOF
33935 #define utime rpl_utime
33946 { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
33947 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
33948 if test "${ac_cv_func_utimes_null+set}" = set; then
33949 echo $ECHO_N "(cached) $ECHO_C" >&6
33951 rm -f conftest.data; > conftest.data
33952 if test "$cross_compiling" = yes; then
33953 ac_cv_func_utimes_null=no
33955 cat >conftest.$ac_ext <<_ACEOF
33958 cat confdefs.h >>conftest.$ac_ext
33959 cat >>conftest.$ac_ext <<_ACEOF
33960 /* end confdefs.h. */
33962 /* In case stat has been defined to rpl_stat, undef it here. */
33964 #include <sys/types.h>
33965 #include <sys/stat.h>
33966 #include <sys/time.h>
33970 return ! (stat ("conftest.data", &s) == 0
33971 && utimes ("conftest.data", 0) == 0
33972 && stat ("conftest.data", &t) == 0
33973 && t.st_mtime >= s.st_mtime
33974 && t.st_mtime - s.st_mtime < 120));
33977 rm -f conftest$ac_exeext
33978 if { (ac_try="$ac_link"
33979 case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_link") 2>&5
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33988 { (case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_try") 2>&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; }; then
33997 ac_cv_func_utimes_null=yes
33999 echo "$as_me: program exited with status $ac_status" >&5
34000 echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34003 ( exit $ac_status )
34004 ac_cv_func_utimes_null=no
34006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34010 rm -f core core.* *.core
34012 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
34013 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
34015 if test $ac_cv_func_utimes_null = yes; then
34017 cat >>confdefs.h <<\_ACEOF
34018 #define HAVE_UTIMES_NULL 1
34036 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
34062 if test $ac_cv_func_vasnprintf = no; then
34078 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
34088 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
34098 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
34108 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
34110 if test $ac_cv_func_vasnprintf = yes; then
34112 cat >>confdefs.h <<\_ACEOF
34113 #define REPLACE_VASNPRINTF 1
34127 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34128 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
34129 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34130 echo $ECHO_N "(cached) $ECHO_C" >&6
34132 cat >conftest.$ac_ext <<_ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h. */
34138 $ac_includes_default
34139 typedef ptrdiff_t ac__type_new_;
34143 if ((ac__type_new_ *) 0)
34145 if (sizeof (ac__type_new_))
34151 rm -f conftest.$ac_objext
34152 if { (ac_try="$ac_compile"
34153 case "(($ac_try" in
34154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155 *) ac_try_echo=$ac_try;;
34157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34158 (eval "$ac_compile") 2>conftest.er1
34160 grep -v '^ *+' conftest.er1 >conftest.err
34162 cat conftest.err >&5
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); } && {
34165 test -z "$ac_c_werror_flag" ||
34166 test ! -s conftest.err
34167 } && test -s conftest.$ac_objext; then
34168 ac_cv_type_ptrdiff_t=yes
34170 echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34173 ac_cv_type_ptrdiff_t=no
34176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34179 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
34180 if test $ac_cv_type_ptrdiff_t = yes; then
34184 cat >>confdefs.h <<\_ACEOF
34185 #define ptrdiff_t long
34200 for ac_func in snprintf wcslen
34202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34206 echo $ECHO_N "(cached) $ECHO_C" >&6
34208 cat >conftest.$ac_ext <<_ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h. */
34214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34216 #define $ac_func innocuous_$ac_func
34218 /* System header to define __stub macros and hopefully few prototypes,
34219 which can conflict with char $ac_func (); below.
34220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34221 <limits.h> exists even on freestanding compilers. */
34224 # include <limits.h>
34226 # include <assert.h>
34231 /* Override any GCC internal prototype to avoid an error.
34232 Use char because int might match the return type of a GCC
34233 builtin and then its argument prototype would still apply. */
34238 /* The GNU C library defines this for functions which it implements
34239 to always fail with ENOSYS. Some functions are actually named
34240 something starting with __ and the normal name is an alias. */
34241 #if defined __stub_$ac_func || defined __stub___$ac_func
34248 return $ac_func ();
34253 rm -f conftest.$ac_objext conftest$ac_exeext
34254 if { (ac_try="$ac_link"
34255 case "(($ac_try" in
34256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34257 *) ac_try_echo=$ac_try;;
34259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34260 (eval "$ac_link") 2>conftest.er1
34262 grep -v '^ *+' conftest.er1 >conftest.err
34264 cat conftest.err >&5
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); } && {
34267 test -z "$ac_c_werror_flag" ||
34268 test ! -s conftest.err
34269 } && test -s conftest$ac_exeext &&
34270 $as_test_x conftest$ac_exeext; then
34271 eval "$as_ac_var=yes"
34273 echo "$as_me: failed program was:" >&5
34274 sed 's/^/| /' conftest.$ac_ext >&5
34276 eval "$as_ac_var=no"
34279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34280 conftest$ac_exeext conftest.$ac_ext
34282 ac_res=`eval echo '${'$as_ac_var'}'`
34283 { echo "$as_me:$LINENO: result: $ac_res" >&5
34284 echo "${ECHO_T}$ac_res" >&6; }
34285 if test `eval echo '${'$as_ac_var'}'` = yes; then
34286 cat >>confdefs.h <<_ACEOF
34287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34293 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
34294 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
34295 if test "${ac_cv_have_decl__snprintf+set}" = set; then
34296 echo $ECHO_N "(cached) $ECHO_C" >&6
34298 cat >conftest.$ac_ext <<_ACEOF
34301 cat confdefs.h >>conftest.$ac_ext
34302 cat >>conftest.$ac_ext <<_ACEOF
34303 /* end confdefs.h. */
34317 rm -f conftest.$ac_objext
34318 if { (ac_try="$ac_compile"
34319 case "(($ac_try" in
34320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321 *) ac_try_echo=$ac_try;;
34323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34324 (eval "$ac_compile") 2>conftest.er1
34326 grep -v '^ *+' conftest.er1 >conftest.err
34328 cat conftest.err >&5
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); } && {
34331 test -z "$ac_c_werror_flag" ||
34332 test ! -s conftest.err
34333 } && test -s conftest.$ac_objext; then
34334 ac_cv_have_decl__snprintf=yes
34336 echo "$as_me: failed program was:" >&5
34337 sed 's/^/| /' conftest.$ac_ext >&5
34339 ac_cv_have_decl__snprintf=no
34342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34344 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
34345 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
34346 if test $ac_cv_have_decl__snprintf = yes; then
34348 cat >>confdefs.h <<_ACEOF
34349 #define HAVE_DECL__SNPRINTF 1
34354 cat >>confdefs.h <<_ACEOF
34355 #define HAVE_DECL__SNPRINTF 0
34370 gl_cv_func_vsnprintf_usable=no
34372 for ac_func in vsnprintf
34374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34378 echo $ECHO_N "(cached) $ECHO_C" >&6
34380 cat >conftest.$ac_ext <<_ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h. */
34386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34388 #define $ac_func innocuous_$ac_func
34390 /* System header to define __stub macros and hopefully few prototypes,
34391 which can conflict with char $ac_func (); below.
34392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34393 <limits.h> exists even on freestanding compilers. */
34396 # include <limits.h>
34398 # include <assert.h>
34403 /* Override any GCC internal prototype to avoid an error.
34404 Use char because int might match the return type of a GCC
34405 builtin and then its argument prototype would still apply. */
34410 /* The GNU C library defines this for functions which it implements
34411 to always fail with ENOSYS. Some functions are actually named
34412 something starting with __ and the normal name is an alias. */
34413 #if defined __stub_$ac_func || defined __stub___$ac_func
34420 return $ac_func ();
34425 rm -f conftest.$ac_objext conftest$ac_exeext
34426 if { (ac_try="$ac_link"
34427 case "(($ac_try" in
34428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34429 *) ac_try_echo=$ac_try;;
34431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34432 (eval "$ac_link") 2>conftest.er1
34434 grep -v '^ *+' conftest.er1 >conftest.err
34436 cat conftest.err >&5
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); } && {
34439 test -z "$ac_c_werror_flag" ||
34440 test ! -s conftest.err
34441 } && test -s conftest$ac_exeext &&
34442 $as_test_x conftest$ac_exeext; then
34443 eval "$as_ac_var=yes"
34445 echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34448 eval "$as_ac_var=no"
34451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34452 conftest$ac_exeext conftest.$ac_ext
34454 ac_res=`eval echo '${'$as_ac_var'}'`
34455 { echo "$as_me:$LINENO: result: $ac_res" >&5
34456 echo "${ECHO_T}$ac_res" >&6; }
34457 if test `eval echo '${'$as_ac_var'}'` = yes; then
34458 cat >>confdefs.h <<_ACEOF
34459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34465 if test $ac_cv_func_vsnprintf = yes; then
34468 { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
34469 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
34470 if test "${gl_cv_func_snprintf_size1+set}" = set; then
34471 echo $ECHO_N "(cached) $ECHO_C" >&6
34474 if test "$cross_compiling" = yes; then
34475 gl_cv_func_snprintf_size1="guessing yes"
34477 cat >conftest.$ac_ext <<_ACEOF
34480 cat confdefs.h >>conftest.$ac_ext
34481 cat >>conftest.$ac_ext <<_ACEOF
34482 /* end confdefs.h. */
34487 static char buf[8] = "DEADBEEF";
34488 snprintf (buf, 1, "%d", 12345);
34489 return buf[1] != 'E';
34492 rm -f conftest$ac_exeext
34493 if { (ac_try="$ac_link"
34494 case "(($ac_try" in
34495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496 *) ac_try_echo=$ac_try;;
34498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499 (eval "$ac_link") 2>&5
34501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34503 { (case "(($ac_try" in
34504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34505 *) ac_try_echo=$ac_try;;
34507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34508 (eval "$ac_try") 2>&5
34510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511 (exit $ac_status); }; }; then
34512 gl_cv_func_snprintf_size1=yes
34514 echo "$as_me: program exited with status $ac_status" >&5
34515 echo "$as_me: failed program was:" >&5
34516 sed 's/^/| /' conftest.$ac_ext >&5
34518 ( exit $ac_status )
34519 gl_cv_func_snprintf_size1=no
34521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34527 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
34528 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
34530 case "$gl_cv_func_snprintf_size1" in
34532 gl_cv_func_vsnprintf_usable=yes
34536 if test $gl_cv_func_vsnprintf_usable = no; then
34547 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
34549 if test $ac_cv_func_vsnprintf = yes; then
34550 REPLACE_VSNPRINTF=1
34559 if test $ac_cv_have_decl_vsnprintf = no; then
34560 HAVE_DECL_VSNPRINTF=0
34569 { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
34570 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
34571 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
34572 echo $ECHO_N "(cached) $ECHO_C" >&6
34574 cat >conftest.$ac_ext <<_ACEOF
34578 rm -f conftest.$ac_objext
34579 if { (ac_try="$ac_compile"
34580 case "(($ac_try" in
34581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582 *) ac_try_echo=$ac_try;;
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585 (eval "$ac_compile") 2>conftest.er1
34587 grep -v '^ *+' conftest.er1 >conftest.err
34589 cat conftest.err >&5
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); } && {
34592 test -z "$ac_c_werror_flag" ||
34593 test ! -s conftest.err
34594 } && test -s conftest.$ac_objext; then
34595 gl_cv_header_wchar_h_standalone=yes
34597 echo "$as_me: failed program was:" >&5
34598 sed 's/^/| /' conftest.$ac_ext >&5
34600 gl_cv_header_wchar_h_standalone=no
34603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34605 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
34606 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
34609 if test $gt_cv_c_wint_t = yes; then
34616 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
34626 if test $ac_cv_header_wchar_h = yes; then
34642 if test $gl_cv_have_include_next = yes; then
34643 gl_cv_next_wchar_h='<'wchar.h'>'
34645 { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
34646 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
34647 if test "${gl_cv_next_wchar_h+set}" = set; then
34648 echo $ECHO_N "(cached) $ECHO_C" >&6
34651 if test $ac_cv_header_wchar_h = yes; then
34652 cat >conftest.$ac_ext <<_ACEOF
34655 cat confdefs.h >>conftest.$ac_ext
34656 cat >>conftest.$ac_ext <<_ACEOF
34657 /* end confdefs.h. */
34661 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34662 sed -n '\#/wchar.h#{
34663 s#.*"\(.*/wchar.h\)".*#\1#
34669 gl_cv_next_wchar_h='<'wchar.h'>'
34673 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
34674 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
34676 NEXT_WCHAR_H=$gl_cv_next_wchar_h
34689 if test $ac_cv_func_iswcntrl = yes; then
34704 if test $gt_cv_c_wint_t = yes; then
34712 if test $ac_cv_header_wctype_h = yes; then
34713 if test $ac_cv_func_iswcntrl = yes; then
34714 { echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
34715 echo $ECHO_N "checking whether iswcntrl works... $ECHO_C" >&6; }
34716 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
34717 echo $ECHO_N "(cached) $ECHO_C" >&6
34720 if test "$cross_compiling" = yes; then
34721 cat >conftest.$ac_ext <<_ACEOF
34724 cat confdefs.h >>conftest.$ac_ext
34725 cat >>conftest.$ac_ext <<_ACEOF
34726 /* end confdefs.h. */
34727 #include <stdlib.h>
34728 #if __GNU_LIBRARY__ == 1
34729 Linux libc5 i18n is broken.
34739 rm -f conftest.$ac_objext
34740 if { (ac_try="$ac_compile"
34741 case "(($ac_try" in
34742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34743 *) ac_try_echo=$ac_try;;
34745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34746 (eval "$ac_compile") 2>conftest.er1
34748 grep -v '^ *+' conftest.er1 >conftest.err
34750 cat conftest.err >&5
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } && {
34753 test -z "$ac_c_werror_flag" ||
34754 test ! -s conftest.err
34755 } && test -s conftest.$ac_objext; then
34756 gl_cv_func_iswcntrl_works=yes
34758 echo "$as_me: failed program was:" >&5
34759 sed 's/^/| /' conftest.$ac_ext >&5
34761 gl_cv_func_iswcntrl_works=no
34764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34767 cat >conftest.$ac_ext <<_ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h. */
34773 #include <stddef.h>
34777 #include <wctype.h>
34778 int main () { return iswprint ('x') == 0; }
34780 rm -f conftest$ac_exeext
34781 if { (ac_try="$ac_link"
34782 case "(($ac_try" in
34783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_link") 2>&5
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34791 { (case "(($ac_try" in
34792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34793 *) ac_try_echo=$ac_try;;
34795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34796 (eval "$ac_try") 2>&5
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); }; }; then
34800 gl_cv_func_iswcntrl_works=yes
34802 echo "$as_me: program exited with status $ac_status" >&5
34803 echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34806 ( exit $ac_status )
34807 gl_cv_func_iswcntrl_works=no
34809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34815 { echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
34816 echo "${ECHO_T}$gl_cv_func_iswcntrl_works" >&6; }
34817 if test $gl_cv_func_iswcntrl_works = yes; then
34831 if test $gl_cv_have_include_next = yes; then
34832 gl_cv_next_wctype_h='<'wctype.h'>'
34834 { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
34835 echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
34836 if test "${gl_cv_next_wctype_h+set}" = set; then
34837 echo $ECHO_N "(cached) $ECHO_C" >&6
34840 if test $ac_cv_header_wctype_h = yes; then
34841 cat >conftest.$ac_ext <<_ACEOF
34844 cat confdefs.h >>conftest.$ac_ext
34845 cat >>conftest.$ac_ext <<_ACEOF
34846 /* end confdefs.h. */
34847 #include <wctype.h>
34850 gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34851 sed -n '\#/wctype.h#{
34852 s#.*"\(.*/wctype.h\)".*#\1#
34858 gl_cv_next_wctype_h='<'wctype.h'>'
34862 { echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
34863 echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
34865 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
34876 if test "$gl_cv_func_iswcntrl_works" = no; then
34904 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
34905 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
34906 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
34907 echo $ECHO_N "(cached) $ECHO_C" >&6
34909 cat >conftest.$ac_ext <<_ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h. */
34916 /* AIX 3.2.5 declares wcwidth in <string.h>. */
34917 #include <string.h>
34918 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34920 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
34921 before <wchar.h>. */
34922 #include <stddef.h>
34939 rm -f conftest.$ac_objext
34940 if { (ac_try="$ac_compile"
34941 case "(($ac_try" in
34942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34943 *) ac_try_echo=$ac_try;;
34945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34946 (eval "$ac_compile") 2>conftest.er1
34948 grep -v '^ *+' conftest.er1 >conftest.err
34950 cat conftest.err >&5
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); } && {
34953 test -z "$ac_c_werror_flag" ||
34954 test ! -s conftest.err
34955 } && test -s conftest.$ac_objext; then
34956 ac_cv_have_decl_wcwidth=yes
34958 echo "$as_me: failed program was:" >&5
34959 sed 's/^/| /' conftest.$ac_ext >&5
34961 ac_cv_have_decl_wcwidth=no
34964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34966 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
34967 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
34968 if test $ac_cv_have_decl_wcwidth = yes; then
34970 cat >>confdefs.h <<_ACEOF
34971 #define HAVE_DECL_WCWIDTH 1
34976 cat >>confdefs.h <<_ACEOF
34977 #define HAVE_DECL_WCWIDTH 0
34984 if test $ac_cv_have_decl_wcwidth != yes; then
34985 HAVE_DECL_WCWIDTH=0
34988 if test $ac_cv_func_wcwidth = no; then
34991 { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
34992 echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; }
34993 if test "${gl_cv_func_wcwidth_works+set}" = set; then
34994 echo $ECHO_N "(cached) $ECHO_C" >&6
34997 if test "$cross_compiling" = yes; then
34998 gl_cv_func_wcwidth_works="guessing no"
35000 cat >conftest.$ac_ext <<_ACEOF
35003 cat confdefs.h >>conftest.$ac_ext
35004 cat >>conftest.$ac_ext <<_ACEOF
35005 /* end confdefs.h. */
35007 #include <locale.h>
35008 /* AIX 3.2.5 declares wcwidth in <string.h>. */
35009 #include <string.h>
35010 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35012 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
35013 before <wchar.h>. */
35014 #include <stddef.h>
35018 #if !HAVE_DECL_WCWIDTH
35020 # ifdef __cplusplus
35027 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
35028 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
35033 rm -f conftest$ac_exeext
35034 if { (ac_try="$ac_link"
35035 case "(($ac_try" in
35036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35037 *) ac_try_echo=$ac_try;;
35039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35040 (eval "$ac_link") 2>&5
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35044 { (case "(($ac_try" in
35045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046 *) ac_try_echo=$ac_try;;
35048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049 (eval "$ac_try") 2>&5
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
35053 gl_cv_func_wcwidth_works=yes
35055 echo "$as_me: program exited with status $ac_status" >&5
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35059 ( exit $ac_status )
35060 gl_cv_func_wcwidth_works=no
35062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35068 { echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
35069 echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; }
35070 case "$gl_cv_func_wcwidth_works" in
35072 *no) REPLACE_WCWIDTH=1 ;;
35075 if test $REPLACE_WCWIDTH = 1; then
35084 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
35088 if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
35116 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
35136 gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
35145 for ac_header in stdint.h
35147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
35154 ac_res=`eval echo '${'$as_ac_Header'}'`
35155 { echo "$as_me:$LINENO: result: $ac_res" >&5
35156 echo "${ECHO_T}$ac_res" >&6; }
35158 # Is the header compilable?
35159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35161 cat >conftest.$ac_ext <<_ACEOF
35164 cat confdefs.h >>conftest.$ac_ext
35165 cat >>conftest.$ac_ext <<_ACEOF
35166 /* end confdefs.h. */
35167 $ac_includes_default
35168 #include <$ac_header>
35170 rm -f conftest.$ac_objext
35171 if { (ac_try="$ac_compile"
35172 case "(($ac_try" in
35173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35174 *) ac_try_echo=$ac_try;;
35176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35177 (eval "$ac_compile") 2>conftest.er1
35179 grep -v '^ *+' conftest.er1 >conftest.err
35181 cat conftest.err >&5
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); } && {
35184 test -z "$ac_c_werror_flag" ||
35185 test ! -s conftest.err
35186 } && test -s conftest.$ac_objext; then
35187 ac_header_compiler=yes
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35192 ac_header_compiler=no
35195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35197 echo "${ECHO_T}$ac_header_compiler" >&6; }
35199 # Is the header present?
35200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35202 cat >conftest.$ac_ext <<_ACEOF
35205 cat confdefs.h >>conftest.$ac_ext
35206 cat >>conftest.$ac_ext <<_ACEOF
35207 /* end confdefs.h. */
35208 #include <$ac_header>
35210 if { (ac_try="$ac_cpp conftest.$ac_ext"
35211 case "(($ac_try" in
35212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35213 *) ac_try_echo=$ac_try;;
35215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35218 grep -v '^ *+' conftest.er1 >conftest.err
35220 cat conftest.err >&5
35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); } >/dev/null && {
35223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35224 test ! -s conftest.err
35226 ac_header_preproc=yes
35228 echo "$as_me: failed program was:" >&5
35229 sed 's/^/| /' conftest.$ac_ext >&5
35231 ac_header_preproc=no
35234 rm -f conftest.err conftest.$ac_ext
35235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35236 echo "${ECHO_T}$ac_header_preproc" >&6; }
35238 # So? What about this header?
35239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35245 ac_header_preproc=yes
35248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35261 ## ------------------------------ ##
35262 ## Report this to bug-tar@gnu.org ##
35263 ## ------------------------------ ##
35265 ) | sed "s/^/$as_me: WARNING: /" >&2
35268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35271 echo $ECHO_N "(cached) $ECHO_C" >&6
35273 eval "$as_ac_Header=\$ac_header_preproc"
35275 ac_res=`eval echo '${'$as_ac_Header'}'`
35276 { echo "$as_me:$LINENO: result: $ac_res" >&5
35277 echo "${ECHO_T}$ac_res" >&6; }
35280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35281 cat >>confdefs.h <<_ACEOF
35282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35304 gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
35314 gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
35324 gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
35346 gl_source_base='.#bootmp/tests'
35354 LIBTAR_LIBDEPS="$gl_libdeps"
35356 LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
35368 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
35369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
35370 if test "${ac_cv_header_time+set}" = set; then
35371 echo $ECHO_N "(cached) $ECHO_C" >&6
35373 cat >conftest.$ac_ext <<_ACEOF
35376 cat confdefs.h >>conftest.$ac_ext
35377 cat >>conftest.$ac_ext <<_ACEOF
35378 /* end confdefs.h. */
35379 #include <sys/types.h>
35380 #include <sys/time.h>
35386 if ((struct tm *) 0)
35392 rm -f conftest.$ac_objext
35393 if { (ac_try="$ac_compile"
35394 case "(($ac_try" in
35395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35396 *) ac_try_echo=$ac_try;;
35398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35399 (eval "$ac_compile") 2>conftest.er1
35401 grep -v '^ *+' conftest.er1 >conftest.err
35403 cat conftest.err >&5
35404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); } && {
35406 test -z "$ac_c_werror_flag" ||
35407 test ! -s conftest.err
35408 } && test -s conftest.$ac_objext; then
35409 ac_cv_header_time=yes
35411 echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35414 ac_cv_header_time=no
35417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35419 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
35420 echo "${ECHO_T}$ac_cv_header_time" >&6; }
35421 if test $ac_cv_header_time = yes; then
35423 cat >>confdefs.h <<\_ACEOF
35424 #define TIME_WITH_SYS_TIME 1
35429 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
35430 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
35431 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
35432 echo $ECHO_N "(cached) $ECHO_C" >&6
35434 cat >conftest.$ac_ext <<_ACEOF
35437 cat confdefs.h >>conftest.$ac_ext
35438 cat >>conftest.$ac_ext <<_ACEOF
35439 /* end confdefs.h. */
35440 $ac_includes_default
35444 static struct stat ac_aggr;
35445 if (ac_aggr.st_blksize)
35451 rm -f conftest.$ac_objext
35452 if { (ac_try="$ac_compile"
35453 case "(($ac_try" in
35454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35455 *) ac_try_echo=$ac_try;;
35457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35458 (eval "$ac_compile") 2>conftest.er1
35460 grep -v '^ *+' conftest.er1 >conftest.err
35462 cat conftest.err >&5
35463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464 (exit $ac_status); } && {
35465 test -z "$ac_c_werror_flag" ||
35466 test ! -s conftest.err
35467 } && test -s conftest.$ac_objext; then
35468 ac_cv_member_struct_stat_st_blksize=yes
35470 echo "$as_me: failed program was:" >&5
35471 sed 's/^/| /' conftest.$ac_ext >&5
35473 cat >conftest.$ac_ext <<_ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h. */
35479 $ac_includes_default
35483 static struct stat ac_aggr;
35484 if (sizeof ac_aggr.st_blksize)
35490 rm -f conftest.$ac_objext
35491 if { (ac_try="$ac_compile"
35492 case "(($ac_try" in
35493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494 *) ac_try_echo=$ac_try;;
35496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497 (eval "$ac_compile") 2>conftest.er1
35499 grep -v '^ *+' conftest.er1 >conftest.err
35501 cat conftest.err >&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } && {
35504 test -z "$ac_c_werror_flag" ||
35505 test ! -s conftest.err
35506 } && test -s conftest.$ac_objext; then
35507 ac_cv_member_struct_stat_st_blksize=yes
35509 echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35512 ac_cv_member_struct_stat_st_blksize=no
35515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
35521 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
35522 if test $ac_cv_member_struct_stat_st_blksize = yes; then
35524 cat >>confdefs.h <<_ACEOF
35525 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
35529 cat >>confdefs.h <<\_ACEOF
35530 #define HAVE_ST_BLKSIZE 1
35542 # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
35545 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
35546 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
35547 if test "${ac_cv_search_setsockopt+set}" = set; then
35548 echo $ECHO_N "(cached) $ECHO_C" >&6
35550 ac_func_search_save_LIBS=$LIBS
35551 cat >conftest.$ac_ext <<_ACEOF
35554 cat confdefs.h >>conftest.$ac_ext
35555 cat >>conftest.$ac_ext <<_ACEOF
35556 /* end confdefs.h. */
35558 /* Override any GCC internal prototype to avoid an error.
35559 Use char because int might match the return type of a GCC
35560 builtin and then its argument prototype would still apply. */
35564 char setsockopt ();
35568 return setsockopt ();
35573 for ac_lib in '' socket; do
35574 if test -z "$ac_lib"; then
35575 ac_res="none required"
35578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35580 rm -f conftest.$ac_objext conftest$ac_exeext
35581 if { (ac_try="$ac_link"
35582 case "(($ac_try" in
35583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35584 *) ac_try_echo=$ac_try;;
35586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35587 (eval "$ac_link") 2>conftest.er1
35589 grep -v '^ *+' conftest.er1 >conftest.err
35591 cat conftest.err >&5
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); } && {
35594 test -z "$ac_c_werror_flag" ||
35595 test ! -s conftest.err
35596 } && test -s conftest$ac_exeext &&
35597 $as_test_x conftest$ac_exeext; then
35598 ac_cv_search_setsockopt=$ac_res
35600 echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35608 if test "${ac_cv_search_setsockopt+set}" = set; then
35612 if test "${ac_cv_search_setsockopt+set}" = set; then
35615 ac_cv_search_setsockopt=no
35617 rm conftest.$ac_ext
35618 LIBS=$ac_func_search_save_LIBS
35620 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
35621 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
35622 ac_res=$ac_cv_search_setsockopt
35623 if test "$ac_res" != no; then
35624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35627 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
35628 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
35629 if test "${ac_cv_search_setsockopt+set}" = set; then
35630 echo $ECHO_N "(cached) $ECHO_C" >&6
35632 ac_func_search_save_LIBS=$LIBS
35633 cat >conftest.$ac_ext <<_ACEOF
35636 cat confdefs.h >>conftest.$ac_ext
35637 cat >>conftest.$ac_ext <<_ACEOF
35638 /* end confdefs.h. */
35640 /* Override any GCC internal prototype to avoid an error.
35641 Use char because int might match the return type of a GCC
35642 builtin and then its argument prototype would still apply. */
35646 char setsockopt ();
35650 return setsockopt ();
35655 for ac_lib in '' socket; do
35656 if test -z "$ac_lib"; then
35657 ac_res="none required"
35660 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
35662 rm -f conftest.$ac_objext conftest$ac_exeext
35663 if { (ac_try="$ac_link"
35664 case "(($ac_try" in
35665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35666 *) ac_try_echo=$ac_try;;
35668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35669 (eval "$ac_link") 2>conftest.er1
35671 grep -v '^ *+' conftest.er1 >conftest.err
35673 cat conftest.err >&5
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); } && {
35676 test -z "$ac_c_werror_flag" ||
35677 test ! -s conftest.err
35678 } && test -s conftest$ac_exeext &&
35679 $as_test_x conftest$ac_exeext; then
35680 ac_cv_search_setsockopt=$ac_res
35682 echo "$as_me: failed program was:" >&5
35683 sed 's/^/| /' conftest.$ac_ext >&5
35688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35690 if test "${ac_cv_search_setsockopt+set}" = set; then
35694 if test "${ac_cv_search_setsockopt+set}" = set; then
35697 ac_cv_search_setsockopt=no
35699 rm conftest.$ac_ext
35700 LIBS=$ac_func_search_save_LIBS
35702 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
35703 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
35704 ac_res=$ac_cv_search_setsockopt
35705 if test "$ac_res" != no; then
35706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35712 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
35713 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
35714 if test "${ac_cv_search_setsockopt+set}" = set; then
35715 echo $ECHO_N "(cached) $ECHO_C" >&6
35717 ac_func_search_save_LIBS=$LIBS
35718 cat >conftest.$ac_ext <<_ACEOF
35721 cat confdefs.h >>conftest.$ac_ext
35722 cat >>conftest.$ac_ext <<_ACEOF
35723 /* end confdefs.h. */
35725 /* Override any GCC internal prototype to avoid an error.
35726 Use char because int might match the return type of a GCC
35727 builtin and then its argument prototype would still apply. */
35731 char setsockopt ();
35735 return setsockopt ();
35740 for ac_lib in '' nsl; do
35741 if test -z "$ac_lib"; then
35742 ac_res="none required"
35745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35747 rm -f conftest.$ac_objext conftest$ac_exeext
35748 if { (ac_try="$ac_link"
35749 case "(($ac_try" in
35750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35751 *) ac_try_echo=$ac_try;;
35753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35754 (eval "$ac_link") 2>conftest.er1
35756 grep -v '^ *+' conftest.er1 >conftest.err
35758 cat conftest.err >&5
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); } && {
35761 test -z "$ac_c_werror_flag" ||
35762 test ! -s conftest.err
35763 } && test -s conftest$ac_exeext &&
35764 $as_test_x conftest$ac_exeext; then
35765 ac_cv_search_setsockopt=$ac_res
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35775 if test "${ac_cv_search_setsockopt+set}" = set; then
35779 if test "${ac_cv_search_setsockopt+set}" = set; then
35782 ac_cv_search_setsockopt=no
35784 rm conftest.$ac_ext
35785 LIBS=$ac_func_search_save_LIBS
35787 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
35788 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
35789 ac_res=$ac_cv_search_setsockopt
35790 if test "$ac_res" != no; then
35791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35796 case "$ac_cv_search_setsockopt" in
35797 -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
35803 if test $ac_cv_header_sys_mtio_h = yes; then
35804 { echo "$as_me:$LINENO: checking for remote tape header files" >&5
35805 echo $ECHO_N "checking for remote tape header files... $ECHO_C" >&6; }
35806 if test "${pu_cv_header_rmt+set}" = set; then
35807 echo $ECHO_N "(cached) $ECHO_C" >&6
35809 cat >conftest.$ac_ext <<_ACEOF
35812 cat confdefs.h >>conftest.$ac_ext
35813 cat >>conftest.$ac_ext <<_ACEOF
35814 /* end confdefs.h. */
35817 # include <sgtty.h>
35819 #include <sys/socket.h>
35821 if { (ac_try="$ac_cpp conftest.$ac_ext"
35822 case "(($ac_try" in
35823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35824 *) ac_try_echo=$ac_try;;
35826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35829 grep -v '^ *+' conftest.er1 >conftest.err
35831 cat conftest.err >&5
35832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833 (exit $ac_status); } >/dev/null && {
35834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35835 test ! -s conftest.err
35837 pu_cv_header_rmt=yes
35839 echo "$as_me: failed program was:" >&5
35840 sed 's/^/| /' conftest.$ac_ext >&5
35842 pu_cv_header_rmt=no
35845 rm -f conftest.err conftest.$ac_ext
35847 { echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
35848 echo "${ECHO_T}$pu_cv_header_rmt" >&6; }
35849 test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
35855 for ac_header in sys/mtio.h
35857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35862 echo $ECHO_N "(cached) $ECHO_C" >&6
35864 ac_res=`eval echo '${'$as_ac_Header'}'`
35865 { echo "$as_me:$LINENO: result: $ac_res" >&5
35866 echo "${ECHO_T}$ac_res" >&6; }
35868 # Is the header compilable?
35869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35871 cat >conftest.$ac_ext <<_ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h. */
35877 $ac_includes_default
35878 #include <$ac_header>
35880 rm -f conftest.$ac_objext
35881 if { (ac_try="$ac_compile"
35882 case "(($ac_try" in
35883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35884 *) ac_try_echo=$ac_try;;
35886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35887 (eval "$ac_compile") 2>conftest.er1
35889 grep -v '^ *+' conftest.er1 >conftest.err
35891 cat conftest.err >&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } && {
35894 test -z "$ac_c_werror_flag" ||
35895 test ! -s conftest.err
35896 } && test -s conftest.$ac_objext; then
35897 ac_header_compiler=yes
35899 echo "$as_me: failed program was:" >&5
35900 sed 's/^/| /' conftest.$ac_ext >&5
35902 ac_header_compiler=no
35905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35907 echo "${ECHO_T}$ac_header_compiler" >&6; }
35909 # Is the header present?
35910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35912 cat >conftest.$ac_ext <<_ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h. */
35918 #include <$ac_header>
35920 if { (ac_try="$ac_cpp conftest.$ac_ext"
35921 case "(($ac_try" in
35922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35923 *) ac_try_echo=$ac_try;;
35925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35928 grep -v '^ *+' conftest.er1 >conftest.err
35930 cat conftest.err >&5
35931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); } >/dev/null && {
35933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35934 test ! -s conftest.err
35936 ac_header_preproc=yes
35938 echo "$as_me: failed program was:" >&5
35939 sed 's/^/| /' conftest.$ac_ext >&5
35941 ac_header_preproc=no
35944 rm -f conftest.err conftest.$ac_ext
35945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35946 echo "${ECHO_T}$ac_header_preproc" >&6; }
35948 # So? What about this header?
35949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35955 ac_header_preproc=yes
35958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35971 ## ------------------------------ ##
35972 ## Report this to bug-tar@gnu.org ##
35973 ## ------------------------------ ##
35975 ) | sed "s/^/$as_me: WARNING: /" >&2
35978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35981 echo $ECHO_N "(cached) $ECHO_C" >&6
35983 eval "$as_ac_Header=\$ac_header_preproc"
35985 ac_res=`eval echo '${'$as_ac_Header'}'`
35986 { echo "$as_me:$LINENO: result: $ac_res" >&5
35987 echo "${ECHO_T}$ac_res" >&6; }
35990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35991 cat >>confdefs.h <<_ACEOF
35992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35999 { echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
36000 echo $ECHO_N "checking which ioctl field to test for reversed bytes... $ECHO_C" >&6; }
36001 if test "${pu_cv_header_mtio_check_field+set}" = set; then
36002 echo $ECHO_N "(cached) $ECHO_C" >&6
36004 cat >conftest.$ac_ext <<_ACEOF
36007 cat confdefs.h >>conftest.$ac_ext
36008 cat >>conftest.$ac_ext <<_ACEOF
36009 /* end confdefs.h. */
36010 #include <sys/mtio.h>
36013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36014 $EGREP "mt_model" >/dev/null 2>&1; then
36015 pu_cv_header_mtio_check_field=mt_model
36017 pu_cv_header_mtio_check_field=mt_type
36022 { echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
36023 echo "${ECHO_T}$pu_cv_header_mtio_check_field" >&6; }
36025 cat >>confdefs.h <<_ACEOF
36026 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
36032 if test "x$DEFAULT_RMT_DIR" != x; then
36033 DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
36035 DEFAULT_RMT_DIR='$(libexecdir)'
36038 { echo "$as_me:$LINENO: checking whether to build rmt" >&5
36039 echo $ECHO_N "checking whether to build rmt... $ECHO_C" >&6; }
36041 # Check whether --with-rmt was given.
36042 if test "${with_rmt+set}" = set; then
36043 withval=$with_rmt; case $withval in
36044 yes|no) { { echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
36045 echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
36046 { (exit 1); exit 1; }; };;
36047 /*) DEFAULT_RMT_COMMAND=$withval
36048 { echo "$as_me:$LINENO: result: no, use $withval instead" >&5
36049 echo "${ECHO_T}no, use $withval instead" >&6; };;
36050 *) { { echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
36051 echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
36052 { (exit 1); exit 1; }; };;
36055 { echo "$as_me:$LINENO: result: yes" >&5
36056 echo "${ECHO_T}yes" >&6; }
36058 if test "$PU_RMT_PROG" = ""; then
36059 { echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
36060 echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
36066 if test "x$DEFAULT_RMT_COMMAND" != x; then
36068 cat >>confdefs.h <<_ACEOF
36069 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
36125 for ac_header in sys/buf.h
36127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36131 echo $ECHO_N "(cached) $ECHO_C" >&6
36133 cat >conftest.$ac_ext <<_ACEOF
36136 cat confdefs.h >>conftest.$ac_ext
36137 cat >>conftest.$ac_ext <<_ACEOF
36138 /* end confdefs.h. */
36139 #if HAVE_SYS_PARAM_H
36140 #include <sys/param.h>
36143 #include <$ac_header>
36145 rm -f conftest.$ac_objext
36146 if { (ac_try="$ac_compile"
36147 case "(($ac_try" in
36148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36149 *) ac_try_echo=$ac_try;;
36151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36152 (eval "$ac_compile") 2>conftest.er1
36154 grep -v '^ *+' conftest.er1 >conftest.err
36156 cat conftest.err >&5
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); } && {
36159 test -z "$ac_c_werror_flag" ||
36160 test ! -s conftest.err
36161 } && test -s conftest.$ac_objext; then
36162 eval "$as_ac_Header=yes"
36164 echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36167 eval "$as_ac_Header=no"
36170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36172 ac_res=`eval echo '${'$as_ac_Header'}'`
36173 { echo "$as_me:$LINENO: result: $ac_res" >&5
36174 echo "${ECHO_T}$ac_res" >&6; }
36175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36176 cat >>confdefs.h <<_ACEOF
36177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36187 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
36188 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
36189 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
36190 echo $ECHO_N "(cached) $ECHO_C" >&6
36192 cat >conftest.$ac_ext <<_ACEOF
36195 cat confdefs.h >>conftest.$ac_ext
36196 cat >>conftest.$ac_ext <<_ACEOF
36197 /* end confdefs.h. */
36198 $ac_includes_default
36202 static struct stat ac_aggr;
36203 if (ac_aggr.st_blksize)
36209 rm -f conftest.$ac_objext
36210 if { (ac_try="$ac_compile"
36211 case "(($ac_try" in
36212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36213 *) ac_try_echo=$ac_try;;
36215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36216 (eval "$ac_compile") 2>conftest.er1
36218 grep -v '^ *+' conftest.er1 >conftest.err
36220 cat conftest.err >&5
36221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222 (exit $ac_status); } && {
36223 test -z "$ac_c_werror_flag" ||
36224 test ! -s conftest.err
36225 } && test -s conftest.$ac_objext; then
36226 ac_cv_member_struct_stat_st_blksize=yes
36228 echo "$as_me: failed program was:" >&5
36229 sed 's/^/| /' conftest.$ac_ext >&5
36231 cat >conftest.$ac_ext <<_ACEOF
36234 cat confdefs.h >>conftest.$ac_ext
36235 cat >>conftest.$ac_ext <<_ACEOF
36236 /* end confdefs.h. */
36237 $ac_includes_default
36241 static struct stat ac_aggr;
36242 if (sizeof ac_aggr.st_blksize)
36248 rm -f conftest.$ac_objext
36249 if { (ac_try="$ac_compile"
36250 case "(($ac_try" in
36251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36252 *) ac_try_echo=$ac_try;;
36254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36255 (eval "$ac_compile") 2>conftest.er1
36257 grep -v '^ *+' conftest.er1 >conftest.err
36259 cat conftest.err >&5
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); } && {
36262 test -z "$ac_c_werror_flag" ||
36263 test ! -s conftest.err
36264 } && test -s conftest.$ac_objext; then
36265 ac_cv_member_struct_stat_st_blksize=yes
36267 echo "$as_me: failed program was:" >&5
36268 sed 's/^/| /' conftest.$ac_ext >&5
36270 ac_cv_member_struct_stat_st_blksize=no
36273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36278 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
36279 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
36280 if test $ac_cv_member_struct_stat_st_blksize = yes; then
36282 cat >>confdefs.h <<_ACEOF
36283 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
36314 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
36316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36320 echo $ECHO_N "(cached) $ECHO_C" >&6
36322 cat >conftest.$ac_ext <<_ACEOF
36325 cat confdefs.h >>conftest.$ac_ext
36326 cat >>conftest.$ac_ext <<_ACEOF
36327 /* end confdefs.h. */
36328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36330 #define $ac_func innocuous_$ac_func
36332 /* System header to define __stub macros and hopefully few prototypes,
36333 which can conflict with char $ac_func (); below.
36334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36335 <limits.h> exists even on freestanding compilers. */
36338 # include <limits.h>
36340 # include <assert.h>
36345 /* Override any GCC internal prototype to avoid an error.
36346 Use char because int might match the return type of a GCC
36347 builtin and then its argument prototype would still apply. */
36352 /* The GNU C library defines this for functions which it implements
36353 to always fail with ENOSYS. Some functions are actually named
36354 something starting with __ and the normal name is an alias. */
36355 #if defined __stub_$ac_func || defined __stub___$ac_func
36362 return $ac_func ();
36367 rm -f conftest.$ac_objext conftest$ac_exeext
36368 if { (ac_try="$ac_link"
36369 case "(($ac_try" in
36370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371 *) ac_try_echo=$ac_try;;
36373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374 (eval "$ac_link") 2>conftest.er1
36376 grep -v '^ *+' conftest.er1 >conftest.err
36378 cat conftest.err >&5
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); } && {
36381 test -z "$ac_c_werror_flag" ||
36382 test ! -s conftest.err
36383 } && test -s conftest$ac_exeext &&
36384 $as_test_x conftest$ac_exeext; then
36385 eval "$as_ac_var=yes"
36387 echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36390 eval "$as_ac_var=no"
36393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36394 conftest$ac_exeext conftest.$ac_ext
36396 ac_res=`eval echo '${'$as_ac_var'}'`
36397 { echo "$as_me:$LINENO: result: $ac_res" >&5
36398 echo "${ECHO_T}$ac_res" >&6; }
36399 if test `eval echo '${'$as_ac_var'}'` = yes; then
36400 cat >>confdefs.h <<_ACEOF
36401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36407 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
36408 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
36409 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
36410 echo $ECHO_N "(cached) $ECHO_C" >&6
36412 cat >conftest.$ac_ext <<_ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h. */
36431 rm -f conftest.$ac_objext
36432 if { (ac_try="$ac_compile"
36433 case "(($ac_try" in
36434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36435 *) ac_try_echo=$ac_try;;
36437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36438 (eval "$ac_compile") 2>conftest.er1
36440 grep -v '^ *+' conftest.er1 >conftest.err
36442 cat conftest.err >&5
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); } && {
36445 test -z "$ac_c_werror_flag" ||
36446 test ! -s conftest.err
36447 } && test -s conftest.$ac_objext; then
36448 ac_cv_have_decl_getgrgid=yes
36450 echo "$as_me: failed program was:" >&5
36451 sed 's/^/| /' conftest.$ac_ext >&5
36453 ac_cv_have_decl_getgrgid=no
36456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36458 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
36459 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
36460 if test $ac_cv_have_decl_getgrgid = yes; then
36462 cat >>confdefs.h <<_ACEOF
36463 #define HAVE_DECL_GETGRGID 1
36468 cat >>confdefs.h <<_ACEOF
36469 #define HAVE_DECL_GETGRGID 0
36476 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
36477 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
36478 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
36479 echo $ECHO_N "(cached) $ECHO_C" >&6
36481 cat >conftest.$ac_ext <<_ACEOF
36484 cat confdefs.h >>conftest.$ac_ext
36485 cat >>conftest.$ac_ext <<_ACEOF
36486 /* end confdefs.h. */
36500 rm -f conftest.$ac_objext
36501 if { (ac_try="$ac_compile"
36502 case "(($ac_try" in
36503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36504 *) ac_try_echo=$ac_try;;
36506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36507 (eval "$ac_compile") 2>conftest.er1
36509 grep -v '^ *+' conftest.er1 >conftest.err
36511 cat conftest.err >&5
36512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513 (exit $ac_status); } && {
36514 test -z "$ac_c_werror_flag" ||
36515 test ! -s conftest.err
36516 } && test -s conftest.$ac_objext; then
36517 ac_cv_have_decl_getpwuid=yes
36519 echo "$as_me: failed program was:" >&5
36520 sed 's/^/| /' conftest.$ac_ext >&5
36522 ac_cv_have_decl_getpwuid=no
36525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
36528 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
36529 if test $ac_cv_have_decl_getpwuid = yes; then
36531 cat >>confdefs.h <<_ACEOF
36532 #define HAVE_DECL_GETPWUID 1
36537 cat >>confdefs.h <<_ACEOF
36538 #define HAVE_DECL_GETPWUID 0
36545 { echo "$as_me:$LINENO: checking whether time is declared" >&5
36546 echo $ECHO_N "checking whether time is declared... $ECHO_C" >&6; }
36547 if test "${ac_cv_have_decl_time+set}" = set; then
36548 echo $ECHO_N "(cached) $ECHO_C" >&6
36550 cat >conftest.$ac_ext <<_ACEOF
36553 cat confdefs.h >>conftest.$ac_ext
36554 cat >>conftest.$ac_ext <<_ACEOF
36555 /* end confdefs.h. */
36569 rm -f conftest.$ac_objext
36570 if { (ac_try="$ac_compile"
36571 case "(($ac_try" in
36572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36573 *) ac_try_echo=$ac_try;;
36575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36576 (eval "$ac_compile") 2>conftest.er1
36578 grep -v '^ *+' conftest.er1 >conftest.err
36580 cat conftest.err >&5
36581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); } && {
36583 test -z "$ac_c_werror_flag" ||
36584 test ! -s conftest.err
36585 } && test -s conftest.$ac_objext; then
36586 ac_cv_have_decl_time=yes
36588 echo "$as_me: failed program was:" >&5
36589 sed 's/^/| /' conftest.$ac_ext >&5
36591 ac_cv_have_decl_time=no
36594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36596 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
36597 echo "${ECHO_T}$ac_cv_have_decl_time" >&6; }
36598 if test $ac_cv_have_decl_time = yes; then
36600 cat >>confdefs.h <<_ACEOF
36601 #define HAVE_DECL_TIME 1
36606 cat >>confdefs.h <<_ACEOF
36607 #define HAVE_DECL_TIME 0
36616 for ac_func in waitpid
36618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36622 echo $ECHO_N "(cached) $ECHO_C" >&6
36624 cat >conftest.$ac_ext <<_ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h. */
36630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36632 #define $ac_func innocuous_$ac_func
36634 /* System header to define __stub macros and hopefully few prototypes,
36635 which can conflict with char $ac_func (); below.
36636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36637 <limits.h> exists even on freestanding compilers. */
36640 # include <limits.h>
36642 # include <assert.h>
36647 /* Override any GCC internal prototype to avoid an error.
36648 Use char because int might match the return type of a GCC
36649 builtin and then its argument prototype would still apply. */
36654 /* The GNU C library defines this for functions which it implements
36655 to always fail with ENOSYS. Some functions are actually named
36656 something starting with __ and the normal name is an alias. */
36657 #if defined __stub_$ac_func || defined __stub___$ac_func
36664 return $ac_func ();
36669 rm -f conftest.$ac_objext conftest$ac_exeext
36670 if { (ac_try="$ac_link"
36671 case "(($ac_try" in
36672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36673 *) ac_try_echo=$ac_try;;
36675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36676 (eval "$ac_link") 2>conftest.er1
36678 grep -v '^ *+' conftest.er1 >conftest.err
36680 cat conftest.err >&5
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); } && {
36683 test -z "$ac_c_werror_flag" ||
36684 test ! -s conftest.err
36685 } && test -s conftest$ac_exeext &&
36686 $as_test_x conftest$ac_exeext; then
36687 eval "$as_ac_var=yes"
36689 echo "$as_me: failed program was:" >&5
36690 sed 's/^/| /' conftest.$ac_ext >&5
36692 eval "$as_ac_var=no"
36695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36696 conftest$ac_exeext conftest.$ac_ext
36698 ac_res=`eval echo '${'$as_ac_var'}'`
36699 { echo "$as_me:$LINENO: result: $ac_res" >&5
36700 echo "${ECHO_T}$ac_res" >&6; }
36701 if test `eval echo '${'$as_ac_var'}'` = yes; then
36702 cat >>confdefs.h <<_ACEOF
36703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36707 case " $LIBOBJS " in
36708 *" $ac_func.$ac_objext "* ) ;;
36709 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
36718 { echo "$as_me:$LINENO: checking for remote shell" >&5
36719 echo $ECHO_N "checking for remote shell... $ECHO_C" >&6; }
36720 if test "${tar_cv_path_RSH+set}" = set; then
36721 echo $ECHO_N "(cached) $ECHO_C" >&6
36723 if test -n "$RSH"; then
36724 tar_cv_path_RSH=$RSH
36727 for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
36728 /usr/bin/nsh /usr/bin/rcmd
36730 # Prefer a non-symlink rsh to a symlink one, so that binaries built
36731 # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
36732 # will run on AIX 4.3.0, which has only /usr/bin/rsh.
36733 if test -f $ac_file; then
36734 if (test -h $ac_file) 2>/dev/null; then
36735 test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
36737 tar_cv_path_RSH=$ac_file
36744 { echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
36745 echo "${ECHO_T}$tar_cv_path_RSH" >&6; }
36746 if test $tar_cv_path_RSH = no; then
36748 for ac_header in netdb.h
36750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36755 echo $ECHO_N "(cached) $ECHO_C" >&6
36757 ac_res=`eval echo '${'$as_ac_Header'}'`
36758 { echo "$as_me:$LINENO: result: $ac_res" >&5
36759 echo "${ECHO_T}$ac_res" >&6; }
36761 # Is the header compilable?
36762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36764 cat >conftest.$ac_ext <<_ACEOF
36767 cat confdefs.h >>conftest.$ac_ext
36768 cat >>conftest.$ac_ext <<_ACEOF
36769 /* end confdefs.h. */
36770 $ac_includes_default
36771 #include <$ac_header>
36773 rm -f conftest.$ac_objext
36774 if { (ac_try="$ac_compile"
36775 case "(($ac_try" in
36776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36777 *) ac_try_echo=$ac_try;;
36779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36780 (eval "$ac_compile") 2>conftest.er1
36782 grep -v '^ *+' conftest.er1 >conftest.err
36784 cat conftest.err >&5
36785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786 (exit $ac_status); } && {
36787 test -z "$ac_c_werror_flag" ||
36788 test ! -s conftest.err
36789 } && test -s conftest.$ac_objext; then
36790 ac_header_compiler=yes
36792 echo "$as_me: failed program was:" >&5
36793 sed 's/^/| /' conftest.$ac_ext >&5
36795 ac_header_compiler=no
36798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36800 echo "${ECHO_T}$ac_header_compiler" >&6; }
36802 # Is the header present?
36803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36805 cat >conftest.$ac_ext <<_ACEOF
36808 cat confdefs.h >>conftest.$ac_ext
36809 cat >>conftest.$ac_ext <<_ACEOF
36810 /* end confdefs.h. */
36811 #include <$ac_header>
36813 if { (ac_try="$ac_cpp conftest.$ac_ext"
36814 case "(($ac_try" in
36815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36816 *) ac_try_echo=$ac_try;;
36818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36821 grep -v '^ *+' conftest.er1 >conftest.err
36823 cat conftest.err >&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); } >/dev/null && {
36826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36827 test ! -s conftest.err
36829 ac_header_preproc=yes
36831 echo "$as_me: failed program was:" >&5
36832 sed 's/^/| /' conftest.$ac_ext >&5
36834 ac_header_preproc=no
36837 rm -f conftest.err conftest.$ac_ext
36838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36839 echo "${ECHO_T}$ac_header_preproc" >&6; }
36841 # So? What about this header?
36842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36848 ac_header_preproc=yes
36851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36864 ## ------------------------------ ##
36865 ## Report this to bug-tar@gnu.org ##
36866 ## ------------------------------ ##
36868 ) | sed "s/^/$as_me: WARNING: /" >&2
36871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36874 echo $ECHO_N "(cached) $ECHO_C" >&6
36876 eval "$as_ac_Header=\$ac_header_preproc"
36878 ac_res=`eval echo '${'$as_ac_Header'}'`
36879 { echo "$as_me:$LINENO: result: $ac_res" >&5
36880 echo "${ECHO_T}$ac_res" >&6; }
36883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36884 cat >>confdefs.h <<_ACEOF
36885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36894 cat >>confdefs.h <<_ACEOF
36895 #define REMOTE_SHELL "$tar_cv_path_RSH"
36900 { echo "$as_me:$LINENO: checking for default archive format" >&5
36901 echo $ECHO_N "checking for default archive format... $ECHO_C" >&6; }
36905 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
36906 DEFAULT_ARCHIVE_FORMAT="GNU"
36908 case $DEFAULT_ARCHIVE_FORMAT in
36909 V7|OLDGNU|USTAR|POSIX|GNU) ;;
36910 *) { { echo "$as_me:$LINENO: error: Invalid format name" >&5
36911 echo "$as_me: error: Invalid format name" >&2;}
36912 { (exit 1); exit 1; }; };;
36915 cat >>confdefs.h <<_ACEOF
36916 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
36919 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
36920 echo "${ECHO_T}$DEFAULT_ARCHIVE_FORMAT" >&6; }
36922 { echo "$as_me:$LINENO: checking for default archive" >&5
36923 echo $ECHO_N "checking for default archive... $ECHO_C" >&6; }
36926 if test -z "$DEFAULT_ARCHIVE"; then
36929 if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
36930 { echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
36931 echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
36933 # FIXME: Look for DEFTAPE in <sys/mtio.h>.
36934 # FIXME: Let DEVICE_PREFIX be configured from the environment.
36935 # FIXME: Rearrange, here.
36936 case $DEFAULT_ARCHIVE in
36939 cat >>confdefs.h <<\_ACEOF
36940 #define DENSITY_LETTER 1
36943 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
36946 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
36952 case "$device_prefix" in
36955 cat >>confdefs.h <<_ACEOF
36956 #define DEVICE_PREFIX "$device_prefix"
36963 cat >>confdefs.h <<_ACEOF
36964 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
36967 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
36968 echo "${ECHO_T}$DEFAULT_ARCHIVE" >&6; }
36971 { echo "$as_me:$LINENO: checking for default blocking" >&5
36972 echo $ECHO_N "checking for default blocking... $ECHO_C" >&6; }
36973 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
36975 cat >>confdefs.h <<_ACEOF
36976 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
36979 { echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
36980 echo "${ECHO_T}$DEFAULT_BLOCKING" >&6; }
36982 { echo "$as_me:$LINENO: checking for default quoting style" >&5
36983 echo $ECHO_N "checking for default quoting style... $ECHO_C" >&6; }
36986 DEFAULT_QUOTING_STYLE="escape"
36989 case $DEFAULT_QUOTING_STYLE in
36990 literal|shell|shell-always|c|escape|locale|clocale) ;;
36991 *) { { echo "$as_me:$LINENO: error: Invalid quoting style" >&5
36992 echo "$as_me: error: Invalid quoting style" >&2;}
36993 { (exit 1); exit 1; }; };;
36995 { echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
36996 echo "${ECHO_T}$DEFAULT_QUOTING_STYLE" >&6; }
36997 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
36999 cat >>confdefs.h <<_ACEOF
37000 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
37006 if test "X$prefix" = "XNONE"; then
37007 acl_final_prefix="$ac_default_prefix"
37009 acl_final_prefix="$prefix"
37011 if test "X$exec_prefix" = "XNONE"; then
37012 acl_final_exec_prefix='${prefix}'
37014 acl_final_exec_prefix="$exec_prefix"
37016 acl_save_prefix="$prefix"
37017 prefix="$acl_final_prefix"
37018 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
37019 prefix="$acl_save_prefix"
37022 # Check whether --with-gnu-ld was given.
37023 if test "${with_gnu_ld+set}" = set; then
37024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
37029 # Prepare PATH_SEPARATOR.
37030 # The user is always right.
37031 if test "${PATH_SEPARATOR+set}" != set; then
37032 echo "#! /bin/sh" >conf$$.sh
37033 echo "exit 0" >>conf$$.sh
37035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37043 if test "$GCC" = yes; then
37044 # Check if gcc -print-prog-name=ld gives a path.
37045 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
37046 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
37049 # gcc leaves a trailing carriage return which upsets mingw
37050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
37052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
37055 # Accept absolute paths.
37056 [\\/]* | [A-Za-z]:[\\/]*)
37057 re_direlt='/[^/][^/]*/\.\./'
37058 # Canonicalize the path of ld
37059 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
37060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
37061 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
37063 test -z "$LD" && LD="$ac_prog"
37066 # If it fails, then pretend we aren't using GCC.
37070 # If it is relative, then search for the first ld in PATH.
37071 with_gnu_ld=unknown
37074 elif test "$with_gnu_ld" = yes; then
37075 { echo "$as_me:$LINENO: checking for GNU ld" >&5
37076 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
37078 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
37079 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
37081 if test "${acl_cv_path_LD+set}" = set; then
37082 echo $ECHO_N "(cached) $ECHO_C" >&6
37084 if test -z "$LD"; then
37085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
37086 for ac_dir in $PATH; do
37087 test -z "$ac_dir" && ac_dir=.
37088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
37089 acl_cv_path_LD="$ac_dir/$ac_prog"
37090 # Check to see if the program is GNU ld. I'd rather use --version,
37091 # but apparently some GNU ld's only accept -v.
37092 # Break only if it was the GNU/non-GNU ld that we prefer.
37093 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
37094 *GNU* | *'with BFD'*)
37095 test "$with_gnu_ld" != no && break ;;
37097 test "$with_gnu_ld" != yes && break ;;
37103 acl_cv_path_LD="$LD" # Let the user override the test with a path.
37107 LD="$acl_cv_path_LD"
37108 if test -n "$LD"; then
37109 { echo "$as_me:$LINENO: result: $LD" >&5
37110 echo "${ECHO_T}$LD" >&6; }
37112 { echo "$as_me:$LINENO: result: no" >&5
37113 echo "${ECHO_T}no" >&6; }
37115 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
37116 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
37117 { (exit 1); exit 1; }; }
37118 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
37119 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
37120 if test "${acl_cv_prog_gnu_ld+set}" = set; then
37121 echo $ECHO_N "(cached) $ECHO_C" >&6
37123 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
37124 case `$LD -v 2>&1 </dev/null` in
37125 *GNU* | *'with BFD'*)
37126 acl_cv_prog_gnu_ld=yes ;;
37128 acl_cv_prog_gnu_ld=no ;;
37131 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
37132 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
37133 with_gnu_ld=$acl_cv_prog_gnu_ld
37138 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
37139 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
37140 if test "${acl_cv_rpath+set}" = set; then
37141 echo $ECHO_N "(cached) $ECHO_C" >&6
37144 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
37145 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
37147 rm -f ./conftest.sh
37151 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
37152 echo "${ECHO_T}$acl_cv_rpath" >&6; }
37154 acl_libext="$acl_cv_libext"
37155 acl_shlibext="$acl_cv_shlibext"
37156 acl_libname_spec="$acl_cv_libname_spec"
37157 acl_library_names_spec="$acl_cv_library_names_spec"
37158 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
37159 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
37160 acl_hardcode_direct="$acl_cv_hardcode_direct"
37161 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
37162 # Check whether --enable-rpath was given.
37163 if test "${enable_rpath+set}" = set; then
37164 enableval=$enable_rpath; :
37176 { echo "$as_me:$LINENO: checking for 64-bit host" >&5
37177 echo $ECHO_N "checking for 64-bit host... $ECHO_C" >&6; }
37178 if test "${gl_cv_solaris_64bit+set}" = set; then
37179 echo $ECHO_N "(cached) $ECHO_C" >&6
37181 cat >conftest.$ac_ext <<_ACEOF
37184 cat confdefs.h >>conftest.$ac_ext
37185 cat >>conftest.$ac_ext <<_ACEOF
37186 /* end confdefs.h. */
37193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37194 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
37195 gl_cv_solaris_64bit=yes
37197 gl_cv_solaris_64bit=no
37203 { echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
37204 echo "${ECHO_T}$gl_cv_solaris_64bit" >&6; }
37205 if test $gl_cv_solaris_64bit = yes; then
37206 acl_libdirstem=lib/64
37207 case "$host_cpu" in
37208 sparc*) acl_libdirstem2=lib/sparcv9 ;;
37209 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
37214 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
37215 if test -n "$searchpath"; then
37216 acl_save_IFS="${IFS= }"; IFS=":"
37217 for searchdir in $searchpath; do
37218 if test -d "$searchdir"; then
37219 case "$searchdir" in
37220 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
37221 *) searchdir=`cd "$searchdir" && pwd`
37222 case "$searchdir" in
37223 */lib64 ) acl_libdirstem=lib64 ;;
37228 IFS="$acl_save_IFS"
37232 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
37247 acl_save_prefix="$prefix"
37248 prefix="$acl_final_prefix"
37249 acl_save_exec_prefix="$exec_prefix"
37250 exec_prefix="$acl_final_exec_prefix"
37252 eval additional_includedir=\"$includedir\"
37253 eval additional_libdir=\"$libdir\"
37255 exec_prefix="$acl_save_exec_prefix"
37256 prefix="$acl_save_prefix"
37259 # Check whether --with-libiconv-prefix was given.
37260 if test "${with_libiconv_prefix+set}" = set; then
37261 withval=$with_libiconv_prefix;
37262 if test "X$withval" = "Xno"; then
37265 if test "X$withval" = "X"; then
37267 acl_save_prefix="$prefix"
37268 prefix="$acl_final_prefix"
37269 acl_save_exec_prefix="$exec_prefix"
37270 exec_prefix="$acl_final_exec_prefix"
37272 eval additional_includedir=\"$includedir\"
37273 eval additional_libdir=\"$libdir\"
37275 exec_prefix="$acl_save_exec_prefix"
37276 prefix="$acl_save_prefix"
37279 additional_includedir="$withval/include"
37280 additional_libdir="$withval/$acl_libdirstem"
37281 if test "$acl_libdirstem2" != "$acl_libdirstem" \
37282 && ! test -d "$withval/$acl_libdirstem"; then
37283 additional_libdir="$withval/$acl_libdirstem2"
37296 names_already_handled=
37297 names_next_round='iconv '
37298 while test -n "$names_next_round"; do
37299 names_this_round="$names_next_round"
37301 for name in $names_this_round; do
37303 for n in $names_already_handled; do
37304 if test "$n" = "$name"; then
37305 already_handled=yes
37309 if test -z "$already_handled"; then
37310 names_already_handled="$names_already_handled $name"
37311 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
37312 eval value=\"\$HAVE_LIB$uppername\"
37313 if test -n "$value"; then
37314 if test "$value" = yes; then
37315 eval value=\"\$LIB$uppername\"
37316 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
37317 eval value=\"\$LTLIB$uppername\"
37318 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
37327 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
37328 if test -n "$acl_shlibext"; then
37329 shrext=".$acl_shlibext" # typically: shrext=.so
37333 if test $use_additional = yes; then
37334 dir="$additional_libdir"
37335 if test -n "$acl_shlibext"; then
37336 if test -f "$dir/$libname$shrext"; then
37338 found_so="$dir/$libname$shrext"
37340 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37341 ver=`(cd "$dir" && \
37342 for f in "$libname$shrext".*; do echo "$f"; done \
37343 | sed -e "s,^$libname$shrext\\\\.,," \
37344 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37345 | sed 1q ) 2>/dev/null`
37346 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37348 found_so="$dir/$libname$shrext.$ver"
37351 eval library_names=\"$acl_library_names_spec\"
37352 for f in $library_names; do
37353 if test -f "$dir/$f"; then
37362 if test "X$found_dir" = "X"; then
37363 if test -f "$dir/$libname.$acl_libext"; then
37365 found_a="$dir/$libname.$acl_libext"
37368 if test "X$found_dir" != "X"; then
37369 if test -f "$dir/$libname.la"; then
37370 found_la="$dir/$libname.la"
37374 if test "X$found_dir" = "X"; then
37375 for x in $LDFLAGS $LTLIBICONV; do
37377 acl_save_prefix="$prefix"
37378 prefix="$acl_final_prefix"
37379 acl_save_exec_prefix="$exec_prefix"
37380 exec_prefix="$acl_final_exec_prefix"
37382 exec_prefix="$acl_save_exec_prefix"
37383 prefix="$acl_save_prefix"
37387 dir=`echo "X$x" | sed -e 's/^X-L//'`
37388 if test -n "$acl_shlibext"; then
37389 if test -f "$dir/$libname$shrext"; then
37391 found_so="$dir/$libname$shrext"
37393 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37394 ver=`(cd "$dir" && \
37395 for f in "$libname$shrext".*; do echo "$f"; done \
37396 | sed -e "s,^$libname$shrext\\\\.,," \
37397 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37398 | sed 1q ) 2>/dev/null`
37399 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37401 found_so="$dir/$libname$shrext.$ver"
37404 eval library_names=\"$acl_library_names_spec\"
37405 for f in $library_names; do
37406 if test -f "$dir/$f"; then
37415 if test "X$found_dir" = "X"; then
37416 if test -f "$dir/$libname.$acl_libext"; then
37418 found_a="$dir/$libname.$acl_libext"
37421 if test "X$found_dir" != "X"; then
37422 if test -f "$dir/$libname.la"; then
37423 found_la="$dir/$libname.la"
37428 if test "X$found_dir" != "X"; then
37433 if test "X$found_dir" != "X"; then
37434 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
37435 if test "X$found_so" != "X"; then
37436 if test "$enable_rpath" = no \
37437 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
37438 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
37439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37442 for x in $ltrpathdirs; do
37443 if test "X$x" = "X$found_dir"; then
37448 if test -z "$haveit"; then
37449 ltrpathdirs="$ltrpathdirs $found_dir"
37451 if test "$acl_hardcode_direct" = yes; then
37452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37454 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
37455 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37457 for x in $rpathdirs; do
37458 if test "X$x" = "X$found_dir"; then
37463 if test -z "$haveit"; then
37464 rpathdirs="$rpathdirs $found_dir"
37468 for x in $LDFLAGS $LIBICONV; do
37470 acl_save_prefix="$prefix"
37471 prefix="$acl_final_prefix"
37472 acl_save_exec_prefix="$exec_prefix"
37473 exec_prefix="$acl_final_exec_prefix"
37475 exec_prefix="$acl_save_exec_prefix"
37476 prefix="$acl_save_prefix"
37478 if test "X$x" = "X-L$found_dir"; then
37483 if test -z "$haveit"; then
37484 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
37486 if test "$acl_hardcode_minus_L" != no; then
37487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
37489 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
37495 if test "X$found_a" != "X"; then
37496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
37498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
37501 additional_includedir=
37502 case "$found_dir" in
37503 */$acl_libdirstem | */$acl_libdirstem/)
37504 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
37505 LIBICONV_PREFIX="$basedir"
37506 additional_includedir="$basedir/include"
37508 */$acl_libdirstem2 | */$acl_libdirstem2/)
37509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
37510 LIBICONV_PREFIX="$basedir"
37511 additional_includedir="$basedir/include"
37514 if test "X$additional_includedir" != "X"; then
37515 if test "X$additional_includedir" != "X/usr/include"; then
37517 if test "X$additional_includedir" = "X/usr/local/include"; then
37518 if test -n "$GCC"; then
37520 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37524 if test -z "$haveit"; then
37525 for x in $CPPFLAGS $INCICONV; do
37527 acl_save_prefix="$prefix"
37528 prefix="$acl_final_prefix"
37529 acl_save_exec_prefix="$exec_prefix"
37530 exec_prefix="$acl_final_exec_prefix"
37532 exec_prefix="$acl_save_exec_prefix"
37533 prefix="$acl_save_prefix"
37535 if test "X$x" = "X-I$additional_includedir"; then
37540 if test -z "$haveit"; then
37541 if test -d "$additional_includedir"; then
37542 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
37548 if test -n "$found_la"; then
37549 save_libdir="$libdir"
37550 case "$found_la" in
37551 */* | *\\*) . "$found_la" ;;
37552 *) . "./$found_la" ;;
37554 libdir="$save_libdir"
37555 for dep in $dependency_libs; do
37558 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
37559 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
37560 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
37562 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
37563 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
37564 if test -n "$GCC"; then
37566 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37570 if test -z "$haveit"; then
37572 for x in $LDFLAGS $LIBICONV; do
37574 acl_save_prefix="$prefix"
37575 prefix="$acl_final_prefix"
37576 acl_save_exec_prefix="$exec_prefix"
37577 exec_prefix="$acl_final_exec_prefix"
37579 exec_prefix="$acl_save_exec_prefix"
37580 prefix="$acl_save_prefix"
37582 if test "X$x" = "X-L$additional_libdir"; then
37587 if test -z "$haveit"; then
37588 if test -d "$additional_libdir"; then
37589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
37593 for x in $LDFLAGS $LTLIBICONV; do
37595 acl_save_prefix="$prefix"
37596 prefix="$acl_final_prefix"
37597 acl_save_exec_prefix="$exec_prefix"
37598 exec_prefix="$acl_final_exec_prefix"
37600 exec_prefix="$acl_save_exec_prefix"
37601 prefix="$acl_save_prefix"
37603 if test "X$x" = "X-L$additional_libdir"; then
37608 if test -z "$haveit"; then
37609 if test -d "$additional_libdir"; then
37610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
37617 dir=`echo "X$dep" | sed -e 's/^X-R//'`
37618 if test "$enable_rpath" != no; then
37620 for x in $rpathdirs; do
37621 if test "X$x" = "X$dir"; then
37626 if test -z "$haveit"; then
37627 rpathdirs="$rpathdirs $dir"
37630 for x in $ltrpathdirs; do
37631 if test "X$x" = "X$dir"; then
37636 if test -z "$haveit"; then
37637 ltrpathdirs="$ltrpathdirs $dir"
37642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37645 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37648 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
37649 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
37655 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
37656 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
37662 if test "X$rpathdirs" != "X"; then
37663 if test -n "$acl_hardcode_libdir_separator"; then
37665 for found_dir in $rpathdirs; do
37666 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37668 acl_save_libdir="$libdir"
37670 eval flag=\"$acl_hardcode_libdir_flag_spec\"
37671 libdir="$acl_save_libdir"
37672 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37674 for found_dir in $rpathdirs; do
37675 acl_save_libdir="$libdir"
37676 libdir="$found_dir"
37677 eval flag=\"$acl_hardcode_libdir_flag_spec\"
37678 libdir="$acl_save_libdir"
37679 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37683 if test "X$ltrpathdirs" != "X"; then
37684 for found_dir in $ltrpathdirs; do
37685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
37700 am_save_CPPFLAGS="$CPPFLAGS"
37702 for element in $INCICONV; do
37704 for x in $CPPFLAGS; do
37706 acl_save_prefix="$prefix"
37707 prefix="$acl_final_prefix"
37708 acl_save_exec_prefix="$exec_prefix"
37709 exec_prefix="$acl_final_exec_prefix"
37711 exec_prefix="$acl_save_exec_prefix"
37712 prefix="$acl_save_prefix"
37714 if test "X$x" = "X$element"; then
37719 if test -z "$haveit"; then
37720 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37725 { echo "$as_me:$LINENO: checking for iconv" >&5
37726 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37727 if test "${am_cv_func_iconv+set}" = set; then
37728 echo $ECHO_N "(cached) $ECHO_C" >&6
37731 am_cv_func_iconv="no, consider installing GNU libiconv"
37733 cat >conftest.$ac_ext <<_ACEOF
37736 cat confdefs.h >>conftest.$ac_ext
37737 cat >>conftest.$ac_ext <<_ACEOF
37738 /* end confdefs.h. */
37739 #include <stdlib.h>
37744 iconv_t cd = iconv_open("","");
37745 iconv(cd,NULL,NULL,NULL,NULL);
37751 rm -f conftest.$ac_objext conftest$ac_exeext
37752 if { (ac_try="$ac_link"
37753 case "(($ac_try" in
37754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37755 *) ac_try_echo=$ac_try;;
37757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37758 (eval "$ac_link") 2>conftest.er1
37760 grep -v '^ *+' conftest.er1 >conftest.err
37762 cat conftest.err >&5
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); } && {
37765 test -z "$ac_c_werror_flag" ||
37766 test ! -s conftest.err
37767 } && test -s conftest$ac_exeext &&
37768 $as_test_x conftest$ac_exeext; then
37769 am_cv_func_iconv=yes
37771 echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37778 conftest$ac_exeext conftest.$ac_ext
37779 if test "$am_cv_func_iconv" != yes; then
37780 am_save_LIBS="$LIBS"
37781 LIBS="$LIBS $LIBICONV"
37782 cat >conftest.$ac_ext <<_ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h. */
37788 #include <stdlib.h>
37793 iconv_t cd = iconv_open("","");
37794 iconv(cd,NULL,NULL,NULL,NULL);
37800 rm -f conftest.$ac_objext conftest$ac_exeext
37801 if { (ac_try="$ac_link"
37802 case "(($ac_try" in
37803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37804 *) ac_try_echo=$ac_try;;
37806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37807 (eval "$ac_link") 2>conftest.er1
37809 grep -v '^ *+' conftest.er1 >conftest.err
37811 cat conftest.err >&5
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); } && {
37814 test -z "$ac_c_werror_flag" ||
37815 test ! -s conftest.err
37816 } && test -s conftest$ac_exeext &&
37817 $as_test_x conftest$ac_exeext; then
37818 am_cv_lib_iconv=yes
37819 am_cv_func_iconv=yes
37821 echo "$as_me: failed program was:" >&5
37822 sed 's/^/| /' conftest.$ac_ext >&5
37827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37828 conftest$ac_exeext conftest.$ac_ext
37829 LIBS="$am_save_LIBS"
37833 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37834 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37835 if test "$am_cv_func_iconv" = yes; then
37836 { echo "$as_me:$LINENO: checking for working iconv" >&5
37837 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
37838 if test "${am_cv_func_iconv_works+set}" = set; then
37839 echo $ECHO_N "(cached) $ECHO_C" >&6
37842 am_save_LIBS="$LIBS"
37843 if test $am_cv_lib_iconv = yes; then
37844 LIBS="$LIBS $LIBICONV"
37846 if test "$cross_compiling" = yes; then
37848 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
37849 *) am_cv_func_iconv_works="guessing yes" ;;
37852 cat >conftest.$ac_ext <<_ACEOF
37855 cat confdefs.h >>conftest.$ac_ext
37856 cat >>conftest.$ac_ext <<_ACEOF
37857 /* end confdefs.h. */
37860 #include <string.h>
37863 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
37866 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
37867 if (cd_utf8_to_88591 != (iconv_t)(-1))
37869 static const char input[] = "\342\202\254"; /* EURO SIGN */
37871 const char *inptr = input;
37872 size_t inbytesleft = strlen (input);
37873 char *outptr = buf;
37874 size_t outbytesleft = sizeof (buf);
37875 size_t res = iconv (cd_utf8_to_88591,
37876 (char **) &inptr, &inbytesleft,
37877 &outptr, &outbytesleft);
37882 #if 0 /* This bug could be worked around by the caller. */
37883 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
37885 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
37886 if (cd_88591_to_utf8 != (iconv_t)(-1))
37888 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
37890 const char *inptr = input;
37891 size_t inbytesleft = strlen (input);
37892 char *outptr = buf;
37893 size_t outbytesleft = sizeof (buf);
37894 size_t res = iconv (cd_88591_to_utf8,
37895 (char **) &inptr, &inbytesleft,
37896 &outptr, &outbytesleft);
37902 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
37904 if (/* Try standardized names. */
37905 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
37906 /* Try IRIX, OSF/1 names. */
37907 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
37908 /* Try AIX names. */
37909 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
37910 /* Try HP-UX names. */
37911 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
37916 rm -f conftest$ac_exeext
37917 if { (ac_try="$ac_link"
37918 case "(($ac_try" in
37919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37920 *) ac_try_echo=$ac_try;;
37922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37923 (eval "$ac_link") 2>&5
37925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37927 { (case "(($ac_try" in
37928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37929 *) ac_try_echo=$ac_try;;
37931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37932 (eval "$ac_try") 2>&5
37934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935 (exit $ac_status); }; }; then
37936 am_cv_func_iconv_works=yes
37938 echo "$as_me: program exited with status $ac_status" >&5
37939 echo "$as_me: failed program was:" >&5
37940 sed 's/^/| /' conftest.$ac_ext >&5
37942 ( exit $ac_status )
37943 am_cv_func_iconv_works=no
37945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37949 LIBS="$am_save_LIBS"
37952 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
37953 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
37954 case "$am_cv_func_iconv_works" in
37955 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
37956 *) am_func_iconv=yes ;;
37959 am_func_iconv=no am_cv_lib_iconv=no
37961 if test "$am_func_iconv" = yes; then
37963 cat >>confdefs.h <<\_ACEOF
37964 #define HAVE_ICONV 1
37968 if test "$am_cv_lib_iconv" = yes; then
37969 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
37970 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
37971 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
37972 echo "${ECHO_T}$LIBICONV" >&6; }
37974 CPPFLAGS="$am_save_CPPFLAGS"
37981 if test "$am_cv_func_iconv" = yes; then
37982 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
37983 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
37984 if test "${am_cv_proto_iconv+set}" = set; then
37985 echo $ECHO_N "(cached) $ECHO_C" >&6
37988 cat >conftest.$ac_ext <<_ACEOF
37991 cat confdefs.h >>conftest.$ac_ext
37992 cat >>conftest.$ac_ext <<_ACEOF
37993 /* end confdefs.h. */
37995 #include <stdlib.h>
38001 #if defined(__STDC__) || defined(__cplusplus)
38002 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38015 rm -f conftest.$ac_objext
38016 if { (ac_try="$ac_compile"
38017 case "(($ac_try" in
38018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38019 *) ac_try_echo=$ac_try;;
38021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38022 (eval "$ac_compile") 2>conftest.er1
38024 grep -v '^ *+' conftest.er1 >conftest.err
38026 cat conftest.err >&5
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); } && {
38029 test -z "$ac_c_werror_flag" ||
38030 test ! -s conftest.err
38031 } && test -s conftest.$ac_objext; then
38032 am_cv_proto_iconv_arg1=""
38034 echo "$as_me: failed program was:" >&5
38035 sed 's/^/| /' conftest.$ac_ext >&5
38037 am_cv_proto_iconv_arg1="const"
38040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38041 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);"
38044 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
38045 { echo "$as_me:$LINENO: result: ${ac_t:-
38046 }$am_cv_proto_iconv" >&5
38047 echo "${ECHO_T}${ac_t:-
38048 }$am_cv_proto_iconv" >&6; }
38050 cat >>confdefs.h <<_ACEOF
38051 #define ICONV_CONST $am_cv_proto_iconv_arg1
38057 for ac_header in iconv.h
38059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38064 echo $ECHO_N "(cached) $ECHO_C" >&6
38066 ac_res=`eval echo '${'$as_ac_Header'}'`
38067 { echo "$as_me:$LINENO: result: $ac_res" >&5
38068 echo "${ECHO_T}$ac_res" >&6; }
38070 # Is the header compilable?
38071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38073 cat >conftest.$ac_ext <<_ACEOF
38076 cat confdefs.h >>conftest.$ac_ext
38077 cat >>conftest.$ac_ext <<_ACEOF
38078 /* end confdefs.h. */
38079 $ac_includes_default
38080 #include <$ac_header>
38082 rm -f conftest.$ac_objext
38083 if { (ac_try="$ac_compile"
38084 case "(($ac_try" in
38085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38086 *) ac_try_echo=$ac_try;;
38088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38089 (eval "$ac_compile") 2>conftest.er1
38091 grep -v '^ *+' conftest.er1 >conftest.err
38093 cat conftest.err >&5
38094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095 (exit $ac_status); } && {
38096 test -z "$ac_c_werror_flag" ||
38097 test ! -s conftest.err
38098 } && test -s conftest.$ac_objext; then
38099 ac_header_compiler=yes
38101 echo "$as_me: failed program was:" >&5
38102 sed 's/^/| /' conftest.$ac_ext >&5
38104 ac_header_compiler=no
38107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38109 echo "${ECHO_T}$ac_header_compiler" >&6; }
38111 # Is the header present?
38112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38114 cat >conftest.$ac_ext <<_ACEOF
38117 cat confdefs.h >>conftest.$ac_ext
38118 cat >>conftest.$ac_ext <<_ACEOF
38119 /* end confdefs.h. */
38120 #include <$ac_header>
38122 if { (ac_try="$ac_cpp conftest.$ac_ext"
38123 case "(($ac_try" in
38124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38125 *) ac_try_echo=$ac_try;;
38127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38130 grep -v '^ *+' conftest.er1 >conftest.err
38132 cat conftest.err >&5
38133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134 (exit $ac_status); } >/dev/null && {
38135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38136 test ! -s conftest.err
38138 ac_header_preproc=yes
38140 echo "$as_me: failed program was:" >&5
38141 sed 's/^/| /' conftest.$ac_ext >&5
38143 ac_header_preproc=no
38146 rm -f conftest.err conftest.$ac_ext
38147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38148 echo "${ECHO_T}$ac_header_preproc" >&6; }
38150 # So? What about this header?
38151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38157 ac_header_preproc=yes
38160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38173 ## ------------------------------ ##
38174 ## Report this to bug-tar@gnu.org ##
38175 ## ------------------------------ ##
38177 ) | sed "s/^/$as_me: WARNING: /" >&2
38180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38183 echo $ECHO_N "(cached) $ECHO_C" >&6
38185 eval "$as_ac_Header=\$ac_header_preproc"
38187 ac_res=`eval echo '${'$as_ac_Header'}'`
38188 { echo "$as_me:$LINENO: result: $ac_res" >&5
38189 echo "${ECHO_T}$ac_res" >&6; }
38192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38193 cat >>confdefs.h <<_ACEOF
38194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38201 { echo "$as_me:$LINENO: checking for iconv_t" >&5
38202 echo $ECHO_N "checking for iconv_t... $ECHO_C" >&6; }
38203 if test "${ac_cv_type_iconv_t+set}" = set; then
38204 echo $ECHO_N "(cached) $ECHO_C" >&6
38206 cat >conftest.$ac_ext <<_ACEOF
38209 cat confdefs.h >>conftest.$ac_ext
38210 cat >>conftest.$ac_ext <<_ACEOF
38211 /* end confdefs.h. */
38213 #ifdef HAVE_ICONV_H
38214 # include <iconv.h>
38218 typedef iconv_t ac__type_new_;
38222 if ((ac__type_new_ *) 0)
38224 if (sizeof (ac__type_new_))
38230 rm -f conftest.$ac_objext
38231 if { (ac_try="$ac_compile"
38232 case "(($ac_try" in
38233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38234 *) ac_try_echo=$ac_try;;
38236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38237 (eval "$ac_compile") 2>conftest.er1
38239 grep -v '^ *+' conftest.er1 >conftest.err
38241 cat conftest.err >&5
38242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243 (exit $ac_status); } && {
38244 test -z "$ac_c_werror_flag" ||
38245 test ! -s conftest.err
38246 } && test -s conftest.$ac_objext; then
38247 ac_cv_type_iconv_t=yes
38249 echo "$as_me: failed program was:" >&5
38250 sed 's/^/| /' conftest.$ac_ext >&5
38252 ac_cv_type_iconv_t=no
38255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38257 { echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
38258 echo "${ECHO_T}$ac_cv_type_iconv_t" >&6; }
38259 if test $ac_cv_type_iconv_t = yes; then
38263 cat >>confdefs.h <<\_ACEOF
38264 #define iconv_t int
38272 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38273 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
38274 # Check whether --enable-nls was given.
38275 if test "${enable_nls+set}" = set; then
38276 enableval=$enable_nls; USE_NLS=$enableval
38281 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
38282 echo "${ECHO_T}$USE_NLS" >&6; }
38287 GETTEXT_MACRO_VERSION=0.17
38292 # Prepare PATH_SEPARATOR.
38293 # The user is always right.
38294 if test "${PATH_SEPARATOR+set}" != set; then
38295 echo "#! /bin/sh" >conf$$.sh
38296 echo "exit 0" >>conf$$.sh
38298 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38306 # Find out how to test for executable files. Don't use a zero-byte file,
38307 # as systems may use methods other than mode bits to determine executability.
38308 cat >conf$$.file <<_ASEOF
38312 chmod +x conf$$.file
38313 if test -x conf$$.file >/dev/null 2>&1; then
38314 ac_executable_p="test -x"
38316 ac_executable_p="test -f"
38320 # Extract the first word of "msgfmt", so it can be a program name with args.
38321 set dummy msgfmt; ac_word=$2
38322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38324 if test "${ac_cv_path_MSGFMT+set}" = set; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38329 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38332 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38333 for ac_dir in $PATH; do
38335 test -z "$ac_dir" && ac_dir=.
38336 for ac_exec_ext in '' $ac_executable_extensions; do
38337 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38338 echo "$as_me: trying $ac_dir/$ac_word..." >&5
38339 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
38340 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38341 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
38348 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
38352 MSGFMT="$ac_cv_path_MSGFMT"
38353 if test "$MSGFMT" != ":"; then
38354 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
38355 echo "${ECHO_T}$MSGFMT" >&6; }
38357 { echo "$as_me:$LINENO: result: no" >&5
38358 echo "${ECHO_T}no" >&6; }
38361 # Extract the first word of "gmsgfmt", so it can be a program name with args.
38362 set dummy gmsgfmt; ac_word=$2
38363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38365 if test "${ac_cv_path_GMSGFMT+set}" = set; then
38366 echo $ECHO_N "(cached) $ECHO_C" >&6
38370 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
38373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38374 for as_dir in $PATH
38377 test -z "$as_dir" && as_dir=.
38378 for ac_exec_ext in '' $ac_executable_extensions; do
38379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38380 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
38381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38388 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
38392 GMSGFMT=$ac_cv_path_GMSGFMT
38393 if test -n "$GMSGFMT"; then
38394 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38395 echo "${ECHO_T}$GMSGFMT" >&6; }
38397 { echo "$as_me:$LINENO: result: no" >&5
38398 echo "${ECHO_T}no" >&6; }
38403 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38404 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
38405 *) MSGFMT_015=$MSGFMT ;;
38408 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38409 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
38410 *) GMSGFMT_015=$GMSGFMT ;;
38415 # Prepare PATH_SEPARATOR.
38416 # The user is always right.
38417 if test "${PATH_SEPARATOR+set}" != set; then
38418 echo "#! /bin/sh" >conf$$.sh
38419 echo "exit 0" >>conf$$.sh
38421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38429 # Find out how to test for executable files. Don't use a zero-byte file,
38430 # as systems may use methods other than mode bits to determine executability.
38431 cat >conf$$.file <<_ASEOF
38435 chmod +x conf$$.file
38436 if test -x conf$$.file >/dev/null 2>&1; then
38437 ac_executable_p="test -x"
38439 ac_executable_p="test -f"
38443 # Extract the first word of "xgettext", so it can be a program name with args.
38444 set dummy xgettext; ac_word=$2
38445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38447 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38448 echo $ECHO_N "(cached) $ECHO_C" >&6
38450 case "$XGETTEXT" in
38452 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
38455 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38456 for ac_dir in $PATH; do
38458 test -z "$ac_dir" && ac_dir=.
38459 for ac_exec_ext in '' $ac_executable_extensions; do
38460 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38461 echo "$as_me: trying $ac_dir/$ac_word..." >&5
38462 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
38463 (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
38464 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
38471 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
38475 XGETTEXT="$ac_cv_path_XGETTEXT"
38476 if test "$XGETTEXT" != ":"; then
38477 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38478 echo "${ECHO_T}$XGETTEXT" >&6; }
38480 { echo "$as_me:$LINENO: result: no" >&5
38481 echo "${ECHO_T}no" >&6; }
38486 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38487 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
38488 *) XGETTEXT_015=$XGETTEXT ;;
38493 # Prepare PATH_SEPARATOR.
38494 # The user is always right.
38495 if test "${PATH_SEPARATOR+set}" != set; then
38496 echo "#! /bin/sh" >conf$$.sh
38497 echo "exit 0" >>conf$$.sh
38499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38507 # Find out how to test for executable files. Don't use a zero-byte file,
38508 # as systems may use methods other than mode bits to determine executability.
38509 cat >conf$$.file <<_ASEOF
38513 chmod +x conf$$.file
38514 if test -x conf$$.file >/dev/null 2>&1; then
38515 ac_executable_p="test -x"
38517 ac_executable_p="test -f"
38521 # Extract the first word of "msgmerge", so it can be a program name with args.
38522 set dummy msgmerge; ac_word=$2
38523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38525 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38526 echo $ECHO_N "(cached) $ECHO_C" >&6
38528 case "$MSGMERGE" in
38530 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
38533 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38534 for ac_dir in $PATH; do
38536 test -z "$ac_dir" && ac_dir=.
38537 for ac_exec_ext in '' $ac_executable_extensions; do
38538 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38539 echo "$as_me: trying $ac_dir/$ac_word..." >&5
38540 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
38541 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
38548 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
38552 MSGMERGE="$ac_cv_path_MSGMERGE"
38553 if test "$MSGMERGE" != ":"; then
38554 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38555 echo "${ECHO_T}$MSGMERGE" >&6; }
38557 { echo "$as_me:$LINENO: result: no" >&5
38558 echo "${ECHO_T}no" >&6; }
38562 test -n "$localedir" || localedir='${datadir}/locale'
38565 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
38568 ac_config_commands="$ac_config_commands po-directories"
38594 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
38595 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
38596 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
38597 echo $ECHO_N "(cached) $ECHO_C" >&6
38599 gt_save_LIBS="$LIBS"
38600 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
38601 cat >conftest.$ac_ext <<_ACEOF
38604 cat confdefs.h >>conftest.$ac_ext
38605 cat >>conftest.$ac_ext <<_ACEOF
38606 /* end confdefs.h. */
38607 #include <CoreFoundation/CFPreferences.h>
38611 CFPreferencesCopyAppValue(NULL, NULL)
38616 rm -f conftest.$ac_objext conftest$ac_exeext
38617 if { (ac_try="$ac_link"
38618 case "(($ac_try" in
38619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38620 *) ac_try_echo=$ac_try;;
38622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38623 (eval "$ac_link") 2>conftest.er1
38625 grep -v '^ *+' conftest.er1 >conftest.err
38627 cat conftest.err >&5
38628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); } && {
38630 test -z "$ac_c_werror_flag" ||
38631 test ! -s conftest.err
38632 } && test -s conftest$ac_exeext &&
38633 $as_test_x conftest$ac_exeext; then
38634 gt_cv_func_CFPreferencesCopyAppValue=yes
38636 echo "$as_me: failed program was:" >&5
38637 sed 's/^/| /' conftest.$ac_ext >&5
38639 gt_cv_func_CFPreferencesCopyAppValue=no
38642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38643 conftest$ac_exeext conftest.$ac_ext
38644 LIBS="$gt_save_LIBS"
38646 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
38647 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
38648 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
38650 cat >>confdefs.h <<\_ACEOF
38651 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
38655 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
38656 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
38657 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
38658 echo $ECHO_N "(cached) $ECHO_C" >&6
38660 gt_save_LIBS="$LIBS"
38661 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
38662 cat >conftest.$ac_ext <<_ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h. */
38668 #include <CoreFoundation/CFLocale.h>
38672 CFLocaleCopyCurrent();
38677 rm -f conftest.$ac_objext conftest$ac_exeext
38678 if { (ac_try="$ac_link"
38679 case "(($ac_try" in
38680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38681 *) ac_try_echo=$ac_try;;
38683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38684 (eval "$ac_link") 2>conftest.er1
38686 grep -v '^ *+' conftest.er1 >conftest.err
38688 cat conftest.err >&5
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); } && {
38691 test -z "$ac_c_werror_flag" ||
38692 test ! -s conftest.err
38693 } && test -s conftest$ac_exeext &&
38694 $as_test_x conftest$ac_exeext; then
38695 gt_cv_func_CFLocaleCopyCurrent=yes
38697 echo "$as_me: failed program was:" >&5
38698 sed 's/^/| /' conftest.$ac_ext >&5
38700 gt_cv_func_CFLocaleCopyCurrent=no
38703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38704 conftest$ac_exeext conftest.$ac_ext
38705 LIBS="$gt_save_LIBS"
38707 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
38708 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
38709 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38711 cat >>confdefs.h <<\_ACEOF
38712 #define HAVE_CFLOCALECOPYCURRENT 1
38717 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38718 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
38730 case " $gt_needs " in
38731 *" need-formatstring-macros "*) gt_api_version=3 ;;
38732 *" need-ngettext "*) gt_api_version=2 ;;
38733 *) gt_api_version=1 ;;
38735 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
38736 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
38738 if test "$USE_NLS" = "yes"; then
38739 gt_use_preinstalled_gnugettext=no
38742 if test $gt_api_version -ge 3; then
38743 gt_revision_test_code='
38744 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
38745 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
38747 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
38750 gt_revision_test_code=
38752 if test $gt_api_version -ge 2; then
38753 gt_expression_test_code=' + * ngettext ("", "", 0)'
38755 gt_expression_test_code=
38758 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
38759 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
38760 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
38761 echo $ECHO_N "(cached) $ECHO_C" >&6
38763 cat >conftest.$ac_ext <<_ACEOF
38766 cat confdefs.h >>conftest.$ac_ext
38767 cat >>conftest.$ac_ext <<_ACEOF
38768 /* end confdefs.h. */
38769 #include <libintl.h>
38770 $gt_revision_test_code
38771 extern int _nl_msg_cat_cntr;
38772 extern int *_nl_domain_bindings;
38776 bindtextdomain ("", "");
38777 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
38782 rm -f conftest.$ac_objext conftest$ac_exeext
38783 if { (ac_try="$ac_link"
38784 case "(($ac_try" in
38785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38786 *) ac_try_echo=$ac_try;;
38788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38789 (eval "$ac_link") 2>conftest.er1
38791 grep -v '^ *+' conftest.er1 >conftest.err
38793 cat conftest.err >&5
38794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795 (exit $ac_status); } && {
38796 test -z "$ac_c_werror_flag" ||
38797 test ! -s conftest.err
38798 } && test -s conftest$ac_exeext &&
38799 $as_test_x conftest$ac_exeext; then
38800 eval "$gt_func_gnugettext_libc=yes"
38802 echo "$as_me: failed program was:" >&5
38803 sed 's/^/| /' conftest.$ac_ext >&5
38805 eval "$gt_func_gnugettext_libc=no"
38808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38809 conftest$ac_exeext conftest.$ac_ext
38811 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
38812 { echo "$as_me:$LINENO: result: $ac_res" >&5
38813 echo "${ECHO_T}$ac_res" >&6; }
38815 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
38821 am_save_CPPFLAGS="$CPPFLAGS"
38823 for element in $INCICONV; do
38825 for x in $CPPFLAGS; do
38827 acl_save_prefix="$prefix"
38828 prefix="$acl_final_prefix"
38829 acl_save_exec_prefix="$exec_prefix"
38830 exec_prefix="$acl_final_exec_prefix"
38832 exec_prefix="$acl_save_exec_prefix"
38833 prefix="$acl_save_prefix"
38835 if test "X$x" = "X$element"; then
38840 if test -z "$haveit"; then
38841 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
38846 { echo "$as_me:$LINENO: checking for iconv" >&5
38847 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38848 if test "${am_cv_func_iconv+set}" = set; then
38849 echo $ECHO_N "(cached) $ECHO_C" >&6
38852 am_cv_func_iconv="no, consider installing GNU libiconv"
38854 cat >conftest.$ac_ext <<_ACEOF
38857 cat confdefs.h >>conftest.$ac_ext
38858 cat >>conftest.$ac_ext <<_ACEOF
38859 /* end confdefs.h. */
38860 #include <stdlib.h>
38865 iconv_t cd = iconv_open("","");
38866 iconv(cd,NULL,NULL,NULL,NULL);
38872 rm -f conftest.$ac_objext conftest$ac_exeext
38873 if { (ac_try="$ac_link"
38874 case "(($ac_try" in
38875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876 *) ac_try_echo=$ac_try;;
38878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38879 (eval "$ac_link") 2>conftest.er1
38881 grep -v '^ *+' conftest.er1 >conftest.err
38883 cat conftest.err >&5
38884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885 (exit $ac_status); } && {
38886 test -z "$ac_c_werror_flag" ||
38887 test ! -s conftest.err
38888 } && test -s conftest$ac_exeext &&
38889 $as_test_x conftest$ac_exeext; then
38890 am_cv_func_iconv=yes
38892 echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38899 conftest$ac_exeext conftest.$ac_ext
38900 if test "$am_cv_func_iconv" != yes; then
38901 am_save_LIBS="$LIBS"
38902 LIBS="$LIBS $LIBICONV"
38903 cat >conftest.$ac_ext <<_ACEOF
38906 cat confdefs.h >>conftest.$ac_ext
38907 cat >>conftest.$ac_ext <<_ACEOF
38908 /* end confdefs.h. */
38909 #include <stdlib.h>
38914 iconv_t cd = iconv_open("","");
38915 iconv(cd,NULL,NULL,NULL,NULL);
38921 rm -f conftest.$ac_objext conftest$ac_exeext
38922 if { (ac_try="$ac_link"
38923 case "(($ac_try" in
38924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38925 *) ac_try_echo=$ac_try;;
38927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38928 (eval "$ac_link") 2>conftest.er1
38930 grep -v '^ *+' conftest.er1 >conftest.err
38932 cat conftest.err >&5
38933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934 (exit $ac_status); } && {
38935 test -z "$ac_c_werror_flag" ||
38936 test ! -s conftest.err
38937 } && test -s conftest$ac_exeext &&
38938 $as_test_x conftest$ac_exeext; then
38939 am_cv_lib_iconv=yes
38940 am_cv_func_iconv=yes
38942 echo "$as_me: failed program was:" >&5
38943 sed 's/^/| /' conftest.$ac_ext >&5
38948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38949 conftest$ac_exeext conftest.$ac_ext
38950 LIBS="$am_save_LIBS"
38954 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38955 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38956 if test "$am_cv_func_iconv" = yes; then
38957 { echo "$as_me:$LINENO: checking for working iconv" >&5
38958 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
38959 if test "${am_cv_func_iconv_works+set}" = set; then
38960 echo $ECHO_N "(cached) $ECHO_C" >&6
38963 am_save_LIBS="$LIBS"
38964 if test $am_cv_lib_iconv = yes; then
38965 LIBS="$LIBS $LIBICONV"
38967 if test "$cross_compiling" = yes; then
38969 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
38970 *) am_cv_func_iconv_works="guessing yes" ;;
38973 cat >conftest.$ac_ext <<_ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h. */
38981 #include <string.h>
38984 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
38987 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
38988 if (cd_utf8_to_88591 != (iconv_t)(-1))
38990 static const char input[] = "\342\202\254"; /* EURO SIGN */
38992 const char *inptr = input;
38993 size_t inbytesleft = strlen (input);
38994 char *outptr = buf;
38995 size_t outbytesleft = sizeof (buf);
38996 size_t res = iconv (cd_utf8_to_88591,
38997 (char **) &inptr, &inbytesleft,
38998 &outptr, &outbytesleft);
39003 #if 0 /* This bug could be worked around by the caller. */
39004 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
39006 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
39007 if (cd_88591_to_utf8 != (iconv_t)(-1))
39009 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
39011 const char *inptr = input;
39012 size_t inbytesleft = strlen (input);
39013 char *outptr = buf;
39014 size_t outbytesleft = sizeof (buf);
39015 size_t res = iconv (cd_88591_to_utf8,
39016 (char **) &inptr, &inbytesleft,
39017 &outptr, &outbytesleft);
39023 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
39025 if (/* Try standardized names. */
39026 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
39027 /* Try IRIX, OSF/1 names. */
39028 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
39029 /* Try AIX names. */
39030 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
39031 /* Try HP-UX names. */
39032 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
39037 rm -f conftest$ac_exeext
39038 if { (ac_try="$ac_link"
39039 case "(($ac_try" in
39040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39041 *) ac_try_echo=$ac_try;;
39043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39044 (eval "$ac_link") 2>&5
39046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39048 { (case "(($ac_try" in
39049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39050 *) ac_try_echo=$ac_try;;
39052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39053 (eval "$ac_try") 2>&5
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); }; }; then
39057 am_cv_func_iconv_works=yes
39059 echo "$as_me: program exited with status $ac_status" >&5
39060 echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39063 ( exit $ac_status )
39064 am_cv_func_iconv_works=no
39066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39070 LIBS="$am_save_LIBS"
39073 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
39074 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
39075 case "$am_cv_func_iconv_works" in
39076 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
39077 *) am_func_iconv=yes ;;
39080 am_func_iconv=no am_cv_lib_iconv=no
39082 if test "$am_func_iconv" = yes; then
39084 cat >>confdefs.h <<\_ACEOF
39085 #define HAVE_ICONV 1
39089 if test "$am_cv_lib_iconv" = yes; then
39090 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
39091 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
39092 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
39093 echo "${ECHO_T}$LIBICONV" >&6; }
39095 CPPFLAGS="$am_save_CPPFLAGS"
39112 acl_save_prefix="$prefix"
39113 prefix="$acl_final_prefix"
39114 acl_save_exec_prefix="$exec_prefix"
39115 exec_prefix="$acl_final_exec_prefix"
39117 eval additional_includedir=\"$includedir\"
39118 eval additional_libdir=\"$libdir\"
39120 exec_prefix="$acl_save_exec_prefix"
39121 prefix="$acl_save_prefix"
39124 # Check whether --with-libintl-prefix was given.
39125 if test "${with_libintl_prefix+set}" = set; then
39126 withval=$with_libintl_prefix;
39127 if test "X$withval" = "Xno"; then
39130 if test "X$withval" = "X"; then
39132 acl_save_prefix="$prefix"
39133 prefix="$acl_final_prefix"
39134 acl_save_exec_prefix="$exec_prefix"
39135 exec_prefix="$acl_final_exec_prefix"
39137 eval additional_includedir=\"$includedir\"
39138 eval additional_libdir=\"$libdir\"
39140 exec_prefix="$acl_save_exec_prefix"
39141 prefix="$acl_save_prefix"
39144 additional_includedir="$withval/include"
39145 additional_libdir="$withval/$acl_libdirstem"
39146 if test "$acl_libdirstem2" != "$acl_libdirstem" \
39147 && ! test -d "$withval/$acl_libdirstem"; then
39148 additional_libdir="$withval/$acl_libdirstem2"
39161 names_already_handled=
39162 names_next_round='intl '
39163 while test -n "$names_next_round"; do
39164 names_this_round="$names_next_round"
39166 for name in $names_this_round; do
39168 for n in $names_already_handled; do
39169 if test "$n" = "$name"; then
39170 already_handled=yes
39174 if test -z "$already_handled"; then
39175 names_already_handled="$names_already_handled $name"
39176 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39177 eval value=\"\$HAVE_LIB$uppername\"
39178 if test -n "$value"; then
39179 if test "$value" = yes; then
39180 eval value=\"\$LIB$uppername\"
39181 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
39182 eval value=\"\$LTLIB$uppername\"
39183 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
39192 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
39193 if test -n "$acl_shlibext"; then
39194 shrext=".$acl_shlibext" # typically: shrext=.so
39198 if test $use_additional = yes; then
39199 dir="$additional_libdir"
39200 if test -n "$acl_shlibext"; then
39201 if test -f "$dir/$libname$shrext"; then
39203 found_so="$dir/$libname$shrext"
39205 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39206 ver=`(cd "$dir" && \
39207 for f in "$libname$shrext".*; do echo "$f"; done \
39208 | sed -e "s,^$libname$shrext\\\\.,," \
39209 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39210 | sed 1q ) 2>/dev/null`
39211 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39213 found_so="$dir/$libname$shrext.$ver"
39216 eval library_names=\"$acl_library_names_spec\"
39217 for f in $library_names; do
39218 if test -f "$dir/$f"; then
39227 if test "X$found_dir" = "X"; then
39228 if test -f "$dir/$libname.$acl_libext"; then
39230 found_a="$dir/$libname.$acl_libext"
39233 if test "X$found_dir" != "X"; then
39234 if test -f "$dir/$libname.la"; then
39235 found_la="$dir/$libname.la"
39239 if test "X$found_dir" = "X"; then
39240 for x in $LDFLAGS $LTLIBINTL; do
39242 acl_save_prefix="$prefix"
39243 prefix="$acl_final_prefix"
39244 acl_save_exec_prefix="$exec_prefix"
39245 exec_prefix="$acl_final_exec_prefix"
39247 exec_prefix="$acl_save_exec_prefix"
39248 prefix="$acl_save_prefix"
39252 dir=`echo "X$x" | sed -e 's/^X-L//'`
39253 if test -n "$acl_shlibext"; then
39254 if test -f "$dir/$libname$shrext"; then
39256 found_so="$dir/$libname$shrext"
39258 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39259 ver=`(cd "$dir" && \
39260 for f in "$libname$shrext".*; do echo "$f"; done \
39261 | sed -e "s,^$libname$shrext\\\\.,," \
39262 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39263 | sed 1q ) 2>/dev/null`
39264 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39266 found_so="$dir/$libname$shrext.$ver"
39269 eval library_names=\"$acl_library_names_spec\"
39270 for f in $library_names; do
39271 if test -f "$dir/$f"; then
39280 if test "X$found_dir" = "X"; then
39281 if test -f "$dir/$libname.$acl_libext"; then
39283 found_a="$dir/$libname.$acl_libext"
39286 if test "X$found_dir" != "X"; then
39287 if test -f "$dir/$libname.la"; then
39288 found_la="$dir/$libname.la"
39293 if test "X$found_dir" != "X"; then
39298 if test "X$found_dir" != "X"; then
39299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
39300 if test "X$found_so" != "X"; then
39301 if test "$enable_rpath" = no \
39302 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
39303 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
39304 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39307 for x in $ltrpathdirs; do
39308 if test "X$x" = "X$found_dir"; then
39313 if test -z "$haveit"; then
39314 ltrpathdirs="$ltrpathdirs $found_dir"
39316 if test "$acl_hardcode_direct" = yes; then
39317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39319 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
39320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39322 for x in $rpathdirs; do
39323 if test "X$x" = "X$found_dir"; then
39328 if test -z "$haveit"; then
39329 rpathdirs="$rpathdirs $found_dir"
39333 for x in $LDFLAGS $LIBINTL; do
39335 acl_save_prefix="$prefix"
39336 prefix="$acl_final_prefix"
39337 acl_save_exec_prefix="$exec_prefix"
39338 exec_prefix="$acl_final_exec_prefix"
39340 exec_prefix="$acl_save_exec_prefix"
39341 prefix="$acl_save_prefix"
39343 if test "X$x" = "X-L$found_dir"; then
39348 if test -z "$haveit"; then
39349 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39351 if test "$acl_hardcode_minus_L" != no; then
39352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39354 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39360 if test "X$found_a" != "X"; then
39361 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
39363 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39366 additional_includedir=
39367 case "$found_dir" in
39368 */$acl_libdirstem | */$acl_libdirstem/)
39369 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39370 LIBINTL_PREFIX="$basedir"
39371 additional_includedir="$basedir/include"
39373 */$acl_libdirstem2 | */$acl_libdirstem2/)
39374 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
39375 LIBINTL_PREFIX="$basedir"
39376 additional_includedir="$basedir/include"
39379 if test "X$additional_includedir" != "X"; then
39380 if test "X$additional_includedir" != "X/usr/include"; then
39382 if test "X$additional_includedir" = "X/usr/local/include"; then
39383 if test -n "$GCC"; then
39385 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39389 if test -z "$haveit"; then
39390 for x in $CPPFLAGS $INCINTL; do
39392 acl_save_prefix="$prefix"
39393 prefix="$acl_final_prefix"
39394 acl_save_exec_prefix="$exec_prefix"
39395 exec_prefix="$acl_final_exec_prefix"
39397 exec_prefix="$acl_save_exec_prefix"
39398 prefix="$acl_save_prefix"
39400 if test "X$x" = "X-I$additional_includedir"; then
39405 if test -z "$haveit"; then
39406 if test -d "$additional_includedir"; then
39407 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
39413 if test -n "$found_la"; then
39414 save_libdir="$libdir"
39415 case "$found_la" in
39416 */* | *\\*) . "$found_la" ;;
39417 *) . "./$found_la" ;;
39419 libdir="$save_libdir"
39420 for dep in $dependency_libs; do
39423 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39424 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
39425 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
39427 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
39428 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
39429 if test -n "$GCC"; then
39431 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39435 if test -z "$haveit"; then
39437 for x in $LDFLAGS $LIBINTL; do
39439 acl_save_prefix="$prefix"
39440 prefix="$acl_final_prefix"
39441 acl_save_exec_prefix="$exec_prefix"
39442 exec_prefix="$acl_final_exec_prefix"
39444 exec_prefix="$acl_save_exec_prefix"
39445 prefix="$acl_save_prefix"
39447 if test "X$x" = "X-L$additional_libdir"; then
39452 if test -z "$haveit"; then
39453 if test -d "$additional_libdir"; then
39454 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
39458 for x in $LDFLAGS $LTLIBINTL; do
39460 acl_save_prefix="$prefix"
39461 prefix="$acl_final_prefix"
39462 acl_save_exec_prefix="$exec_prefix"
39463 exec_prefix="$acl_final_exec_prefix"
39465 exec_prefix="$acl_save_exec_prefix"
39466 prefix="$acl_save_prefix"
39468 if test "X$x" = "X-L$additional_libdir"; then
39473 if test -z "$haveit"; then
39474 if test -d "$additional_libdir"; then
39475 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
39482 dir=`echo "X$dep" | sed -e 's/^X-R//'`
39483 if test "$enable_rpath" != no; then
39485 for x in $rpathdirs; do
39486 if test "X$x" = "X$dir"; then
39491 if test -z "$haveit"; then
39492 rpathdirs="$rpathdirs $dir"
39495 for x in $ltrpathdirs; do
39496 if test "X$x" = "X$dir"; then
39501 if test -z "$haveit"; then
39502 ltrpathdirs="$ltrpathdirs $dir"
39507 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39510 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39513 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
39514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
39520 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39521 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
39527 if test "X$rpathdirs" != "X"; then
39528 if test -n "$acl_hardcode_libdir_separator"; then
39530 for found_dir in $rpathdirs; do
39531 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
39533 acl_save_libdir="$libdir"
39535 eval flag=\"$acl_hardcode_libdir_flag_spec\"
39536 libdir="$acl_save_libdir"
39537 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
39539 for found_dir in $rpathdirs; do
39540 acl_save_libdir="$libdir"
39541 libdir="$found_dir"
39542 eval flag=\"$acl_hardcode_libdir_flag_spec\"
39543 libdir="$acl_save_libdir"
39544 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
39548 if test "X$ltrpathdirs" != "X"; then
39549 for found_dir in $ltrpathdirs; do
39550 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
39559 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
39560 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
39561 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
39562 echo $ECHO_N "(cached) $ECHO_C" >&6
39564 gt_save_CPPFLAGS="$CPPFLAGS"
39565 CPPFLAGS="$CPPFLAGS $INCINTL"
39566 gt_save_LIBS="$LIBS"
39567 LIBS="$LIBS $LIBINTL"
39568 cat >conftest.$ac_ext <<_ACEOF
39571 cat confdefs.h >>conftest.$ac_ext
39572 cat >>conftest.$ac_ext <<_ACEOF
39573 /* end confdefs.h. */
39574 #include <libintl.h>
39575 $gt_revision_test_code
39576 extern int _nl_msg_cat_cntr;
39581 const char *_nl_expand_alias (const char *);
39585 bindtextdomain ("", "");
39586 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
39591 rm -f conftest.$ac_objext 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39598 (eval "$ac_link") 2>conftest.er1
39600 grep -v '^ *+' conftest.er1 >conftest.err
39602 cat conftest.err >&5
39603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604 (exit $ac_status); } && {
39605 test -z "$ac_c_werror_flag" ||
39606 test ! -s conftest.err
39607 } && test -s conftest$ac_exeext &&
39608 $as_test_x conftest$ac_exeext; then
39609 eval "$gt_func_gnugettext_libintl=yes"
39611 echo "$as_me: failed program was:" >&5
39612 sed 's/^/| /' conftest.$ac_ext >&5
39614 eval "$gt_func_gnugettext_libintl=no"
39617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39618 conftest$ac_exeext conftest.$ac_ext
39619 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
39620 LIBS="$LIBS $LIBICONV"
39621 cat >conftest.$ac_ext <<_ACEOF
39624 cat confdefs.h >>conftest.$ac_ext
39625 cat >>conftest.$ac_ext <<_ACEOF
39626 /* end confdefs.h. */
39627 #include <libintl.h>
39628 $gt_revision_test_code
39629 extern int _nl_msg_cat_cntr;
39634 const char *_nl_expand_alias (const char *);
39638 bindtextdomain ("", "");
39639 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
39644 rm -f conftest.$ac_objext conftest$ac_exeext
39645 if { (ac_try="$ac_link"
39646 case "(($ac_try" in
39647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39648 *) ac_try_echo=$ac_try;;
39650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39651 (eval "$ac_link") 2>conftest.er1
39653 grep -v '^ *+' conftest.er1 >conftest.err
39655 cat conftest.err >&5
39656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657 (exit $ac_status); } && {
39658 test -z "$ac_c_werror_flag" ||
39659 test ! -s conftest.err
39660 } && test -s conftest$ac_exeext &&
39661 $as_test_x conftest$ac_exeext; then
39662 LIBINTL="$LIBINTL $LIBICONV"
39663 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
39664 eval "$gt_func_gnugettext_libintl=yes"
39667 echo "$as_me: failed program was:" >&5
39668 sed 's/^/| /' conftest.$ac_ext >&5
39673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39674 conftest$ac_exeext conftest.$ac_ext
39676 CPPFLAGS="$gt_save_CPPFLAGS"
39677 LIBS="$gt_save_LIBS"
39679 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
39680 { echo "$as_me:$LINENO: result: $ac_res" >&5
39681 echo "${ECHO_T}$ac_res" >&6; }
39684 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
39685 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
39686 && test "$PACKAGE" != gettext-runtime \
39687 && test "$PACKAGE" != gettext-tools; }; then
39688 gt_use_preinstalled_gnugettext=yes
39697 if test -n "$INTL_MACOSX_LIBS"; then
39698 if test "$gt_use_preinstalled_gnugettext" = "yes" \
39699 || test "$nls_cv_use_gnu_gettext" = "yes"; then
39700 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
39701 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
39705 if test "$gt_use_preinstalled_gnugettext" = "yes" \
39706 || test "$nls_cv_use_gnu_gettext" = "yes"; then
39708 cat >>confdefs.h <<\_ACEOF
39709 #define ENABLE_NLS 1
39717 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
39718 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
39719 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
39720 echo "${ECHO_T}$USE_NLS" >&6; }
39721 if test "$USE_NLS" = "yes"; then
39722 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
39723 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
39724 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39725 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
39726 gt_source="external libintl"
39731 gt_source="included intl directory"
39733 { echo "$as_me:$LINENO: result: $gt_source" >&5
39734 echo "${ECHO_T}$gt_source" >&6; }
39737 if test "$USE_NLS" = "yes"; then
39739 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39740 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
39741 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
39742 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
39743 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
39744 echo "${ECHO_T}$LIBINTL" >&6; }
39746 for element in $INCINTL; do
39748 for x in $CPPFLAGS; do
39750 acl_save_prefix="$prefix"
39751 prefix="$acl_final_prefix"
39752 acl_save_exec_prefix="$exec_prefix"
39753 exec_prefix="$acl_final_exec_prefix"
39755 exec_prefix="$acl_save_exec_prefix"
39756 prefix="$acl_save_prefix"
39758 if test "X$x" = "X$element"; then
39763 if test -z "$haveit"; then
39764 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39771 cat >>confdefs.h <<\_ACEOF
39772 #define HAVE_GETTEXT 1
39776 cat >>confdefs.h <<\_ACEOF
39777 #define HAVE_DCGETTEXT 1
39787 INTLLIBS="$LIBINTL"
39796 # Initialize the test suite.
39797 ac_config_commands="$ac_config_commands tests/atconfig"
39800 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
39801 # FIXME: tests/preset?
39803 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
39808 # Check whether --enable-backup-scripts was given.
39809 if test "${enable_backup_scripts+set}" = set; then
39810 enableval=$enable_backup_scripts; case $enableval in
39811 yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
39812 BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
39819 if date +%Y-%m-%d 2>/dev/null >&2; then
39820 BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
39822 BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
39825 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
39827 cat >confcache <<\_ACEOF
39828 # This file is a shell script that caches the results of configure
39829 # tests run on this system so they can be shared between configure
39830 # scripts and configure runs, see configure's option --config-cache.
39831 # It is not useful on other systems. If it contains results you don't
39832 # want to keep, you may remove or edit it.
39834 # config.status only pays attention to the cache file if you give it
39835 # the --recheck option to rerun configure.
39837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39839 # following values.
39843 # The following way of writing the cache mishandles newlines in values,
39844 # but we know of no workaround that is simple, portable, and efficient.
39845 # So, we kill variables containing newlines.
39846 # Ultrix sh set writes to stderr and can't be redirected directly,
39847 # and sets the high bit in the cache file unless we assign to the vars.
39849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39850 eval ac_val=\$$ac_var
39854 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39855 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39858 _ | IFS | as_nl) ;; #(
39859 *) $as_unset $ac_var ;;
39865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39866 *${as_nl}ac_space=\ *)
39867 # `set' does not quote correctly, so add quotes (double-quote
39868 # substitution turns \\\\ into \\, and sed turns \\ into \).
39871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39874 # `set' quotes correctly as required by POSIX, so do not add quotes.
39875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39889 if test -w "$cache_file"; then
39890 test "x$cache_file" != "x/dev/null" &&
39891 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39892 echo "$as_me: updating cache $cache_file" >&6;}
39893 cat confcache >$cache_file
39895 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39896 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39902 # Let make expand exec_prefix.
39903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39905 DEFS=-DHAVE_CONFIG_H
39909 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39910 # 1. Remove the extension, and $U if already installed.
39911 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39912 ac_i=`echo "$ac_i" | sed "$ac_script"`
39913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39914 # will be set to the directory where LIBOBJS objects are built.
39915 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39916 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39918 LIBOBJS=$ac_libobjs
39920 LTLIBOBJS=$ac_ltlibobjs
39923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39924 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39925 Usually this means the macro was only invoked conditionally." >&5
39926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39927 Usually this means the macro was only invoked conditionally." >&2;}
39928 { (exit 1); exit 1; }; }
39930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39931 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39932 Usually this means the macro was only invoked conditionally." >&5
39933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39934 Usually this means the macro was only invoked conditionally." >&2;}
39935 { (exit 1); exit 1; }; }
39937 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
39938 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
39939 Usually this means the macro was only invoked conditionally." >&5
39940 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
39941 Usually this means the macro was only invoked conditionally." >&2;}
39942 { (exit 1); exit 1; }; }
39947 if test -n "$gl_LIBOBJS"; then
39948 # Remove the extension.
39949 sed_drop_objext='s/\.o$//;s/\.obj$//'
39950 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
39951 gl_libobjs="$gl_libobjs $i.$ac_objext"
39952 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
39955 gl_LIBOBJS=$gl_libobjs
39957 gl_LTLIBOBJS=$gl_ltlibobjs
39963 if test -n "$gltests_LIBOBJS"; then
39964 # Remove the extension.
39965 sed_drop_objext='s/\.o$//;s/\.obj$//'
39966 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
39967 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
39968 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
39971 gltests_LIBOBJS=$gltests_libobjs
39973 gltests_LTLIBOBJS=$gltests_ltlibobjs
39977 : ${CONFIG_STATUS=./config.status}
39978 ac_clean_files_save=$ac_clean_files
39979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39982 cat >$CONFIG_STATUS <<_ACEOF
39984 # Generated by $as_me.
39985 # Run this file to recreate the current configuration.
39986 # Compiler output produced by configure, useful for debugging
39987 # configure, is in config.log if it exists.
39990 ac_cs_recheck=false
39992 SHELL=\${CONFIG_SHELL-$SHELL}
39995 cat >>$CONFIG_STATUS <<\_ACEOF
39996 ## --------------------- ##
39997 ## M4sh Initialization. ##
39998 ## --------------------- ##
40000 # Be more Bourne compatible
40001 DUALCASE=1; export DUALCASE # for MKS sh
40002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40005 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40006 # is contrary to our usage. Disable this feature.
40007 alias -g '${1+"$@"}'='"$@"'
40008 setopt NO_GLOB_SUBST
40010 case `(set -o) 2>/dev/null` in
40011 *posix*) set -o posix ;;
40020 # Avoid depending upon Character Ranges.
40021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40024 as_cr_digits='0123456789'
40025 as_cr_alnum=$as_cr_Letters$as_cr_digits
40027 # The user is always right.
40028 if test "${PATH_SEPARATOR+set}" != set; then
40029 echo "#! /bin/sh" >conf$$.sh
40030 echo "exit 0" >>conf$$.sh
40032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40040 # Support unset when possible.
40041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40049 # We need space, tab and new line, in precisely that order. Quoting is
40050 # there to prevent editors from complaining about space-tab.
40051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40052 # splitting by setting IFS to empty value.)
40057 # Find who we are. Look in the path if we contain no directory separator.
40059 *[\\/]* ) as_myself=$0 ;;
40060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40061 for as_dir in $PATH
40064 test -z "$as_dir" && as_dir=.
40065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40071 # We did not find ourselves, most probably we were run as `sh COMMAND'
40072 # in which case we are not to be found in the path.
40073 if test "x$as_myself" = x; then
40076 if test ! -f "$as_myself"; then
40077 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40078 { (exit 1); exit 1; }
40081 # Work around bugs in pre-3.0 UWIN ksh.
40082 for as_var in ENV MAIL MAILPATH
40083 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40091 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40092 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40093 LC_TELEPHONE LC_TIME
40095 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40096 eval $as_var=C; export $as_var
40098 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40102 # Required to use basename.
40103 if expr a : '\(a\)' >/dev/null 2>&1 &&
40104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
40110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40111 as_basename=basename
40117 # Name of the executable.
40118 as_me=`$as_basename -- "$0" ||
40119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40120 X"$0" : 'X\(//\)$' \| \
40121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40123 sed '/^.*\/\([^/][^/]*\)\/*$/{
40142 as_lineno_1=$LINENO
40143 as_lineno_2=$LINENO
40144 test "x$as_lineno_1" != "x$as_lineno_2" &&
40145 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
40147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40148 # uniformly replaced by the line number. The first 'sed' inserts a
40149 # line-number line after each line using $LINENO; the second 'sed'
40150 # does the real work. The second script uses 'N' to pair each
40151 # line-number line with the line containing $LINENO, and appends
40152 # trailing '-' during substitution so that $LINENO is not a special
40153 # case at line end.
40154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40155 # scripts with optimization help from Paolo Bonzini. Blame Lee
40156 # E. McMahon (1931-1989) for sed's syntax. :-)
40168 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
40171 ' >$as_me.lineno &&
40172 chmod +x "$as_me.lineno" ||
40173 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
40174 { (exit 1); exit 1; }; }
40176 # Don't try to exec as it changes $[0], causing all sort of problems
40177 # (the dirname of $[0] is not the place where we might find the
40178 # original and so on. Autoconf is especially sensitive to this).
40179 . "./$as_me.lineno"
40180 # Exit status is that of the last command.
40185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40191 ECHO_C= ECHO_N= ECHO_T=
40192 case `echo -n x` in
40194 case `echo 'x\c'` in
40195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
40202 if expr a : '\(a\)' >/dev/null 2>&1 &&
40203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
40209 rm -f conf$$ conf$$.exe conf$$.file
40210 if test -d conf$$.dir; then
40211 rm -f conf$$.dir/conf$$.file
40217 if ln -s conf$$.file conf$$ 2>/dev/null; then
40219 # ... but there are two gotchas:
40220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40222 # In both cases, we have to default to `cp -p'.
40223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40225 elif ln conf$$.file conf$$ 2>/dev/null; then
40230 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40231 rmdir conf$$.dir 2>/dev/null
40233 if mkdir -p . 2>/dev/null; then
40236 test -d ./-p && rmdir ./-p
40240 if test -x / >/dev/null 2>&1; then
40241 as_test_x='test -x'
40243 if ls -dL / >/dev/null 2>&1; then
40250 if test -d "$1"; then
40256 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
40257 ???[sx]*):;;*)false;;esac;fi
40261 as_executable_p=$as_test_x
40263 # Sed expression to map a string onto a valid CPP name.
40264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40266 # Sed expression to map a string onto a valid variable name.
40267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40272 # Save the log message, to keep $[0] and so on meaningful, and to
40273 # report actual input values of CONFIG_FILES etc. instead of their
40274 # values after options handling.
40276 This file was extended by GNU tar $as_me 1.21, which was
40277 generated by GNU Autoconf 2.61. Invocation command line was
40279 CONFIG_FILES = $CONFIG_FILES
40280 CONFIG_HEADERS = $CONFIG_HEADERS
40281 CONFIG_LINKS = $CONFIG_LINKS
40282 CONFIG_COMMANDS = $CONFIG_COMMANDS
40285 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40290 cat >>$CONFIG_STATUS <<_ACEOF
40291 # Files that config.status was made for.
40292 config_files="$ac_config_files"
40293 config_headers="$ac_config_headers"
40294 config_commands="$ac_config_commands"
40298 cat >>$CONFIG_STATUS <<\_ACEOF
40300 \`$as_me' instantiates files from templates according to the
40301 current configuration.
40303 Usage: $0 [OPTIONS] [FILE]...
40305 -h, --help print this help, then exit
40306 -V, --version print version number and configuration settings, then exit
40307 -q, --quiet do not print progress messages
40308 -d, --debug don't remove temporary files
40309 --recheck update $as_me by reconfiguring in the same conditions
40310 --file=FILE[:TEMPLATE]
40311 instantiate the configuration file FILE
40312 --header=FILE[:TEMPLATE]
40313 instantiate the configuration header FILE
40315 Configuration files:
40318 Configuration headers:
40321 Configuration commands:
40324 Report bugs to <bug-autoconf@gnu.org>."
40327 cat >>$CONFIG_STATUS <<_ACEOF
40329 GNU tar config.status 1.21
40330 configured by $0, generated by GNU Autoconf 2.61,
40331 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
40333 Copyright (C) 2006 Free Software Foundation, Inc.
40334 This config.status script is free software; the Free Software Foundation
40335 gives unlimited permission to copy, distribute and modify it."
40343 cat >>$CONFIG_STATUS <<\_ACEOF
40344 # If no file are specified by the user, then we need to provide default
40345 # value. By we need to know if files were specified by the user.
40351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40363 # Handling of the options.
40364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40367 echo "$ac_cs_version"; exit ;;
40368 --debug | --debu | --deb | --de | --d | -d )
40370 --file | --fil | --fi | --f )
40372 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40373 ac_need_defaults=false;;
40374 --header | --heade | --head | --hea )
40376 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40377 ac_need_defaults=false;;
40379 # Conflict between --help and --header
40380 { echo "$as_me: error: ambiguous option: $1
40381 Try \`$0 --help' for more information." >&2
40382 { (exit 1); exit 1; }; };;
40383 --help | --hel | -h )
40384 echo "$ac_cs_usage"; exit ;;
40385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40389 # This is an error.
40390 -*) { echo "$as_me: error: unrecognized option: $1
40391 Try \`$0 --help' for more information." >&2
40392 { (exit 1); exit 1; }; } ;;
40394 *) ac_config_targets="$ac_config_targets $1"
40395 ac_need_defaults=false ;;
40401 ac_configure_extra_args=
40403 if $ac_cs_silent; then
40405 ac_configure_extra_args="$ac_configure_extra_args --silent"
40409 cat >>$CONFIG_STATUS <<_ACEOF
40410 if \$ac_cs_recheck; then
40411 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40412 CONFIG_SHELL=$SHELL
40413 export CONFIG_SHELL
40414 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40418 cat >>$CONFIG_STATUS <<\_ACEOF
40422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40423 ## Running $as_me. ##
40429 cat >>$CONFIG_STATUS <<_ACEOF
40433 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40434 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
40435 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
40436 # from automake < 1.5.
40437 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
40438 # Capture the value of LINGUAS because we need it to compute CATALOGS.
40439 LINGUAS="${LINGUAS-%UNSET%}"
40444 cat >>$CONFIG_STATUS <<\_ACEOF
40446 # Handling of arguments.
40447 for ac_config_target in $ac_config_targets
40449 case $ac_config_target in
40450 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
40451 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40452 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
40453 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
40454 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40455 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
40456 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40457 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
40458 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40459 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
40460 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
40461 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
40462 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40464 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40465 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40466 { (exit 1); exit 1; }; };;
40471 # If the user did not use the arguments to specify the items to instantiate,
40472 # then the envvar interface is used. Set only those that are not.
40473 # We use the long form for the default assignment because of an extremely
40474 # bizarre bug on SunOS 4.1.3.
40475 if $ac_need_defaults; then
40476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40481 # Have a temporary directory for convenience. Make it in the build tree
40482 # simply because there is no reason against having it here, and in addition,
40483 # creating and moving files from /tmp can sometimes cause problems.
40484 # Hook for its removal unless debugging.
40485 # Note that there is a small window in which the directory will not be cleaned:
40486 # after its creation but before its name has been assigned to `$tmp'.
40490 trap 'exit_status=$?
40491 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
40493 trap '{ (exit 1); exit 1; }' 1 2 13 15
40495 # Create a (secure) tmp directory for tmp files.
40498 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40499 test -n "$tmp" && test -d "$tmp"
40502 tmp=./conf$$-$RANDOM
40503 (umask 077 && mkdir "$tmp")
40506 echo "$me: cannot create a temporary directory in ." >&2
40507 { (exit 1); exit 1; }
40511 # Set up the sed scripts for CONFIG_FILES section.
40514 # No need to generate the scripts if there are no CONFIG_FILES.
40515 # This happens for instance when ./config.status config.h
40516 if test -n "$CONFIG_FILES"; then
40523 for ac_last_try in false false false false false :; do
40524 cat >conf$$subs.sed <<_ACEOF
40525 SHELL!$SHELL$ac_delim
40526 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
40527 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
40528 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
40529 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
40530 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
40531 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
40532 exec_prefix!$exec_prefix$ac_delim
40533 prefix!$prefix$ac_delim
40534 program_transform_name!$program_transform_name$ac_delim
40535 bindir!$bindir$ac_delim
40536 sbindir!$sbindir$ac_delim
40537 libexecdir!$libexecdir$ac_delim
40538 datarootdir!$datarootdir$ac_delim
40539 datadir!$datadir$ac_delim
40540 sysconfdir!$sysconfdir$ac_delim
40541 sharedstatedir!$sharedstatedir$ac_delim
40542 localstatedir!$localstatedir$ac_delim
40543 includedir!$includedir$ac_delim
40544 oldincludedir!$oldincludedir$ac_delim
40545 docdir!$docdir$ac_delim
40546 infodir!$infodir$ac_delim
40547 htmldir!$htmldir$ac_delim
40548 dvidir!$dvidir$ac_delim
40549 pdfdir!$pdfdir$ac_delim
40550 psdir!$psdir$ac_delim
40551 libdir!$libdir$ac_delim
40552 localedir!$localedir$ac_delim
40553 mandir!$mandir$ac_delim
40554 DEFS!$DEFS$ac_delim
40555 ECHO_C!$ECHO_C$ac_delim
40556 ECHO_N!$ECHO_N$ac_delim
40557 ECHO_T!$ECHO_T$ac_delim
40558 LIBS!$LIBS$ac_delim
40559 build_alias!$build_alias$ac_delim
40560 host_alias!$host_alias$ac_delim
40561 target_alias!$target_alias$ac_delim
40562 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
40563 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
40564 INSTALL_DATA!$INSTALL_DATA$ac_delim
40565 am__isrc!$am__isrc$ac_delim
40566 CYGPATH_W!$CYGPATH_W$ac_delim
40567 PACKAGE!$PACKAGE$ac_delim
40568 VERSION!$VERSION$ac_delim
40569 ACLOCAL!$ACLOCAL$ac_delim
40570 AUTOCONF!$AUTOCONF$ac_delim
40571 AUTOMAKE!$AUTOMAKE$ac_delim
40572 AUTOHEADER!$AUTOHEADER$ac_delim
40573 MAKEINFO!$MAKEINFO$ac_delim
40574 install_sh!$install_sh$ac_delim
40575 STRIP!$STRIP$ac_delim
40576 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
40577 mkdir_p!$mkdir_p$ac_delim
40579 SET_MAKE!$SET_MAKE$ac_delim
40580 am__leading_dot!$am__leading_dot$ac_delim
40581 AMTAR!$AMTAR$ac_delim
40582 am__tar!$am__tar$ac_delim
40583 am__untar!$am__untar$ac_delim
40585 CFLAGS!$CFLAGS$ac_delim
40586 LDFLAGS!$LDFLAGS$ac_delim
40587 CPPFLAGS!$CPPFLAGS$ac_delim
40588 ac_ct_CC!$ac_ct_CC$ac_delim
40589 EXEEXT!$EXEEXT$ac_delim
40590 OBJEXT!$OBJEXT$ac_delim
40591 DEPDIR!$DEPDIR$ac_delim
40592 am__include!$am__include$ac_delim
40593 am__quote!$am__quote$ac_delim
40594 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
40595 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
40596 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
40597 CCDEPMODE!$CCDEPMODE$ac_delim
40598 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
40599 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
40600 RANLIB!$RANLIB$ac_delim
40601 YACC!$YACC$ac_delim
40602 YFLAGS!$YFLAGS$ac_delim
40604 GREP!$GREP$ac_delim
40605 EGREP!$EGREP$ac_delim
40606 STDBOOL_H!$STDBOOL_H$ac_delim
40607 HAVE__BOOL!$HAVE__BOOL$ac_delim
40608 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
40609 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
40610 ALLOCA!$ALLOCA$ac_delim
40611 ALLOCA_H!$ALLOCA_H$ac_delim
40612 GETOPT_H!$GETOPT_H$ac_delim
40613 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
40614 GNULIB_CLOSE!$GNULIB_CLOSE$ac_delim
40615 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
40616 GNULIB_ENVIRON!$GNULIB_ENVIRON$ac_delim
40617 GNULIB_EUIDACCESS!$GNULIB_EUIDACCESS$ac_delim
40618 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
40619 GNULIB_FSYNC!$GNULIB_FSYNC$ac_delim
40620 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
40621 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
40624 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40626 elif $ac_last_try; then
40627 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40628 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40629 { (exit 1); exit 1; }; }
40631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40635 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40636 if test -n "$ac_eof"; then
40637 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40638 ac_eof=`expr $ac_eof + 1`
40641 cat >>$CONFIG_STATUS <<_ACEOF
40642 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40646 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40647 s/^/s,@/; s/!/@,|#_!!_#|/
40650 s/'"$ac_delim"'$/,g/; t
40652 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40653 ' >>$CONFIG_STATUS <conf$$subs.sed
40654 rm -f conf$$subs.sed
40655 cat >>$CONFIG_STATUS <<_ACEOF
40661 for ac_last_try in false false false false false :; do
40662 cat >conf$$subs.sed <<_ACEOF
40663 GNULIB_GETDOMAINNAME!$GNULIB_GETDOMAINNAME$ac_delim
40664 GNULIB_GETDTABLESIZE!$GNULIB_GETDTABLESIZE$ac_delim
40665 GNULIB_GETHOSTNAME!$GNULIB_GETHOSTNAME$ac_delim
40666 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
40667 GNULIB_GETPAGESIZE!$GNULIB_GETPAGESIZE$ac_delim
40668 GNULIB_GETUSERSHELL!$GNULIB_GETUSERSHELL$ac_delim
40669 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
40670 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
40671 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
40672 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
40673 GNULIB_UNISTD_H_SIGPIPE!$GNULIB_UNISTD_H_SIGPIPE$ac_delim
40674 GNULIB_WRITE!$GNULIB_WRITE$ac_delim
40675 HAVE_DUP2!$HAVE_DUP2$ac_delim
40676 HAVE_EUIDACCESS!$HAVE_EUIDACCESS$ac_delim
40677 HAVE_FSYNC!$HAVE_FSYNC$ac_delim
40678 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
40679 HAVE_GETDOMAINNAME!$HAVE_GETDOMAINNAME$ac_delim
40680 HAVE_GETDTABLESIZE!$HAVE_GETDTABLESIZE$ac_delim
40681 HAVE_GETHOSTNAME!$HAVE_GETHOSTNAME$ac_delim
40682 HAVE_GETPAGESIZE!$HAVE_GETPAGESIZE$ac_delim
40683 HAVE_GETUSERSHELL!$HAVE_GETUSERSHELL$ac_delim
40684 HAVE_READLINK!$HAVE_READLINK$ac_delim
40685 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
40686 HAVE_DECL_ENVIRON!$HAVE_DECL_ENVIRON$ac_delim
40687 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
40688 HAVE_OS_H!$HAVE_OS_H$ac_delim
40689 HAVE_SYS_PARAM_H!$HAVE_SYS_PARAM_H$ac_delim
40690 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
40691 REPLACE_CLOSE!$REPLACE_CLOSE$ac_delim
40692 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
40693 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
40694 REPLACE_GETPAGESIZE!$REPLACE_GETPAGESIZE$ac_delim
40695 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
40696 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
40697 REPLACE_WRITE!$REPLACE_WRITE$ac_delim
40698 UNISTD_H_HAVE_WINSOCK2_H!$UNISTD_H_HAVE_WINSOCK2_H$ac_delim
40699 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
40700 GNULIB_DIRFD!$GNULIB_DIRFD$ac_delim
40701 HAVE_DECL_DIRFD!$HAVE_DECL_DIRFD$ac_delim
40702 DIRENT_H!$DIRENT_H$ac_delim
40703 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
40704 PRAGMA_SYSTEM_HEADER!$PRAGMA_SYSTEM_HEADER$ac_delim
40705 NEXT_DIRENT_H!$NEXT_DIRENT_H$ac_delim
40706 build!$build$ac_delim
40707 build_cpu!$build_cpu$ac_delim
40708 build_vendor!$build_vendor$ac_delim
40709 build_os!$build_os$ac_delim
40710 host!$host$ac_delim
40711 host_cpu!$host_cpu$ac_delim
40712 host_vendor!$host_vendor$ac_delim
40713 host_os!$host_os$ac_delim
40714 NEXT_ERRNO_H!$NEXT_ERRNO_H$ac_delim
40715 ERRNO_H!$ERRNO_H$ac_delim
40716 EMULTIHOP_HIDDEN!$EMULTIHOP_HIDDEN$ac_delim
40717 EMULTIHOP_VALUE!$EMULTIHOP_VALUE$ac_delim
40718 ENOLINK_HIDDEN!$ENOLINK_HIDDEN$ac_delim
40719 ENOLINK_VALUE!$ENOLINK_VALUE$ac_delim
40720 EOVERFLOW_HIDDEN!$EOVERFLOW_HIDDEN$ac_delim
40721 EOVERFLOW_VALUE!$EOVERFLOW_VALUE$ac_delim
40722 GNULIB_OPEN!$GNULIB_OPEN$ac_delim
40723 REPLACE_OPEN!$REPLACE_OPEN$ac_delim
40724 GNULIB_FPRINTF!$GNULIB_FPRINTF$ac_delim
40725 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
40726 GNULIB_PRINTF!$GNULIB_PRINTF$ac_delim
40727 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
40728 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
40729 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
40730 GNULIB_VFPRINTF!$GNULIB_VFPRINTF$ac_delim
40731 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
40732 GNULIB_VPRINTF!$GNULIB_VPRINTF$ac_delim
40733 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
40734 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
40735 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
40736 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
40737 GNULIB_OBSTACK_PRINTF!$GNULIB_OBSTACK_PRINTF$ac_delim
40738 GNULIB_OBSTACK_PRINTF_POSIX!$GNULIB_OBSTACK_PRINTF_POSIX$ac_delim
40739 GNULIB_FOPEN!$GNULIB_FOPEN$ac_delim
40740 GNULIB_FREOPEN!$GNULIB_FREOPEN$ac_delim
40741 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
40742 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
40743 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
40744 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
40745 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
40746 GNULIB_FCLOSE!$GNULIB_FCLOSE$ac_delim
40747 GNULIB_FPUTC!$GNULIB_FPUTC$ac_delim
40748 GNULIB_PUTC!$GNULIB_PUTC$ac_delim
40749 GNULIB_PUTCHAR!$GNULIB_PUTCHAR$ac_delim
40750 GNULIB_FPUTS!$GNULIB_FPUTS$ac_delim
40751 GNULIB_PUTS!$GNULIB_PUTS$ac_delim
40752 GNULIB_FWRITE!$GNULIB_FWRITE$ac_delim
40753 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
40754 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
40755 GNULIB_PERROR!$GNULIB_PERROR$ac_delim
40756 GNULIB_STDIO_H_SIGPIPE!$GNULIB_STDIO_H_SIGPIPE$ac_delim
40757 REPLACE_STDIO_WRITE_FUNCS!$REPLACE_STDIO_WRITE_FUNCS$ac_delim
40758 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
40759 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
40762 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40764 elif $ac_last_try; then
40765 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40766 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40767 { (exit 1); exit 1; }; }
40769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40773 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40774 if test -n "$ac_eof"; then
40775 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40776 ac_eof=`expr $ac_eof + 1`
40779 cat >>$CONFIG_STATUS <<_ACEOF
40780 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40784 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40785 s/^/s,@/; s/!/@,|#_!!_#|/
40788 s/'"$ac_delim"'$/,g/; t
40790 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40791 ' >>$CONFIG_STATUS <conf$$subs.sed
40792 rm -f conf$$subs.sed
40793 cat >>$CONFIG_STATUS <<_ACEOF
40799 for ac_last_try in false false false false false :; do
40800 cat >conf$$subs.sed <<_ACEOF
40801 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
40802 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
40803 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
40804 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
40805 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
40806 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
40807 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
40808 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
40809 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
40810 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
40811 HAVE_DECL_OBSTACK_PRINTF!$HAVE_DECL_OBSTACK_PRINTF$ac_delim
40812 REPLACE_OBSTACK_PRINTF!$REPLACE_OBSTACK_PRINTF$ac_delim
40813 REPLACE_FOPEN!$REPLACE_FOPEN$ac_delim
40814 REPLACE_FREOPEN!$REPLACE_FREOPEN$ac_delim
40815 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
40816 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
40817 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
40818 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
40819 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
40820 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
40821 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
40822 REPLACE_FCLOSE!$REPLACE_FCLOSE$ac_delim
40823 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
40824 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
40825 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
40826 REPLACE_PERROR!$REPLACE_PERROR$ac_delim
40827 NEXT_FCNTL_H!$NEXT_FCNTL_H$ac_delim
40828 FCNTL_H!$FCNTL_H$ac_delim
40829 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
40830 FLOAT_H!$FLOAT_H$ac_delim
40831 FNMATCH_H!$FNMATCH_H$ac_delim
40832 LIBINTL!$LIBINTL$ac_delim
40833 LTLIBINTL!$LTLIBINTL$ac_delim
40834 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
40835 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
40836 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
40837 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
40838 SYS_TIME_H!$SYS_TIME_H$ac_delim
40839 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
40840 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
40841 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
40842 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
40843 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
40844 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
40845 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
40846 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
40847 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
40848 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
40849 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
40850 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
40851 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
40852 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
40853 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
40854 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
40855 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
40856 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
40857 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
40858 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
40859 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
40860 STDINT_H!$STDINT_H$ac_delim
40861 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
40862 GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
40863 GNULIB_IMAXDIV!$GNULIB_IMAXDIV$ac_delim
40864 GNULIB_STRTOIMAX!$GNULIB_STRTOIMAX$ac_delim
40865 GNULIB_STRTOUMAX!$GNULIB_STRTOUMAX$ac_delim
40866 HAVE_DECL_IMAXABS!$HAVE_DECL_IMAXABS$ac_delim
40867 HAVE_DECL_IMAXDIV!$HAVE_DECL_IMAXDIV$ac_delim
40868 HAVE_DECL_STRTOIMAX!$HAVE_DECL_STRTOIMAX$ac_delim
40869 HAVE_DECL_STRTOUMAX!$HAVE_DECL_STRTOUMAX$ac_delim
40870 NEXT_INTTYPES_H!$NEXT_INTTYPES_H$ac_delim
40871 PRIPTR_PREFIX!$PRIPTR_PREFIX$ac_delim
40872 INT32_MAX_LT_INTMAX_MAX!$INT32_MAX_LT_INTMAX_MAX$ac_delim
40873 INT64_MAX_EQ_LONG_MAX!$INT64_MAX_EQ_LONG_MAX$ac_delim
40874 UINT32_MAX_LT_UINTMAX_MAX!$UINT32_MAX_LT_UINTMAX_MAX$ac_delim
40875 UINT64_MAX_EQ_ULONG_MAX!$UINT64_MAX_EQ_ULONG_MAX$ac_delim
40876 INTTYPES_H!$INTTYPES_H$ac_delim
40877 GLIBC21!$GLIBC21$ac_delim
40878 LOCALCHARSET_TESTS_ENVIRONMENT!$LOCALCHARSET_TESTS_ENVIRONMENT$ac_delim
40879 GNULIB_LCHMOD!$GNULIB_LCHMOD$ac_delim
40880 GNULIB_LSTAT!$GNULIB_LSTAT$ac_delim
40881 HAVE_LCHMOD!$HAVE_LCHMOD$ac_delim
40882 REPLACE_LSTAT!$REPLACE_LSTAT$ac_delim
40883 REPLACE_MKDIR!$REPLACE_MKDIR$ac_delim
40884 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
40885 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
40886 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
40887 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
40888 GNULIB_ATOLL!$GNULIB_ATOLL$ac_delim
40889 GNULIB_GETLOADAVG!$GNULIB_GETLOADAVG$ac_delim
40890 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
40891 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
40892 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
40893 GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim
40894 GNULIB_RANDOM_R!$GNULIB_RANDOM_R$ac_delim
40895 GNULIB_RPMATCH!$GNULIB_RPMATCH$ac_delim
40896 GNULIB_SETENV!$GNULIB_SETENV$ac_delim
40897 GNULIB_STRTOD!$GNULIB_STRTOD$ac_delim
40900 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40902 elif $ac_last_try; then
40903 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40904 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40905 { (exit 1); exit 1; }; }
40907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40911 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40912 if test -n "$ac_eof"; then
40913 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40914 ac_eof=`expr $ac_eof + 1`
40917 cat >>$CONFIG_STATUS <<_ACEOF
40918 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
40919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40922 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40923 s/^/s,@/; s/!/@,|#_!!_#|/
40926 s/'"$ac_delim"'$/,g/; t
40928 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40929 ' >>$CONFIG_STATUS <conf$$subs.sed
40930 rm -f conf$$subs.sed
40931 cat >>$CONFIG_STATUS <<_ACEOF
40937 for ac_last_try in false false false false false :; do
40938 cat >conf$$subs.sed <<_ACEOF
40939 GNULIB_STRTOLL!$GNULIB_STRTOLL$ac_delim
40940 GNULIB_STRTOULL!$GNULIB_STRTOULL$ac_delim
40941 GNULIB_UNSETENV!$GNULIB_UNSETENV$ac_delim
40942 HAVE_ATOLL!$HAVE_ATOLL$ac_delim
40943 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
40944 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
40945 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
40946 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
40947 HAVE_RANDOM_R!$HAVE_RANDOM_R$ac_delim
40948 HAVE_RPMATCH!$HAVE_RPMATCH$ac_delim
40949 HAVE_SETENV!$HAVE_SETENV$ac_delim
40950 HAVE_STRTOD!$HAVE_STRTOD$ac_delim
40951 HAVE_STRTOLL!$HAVE_STRTOLL$ac_delim
40952 HAVE_STRTOULL!$HAVE_STRTOULL$ac_delim
40953 HAVE_STRUCT_RANDOM_DATA!$HAVE_STRUCT_RANDOM_DATA$ac_delim
40954 HAVE_SYS_LOADAVG_H!$HAVE_SYS_LOADAVG_H$ac_delim
40955 HAVE_UNSETENV!$HAVE_UNSETENV$ac_delim
40956 HAVE_DECL_GETLOADAVG!$HAVE_DECL_GETLOADAVG$ac_delim
40957 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
40958 REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim
40959 REPLACE_STRTOD!$REPLACE_STRTOD$ac_delim
40960 VOID_UNSETENV!$VOID_UNSETENV$ac_delim
40961 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
40962 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
40963 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
40964 GNULIB_RAWMEMCHR!$GNULIB_RAWMEMCHR$ac_delim
40965 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
40966 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
40967 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
40968 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
40969 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
40970 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
40971 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
40972 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
40973 GNULIB_STRSTR!$GNULIB_STRSTR$ac_delim
40974 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
40975 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
40976 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
40977 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
40978 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
40979 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
40980 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
40981 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
40982 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
40983 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
40984 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
40985 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
40986 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
40987 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
40988 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
40989 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
40990 GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim
40991 GNULIB_STRSIGNAL!$GNULIB_STRSIGNAL$ac_delim
40992 GNULIB_STRVERSCMP!$GNULIB_STRVERSCMP$ac_delim
40993 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
40994 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
40995 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
40996 HAVE_RAWMEMCHR!$HAVE_RAWMEMCHR$ac_delim
40997 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
40998 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
40999 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
41000 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
41001 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
41002 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
41003 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
41004 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
41005 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
41006 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
41007 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
41008 HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim
41009 HAVE_DECL_STRSIGNAL!$HAVE_DECL_STRSIGNAL$ac_delim
41010 HAVE_STRVERSCMP!$HAVE_STRVERSCMP$ac_delim
41011 REPLACE_MEMMEM!$REPLACE_MEMMEM$ac_delim
41012 REPLACE_STRDUP!$REPLACE_STRDUP$ac_delim
41013 REPLACE_STRSTR!$REPLACE_STRSTR$ac_delim
41014 REPLACE_STRCASESTR!$REPLACE_STRCASESTR$ac_delim
41015 REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim
41016 REPLACE_STRSIGNAL!$REPLACE_STRSIGNAL$ac_delim
41017 STDARG_H!$STDARG_H$ac_delim
41018 NEXT_STDARG_H!$NEXT_STDARG_H$ac_delim
41019 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
41020 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
41021 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
41022 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
41023 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
41024 NEXT_STRINGS_H!$NEXT_STRINGS_H$ac_delim
41025 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
41026 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
41027 SYS_STAT_H!$SYS_STAT_H$ac_delim
41028 NEXT_SYSEXITS_H!$NEXT_SYSEXITS_H$ac_delim
41029 HAVE_SYSEXITS_H!$HAVE_SYSEXITS_H$ac_delim
41030 SYSEXITS_H!$SYSEXITS_H$ac_delim
41031 REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
41032 REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
41033 REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
41034 REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
41035 NEXT_TIME_H!$NEXT_TIME_H$ac_delim
41038 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41040 elif $ac_last_try; then
41041 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41043 { (exit 1); exit 1; }; }
41045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41050 if test -n "$ac_eof"; then
41051 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41052 ac_eof=`expr $ac_eof + 1`
41055 cat >>$CONFIG_STATUS <<_ACEOF
41056 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
41057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41061 s/^/s,@/; s/!/@,|#_!!_#|/
41064 s/'"$ac_delim"'$/,g/; t
41066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41067 ' >>$CONFIG_STATUS <conf$$subs.sed
41068 rm -f conf$$subs.sed
41069 cat >>$CONFIG_STATUS <<_ACEOF
41075 for ac_last_try in false false false false false :; do
41076 cat >conf$$subs.sed <<_ACEOF
41077 TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
41078 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
41079 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
41080 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
41081 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
41082 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
41083 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
41084 WCHAR_H!$WCHAR_H$ac_delim
41085 HAVE_WINT_T!$HAVE_WINT_T$ac_delim
41086 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
41087 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
41088 HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
41089 NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
41090 HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
41091 WCTYPE_H!$WCTYPE_H$ac_delim
41092 REPLACE_ISWCNTRL!$REPLACE_ISWCNTRL$ac_delim
41093 LIBTAR_LIBDEPS!$LIBTAR_LIBDEPS$ac_delim
41094 LIBTAR_LTLIBDEPS!$LIBTAR_LTLIBDEPS$ac_delim
41095 LIB_SETSOCKOPT!$LIB_SETSOCKOPT$ac_delim
41096 PU_RMT_PROG!$PU_RMT_PROG$ac_delim
41097 DEFAULT_RMT_DIR!$DEFAULT_RMT_DIR$ac_delim
41098 DEFAULT_RMT_COMMAND!$DEFAULT_RMT_COMMAND$ac_delim
41099 LIBOBJS!$LIBOBJS$ac_delim
41100 DEFAULT_ARCHIVE_FORMAT!$DEFAULT_ARCHIVE_FORMAT$ac_delim
41101 DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
41102 DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
41103 DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
41104 LIBICONV!$LIBICONV$ac_delim
41105 LTLIBICONV!$LTLIBICONV$ac_delim
41106 USE_NLS!$USE_NLS$ac_delim
41107 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
41108 MSGFMT!$MSGFMT$ac_delim
41109 GMSGFMT!$GMSGFMT$ac_delim
41110 MSGFMT_015!$MSGFMT_015$ac_delim
41111 GMSGFMT_015!$GMSGFMT_015$ac_delim
41112 XGETTEXT!$XGETTEXT$ac_delim
41113 XGETTEXT_015!$XGETTEXT_015$ac_delim
41114 MSGMERGE!$MSGMERGE$ac_delim
41115 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
41116 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
41117 INTLLIBS!$INTLLIBS$ac_delim
41118 POSUB!$POSUB$ac_delim
41119 AUTOM4TE!$AUTOM4TE$ac_delim
41120 BACKUP_LIBEXEC_SCRIPTS!$BACKUP_LIBEXEC_SCRIPTS$ac_delim
41121 BACKUP_SBIN_SCRIPTS!$BACKUP_SBIN_SCRIPTS$ac_delim
41122 BACKUP_SED_COND!$BACKUP_SED_COND$ac_delim
41123 LTLIBOBJS!$LTLIBOBJS$ac_delim
41124 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
41125 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
41126 gltests_LIBOBJS!$gltests_LIBOBJS$ac_delim
41127 gltests_LTLIBOBJS!$gltests_LTLIBOBJS$ac_delim
41130 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
41132 elif $ac_last_try; then
41133 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41135 { (exit 1); exit 1; }; }
41137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41142 if test -n "$ac_eof"; then
41143 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41144 ac_eof=`expr $ac_eof + 1`
41147 cat >>$CONFIG_STATUS <<_ACEOF
41148 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
41149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
41152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41153 s/^/s,@/; s/!/@,|#_!!_#|/
41156 s/'"$ac_delim"'$/,g/; t
41158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41159 ' >>$CONFIG_STATUS <conf$$subs.sed
41160 rm -f conf$$subs.sed
41161 cat >>$CONFIG_STATUS <<_ACEOF
41168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41170 # trailing colons and then remove the whole line if VPATH becomes empty
41171 # (actually we leave an empty line to preserve line numbers).
41172 if test "x$srcdir" = x.; then
41173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
41174 s/:*\$(srcdir):*/:/
41175 s/:*\${srcdir}:*/:/
41177 s/^\([^=]*=[ ]*\):*/\1/
41183 cat >>$CONFIG_STATUS <<\_ACEOF
41184 fi # test -n "$CONFIG_FILES"
41187 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
41190 :[FHLC]) ac_mode=$ac_tag; continue;;
41192 case $ac_mode$ac_tag in
41194 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
41195 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
41196 { (exit 1); exit 1; }; };;
41197 :[FH]-) ac_tag=-:-;;
41198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41215 -) ac_f="$tmp/stdin";;
41216 *) # Look for the file first in the build tree, then in the source tree
41217 # (if the path is not absolute). The absolute path cannot be DOS-style,
41218 # because $ac_f cannot contain `:'.
41222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41224 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
41225 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
41226 { (exit 1); exit 1; }; };;
41228 ac_file_inputs="$ac_file_inputs $ac_f"
41231 # Let's still pretend it is `configure' which instantiates (i.e., don't
41232 # use $as_me), people would be surprised to read:
41233 # /* config.h. Generated by config.status. */
41234 configure_input="Generated from "`IFS=:
41235 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
41236 if test x"$ac_file" != x-; then
41237 configure_input="$ac_file. $configure_input"
41238 { echo "$as_me:$LINENO: creating $ac_file" >&5
41239 echo "$as_me: creating $ac_file" >&6;}
41243 *:-:* | *:-) cat >"$tmp/stdin";;
41248 ac_dir=`$as_dirname -- "$ac_file" ||
41249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41250 X"$ac_file" : 'X\(//\)[^/]' \| \
41251 X"$ac_file" : 'X\(//\)$' \| \
41252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41258 /^X\(\/\/\)[^/].*/{
41273 -*) as_dir=./$as_dir;;
41275 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
41279 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
41280 *) as_qdir=$as_dir;;
41282 as_dirs="'$as_qdir' $as_dirs"
41283 as_dir=`$as_dirname -- "$as_dir" ||
41284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41285 X"$as_dir" : 'X\(//\)[^/]' \| \
41286 X"$as_dir" : 'X\(//\)$' \| \
41287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41293 /^X\(\/\/\)[^/].*/{
41306 test -d "$as_dir" && break
41308 test -z "$as_dirs" || eval "mkdir $as_dirs"
41309 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
41310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
41311 { (exit 1); exit 1; }; }; }
41315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41318 # A ".." for each directory in $ac_dir_suffix.
41319 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
41320 case $ac_top_builddir_sub in
41321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41325 ac_abs_top_builddir=$ac_pwd
41326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41327 # for backward compatibility:
41328 ac_top_builddir=$ac_top_build_prefix
41331 .) # We are building in place.
41333 ac_top_srcdir=$ac_top_builddir_sub
41334 ac_abs_top_srcdir=$ac_pwd ;;
41335 [\\/]* | ?:[\\/]* ) # Absolute name.
41336 ac_srcdir=$srcdir$ac_dir_suffix;
41337 ac_top_srcdir=$srcdir
41338 ac_abs_top_srcdir=$srcdir ;;
41339 *) # Relative name.
41340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41341 ac_top_srcdir=$ac_top_build_prefix$srcdir
41342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41354 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41355 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41357 ac_MKDIR_P=$MKDIR_P
41359 [\\/$]* | ?:[\\/]* ) ;;
41360 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41364 cat >>$CONFIG_STATUS <<\_ACEOF
41365 # If the template does not know about datarootdir, expand it.
41366 # FIXME: This hack should be removed a few years after 2.60.
41367 ac_datarootdir_hack=; ac_datarootdir_seen=
41369 case `sed -n '/datarootdir/ {
41378 ' $ac_file_inputs` in
41379 *datarootdir*) ac_datarootdir_seen=yes;;
41380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41381 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41382 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41384 cat >>$CONFIG_STATUS <<_ACEOF
41385 ac_datarootdir_hack='
41386 s&@datadir@&$datadir&g
41387 s&@docdir@&$docdir&g
41388 s&@infodir@&$infodir&g
41389 s&@localedir@&$localedir&g
41390 s&@mandir@&$mandir&g
41391 s&\\\${datarootdir}&$datarootdir&g' ;;
41395 # Neutralize VPATH when `$srcdir' = `.'.
41396 # Shell code in configure.ac might set extrasub.
41397 # FIXME: do we really want to maintain this feature?
41398 cat >>$CONFIG_STATUS <<_ACEOF
41402 cat >>$CONFIG_STATUS <<\_ACEOF
41404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41405 s&@configure_input@&$configure_input&;t t
41406 s&@top_builddir@&$ac_top_builddir_sub&;t t
41407 s&@srcdir@&$ac_srcdir&;t t
41408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
41409 s&@top_srcdir@&$ac_top_srcdir&;t t
41410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
41411 s&@builddir@&$ac_builddir&;t t
41412 s&@abs_builddir@&$ac_abs_builddir&;t t
41413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
41414 s&@INSTALL@&$ac_INSTALL&;t t
41415 s&@MKDIR_P@&$ac_MKDIR_P&;t t
41416 $ac_datarootdir_hack
41417 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
41419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
41421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
41422 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41423 which seems to be undefined. Please make sure it is defined." >&5
41424 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41425 which seems to be undefined. Please make sure it is defined." >&2;}
41429 -) cat "$tmp/out"; rm -f "$tmp/out";;
41430 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
41439 # Transform confdefs.h into a sed script `conftest.defines', that
41440 # substitutes the proper values into config.h.in to produce config.h.
41441 rm -f conftest.defines conftest.tail
41442 # First, append a space to every undef/define line, to ease matching.
41443 echo 's/$/ /' >conftest.defines
41444 # Then, protect against being on the right side of a sed subst, or in
41445 # an unquoted here document, in config.status. If some macros were
41446 # called several times there might be several #defines for the same
41447 # symbol, which is useless. But do not sort them, since the last
41448 # AC_DEFINE must be honored.
41449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41450 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
41451 # NAME is the cpp macro being defined, VALUE is the value it is being given.
41452 # PARAMS is the parameter list in the macro definition--in most cases, it's
41453 # just an empty string.
41454 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
41455 ac_dB='\\)[ (].*,\\1define\\2'
41463 s/^[ ]*#[ ]*define[ ][ ]*//
41468 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
41469 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
41470 ' >>conftest.defines
41472 # Remove the space that was appended to ease matching.
41473 # Then replace #undef with comments. This is necessary, for
41474 # example, in the case of _POSIX_SOURCE, which is predefined and required
41475 # on some systems where configure will not decide to define it.
41476 # (The regexp can be short, since the line contains either #define or #undef.)
41478 s,^[ #]*u.*,/* & */,' >>conftest.defines
41480 # Break up conftest.defines:
41481 ac_max_sed_lines=50
41483 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
41484 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
41485 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
41487 ac_in='$ac_file_inputs'
41488 ac_out='"$tmp/out1"'
41489 ac_nxt='"$tmp/out2"'
41493 # Write a here document:
41494 cat >>$CONFIG_STATUS <<_ACEOF
41495 # First, check the format of the line:
41496 cat >"\$tmp/defines.sed" <<\\CEOF
41497 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
41498 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
41502 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
41504 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
41505 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
41506 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
41507 grep . conftest.tail >/dev/null || break
41508 rm -f conftest.defines
41509 mv conftest.tail conftest.defines
41511 rm -f conftest.defines conftest.tail
41513 echo "ac_result=$ac_in" >>$CONFIG_STATUS
41514 cat >>$CONFIG_STATUS <<\_ACEOF
41515 if test x"$ac_file" != x-; then
41516 echo "/* $configure_input */" >"$tmp/config.h"
41517 cat "$ac_result" >>"$tmp/config.h"
41518 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
41519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41520 echo "$as_me: $ac_file is unchanged" >&6;}
41523 mv "$tmp/config.h" $ac_file
41526 echo "/* $configure_input */"
41530 # Compute $ac_file's index in $config_headers.
41533 for _am_header in $config_headers :; do
41534 case $_am_header in
41535 $_am_arg | $_am_arg:* )
41538 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41541 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41542 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41543 X"$_am_arg" : 'X\(//\)[^/]' \| \
41544 X"$_am_arg" : 'X\(//\)$' \| \
41545 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41551 /^X\(\/\/\)[^/].*/{
41563 s/.*/./; q'`/stamp-h$_am_stamp_count
41566 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
41567 echo "$as_me: executing $ac_file commands" >&6;}
41572 case $ac_file$ac_mode in
41573 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
41574 # Strip MF so we end up with the name of the file.
41575 mf=`echo "$mf" | sed -e 's/:.*$//'`
41576 # Check whether this is an Automake generated Makefile or not.
41577 # We used to match only the files named `Makefile.in', but
41578 # some people rename them; so instead we look at the file content.
41579 # Grep'ing the first line is not enough: some people post-process
41580 # each Makefile.in and add a new line on top of each file to say so.
41581 # Grep'ing the whole file is not good either: AIX grep has a line
41582 # limit of 2048, but all sed's we know have understand at least 4000.
41583 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41584 dirpart=`$as_dirname -- "$mf" ||
41585 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41586 X"$mf" : 'X\(//\)[^/]' \| \
41587 X"$mf" : 'X\(//\)$' \| \
41588 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41594 /^X\(\/\/\)[^/].*/{
41610 # Extract the definition of DEPDIR, am__include, and am__quote
41611 # from the Makefile without running `make'.
41612 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41613 test -z "$DEPDIR" && continue
41614 am__include=`sed -n 's/^am__include = //p' < "$mf"`
41615 test -z "am__include" && continue
41616 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41617 # When using ansi2knr, U may be empty or an underscore; expand it
41618 U=`sed -n 's/^U = //p' < "$mf"`
41619 # Find all dependency output files, they are included files with
41620 # $(DEPDIR) in their names. We invoke sed twice because it is the
41621 # simplest approach to changing $(DEPDIR) to its actual value in the
41623 for file in `sed -n "
41624 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41625 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41626 # Make sure the directory exists.
41627 test -f "$dirpart/$file" && continue
41628 fdir=`$as_dirname -- "$file" ||
41629 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41630 X"$file" : 'X\(//\)[^/]' \| \
41631 X"$file" : 'X\(//\)$' \| \
41632 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41638 /^X\(\/\/\)[^/].*/{
41651 { as_dir=$dirpart/$fdir
41653 -*) as_dir=./$as_dir;;
41655 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
41659 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
41660 *) as_qdir=$as_dir;;
41662 as_dirs="'$as_qdir' $as_dirs"
41663 as_dir=`$as_dirname -- "$as_dir" ||
41664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41665 X"$as_dir" : 'X\(//\)[^/]' \| \
41666 X"$as_dir" : 'X\(//\)$' \| \
41667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41673 /^X\(\/\/\)[^/].*/{
41686 test -d "$as_dir" && break
41688 test -z "$as_dirs" || eval "mkdir $as_dirs"
41689 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
41690 echo "$as_me: error: cannot create directory $as_dir" >&2;}
41691 { (exit 1); exit 1; }; }; }
41692 # echo "creating $dirpart/$file"
41693 echo '# dummy' > "$dirpart/$file"
41697 "po-directories":C)
41698 for ac_file in $CONFIG_FILES; do
41699 # Support "outfile[:infile[:infile...]]"
41701 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
41703 # PO directories have a Makefile.in generated from Makefile.in.in.
41704 case "$ac_file" in */Makefile.in)
41705 # Adjust a relative srcdir.
41706 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
41707 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
41708 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
41709 # In autoconf-2.13 it is called $ac_given_srcdir.
41710 # In autoconf-2.50 it is called $srcdir.
41711 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
41712 case "$ac_given_srcdir" in
41713 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
41714 /*) top_srcdir="$ac_given_srcdir" ;;
41715 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
41717 # Treat a directory as a PO directory if and only if it has a
41718 # POTFILES.in file. This allows packages to have multiple PO
41719 # directories under different names or in different locations.
41720 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
41721 rm -f "$ac_dir/POTFILES"
41722 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
41723 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
41724 POMAKEFILEDEPS="POTFILES.in"
41725 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
41726 # on $ac_dir but don't depend on user-specified configuration
41728 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
41729 # The LINGUAS file contains the set of available languages.
41730 if test -n "$OBSOLETE_ALL_LINGUAS"; then
41731 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
41733 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
41734 # Hide the ALL_LINGUAS assigment from automake < 1.5.
41735 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
41736 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
41738 # The set of available languages was given in configure.in.
41739 # Hide the ALL_LINGUAS assigment from automake < 1.5.
41740 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
41743 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
41744 # Compute UPDATEPOFILES
41745 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
41746 # Compute DUMMYPOFILES
41747 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
41749 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
41750 case "$ac_given_srcdir" in
41752 *) srcdirpre='$(srcdir)/' ;;
41758 for lang in $ALL_LINGUAS; do
41759 POFILES="$POFILES $srcdirpre$lang.po"
41760 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
41761 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
41762 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
41764 # CATALOGS depends on both $ac_dir and the user's LINGUAS
41765 # environment variable.
41767 if test -n "$ALL_LINGUAS"; then
41768 for presentlang in $ALL_LINGUAS; do
41770 if test "%UNSET%" != "$LINGUAS"; then
41771 desiredlanguages="$LINGUAS"
41773 desiredlanguages="$ALL_LINGUAS"
41775 for desiredlang in $desiredlanguages; do
41776 # Use the presentlang catalog if desiredlang is
41777 # a. equal to presentlang, or
41778 # b. a variant of presentlang (because in this case,
41779 # presentlang can be used as a fallback for messages
41780 # which are not translated in the desiredlang catalog).
41781 case "$desiredlang" in
41782 "$presentlang"*) useit=yes;;
41785 if test $useit = yes; then
41786 INST_LINGUAS="$INST_LINGUAS $presentlang"
41791 if test -n "$INST_LINGUAS"; then
41792 for lang in $INST_LINGUAS; do
41793 CATALOGS="$CATALOGS $lang.gmo"
41796 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
41797 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"
41798 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
41799 if test -f "$f"; then
41801 *.orig | *.bak | *~) ;;
41802 *) cat "$f" >> "$ac_dir/Makefile" ;;
41810 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
41811 # Configurable variable values for building test suites.
41813 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
41815 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
41817 abs_builddir='$ac_abs_builddir'
41818 at_srcdir='$ac_srcdir'
41819 abs_srcdir='$ac_abs_srcdir'
41820 at_top_srcdir='$ac_top_srcdir'
41821 abs_top_srcdir='$ac_abs_top_srcdir'
41822 at_top_build_prefix='$ac_top_build_prefix'
41823 abs_top_builddir='$ac_abs_top_builddir'
41825 # Backward compatibility with Autotest <= 2.59b:
41826 at_top_builddir=\$at_top_build_prefix
41828 AUTOTEST_PATH='tests'
41830 SHELL=\${CONFIG_SHELL-'$SHELL'}
41838 { (exit 0); exit 0; }
41840 chmod +x $CONFIG_STATUS
41841 ac_clean_files=$ac_clean_files_save
41844 # configure is writing to config.log, and then calls config.status.
41845 # config.status does its own redirection, appending to config.log.
41846 # Unfortunately, on DOS this fails, as config.log is still kept open
41847 # by configure, so config.status won't be able to write to it; its
41848 # output is simply discarded. So we exec the FD to /dev/null,
41849 # effectively closing config.log, so it can be properly (re)opened and
41850 # appended to by config.status. When coming back to configure, we
41851 # need to make the FD available again.
41852 if test "$no_create" != yes; then
41854 ac_config_status_args=
41855 test "$silent" = yes &&
41856 ac_config_status_args="$ac_config_status_args --quiet"
41858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41861 # would make configure fail if this is the last instruction.
41862 $ac_cs_success || { (exit 1); exit 1; }