2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GNU tar 1.22.
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.22'
578 PACKAGE_STRING='GNU tar 1.22'
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
713 GL_COND_LIBTOOL_FALSE
772 GNULIB_UNISTD_H_SIGPIPE
798 UNISTD_H_HAVE_WINSOCK2_H
808 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
828 GNULIB_VFPRINTF_POSIX
832 GNULIB_VSPRINTF_POSIX
836 GNULIB_OBSTACK_PRINTF
837 GNULIB_OBSTACK_PRINTF_POSIX
855 GNULIB_STDIO_H_SIGPIPE
856 REPLACE_STDIO_WRITE_FUNCS
873 HAVE_DECL_OBSTACK_PRINTF
874 REPLACE_OBSTACK_PRINTF
903 HAVE_UNSIGNED_LONG_LONG_INT
910 APPLE_UNIVERSAL_BUILD
913 BITSIZEOF_SIG_ATOMIC_T
916 HAVE_SIGNED_SIG_ATOMIC_T
936 INT32_MAX_LT_INTMAX_MAX
937 INT64_MAX_EQ_LONG_MAX
938 UINT32_MAX_LT_UINTMAX_MAX
939 UINT64_MAX_EQ_ULONG_MAX
942 LOCALCHARSET_TESTS_ENVIRONMENT
976 HAVE_STRUCT_RANDOM_DATA
1049 HAVE_DECL_STRNCASECMP
1063 TIME_H_DEFINES_STRUCT_TIMESPEC
1064 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1082 DEFAULT_ARCHIVE_FORMAT
1085 DEFAULT_QUOTING_STYLE
1089 GETTEXT_MACRO_VERSION
1097 XGETTEXT_EXTRA_OPTIONS
1102 BACKUP_LIBEXEC_SCRIPTS
1111 ac_precious_vars='build_alias
1123 DEFAULT_ARCHIVE_FORMAT
1126 DEFAULT_QUOTING_STYLE'
1129 # Initialize some variables set by options.
1131 ac_init_version=false
1132 # The variables have the same names as the options, with
1133 # dashes changed to underlines.
1134 cache_file=/dev/null
1141 program_transform_name=s,x,x,
1149 # Installation directory options.
1150 # These are left unexpanded so users can "make install exec_prefix=/foo"
1151 # and all the variables that are supposed to be based on exec_prefix
1152 # by default will actually change.
1153 # Use braces instead of parens because sh, perl, etc. also accept them.
1154 # (The list follows the same order as the GNU Coding Standards.)
1155 bindir='${exec_prefix}/bin'
1156 sbindir='${exec_prefix}/sbin'
1157 libexecdir='${exec_prefix}/libexec'
1158 datarootdir='${prefix}/share'
1159 datadir='${datarootdir}'
1160 sysconfdir='${prefix}/etc'
1161 sharedstatedir='${prefix}/com'
1162 localstatedir='${prefix}/var'
1163 includedir='${prefix}/include'
1164 oldincludedir='/usr/include'
1165 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1166 infodir='${datarootdir}/info'
1171 libdir='${exec_prefix}/lib'
1172 localedir='${datarootdir}/locale'
1173 mandir='${datarootdir}/man'
1179 # If the previous option needs an argument, assign it.
1180 if test -n "$ac_prev"; then
1181 eval $ac_prev=\$ac_option
1187 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1191 # Accept the important Cygnus configure options, so we can diagnose typos.
1193 case $ac_dashdash$ac_option in
1197 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1199 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1200 bindir=$ac_optarg ;;
1202 -build | --build | --buil | --bui | --bu)
1203 ac_prev=build_alias ;;
1204 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1205 build_alias=$ac_optarg ;;
1207 -cache-file | --cache-file | --cache-fil | --cache-fi \
1208 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1209 ac_prev=cache_file ;;
1210 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1211 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1212 cache_file=$ac_optarg ;;
1214 --config-cache | -C)
1215 cache_file=config.cache ;;
1217 -datadir | --datadir | --datadi | --datad)
1219 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1220 datadir=$ac_optarg ;;
1222 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1223 | --dataroo | --dataro | --datar)
1224 ac_prev=datarootdir ;;
1225 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1226 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1227 datarootdir=$ac_optarg ;;
1229 -disable-* | --disable-*)
1230 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1236 eval enable_$ac_feature=no ;;
1238 -docdir | --docdir | --docdi | --doc | --do)
1240 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1241 docdir=$ac_optarg ;;
1243 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1245 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1246 dvidir=$ac_optarg ;;
1248 -enable-* | --enable-*)
1249 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1255 eval enable_$ac_feature=\$ac_optarg ;;
1257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1259 | --exec | --exe | --ex)
1260 ac_prev=exec_prefix ;;
1261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1263 | --exec=* | --exe=* | --ex=*)
1264 exec_prefix=$ac_optarg ;;
1266 -gas | --gas | --ga | --g)
1267 # Obsolete; use --with-gas.
1270 -help | --help | --hel | --he | -h)
1271 ac_init_help=long ;;
1272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1273 ac_init_help=recursive ;;
1274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1275 ac_init_help=short ;;
1277 -host | --host | --hos | --ho)
1278 ac_prev=host_alias ;;
1279 -host=* | --host=* | --hos=* | --ho=*)
1280 host_alias=$ac_optarg ;;
1282 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1284 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1286 htmldir=$ac_optarg ;;
1288 -includedir | --includedir | --includedi | --included | --include \
1289 | --includ | --inclu | --incl | --inc)
1290 ac_prev=includedir ;;
1291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1292 | --includ=* | --inclu=* | --incl=* | --inc=*)
1293 includedir=$ac_optarg ;;
1295 -infodir | --infodir | --infodi | --infod | --info | --inf)
1297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1298 infodir=$ac_optarg ;;
1300 -libdir | --libdir | --libdi | --libd)
1302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1303 libdir=$ac_optarg ;;
1305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1306 | --libexe | --libex | --libe)
1307 ac_prev=libexecdir ;;
1308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1309 | --libexe=* | --libex=* | --libe=*)
1310 libexecdir=$ac_optarg ;;
1312 -localedir | --localedir | --localedi | --localed | --locale)
1313 ac_prev=localedir ;;
1314 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1315 localedir=$ac_optarg ;;
1317 -localstatedir | --localstatedir | --localstatedi | --localstated \
1318 | --localstate | --localstat | --localsta | --localst | --locals)
1319 ac_prev=localstatedir ;;
1320 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1321 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1322 localstatedir=$ac_optarg ;;
1324 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1326 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1327 mandir=$ac_optarg ;;
1329 -nfp | --nfp | --nf)
1330 # Obsolete; use --without-fp.
1333 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1334 | --no-cr | --no-c | -n)
1337 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1338 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1341 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1342 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1343 | --oldin | --oldi | --old | --ol | --o)
1344 ac_prev=oldincludedir ;;
1345 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1346 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1347 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1348 oldincludedir=$ac_optarg ;;
1350 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1352 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1353 prefix=$ac_optarg ;;
1355 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1356 | --program-pre | --program-pr | --program-p)
1357 ac_prev=program_prefix ;;
1358 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1359 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1360 program_prefix=$ac_optarg ;;
1362 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1363 | --program-suf | --program-su | --program-s)
1364 ac_prev=program_suffix ;;
1365 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1366 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1367 program_suffix=$ac_optarg ;;
1369 -program-transform-name | --program-transform-name \
1370 | --program-transform-nam | --program-transform-na \
1371 | --program-transform-n | --program-transform- \
1372 | --program-transform | --program-transfor \
1373 | --program-transfo | --program-transf \
1374 | --program-trans | --program-tran \
1375 | --progr-tra | --program-tr | --program-t)
1376 ac_prev=program_transform_name ;;
1377 -program-transform-name=* | --program-transform-name=* \
1378 | --program-transform-nam=* | --program-transform-na=* \
1379 | --program-transform-n=* | --program-transform-=* \
1380 | --program-transform=* | --program-transfor=* \
1381 | --program-transfo=* | --program-transf=* \
1382 | --program-trans=* | --program-tran=* \
1383 | --progr-tra=* | --program-tr=* | --program-t=*)
1384 program_transform_name=$ac_optarg ;;
1386 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1388 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1389 pdfdir=$ac_optarg ;;
1391 -psdir | --psdir | --psdi | --psd | --ps)
1393 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397 | -silent | --silent | --silen | --sile | --sil)
1400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1404 sbindir=$ac_optarg ;;
1406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1408 | --sharedst | --shareds | --shared | --share | --shar \
1410 ac_prev=sharedstatedir ;;
1411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1415 sharedstatedir=$ac_optarg ;;
1417 -site | --site | --sit)
1419 -site=* | --site=* | --sit=*)
1422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1425 srcdir=$ac_optarg ;;
1427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1428 | --syscon | --sysco | --sysc | --sys | --sy)
1429 ac_prev=sysconfdir ;;
1430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1432 sysconfdir=$ac_optarg ;;
1434 -target | --target | --targe | --targ | --tar | --ta | --t)
1435 ac_prev=target_alias ;;
1436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1437 target_alias=$ac_optarg ;;
1439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1442 -version | --version | --versio | --versi | --vers | -V)
1443 ac_init_version=: ;;
1446 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1447 # Reject names that are not valid shell variable names.
1448 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449 { echo "$as_me: error: invalid package name: $ac_package" >&2
1450 { (exit 1); exit 1; }; }
1451 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1452 eval with_$ac_package=\$ac_optarg ;;
1454 -without-* | --without-*)
1455 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1456 # Reject names that are not valid shell variable names.
1457 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1458 { echo "$as_me: error: invalid package name: $ac_package" >&2
1459 { (exit 1); exit 1; }; }
1460 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1461 eval with_$ac_package=no ;;
1464 # Obsolete; use --with-x.
1467 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1468 | --x-incl | --x-inc | --x-in | --x-i)
1469 ac_prev=x_includes ;;
1470 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1471 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1472 x_includes=$ac_optarg ;;
1474 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1475 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1476 ac_prev=x_libraries ;;
1477 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1478 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1479 x_libraries=$ac_optarg ;;
1481 -*) { echo "$as_me: error: unrecognized option: $ac_option
1482 Try \`$0 --help' for more information." >&2
1483 { (exit 1); exit 1; }; }
1487 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1490 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1491 { (exit 1); exit 1; }; }
1492 eval $ac_envvar=\$ac_optarg
1493 export $ac_envvar ;;
1496 # FIXME: should be removed in autoconf 3.0.
1497 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1498 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1499 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1500 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1506 if test -n "$ac_prev"; then
1507 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1508 { echo "$as_me: error: missing argument to $ac_option" >&2
1509 { (exit 1); exit 1; }; }
1512 # Be sure to have absolute directory names.
1513 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1514 datadir sysconfdir sharedstatedir localstatedir includedir \
1515 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1516 libdir localedir mandir
1518 eval ac_val=\$$ac_var
1520 [\\/$]* | ?:[\\/]* ) continue;;
1521 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1523 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1524 { (exit 1); exit 1; }; }
1527 # There might be people who depend on the old broken behavior: `$host'
1528 # used to hold the argument of --host etc.
1529 # FIXME: To remove some day.
1532 target=$target_alias
1534 # FIXME: To remove some day.
1535 if test "x$host_alias" != x; then
1536 if test "x$build_alias" = x; then
1537 cross_compiling=maybe
1538 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1539 If a cross compiler is detected then cross compile mode will be used." >&2
1540 elif test "x$build_alias" != "x$host_alias"; then
1546 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1548 test "$silent" = yes && exec 6>/dev/null
1551 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1552 ac_ls_di=`ls -di .` &&
1553 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1554 { echo "$as_me: error: Working directory cannot be determined" >&2
1555 { (exit 1); exit 1; }; }
1556 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1557 { echo "$as_me: error: pwd does not report name of working directory" >&2
1558 { (exit 1); exit 1; }; }
1561 # Find the source files, if location was not specified.
1562 if test -z "$srcdir"; then
1563 ac_srcdir_defaulted=yes
1564 # Try the directory containing this script, then the parent directory.
1565 ac_confdir=`$as_dirname -- "$0" ||
1566 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1567 X"$0" : 'X\(//\)[^/]' \| \
1568 X"$0" : 'X\(//\)$' \| \
1569 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1593 ac_srcdir_defaulted=no
1595 if test ! -r "$srcdir/$ac_unique_file"; then
1596 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1597 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1598 { (exit 1); exit 1; }; }
1600 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1602 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1603 { (exit 1); exit 1; }; }
1605 # When building in place, set srcdir=.
1606 if test "$ac_abs_confdir" = "$ac_pwd"; then
1609 # Remove unnecessary trailing slashes from srcdir.
1610 # Double slashes in file names in object file debugging info
1611 # mess up M-x gdb in Emacs.
1613 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1615 for ac_var in $ac_precious_vars; do
1616 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1617 eval ac_env_${ac_var}_value=\$${ac_var}
1618 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1619 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1623 # Report the --help message.
1625 if test "$ac_init_help" = "long"; then
1626 # Omit some internal or obsolete options to make the list less imposing.
1627 # This message is too long to be a string in the A/UX 3.1 sh.
1629 \`configure' configures GNU tar 1.22 to adapt to many kinds of systems.
1631 Usage: $0 [OPTION]... [VAR=VALUE]...
1633 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1634 VAR=VALUE. See below for descriptions of some of the useful variables.
1636 Defaults for the options are specified in brackets.
1639 -h, --help display this help and exit
1640 --help=short display options specific to this package
1641 --help=recursive display the short help of all the included packages
1642 -V, --version display version information and exit
1643 -q, --quiet, --silent do not print \`checking...' messages
1644 --cache-file=FILE cache test results in FILE [disabled]
1645 -C, --config-cache alias for \`--cache-file=config.cache'
1646 -n, --no-create do not create output files
1647 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1649 Installation directories:
1650 --prefix=PREFIX install architecture-independent files in PREFIX
1651 [$ac_default_prefix]
1652 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1655 By default, \`make install' will install all the files in
1656 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1657 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1658 for instance \`--prefix=\$HOME'.
1660 For better control, use the options below.
1662 Fine tuning of the installation directories:
1663 --bindir=DIR user executables [EPREFIX/bin]
1664 --sbindir=DIR system admin executables [EPREFIX/sbin]
1665 --libexecdir=DIR program executables [EPREFIX/libexec]
1666 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1667 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1668 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1669 --libdir=DIR object code libraries [EPREFIX/lib]
1670 --includedir=DIR C header files [PREFIX/include]
1671 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1672 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1673 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1674 --infodir=DIR info documentation [DATAROOTDIR/info]
1675 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1676 --mandir=DIR man documentation [DATAROOTDIR/man]
1677 --docdir=DIR documentation root [DATAROOTDIR/doc/tar]
1678 --htmldir=DIR html documentation [DOCDIR]
1679 --dvidir=DIR dvi documentation [DOCDIR]
1680 --pdfdir=DIR pdf documentation [DOCDIR]
1681 --psdir=DIR ps documentation [DOCDIR]
1687 --program-prefix=PREFIX prepend PREFIX to installed program names
1688 --program-suffix=SUFFIX append SUFFIX to installed program names
1689 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1692 --build=BUILD configure for building on BUILD [guessed]
1693 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1697 if test -n "$ac_init_help"; then
1698 case $ac_init_help in
1699 short | recursive ) echo "Configuration of GNU tar 1.22:";;
1704 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1705 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1706 --disable-dependency-tracking speeds up one-time build
1707 --enable-dependency-tracking do not reject slow dependency extractors
1708 --disable-largefile omit support for large files
1709 --disable-rpath do not hardcode runtime library paths
1710 --disable-nls do not use Native Language Support
1711 --enable-backup-scripts Create and install backup and restore scripts
1714 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1715 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1716 --without-included-regex
1717 don't compile regex; this is the default on 32-bit
1718 systems with recent-enough versions of the GNU C
1719 Library (use with caution on other systems). On
1720 systems with 64-bit ptrdiff_t and 32-bit int,
1721 --with-included-regex is the default, in case regex
1722 functions operate on very long strings (>2GB)
1723 --with-rmt=FILE Use FILE as the default `rmt' program. Do not build
1724 included copy of `rmt'.
1725 --with-gnu-ld assume the C compiler uses GNU ld default=no
1726 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1727 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1728 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1729 --without-libintl-prefix don't search for libintl in includedir and libdir
1731 Some influential environment variables:
1732 CC C compiler command
1733 CFLAGS C compiler flags
1734 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1735 nonstandard directory <lib dir>
1736 LIBS libraries to pass to the linker, e.g. -l<library>
1737 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1738 you have headers in a nonstandard directory <include dir>
1739 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1740 the first program found out of: `bison -y', `byacc', `yacc'.
1741 YFLAGS The list of arguments that will be passed by default to $YACC.
1742 This script will default YFLAGS to the empty string to avoid a
1743 default value of `-d' given by some make applications.
1746 Define full file name of the directory where to install `rmt'.
1747 (default: $(libexecdir))
1748 DEFAULT_ARCHIVE_FORMAT
1749 Set the default archive format. Allowed values are: V7, OLDGNU,
1750 USTAR, POSIX, GNU. Default is GNU
1752 Set the name of the default archive (default: -)
1754 Define default blocking factor (default: 20)
1755 DEFAULT_QUOTING_STYLE
1756 Set the default quoting style. Allowed values are: literal,
1757 shell, shell-always, c, escape, locale, clocale . Default is
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1763 Report bugs to <bug-tar@gnu.org>.
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" || continue
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1791 .) # We are building in place.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for guested configure.
1808 if test -f "$ac_srcdir/configure.gnu"; then
1810 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811 elif test -f "$ac_srcdir/configure"; then
1813 $SHELL "$ac_srcdir/configure" --help=recursive
1815 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 cd "$ac_pwd" || { ac_status=$?; break; }
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1824 GNU tar configure 1.22
1825 generated by GNU Autoconf 2.61
1827 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1828 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1834 cat >config.log <<_ACEOF
1835 This file contains any messages produced by compilers while
1836 running configure, to aid debugging if configure makes a mistake.
1838 It was created by GNU tar $as_me 1.22, which was
1839 generated by GNU Autoconf 2.61. Invocation command line was
1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1860 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1861 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1864 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1865 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1866 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 test -z "$as_dir" && as_dir=.
1875 echo "PATH: $as_dir"
1891 # Keep a trace of the command line.
1892 # Strip out --no-create and --no-recursion so they do not pile up.
1893 # Strip out --silent because we don't want to record it for future runs.
1894 # Also quote any args containing shell meta-characters.
1895 # Make two passes to allow for proper duplicate-argument suppression.
1899 ac_must_keep_next=false
1905 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907 | -silent | --silent | --silen | --sile | --sil)
1910 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1915 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1916 if test $ac_must_keep_next = true; then
1917 ac_must_keep_next=false # Got value, back to normal.
1920 *=* | --config-cache | -C | -disable-* | --disable-* \
1921 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923 | -with-* | --with-* | -without-* | --without-* | --x)
1924 case "$ac_configure_args0 " in
1925 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928 -* ) ac_must_keep_next=true ;;
1931 ac_configure_args="$ac_configure_args '$ac_arg'"
1936 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1937 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1939 # When interrupted or exit'd, cleanup temporary files, and complete
1940 # config.log. We remove comments because anyway the quotes in there
1941 # would cause problems or look ugly.
1942 # WARNING: Use '\'' to represent an apostrophe within the trap.
1943 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944 trap 'exit_status=$?
1945 # Save into config.log some information that might help in debugging.
1950 ## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##
1955 # The following way of writing the cache mishandles newlines in values,
1957 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1958 eval ac_val=\$$ac_var
1962 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1963 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1966 _ | IFS | as_nl) ;; #(
1967 *) $as_unset $ac_var ;;
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987 ## ----------------- ##
1988 ## Output variables. ##
1989 ## ----------------- ##
1992 for ac_var in $ac_subst_vars
1994 eval ac_val=\$$ac_var
1996 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 echo "$ac_var='\''$ac_val'\''"
2002 if test -n "$ac_subst_files"; then
2004 ## ------------------- ##
2005 ## File substitutions. ##
2006 ## ------------------- ##
2009 for ac_var in $ac_subst_files
2011 eval ac_val=\$$ac_var
2013 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 echo "$ac_var='\''$ac_val'\''"
2020 if test -s confdefs.h; then
2030 test "$ac_signal" != 0 &&
2031 echo "$as_me: caught signal $ac_signal"
2032 echo "$as_me: exit $exit_status"
2034 rm -f core *.core core.conftest.* &&
2035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038 for ac_signal in 1 2 13 15; do
2039 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2044 rm -f -r conftest* confdefs.h
2046 # Predefined preprocessor variables.
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_NAME "$PACKAGE_NAME"
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_STRING "$PACKAGE_STRING"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2073 # Let the site file select an alternate cache file if it wants to.
2074 # Prefer explicitly selected file to automatically selected ones.
2075 if test -n "$CONFIG_SITE"; then
2076 set x "$CONFIG_SITE"
2077 elif test "x$prefix" != xNONE; then
2078 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2080 set x "$ac_default_prefix/share/config.site" \
2081 "$ac_default_prefix/etc/config.site"
2086 if test -r "$ac_site_file"; then
2087 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2088 echo "$as_me: loading site script $ac_site_file" >&6;}
2089 sed 's/^/| /' "$ac_site_file" >&5
2094 if test -r "$cache_file"; then
2095 # Some versions of bash will fail to source /dev/null (special
2096 # files actually), so we avoid doing that.
2097 if test -f "$cache_file"; then
2098 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2099 echo "$as_me: loading cache $cache_file" >&6;}
2101 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102 *) . "./$cache_file";;
2106 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2107 echo "$as_me: creating cache $cache_file" >&6;}
2111 ac_header_list="$ac_header_list fcntl.h"
2112 ac_header_list="$ac_header_list linux/fd.h"
2113 ac_header_list="$ac_header_list memory.h"
2114 ac_header_list="$ac_header_list net/errno.h"
2115 ac_header_list="$ac_header_list sgtty.h"
2116 ac_header_list="$ac_header_list string.h"
2117 ac_header_list="$ac_header_list stropts.h"
2118 ac_header_list="$ac_header_list sys/param.h"
2119 ac_header_list="$ac_header_list sys/device.h"
2120 ac_header_list="$ac_header_list sys/filio.h"
2121 ac_header_list="$ac_header_list sys/gentape.h"
2122 ac_header_list="$ac_header_list sys/inet.h"
2123 ac_header_list="$ac_header_list sys/io/trioctl.h"
2124 ac_header_list="$ac_header_list sys/mtio.h"
2125 ac_header_list="$ac_header_list sys/time.h"
2126 ac_header_list="$ac_header_list sys/tprintf.h"
2127 ac_header_list="$ac_header_list sys/tape.h"
2128 ac_header_list="$ac_header_list unistd.h"
2129 ac_header_list="$ac_header_list locale.h"
2130 ac_func_list="$ac_func_list flockfile"
2131 ac_func_list="$ac_func_list funlockfile"
2132 ac_header_list="$ac_header_list features.h"
2133 ac_header_list="$ac_header_list linewrap.h"
2134 ac_func_list="$ac_func_list pathconf"
2135 ac_func_list="$ac_func_list btowc"
2136 ac_func_list="$ac_func_list canonicalize_file_name"
2137 ac_func_list="$ac_func_list getcwd"
2138 ac_func_list="$ac_func_list readlink"
2139 ac_header_list="$ac_header_list dirent.h"
2140 ac_func_list="$ac_func_list dup2"
2141 ac_header_list="$ac_header_list errno.h"
2142 ac_func_list="$ac_func_list fchdir"
2143 ac_header_list="$ac_header_list float.h"
2144 ac_func_list="$ac_func_list isblank"
2145 ac_func_list="$ac_func_list iswctype"
2146 ac_func_list="$ac_func_list mbsrtowcs"
2147 ac_func_list="$ac_func_list mempcpy"
2148 ac_func_list="$ac_func_list wmemchr"
2149 ac_func_list="$ac_func_list wmemcpy"
2150 ac_func_list="$ac_func_list wmempcpy"
2151 ac_header_list="$ac_header_list wctype.h"
2152 ac_header_list="$ac_header_list stdio_ext.h"
2153 ac_func_list="$ac_func_list __fpending"
2154 ac_func_list="$ac_func_list ftruncate"
2155 ac_func_list="$ac_func_list gettimeofday"
2156 ac_func_list="$ac_func_list nanotime"
2157 ac_header_list="$ac_header_list stdint.h"
2158 ac_header_list="$ac_header_list wchar.h"
2159 ac_header_list="$ac_header_list inttypes.h"
2160 ac_func_list="$ac_func_list lstat"
2161 ac_func_list="$ac_func_list mbsinit"
2162 ac_func_list="$ac_func_list mbrtowc"
2163 ac_func_list="$ac_func_list alarm"
2164 ac_func_list="$ac_func_list lchmod"
2165 ac_func_list="$ac_func_list fdopendir"
2166 ac_func_list="$ac_func_list wcscoll"
2167 ac_func_list="$ac_func_list setenv"
2168 ac_header_list="$ac_header_list stdarg.h"
2169 ac_header_list="$ac_header_list stdio.h"
2170 ac_header_list="$ac_header_list stdlib.h"
2171 ac_header_list="$ac_header_list sys/socket.h"
2172 ac_header_list="$ac_header_list strings.h"
2173 ac_header_list="$ac_header_list sys/stat.h"
2174 ac_header_list="$ac_header_list sysexits.h"
2175 ac_header_list="$ac_header_list time.h"
2176 ac_func_list="$ac_func_list pipe"
2177 ac_header_list="$ac_header_list priv.h"
2178 ac_header_list="$ac_header_list utime.h"
2179 ac_func_list="$ac_func_list futimes"
2180 ac_func_list="$ac_func_list futimesat"
2181 ac_func_list="$ac_func_list futimens"
2182 ac_func_list="$ac_func_list utimensat"
2183 ac_func_list="$ac_func_list vasnprintf"
2184 ac_func_list="$ac_func_list wcrtomb"
2185 ac_func_list="$ac_func_list iswcntrl"
2186 ac_func_list="$ac_func_list wcwidth"
2187 ac_header_list="$ac_header_list netdb.h"
2188 ac_header_list="$ac_header_list sys/wait.h"
2189 ac_header_list="$ac_header_list pwd.h"
2190 ac_header_list="$ac_header_list grp.h"
2191 ac_func_list="$ac_func_list mkfifo"
2192 ac_func_list="$ac_func_list setlocale"
2193 gt_needs="$gt_needs need-formatstring-macros"
2194 # Check that the precious variables saved in the cache have kept the same
2196 ac_cache_corrupted=false
2197 for ac_var in $ac_precious_vars; do
2198 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2199 eval ac_new_set=\$ac_env_${ac_var}_set
2200 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2201 eval ac_new_val=\$ac_env_${ac_var}_value
2202 case $ac_old_set,$ac_new_set in
2204 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2205 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2206 ac_cache_corrupted=: ;;
2208 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2209 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2213 if test "x$ac_old_val" != "x$ac_new_val"; then
2214 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2215 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2217 echo "$as_me: former value: $ac_old_val" >&2;}
2218 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2219 echo "$as_me: current value: $ac_new_val" >&2;}
2220 ac_cache_corrupted=:
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2226 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2235 if $ac_cache_corrupted; then
2236 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2240 { (exit 1); exit 1; }; }
2268 ac_cpp='$CPP $CPPFLAGS'
2269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276 for ac_dir in build-aux "$srcdir"/build-aux; do
2277 if test -f "$ac_dir/install-sh"; then
2279 ac_install_sh="$ac_aux_dir/install-sh -c"
2281 elif test -f "$ac_dir/install.sh"; then
2283 ac_install_sh="$ac_aux_dir/install.sh -c"
2285 elif test -f "$ac_dir/shtool"; then
2287 ac_install_sh="$ac_aux_dir/shtool install -c"
2291 if test -z "$ac_aux_dir"; then
2292 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2293 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2294 { (exit 1); exit 1; }; }
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2306 ac_config_headers="$ac_config_headers config.h:config.hin"
2309 am__api_version='1.10'
2311 # Find a good install program. We prefer a C program (faster),
2312 # so one script is as good as another. But avoid the broken or
2313 # incompatible versions:
2314 # SysV /etc/install, /usr/sbin/install
2315 # SunOS /usr/etc/install
2316 # IRIX /sbin/install
2318 # AmigaOS /C/install, which installs bootblocks on floppy discs
2319 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2320 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2321 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2322 # OS/2's system install, which has a completely different semantic
2323 # ./install, which can be erroneously created by make from ./install.sh.
2324 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2325 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2326 if test -z "$INSTALL"; then
2327 if test "${ac_cv_path_install+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 # Account for people who put trailing slashes in PATH elements.
2337 ./ | .// | /cC/* | \
2338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2339 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2342 # OSF1 and SCO ODT 3.0 have their own names for install.
2343 # Don't use installbsd from OSF since it installs stuff as root
2345 for ac_prog in ginstall scoinst install; do
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2348 if test $ac_prog = install &&
2349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # AIX install. It has an incompatible calling convention.
2352 elif test $ac_prog = install &&
2353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2354 # program-specific install script used by HP pwplus--don't use.
2357 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2370 if test "${ac_cv_path_install+set}" = set; then
2371 INSTALL=$ac_cv_path_install
2373 # As a last resort, use the slow shell script. Don't cache a
2374 # value for INSTALL within a source directory, because that will
2375 # break other packages using the cache if that directory is
2376 # removed, or if the value is a relative name.
2377 INSTALL=$ac_install_sh
2380 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2381 echo "${ECHO_T}$INSTALL" >&6; }
2383 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2384 # It thinks the first close brace ends the variable substitution.
2385 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2387 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2389 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2391 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2392 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2395 echo timestamp > conftest.file
2396 # Do `set' in a subshell so we don't clobber the current shell's
2397 # arguments. Must try -L first in case configure is actually a
2398 # symlink; some systems play weird games with the mod time of symlinks
2399 # (eg FreeBSD returns the mod time of the symlink's containing
2402 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2403 if test "$*" = "X"; then
2405 set X `ls -t $srcdir/configure conftest.file`
2408 if test "$*" != "X $srcdir/configure conftest.file" \
2409 && test "$*" != "X conftest.file $srcdir/configure"; then
2411 # If neither matched, then we have a broken ls. This can happen
2412 # if, for instance, CONFIG_SHELL is bash and it inherits a
2413 # broken ls alias from the environment. This has actually
2414 # happened. Such a system could not be considered "sane".
2415 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2416 alias in your environment" >&5
2417 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2418 alias in your environment" >&2;}
2419 { (exit 1); exit 1; }; }
2422 test "$2" = conftest.file
2428 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2429 Check your system clock" >&5
2430 echo "$as_me: error: newly created file is older than distributed files!
2431 Check your system clock" >&2;}
2432 { (exit 1); exit 1; }; }
2434 { echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6; }
2436 test "$program_prefix" != NONE &&
2437 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2438 # Use a double $ so make ignores it.
2439 test "$program_suffix" != NONE &&
2440 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2441 # Double any \ or $. echo might interpret backslashes.
2442 # By default was `s,x,x', remove it if useless.
2443 cat <<\_ACEOF >conftest.sed
2444 s/[\\$]/&&/g;s/;s,x,x,$//
2446 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2449 # expand $ac_aux_dir to an absolute path
2450 am_aux_dir=`cd $ac_aux_dir && pwd`
2452 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455 am_missing_run="$MISSING --run "
2458 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2459 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2463 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2464 if test -z "$MKDIR_P"; then
2465 if test "${ac_cv_path_mkdir+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2472 test -z "$as_dir" && as_dir=.
2473 for ac_prog in mkdir gmkdir; do
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2476 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2477 'mkdir (GNU coreutils) '* | \
2478 'mkdir (coreutils) '* | \
2479 'mkdir (fileutils) '4.1*)
2480 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2490 if test "${ac_cv_path_mkdir+set}" = set; then
2491 MKDIR_P="$ac_cv_path_mkdir -p"
2493 # As a last resort, use the slow shell script. Don't cache a
2494 # value for MKDIR_P within a source directory, because that will
2495 # break other packages using the cache if that directory is
2496 # removed, or if the value is a relative name.
2497 test -d ./--version && rmdir ./--version
2498 MKDIR_P="$ac_install_sh -d"
2501 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2502 echo "${ECHO_T}$MKDIR_P" >&6; }
2506 [\\/$]* | ?:[\\/]*) ;;
2507 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2510 for ac_prog in gawk mawk nawk awk
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_AWK+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$AWK"; then
2520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_AWK="$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$AWK"; then
2541 { echo "$as_me:$LINENO: result: $AWK" >&5
2542 echo "${ECHO_T}$AWK" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2549 test -n "$AWK" && break
2552 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2553 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2554 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2555 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 cat >conftest.make <<\_ACEOF
2561 @echo '@@@%%%=$(MAKE)=@@@%%%'
2563 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2564 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2566 eval ac_cv_prog_make_${ac_make}_set=yes;;
2568 eval ac_cv_prog_make_${ac_make}_set=no;;
2572 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2573 { echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2579 SET_MAKE="MAKE=${MAKE-make}"
2582 rm -rf .tst 2>/dev/null
2583 mkdir .tst 2>/dev/null
2584 if test -d .tst; then
2589 rmdir .tst 2>/dev/null
2591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2593 # is not polluted with repeated "-I."
2594 am__isrc=' -I$(srcdir)'
2595 # test to see if srcdir already configured
2596 if test -f $srcdir/config.status; then
2597 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2598 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2599 { (exit 1); exit 1; }; }
2603 # test whether we have cygpath
2604 if test -z "$CYGPATH_W"; then
2605 if (cygpath --version) >/dev/null 2>/dev/null; then
2606 CYGPATH_W='cygpath -w'
2613 # Define the identity of the package.
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE "$PACKAGE"
2623 cat >>confdefs.h <<_ACEOF
2624 #define VERSION "$VERSION"
2627 # Some tools Automake needs.
2629 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2632 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2635 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2638 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2641 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2643 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2645 # Installed binaries are usually stripped using `strip' when the user
2646 # run `make install-strip'. However `strip' might not be the right
2647 # tool to use in cross-compilation environments, therefore Automake
2648 # will honor the `STRIP' environment variable to overrule this program.
2649 if test "$cross_compiling" != no; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}strip; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_STRIP+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$STRIP"; then
2659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 STRIP=$ac_cv_prog_STRIP
2679 if test -n "$STRIP"; then
2680 { echo "$as_me:$LINENO: result: $STRIP" >&5
2681 echo "${ECHO_T}$STRIP" >&6; }
2683 { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2689 if test -z "$ac_cv_prog_STRIP"; then
2691 # Extract the first word of "strip", so it can be a program name with args.
2692 set dummy strip; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$ac_ct_STRIP"; then
2699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_ac_ct_STRIP="strip"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719 if test -n "$ac_ct_STRIP"; then
2720 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2721 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2727 if test "x$ac_ct_STRIP" = x; then
2730 case $cross_compiling:$ac_tool_warned in
2732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2733 whose name does not start with the host triplet. If you think this
2734 configuration is useful to you, please write to autoconf@gnu.org." >&5
2735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2736 whose name does not start with the host triplet. If you think this
2737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2738 ac_tool_warned=yes ;;
2743 STRIP="$ac_cv_prog_STRIP"
2747 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2749 # We need awk for the "check" target. The system "awk" is bad on
2751 # Always define AMTAR for backward compatibility.
2753 AMTAR=${AMTAR-"${am_missing_run}tar"}
2756 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2757 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2758 # Loop over all known methods to create a tar archive until one works.
2759 _am_tools='gnutar plaintar pax cpio none'
2760 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2761 # Do not fold the above two line into one, because Tru64 sh and
2762 # Solaris sh will not grok spaces in the rhs of `-'.
2763 for _am_tool in $_am_tools
2767 for _am_tar in tar gnutar gtar;
2769 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2770 ($_am_tar --version) >&5 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } && break
2775 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2776 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2777 am__untar="$_am_tar -xf -"
2780 # Must skip GNU tar: if it does not support --format= it doesn't create
2781 # ustar tarball either.
2782 (tar --version) >/dev/null 2>&1 && continue
2783 am__tar='tar chf - "$$tardir"'
2784 am__tar_='tar chf - "$tardir"'
2785 am__untar='tar xf -'
2788 am__tar='pax -L -x ustar -w "$$tardir"'
2789 am__tar_='pax -L -x ustar -w "$tardir"'
2793 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2794 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2795 am__untar='cpio -i -H ustar -d'
2804 # If the value was cached, stop now. We just wanted to have am__tar
2805 # and am__untar set.
2806 test -n "${am_cv_prog_tar_ustar}" && break
2808 # tar/untar a dummy directory, and stop if the command works
2811 echo GrepMe > conftest.dir/file
2812 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2813 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
2818 if test -s conftest.tar; then
2819 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2820 ($am__untar <conftest.tar) >&5 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2829 if test "${am_cv_prog_tar_ustar+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 am_cv_prog_tar_ustar=$_am_tool
2835 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2836 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6; }
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2887 if test -z "$ac_cv_prog_CC"; then
2889 # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_ac_ct_CC="gcc"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2919 echo "${ECHO_T}$ac_ct_CC" >&6; }
2921 { echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6; }
2925 if test "x$ac_ct_CC" = x; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2931 whose name does not start with the host triplet. If you think this
2932 configuration is useful to you, please write to autoconf@gnu.org." >&5
2933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2934 whose name does not start with the host triplet. If you think this
2935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2936 ac_tool_warned=yes ;;
2944 if test -z "$CC"; then
2945 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_prog_CC="${ac_tool_prefix}cc"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 if test -n "$CC"; then
2975 { echo "$as_me:$LINENO: result: $CC" >&5
2976 echo "${ECHO_T}$CC" >&6; }
2978 { echo "$as_me:$LINENO: result: no" >&5
2979 echo "${ECHO_T}no" >&6; }
2985 if test -z "$CC"; then
2986 # Extract the first word of "cc", so it can be a program name with args.
2987 set dummy cc; ac_word=$2
2988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2990 if test "${ac_cv_prog_CC+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3005 ac_prog_rejected=yes
3009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 if test $ac_prog_rejected = yes; then
3017 # We found a bogon in the path, so make sure we never use it.
3018 set dummy $ac_cv_prog_CC
3020 if test $# != 0; then
3021 # We chose a different compiler from the bogus one.
3022 # However, it has the same basename, so the bogon will be chosen
3023 # first if we set CC to just the basename; use the full file name.
3025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3031 if test -n "$CC"; then
3032 { echo "$as_me:$LINENO: result: $CC" >&5
3033 echo "${ECHO_T}$CC" >&6; }
3035 { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3041 if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 for ac_prog in cl.exe
3045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 if test -n "$CC"; then
3074 { echo "$as_me:$LINENO: result: $CC" >&5
3075 echo "${ECHO_T}$CC" >&6; }
3077 { echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6; }
3082 test -n "$CC" && break
3085 if test -z "$CC"; then
3087 for ac_prog in cl.exe
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 if test -n "$ac_ct_CC"; then
3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_ac_ct_CC="$ac_prog"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117 if test -n "$ac_ct_CC"; then
3118 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3119 echo "${ECHO_T}$ac_ct_CC" >&6; }
3121 { echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6; }
3126 test -n "$ac_ct_CC" && break
3129 if test "x$ac_ct_CC" = x; then
3132 case $cross_compiling:$ac_tool_warned in
3134 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3135 whose name does not start with the host triplet. If you think this
3136 configuration is useful to you, please write to autoconf@gnu.org." >&5
3137 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3138 whose name does not start with the host triplet. If you think this
3139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3140 ac_tool_warned=yes ;;
3149 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details." >&5
3151 echo "$as_me: error: no acceptable C compiler found in \$PATH
3152 See \`config.log' for more details." >&2;}
3153 { (exit 1); exit 1; }; }
3155 # Provide some information about the compiler.
3156 echo "$as_me:$LINENO: checking for C compiler version" >&5
3157 ac_compiler=`set X $ac_compile; echo $2`
3158 { (ac_try="$ac_compiler --version >&5"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compiler --version >&5") 2>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }
3168 { (ac_try="$ac_compiler -v >&5"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compiler -v >&5") 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }
3178 { (ac_try="$ac_compiler -V >&5"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compiler -V >&5") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3204 ac_clean_files_save=$ac_clean_files
3205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3206 # Try to create an executable without -o first, disregard a.out.
3207 # It will help us diagnose broken compilers, and finding out an intuition
3209 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3210 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3213 # List of possible output files, starting from the most likely.
3214 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3215 # only as a last resort. b.out is created by i960 compilers.
3216 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3218 # The IRIX 6 linker writes into existing files which may not be
3219 # executable, retaining their permissions. Remove them first so a
3220 # subsequent execution test works.
3222 for ac_file in $ac_files
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3226 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231 if { (ac_try="$ac_link_default"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_link_default") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; then
3241 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3244 # so that the user can short-circuit this test for compilers unknown to
3246 for ac_file in $ac_files ''
3248 test -f "$ac_file" || continue
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3253 # We found the default executable, but exeext='' is most
3257 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261 # We set ac_cv_exeext here because the later test for it is not
3262 # safe: cross compilers may not add the suffix if given an `-o'
3263 # argument, so we may need to know it at that point already.
3264 # Even if this section looks crufty: it has the advantage of
3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
3277 { echo "$as_me:$LINENO: result: $ac_file" >&5
3278 echo "${ECHO_T}$ac_file" >&6; }
3279 if test -z "$ac_file"; then
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: C compiler cannot create executables
3286 See \`config.log' for more details." >&2;}
3287 { (exit 77); exit 77; }; }
3290 ac_exeext=$ac_cv_exeext
3292 # Check that the compiler produces executables we can run. If not, either
3293 # the compiler is broken, or we cross compile.
3294 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3295 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3296 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3297 # If not cross compiling, check that we can run a simple program.
3298 if test "$cross_compiling" != yes; then
3299 if { ac_try='./$ac_file'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3311 if test "$cross_compiling" = maybe; then
3314 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3315 If you meant to cross compile, use \`--host'.
3316 See \`config.log' for more details." >&5
3317 echo "$as_me: error: cannot run C compiled programs.
3318 If you meant to cross compile, use \`--host'.
3319 See \`config.log' for more details." >&2;}
3320 { (exit 1); exit 1; }; }
3324 { echo "$as_me:$LINENO: result: yes" >&5
3325 echo "${ECHO_T}yes" >&6; }
3327 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3328 ac_clean_files=$ac_clean_files_save
3329 # Check that the compiler produces executables we can run. If not, either
3330 # the compiler is broken, or we cross compile.
3331 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3332 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3333 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3334 echo "${ECHO_T}$cross_compiling" >&6; }
3336 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3337 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3338 if { (ac_try="$ac_link"
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_link") 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; then
3348 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3349 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3350 # work properly (i.e., refer to `conftest.exe'), while it won't with
3352 for ac_file in conftest.exe conftest conftest.*; do
3353 test -f "$ac_file" || continue
3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3356 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&5
3364 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3365 See \`config.log' for more details." >&2;}
3366 { (exit 1); exit 1; }; }
3369 rm -f conftest$ac_cv_exeext
3370 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3371 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3373 rm -f conftest.$ac_ext
3374 EXEEXT=$ac_cv_exeext
3376 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3377 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3378 if test "${ac_cv_objext+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.o conftest.obj
3397 if { (ac_try="$ac_compile"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; then
3407 for ac_file in conftest.o conftest.obj conftest.*; do
3408 test -f "$ac_file" || continue;
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3411 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details." >&5
3421 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3422 See \`config.log' for more details." >&2;}
3423 { (exit 1); exit 1; }; }
3426 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3428 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3429 echo "${ECHO_T}$ac_cv_objext" >&6; }
3430 OBJEXT=$ac_cv_objext
3432 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3433 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3434 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_compile") 2>conftest.er1
3464 grep -v '^ *+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && {
3469 test -z "$ac_c_werror_flag" ||
3470 test ! -s conftest.err
3471 } && test -s conftest.$ac_objext; then
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3484 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3485 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3486 GCC=`test $ac_compiler_gnu = yes && echo yes`
3487 ac_test_CFLAGS=${CFLAGS+set}
3488 ac_save_CFLAGS=$CFLAGS
3489 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3491 if test "${ac_cv_prog_cc_g+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 ac_save_c_werror_flag=$ac_c_werror_flag
3495 ac_c_werror_flag=yes
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } && {
3527 test -z "$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 } && test -s conftest.$ac_objext; then
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3590 rm -f conftest.$ac_objext
3591 if { (ac_try="$ac_compile"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_compile") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } && {
3604 test -z "$ac_c_werror_flag" ||
3605 test ! -s conftest.err
3606 } && test -s conftest.$ac_objext; then
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 ac_c_werror_flag=$ac_save_c_werror_flag
3624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3625 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3626 if test "$ac_test_CFLAGS" = set; then
3627 CFLAGS=$ac_save_CFLAGS
3628 elif test $ac_cv_prog_cc_g = yes; then
3629 if test "$GCC" = yes; then
3635 if test "$GCC" = yes; then
3641 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3642 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3643 if test "${ac_cv_prog_cc_c89+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 ac_cv_prog_cc_c89=no
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3672 s = g (p, va_arg (v,int));
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 rm -f conftest.$ac_objext
3710 if { (ac_try="$ac_compile"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_cv_prog_cc_c89=$ac_arg
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3734 rm -f core conftest.err conftest.$ac_objext
3735 test "x$ac_cv_prog_cc_c89" != "xno" && break
3737 rm -f conftest.$ac_ext
3742 case "x$ac_cv_prog_cc_c89" in
3744 { echo "$as_me:$LINENO: result: none needed" >&5
3745 echo "${ECHO_T}none needed" >&6; } ;;
3747 { echo "$as_me:$LINENO: result: unsupported" >&5
3748 echo "${ECHO_T}unsupported" >&6; } ;;
3750 CC="$CC $ac_cv_prog_cc_c89"
3751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3752 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 DEPDIR="${am__leading_dot}deps"
3763 ac_config_commands="$ac_config_commands depfiles"
3766 am_make=${MAKE-make}
3767 cat > confinc << 'END'
3772 # If we don't find an include directive, just comment out the code.
3773 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3774 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3778 # First try GNU make style include.
3779 echo "include confinc" > confmf
3780 # We grep out `Entering directory' and `Leaving directory'
3781 # messages which can occur if `w' ends up in MAKEFLAGS.
3782 # In particular we don't look at `^make:' because GNU make might
3783 # be invoked under some other name (usually "gmake"), in which
3784 # case it prints its new name instead of `make'.
3785 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3790 # Now try BSD make style include.
3791 if test "$am__include" = "#"; then
3792 echo '.include "confinc"' > confmf
3793 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3794 am__include=.include
3801 { echo "$as_me:$LINENO: result: $_am_result" >&5
3802 echo "${ECHO_T}$_am_result" >&6; }
3803 rm -f confinc confmf
3805 # Check whether --enable-dependency-tracking was given.
3806 if test "${enable_dependency_tracking+set}" = set; then
3807 enableval=$enable_dependency_tracking;
3810 if test "x$enable_dependency_tracking" != xno; then
3811 am_depcomp="$ac_aux_dir/depcomp"
3814 if test "x$enable_dependency_tracking" != xno; then
3824 depcc="$CC" am_compiler_list=
3826 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3827 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3828 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3832 # We make a subdir and do the tests there. Otherwise we can end up
3833 # making bogus files that we don't know about and never remove. For
3834 # instance it was reported that on HP-UX the gcc test will end up
3835 # making a dummy file named `D' -- because `-MD' means `put the output
3838 # Copy depcomp to subdir because otherwise we won't find it if we're
3839 # using a relative directory.
3840 cp "$am_depcomp" conftest.dir
3842 # We will build objects and dependencies in a subdirectory because
3843 # it helps to detect inapplicable dependency modes. For instance
3844 # both Tru64's cc and ICC support -MD to output dependencies as a
3845 # side effect of compilation, but ICC will put the dependencies in
3846 # the current directory while Tru64 will put them in the object
3850 am_cv_CC_dependencies_compiler_type=none
3851 if test "$am_compiler_list" = ""; then
3852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3854 for depmode in $am_compiler_list; do
3855 # Setup a source with many dependencies, because some compilers
3856 # like to wrap large dependency lists on column 80 (with \), and
3857 # we should not choose a depcomp mode which is confused by this.
3859 # We need to recreate these files for each test, as the compiler may
3860 # overwrite some of them when testing with obscure command lines.
3861 # This happens at least with the AIX C compiler.
3863 for i in 1 2 3 4 5 6; do
3864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3866 # Solaris 8's {/usr,}/bin/sh.
3867 touch sub/conftst$i.h
3869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3873 # after this tag, mechanisms are not by side-effect, so they'll
3874 # only be used when explicitly requested
3875 if test "x$enable_dependency_tracking" = xyes; then
3883 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3884 # mode. It turns out that the SunPro C++ compiler does not properly
3885 # handle `-M -o', and we need to detect this.
3886 if depmode=$depmode \
3887 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3889 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3890 >/dev/null 2>conftest.err &&
3891 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3893 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895 # icc doesn't choke on unknown options, it will just issue warnings
3896 # or remarks (even with -Werror). So we grep stderr for any message
3897 # that says an option was ignored or not supported.
3898 # When given -MP, icc 7.0 and 7.1 complain thusly:
3899 # icc: Command line warning: ignoring option '-M'; no argument required
3900 # The diagnosis changed in icc 8.0:
3901 # icc: Command line remark: option '-MP' not supported
3902 if (grep 'ignoring option' conftest.err ||
3903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904 am_cv_CC_dependencies_compiler_type=$depmode
3913 am_cv_CC_dependencies_compiler_type=none
3917 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3918 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3922 test "x$enable_dependency_tracking" != xno \
3923 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3925 am__fastdepCC_FALSE='#'
3927 am__fastdepCC_TRUE='#'
3928 am__fastdepCC_FALSE=
3933 if test -n "$ac_tool_prefix"; then
3934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3938 if test "${ac_cv_prog_RANLIB+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 if test -n "$RANLIB"; then
3942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 RANLIB=$ac_cv_prog_RANLIB
3962 if test -n "$RANLIB"; then
3963 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3964 echo "${ECHO_T}$RANLIB" >&6; }
3966 { echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6; }
3972 if test -z "$ac_cv_prog_RANLIB"; then
3973 ac_ct_RANLIB=$RANLIB
3974 # Extract the first word of "ranlib", so it can be a program name with args.
3975 set dummy ranlib; ac_word=$2
3976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3978 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 if test -n "$ac_ct_RANLIB"; then
3982 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_ac_ct_RANLIB="ranlib"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4002 if test -n "$ac_ct_RANLIB"; then
4003 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4004 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4006 { echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6; }
4010 if test "x$ac_ct_RANLIB" = x; then
4013 case $cross_compiling:$ac_tool_warned in
4015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4016 whose name does not start with the host triplet. If you think this
4017 configuration is useful to you, please write to autoconf@gnu.org." >&5
4018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4019 whose name does not start with the host triplet. If you think this
4020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4021 ac_tool_warned=yes ;;
4023 RANLIB=$ac_ct_RANLIB
4026 RANLIB="$ac_cv_prog_RANLIB"
4029 for ac_prog in 'bison -y' byacc
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4035 if test "${ac_cv_prog_YACC+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$YACC"; then
4039 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_YACC="$ac_prog"
4049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 YACC=$ac_cv_prog_YACC
4059 if test -n "$YACC"; then
4060 { echo "$as_me:$LINENO: result: $YACC" >&5
4061 echo "${ECHO_T}$YACC" >&6; }
4063 { echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6; }
4068 test -n "$YACC" && break
4070 test -n "$YACC" || YACC="yacc"
4072 if test "x$CC" != xcc; then
4073 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4074 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4076 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4077 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4079 set dummy $CC; ac_cc=`echo $2 |
4080 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4081 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4099 # Make sure it works both with $CC and with simple cc.
4100 # We do the test twice because some compilers refuse to overwrite an
4101 # existing .o file with -o, though they will create one.
4102 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4104 if { (case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_try") 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_try") 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); };
4123 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4124 if test "x$CC" != xcc; then
4125 # Test first that cc exists at all.
4126 if { ac_try='cc -c conftest.$ac_ext >&5'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4138 if { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); };
4160 # cc exists but doesn't like -o.
4161 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4166 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4168 rm -f core conftest*
4171 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4172 { echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6; }
4175 { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4178 cat >>confdefs.h <<\_ACEOF
4179 #define NO_MINUS_C_MINUS_O 1
4184 # FIXME: we rely on the cache variable name because
4185 # there is no other way.
4187 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4188 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4189 # Losing compiler, so override with the script.
4190 # FIXME: It is wrong to rewrite CC.
4191 # But if we don't then we get into trouble of one sort or another.
4192 # A longer-term fix would be to have automake use am__CC in this case,
4193 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4194 CC="$am_aux_dir/compile $CC"
4199 cat >>confdefs.h <<\_ACEOF
4200 #define _GNU_SOURCE 1
4204 # Make sure we can run config.sub.
4205 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4206 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4207 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4208 { (exit 1); exit 1; }; }
4210 { echo "$as_me:$LINENO: checking build system type" >&5
4211 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4212 if test "${ac_cv_build+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 ac_build_alias=$build_alias
4216 test "x$ac_build_alias" = x &&
4217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4218 test "x$ac_build_alias" = x &&
4219 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4220 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4221 { (exit 1); exit 1; }; }
4222 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4223 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4224 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4225 { (exit 1); exit 1; }; }
4228 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4229 echo "${ECHO_T}$ac_cv_build" >&6; }
4230 case $ac_cv_build in
4232 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4233 echo "$as_me: error: invalid value of canonical build" >&2;}
4234 { (exit 1); exit 1; }; };;
4237 ac_save_IFS=$IFS; IFS='-'
4243 # Remember, the first character of IFS is used to create $*,
4244 # except with old shells:
4247 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4250 { echo "$as_me:$LINENO: checking host system type" >&5
4251 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4252 if test "${ac_cv_host+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 if test "x$host_alias" = x; then
4256 ac_cv_host=$ac_cv_build
4258 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4259 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4260 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4261 { (exit 1); exit 1; }; }
4265 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4266 echo "${ECHO_T}$ac_cv_host" >&6; }
4269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4270 echo "$as_me: error: invalid value of canonical host" >&2;}
4271 { (exit 1); exit 1; }; };;
4274 ac_save_IFS=$IFS; IFS='-'
4280 # Remember, the first character of IFS is used to create $*,
4281 # except with old shells:
4284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4294 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4295 # On Suns, sometimes $CPP names a directory.
4296 if test -n "$CPP" && test -d "$CPP"; then
4299 if test -z "$CPP"; then
4300 if test "${ac_cv_prog_CPP+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 # Double quotes because CPP needs to be expanded
4304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4307 for ac_c_preproc_warn_flag in '' yes
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
4315 cat >conftest.$ac_ext <<_ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4322 # include <limits.h>
4324 # include <assert.h>
4328 if { (ac_try="$ac_cpp conftest.$ac_ext"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } >/dev/null && {
4341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 # Broken: fails on valid input.
4353 rm -f conftest.err conftest.$ac_ext
4355 # OK, works on sane cases. Now check whether nonexistent headers
4356 # can be detected and how.
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ac_nonexistent.h>
4365 if { (ac_try="$ac_cpp conftest.$ac_ext"
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4381 # Broken: success on invalid input.
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 # Passes both tests.
4392 rm -f conftest.err conftest.$ac_ext
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then
4409 { echo "$as_me:$LINENO: result: $CPP" >&5
4410 echo "${ECHO_T}$CPP" >&6; }
4412 for ac_c_preproc_warn_flag in '' yes
4414 # Use a header file that comes with gcc, so configuring glibc
4415 # with a fresh cross-compiler works.
4416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417 # <limits.h> exists even on freestanding compilers.
4418 # On the NeXT, cc -E runs the code through the compiler's parser,
4419 # not just through cpp. "Syntax error" is here to catch this case.
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4427 # include <limits.h>
4429 # include <assert.h>
4433 if { (ac_try="$ac_cpp conftest.$ac_ext"
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } >/dev/null && {
4446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4447 test ! -s conftest.err
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 # Broken: fails on valid input.
4458 rm -f conftest.err conftest.$ac_ext
4460 # OK, works on sane cases. Now check whether nonexistent headers
4461 # can be detected and how.
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <ac_nonexistent.h>
4470 if { (ac_try="$ac_cpp conftest.$ac_ext"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } >/dev/null && {
4483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4484 test ! -s conftest.err
4486 # Broken: success on invalid input.
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 # Passes both tests.
4497 rm -f conftest.err conftest.$ac_ext
4500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501 rm -f conftest.err conftest.$ac_ext
4502 if $ac_preproc_ok; then
4505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log' for more details." >&5
4507 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4508 See \`config.log' for more details." >&2;}
4509 { (exit 1); exit 1; }; }
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4520 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_GREP+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 # Extract the first word of "grep ggrep" to use in msg output
4525 if test -z "$GREP"; then
4526 set dummy grep ggrep; ac_prog_name=$2
4527 if test "${ac_cv_path_GREP+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 ac_path_GREP_found=false
4531 # Loop through the user's path and test for each of PROGNAME-LIST
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4536 test -z "$as_dir" && as_dir=.
4537 for ac_prog in grep ggrep; do
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4540 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4541 # Check for GNU ac_path_GREP and select it if it is found.
4542 # Check for GNU $ac_path_GREP
4543 case `"$ac_path_GREP" --version 2>&1` in
4545 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4548 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4551 cat "conftest.in" "conftest.in" >"conftest.tmp"
4552 mv "conftest.tmp" "conftest.in"
4553 cp "conftest.in" "conftest.nl"
4554 echo 'GREP' >> "conftest.nl"
4555 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4557 ac_count=`expr $ac_count + 1`
4558 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4559 # Best one so far, save it but keep looking for a better one
4560 ac_cv_path_GREP="$ac_path_GREP"
4561 ac_path_GREP_max=$ac_count
4563 # 10*(2^10) chars as input seems more than enough
4564 test $ac_count -gt 10 && break
4566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4570 $ac_path_GREP_found && break 3
4580 GREP="$ac_cv_path_GREP"
4581 if test -z "$GREP"; then
4582 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4583 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4584 { (exit 1); exit 1; }; }
4588 ac_cv_path_GREP=$GREP
4593 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4594 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4595 GREP="$ac_cv_path_GREP"
4598 { echo "$as_me:$LINENO: checking for egrep" >&5
4599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4600 if test "${ac_cv_path_EGREP+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4604 then ac_cv_path_EGREP="$GREP -E"
4606 # Extract the first word of "egrep" to use in msg output
4607 if test -z "$EGREP"; then
4608 set dummy egrep; ac_prog_name=$2
4609 if test "${ac_cv_path_EGREP+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_path_EGREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in egrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4623 # Check for GNU ac_path_EGREP and select it if it is found.
4624 # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4630 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 echo 'EGREP' >> "conftest.nl"
4637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 ac_count=`expr $ac_count + 1`
4640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_EGREP="$ac_path_EGREP"
4643 ac_path_EGREP_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4652 $ac_path_EGREP_found && break 3
4662 EGREP="$ac_cv_path_EGREP"
4663 if test -z "$EGREP"; then
4664 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4665 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4666 { (exit 1); exit 1; }; }
4670 ac_cv_path_EGREP=$EGREP
4676 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4677 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4678 EGREP="$ac_cv_path_EGREP"
4681 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4682 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4683 if test "${ac_cv_header_stdc+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4705 rm -f conftest.$ac_objext
4706 if { (ac_try="$ac_compile"
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4722 ac_cv_header_stdc=yes
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 ac_cv_header_stdc=no
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 if test $ac_cv_header_stdc = yes; then
4733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4734 cat >conftest.$ac_ext <<_ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4744 $EGREP "memchr" >/dev/null 2>&1; then
4747 ac_cv_header_stdc=no
4753 if test $ac_cv_header_stdc = yes; then
4754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765 $EGREP "free" >/dev/null 2>&1; then
4768 ac_cv_header_stdc=no
4774 if test $ac_cv_header_stdc = yes; then
4775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4776 if test "$cross_compiling" = yes; then
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4787 #if ((' ' & 0x0FF) == 0x020)
4788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791 # define ISLOWER(c) \
4792 (('a' <= (c) && (c) <= 'i') \
4793 || ('j' <= (c) && (c) <= 'r') \
4794 || ('s' <= (c) && (c) <= 'z'))
4795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4803 for (i = 0; i < 256; i++)
4804 if (XOR (islower (i), ISLOWER (i))
4805 || toupper (i) != TOUPPER (i))
4810 rm -f conftest$ac_exeext
4811 if { (ac_try="$ac_link"
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817 (eval "$ac_link") 2>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4821 { (case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_try") 2>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4832 echo "$as_me: program exited with status $ac_status" >&5
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4837 ac_cv_header_stdc=no
4839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4845 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4846 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4847 if test $ac_cv_header_stdc = yes; then
4849 cat >>confdefs.h <<\_ACEOF
4850 #define STDC_HEADERS 1
4855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4865 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4866 inttypes.h stdint.h unistd.h
4868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4882 #include <$ac_header>
4884 rm -f conftest.$ac_objext
4885 if { (ac_try="$ac_compile"
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compile") 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
4901 eval "$as_ac_Header=yes"
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 eval "$as_ac_Header=no"
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 ac_res=`eval echo '${'$as_ac_Header'}'`
4912 { echo "$as_me:$LINENO: result: $ac_res" >&5
4913 echo "${ECHO_T}$ac_res" >&6; }
4914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4915 cat >>confdefs.h <<_ACEOF
4916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4927 if test "${ac_cv_header_minix_config_h+set}" = set; then
4928 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4929 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4930 if test "${ac_cv_header_minix_config_h+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4934 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4936 # Is the header compilable?
4937 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4938 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 $ac_includes_default
4946 #include <minix/config.h>
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4965 ac_header_compiler=yes
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 ac_header_compiler=no
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4975 echo "${ECHO_T}$ac_header_compiler" >&6; }
4977 # Is the header present?
4978 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4979 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 #include <minix/config.h>
4988 if { (ac_try="$ac_cpp conftest.$ac_ext"
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null && {
5001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5004 ac_header_preproc=yes
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 ac_header_preproc=no
5012 rm -f conftest.err conftest.$ac_ext
5013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5014 echo "${ECHO_T}$ac_header_preproc" >&6; }
5016 # So? What about this header?
5017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5019 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5020 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5022 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5023 ac_header_preproc=yes
5026 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5027 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5028 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5029 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5030 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5031 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5033 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5034 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5035 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5036 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5037 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5039 ## ------------------------------ ##
5040 ## Report this to bug-tar@gnu.org ##
5041 ## ------------------------------ ##
5043 ) | sed "s/^/$as_me: WARNING: /" >&2
5046 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5047 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5048 if test "${ac_cv_header_minix_config_h+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 ac_cv_header_minix_config_h=$ac_header_preproc
5053 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5054 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5057 if test $ac_cv_header_minix_config_h = yes; then
5064 if test "$MINIX" = yes; then
5066 cat >>confdefs.h <<\_ACEOF
5067 #define _POSIX_SOURCE 1
5071 cat >>confdefs.h <<\_ACEOF
5072 #define _POSIX_1_SOURCE 2
5076 cat >>confdefs.h <<\_ACEOF
5085 cat >>confdefs.h <<\_ACEOF
5086 #define _XOPEN_SOURCE 500
5094 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5095 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5096 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5106 # define __EXTENSIONS__ 1
5107 $ac_includes_default
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_compile") 2>conftest.er1
5125 grep -v '^ *+' conftest.er1 >conftest.err
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest.$ac_objext; then
5133 ac_cv_safe_to_define___extensions__=yes
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 ac_cv_safe_to_define___extensions__=no
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5144 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5145 test $ac_cv_safe_to_define___extensions__ = yes &&
5146 cat >>confdefs.h <<\_ACEOF
5147 #define __EXTENSIONS__ 1
5150 cat >>confdefs.h <<\_ACEOF
5151 #define _ALL_SOURCE 1
5154 cat >>confdefs.h <<\_ACEOF
5155 #define _GNU_SOURCE 1
5158 cat >>confdefs.h <<\_ACEOF
5159 #define _POSIX_PTHREAD_SEMANTICS 1
5162 cat >>confdefs.h <<\_ACEOF
5163 #define _TANDEM_SOURCE 1
5174 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5175 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5176 if test "${ac_cv_sys_largefile_source+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5190 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (ac_try="$ac_link"
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202 (eval "$ac_link") 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } && {
5209 test -z "$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5211 } && test -s conftest$ac_exeext &&
5212 $as_test_x conftest$ac_exeext; then
5213 ac_cv_sys_largefile_source=no; break
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5222 conftest$ac_exeext conftest.$ac_ext
5223 cat >conftest.$ac_ext <<_ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 #define _LARGEFILE_SOURCE 1
5234 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5239 rm -f conftest.$ac_objext conftest$ac_exeext
5240 if { (ac_try="$ac_link"
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_link") 2>conftest.er1
5248 grep -v '^ *+' conftest.er1 >conftest.err
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest$ac_exeext &&
5256 $as_test_x conftest$ac_exeext; then
5257 ac_cv_sys_largefile_source=1; break
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5266 conftest$ac_exeext conftest.$ac_ext
5267 ac_cv_sys_largefile_source=unknown
5271 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5272 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5273 case $ac_cv_sys_largefile_source in #(
5276 cat >>confdefs.h <<_ACEOF
5277 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5283 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5284 # in glibc 2.1.3, but that breaks too many other things.
5285 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5286 if test $ac_cv_sys_largefile_source != unknown; then
5288 cat >>confdefs.h <<\_ACEOF
5289 #define HAVE_FSEEKO 1
5294 case $ac_cv_prog_cc_stdc in
5295 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5296 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5297 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
5298 if test "${ac_cv_prog_cc_c99+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 ac_cv_prog_cc_c99=no
5303 cat >conftest.$ac_ext <<_ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5310 #include <stdbool.h>
5315 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5316 #define debug(...) fprintf (stderr, __VA_ARGS__)
5317 #define showlist(...) puts (#__VA_ARGS__)
5318 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5320 test_varargs_macros (void)
5325 debug ("X = %d\n", x);
5326 showlist (The first, second, and third items.);
5327 report (x>y, "x is %d but y is %d", x, y);
5330 // Check long long types.
5331 #define BIG64 18446744073709551615ull
5332 #define BIG32 4294967295ul
5333 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5335 your preprocessor is broken;
5339 your preprocessor is broken;
5341 static long long int bignum = -9223372036854775807LL;
5342 static unsigned long long int ubignum = BIG64;
5344 struct incomplete_array
5352 const wchar_t *name;
5356 typedef const char *ccp;
5359 test_restrict (ccp restrict text)
5361 // See if C++-style comments work.
5362 // Iterate through items via the restricted pointer.
5363 // Also check for declarations in for loops.
5364 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5369 // Check varargs and va_copy.
5371 test_varargs (const char *format, ...)
5374 va_start (args, format);
5376 va_copy (args_copy, args);
5387 str = va_arg (args_copy, const char *);
5390 number = va_arg (args_copy, int);
5393 fnumber = va_arg (args_copy, double);
5408 _Bool success = false;
5411 if (test_restrict ("String literal") == 0)
5413 char *restrict newvar = "Another string";
5416 test_varargs ("s, d' f .", "string", 65, 34.234);
5417 test_varargs_macros ();
5419 // Check flexible array members.
5420 struct incomplete_array *ia =
5421 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5423 for (int i = 0; i < ia->datasize; ++i)
5424 ia->data[i] = i * 1.234;
5426 // Check named initializers.
5427 struct named_init ni = {
5429 .name = L"Test wide string",
5430 .average = 543.34343,
5435 int dynamic_array[ni.number];
5436 dynamic_array[ni.number - 1] = 543;
5438 // work around unused variable warnings
5439 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5440 || dynamic_array[ni.number - 1] != 543);
5446 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5448 CC="$ac_save_CC $ac_arg"
5449 rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_compile") 2>conftest.er1
5458 grep -v '^ *+' conftest.er1 >conftest.err
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } && {
5463 test -z "$ac_c_werror_flag" ||
5464 test ! -s conftest.err
5465 } && test -s conftest.$ac_objext; then
5466 ac_cv_prog_cc_c99=$ac_arg
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5474 rm -f core conftest.err conftest.$ac_objext
5475 test "x$ac_cv_prog_cc_c99" != "xno" && break
5477 rm -f conftest.$ac_ext
5482 case "x$ac_cv_prog_cc_c99" in
5484 { echo "$as_me:$LINENO: result: none needed" >&5
5485 echo "${ECHO_T}none needed" >&6; } ;;
5487 { echo "$as_me:$LINENO: result: unsupported" >&5
5488 echo "${ECHO_T}unsupported" >&6; } ;;
5490 CC="$CC $ac_cv_prog_cc_c99"
5491 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5492 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
5494 if test "x$ac_cv_prog_cc_c99" != xno; then
5495 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5497 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5498 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_cc_c89+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 ac_cv_prog_cc_c89=no
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5512 #include <sys/types.h>
5513 #include <sys/stat.h>
5514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5515 struct buf { int x; };
5516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5517 static char *e (p, i)
5523 static char *f (char * (*g) (char **, int), char **p, ...)
5528 s = g (p, va_arg (v,int));
5533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5534 function prototypes and stuff, but not '\xHH' hex character constants.
5535 These don't provoke an error unfortunately, instead are silently treated
5536 as 'x'. The following induces an error, until -std is added to get
5537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5538 array size at least. It's necessary to write '\x00'==0 to get something
5539 that's true only with -std. */
5540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5543 inside strings and character constants. */
5545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5547 int test (int i, double x);
5548 struct s1 {int (*f) (int a);};
5549 struct s2 {int (*f) (double a);};
5550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5564 CC="$ac_save_CC $ac_arg"
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.$ac_objext; then
5582 ac_cv_prog_cc_c89=$ac_arg
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5590 rm -f core conftest.err conftest.$ac_objext
5591 test "x$ac_cv_prog_cc_c89" != "xno" && break
5593 rm -f conftest.$ac_ext
5598 case "x$ac_cv_prog_cc_c89" in
5600 { echo "$as_me:$LINENO: result: none needed" >&5
5601 echo "${ECHO_T}none needed" >&6; } ;;
5603 { echo "$as_me:$LINENO: result: unsupported" >&5
5604 echo "${ECHO_T}unsupported" >&6; } ;;
5606 CC="$CC $ac_cv_prog_cc_c89"
5607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5608 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5610 if test "x$ac_cv_prog_cc_c89" != xno; then
5611 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5613 ac_cv_prog_cc_stdc=no
5621 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5622 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5623 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 case $ac_cv_prog_cc_stdc in
5628 no) { echo "$as_me:$LINENO: result: unsupported" >&5
5629 echo "${ECHO_T}unsupported" >&6; } ;;
5630 '') { echo "$as_me:$LINENO: result: none needed" >&5
5631 echo "${ECHO_T}none needed" >&6; } ;;
5632 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5645 # Check whether --enable-largefile was given.
5646 if test "${enable_largefile+set}" = set; then
5647 enableval=$enable_largefile;
5650 if test "$enable_largefile" != no; then
5652 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5653 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5654 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 ac_cv_sys_largefile_CC=no
5658 if test "$GCC" != yes; then
5661 # IRIX 6.2 and later do not support large files by default,
5662 # so use the C compiler's -n32 option if that helps.
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1 >conftest.err
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.$ac_objext; then
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f core conftest.err conftest.$ac_objext
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5722 grep -v '^ *+' conftest.er1 >conftest.err
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_c_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 ac_cv_sys_largefile_CC=' -n32'; break
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5738 rm -f core conftest.err conftest.$ac_objext
5742 rm -f conftest.$ac_ext
5745 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5746 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5747 if test "$ac_cv_sys_largefile_CC" != no; then
5748 CC=$CC$ac_cv_sys_largefile_CC
5751 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5752 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5753 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #include <sys/types.h>
5764 /* Check that off_t can represent 2**63 - 1 correctly.
5765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766 since some C++ compilers masquerading as C compilers
5767 incorrectly reject 9223372036854775807. */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770 && LARGE_OFF_T % 2147483647 == 1)
5780 rm -f conftest.$ac_objext
5781 if { (ac_try="$ac_compile"
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compile") 2>conftest.er1
5789 grep -v '^ *+' conftest.er1 >conftest.err
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest.$ac_objext; then
5797 ac_cv_sys_file_offset_bits=no; break
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 #define _FILE_OFFSET_BITS 64
5813 #include <sys/types.h>
5814 /* Check that off_t can represent 2**63 - 1 correctly.
5815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5816 since some C++ compilers masquerading as C compilers
5817 incorrectly reject 9223372036854775807. */
5818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5820 && LARGE_OFF_T % 2147483647 == 1)
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 ac_cv_sys_file_offset_bits=64; break
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 ac_cv_sys_file_offset_bits=unknown
5860 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5862 case $ac_cv_sys_file_offset_bits in #(
5865 cat >>confdefs.h <<_ACEOF
5866 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5871 if test $ac_cv_sys_file_offset_bits = unknown; then
5872 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5873 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5874 if test "${ac_cv_sys_large_files+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5910 grep -v '^ *+' conftest.er1 >conftest.err
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 ac_cv_sys_large_files=no; break
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #define _LARGE_FILES 1
5934 #include <sys/types.h>
5935 /* Check that off_t can represent 2**63 - 1 correctly.
5936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5937 since some C++ compilers masquerading as C compilers
5938 incorrectly reject 9223372036854775807. */
5939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5941 && LARGE_OFF_T % 2147483647 == 1)
5951 rm -f conftest.$ac_objext
5952 if { (ac_try="$ac_compile"
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_compile") 2>conftest.er1
5960 grep -v '^ *+' conftest.er1 >conftest.err
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && {
5965 test -z "$ac_c_werror_flag" ||
5966 test ! -s conftest.err
5967 } && test -s conftest.$ac_objext; then
5968 ac_cv_sys_large_files=1; break
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 ac_cv_sys_large_files=unknown
5981 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5982 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5983 case $ac_cv_sys_large_files in #(
5986 cat >>confdefs.h <<_ACEOF
5987 #define _LARGE_FILES $ac_cv_sys_large_files
5996 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5997 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5998 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 ac_check_lib_save_LIBS=$LIBS
6002 LIBS="-lcposix $LIBS"
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6010 /* Override any GCC internal prototype to avoid an error.
6011 Use char because int might match the return type of a GCC
6012 builtin and then its argument prototype would still apply. */
6025 rm -f conftest.$ac_objext conftest$ac_exeext
6026 if { (ac_try="$ac_link"
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_link") 2>conftest.er1
6034 grep -v '^ *+' conftest.er1 >conftest.err
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_c_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest$ac_exeext &&
6042 $as_test_x conftest$ac_exeext; then
6043 ac_cv_lib_cposix_strerror=yes
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 ac_cv_lib_cposix_strerror=no
6051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6052 conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6055 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6056 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
6057 if test $ac_cv_lib_cposix_strerror = yes; then
6058 LIBS="$LIBS -lcposix"
6063 { echo "$as_me:$LINENO: checking for inline" >&5
6064 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6065 if test "${ac_cv_c_inline+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 for ac_kw in inline __inline__ __inline; do
6070 cat >conftest.$ac_ext <<_ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6078 static $ac_kw foo_t static_foo () {return 0; }
6079 $ac_kw foo_t foo () {return 0; }
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
6100 ac_cv_c_inline=$ac_kw
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 test "$ac_cv_c_inline" != no && break
6113 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6114 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6117 case $ac_cv_c_inline in
6120 case $ac_cv_c_inline in
6122 *) ac_val=$ac_cv_c_inline;;
6124 cat >>confdefs.h <<_ACEOF
6126 #define inline $ac_val
6137 for ac_header in $ac_header_list
6139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 ac_res=`eval echo '${'$as_ac_Header'}'`
6147 { echo "$as_me:$LINENO: result: $ac_res" >&5
6148 echo "${ECHO_T}$ac_res" >&6; }
6150 # Is the header compilable?
6151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 $ac_includes_default
6160 #include <$ac_header>
6162 rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6171 grep -v '^ *+' conftest.er1 >conftest.err
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && {
6176 test -z "$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 } && test -s conftest.$ac_objext; then
6179 ac_header_compiler=yes
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 ac_header_compiler=no
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6189 echo "${ECHO_T}$ac_header_compiler" >&6; }
6191 # Is the header present?
6192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6194 cat >conftest.$ac_ext <<_ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 #include <$ac_header>
6202 if { (ac_try="$ac_cpp conftest.$ac_ext"
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } >/dev/null && {
6215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6218 ac_header_preproc=yes
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_header_preproc=no
6226 rm -f conftest.err conftest.$ac_ext
6227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6228 echo "${ECHO_T}$ac_header_preproc" >&6; }
6230 # So? What about this header?
6231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6237 ac_header_preproc=yes
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6253 ## ------------------------------ ##
6254 ## Report this to bug-tar@gnu.org ##
6255 ## ------------------------------ ##
6257 ) | sed "s/^/$as_me: WARNING: /" >&2
6260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 eval "$as_ac_Header=\$ac_header_preproc"
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6363 for ac_header in sys/buf.h
6365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #if HAVE_SYS_PARAM_H
6378 #include <sys/param.h>
6381 #include <$ac_header>
6383 rm -f conftest.$ac_objext
6384 if { (ac_try="$ac_compile"
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_compile") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest.$ac_objext; then
6400 eval "$as_ac_Header=yes"
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 eval "$as_ac_Header=no"
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 ac_res=`eval echo '${'$as_ac_Header'}'`
6411 { echo "$as_me:$LINENO: result: $ac_res" >&5
6412 echo "${ECHO_T}$ac_res" >&6; }
6413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6414 cat >>confdefs.h <<_ACEOF
6415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6423 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6424 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6425 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #include <sys/types.h>
6435 #include <sys/wait.h>
6437 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6440 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6448 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } && {
6467 test -z "$ac_c_werror_flag" ||
6468 test ! -s conftest.err
6469 } && test -s conftest.$ac_objext; then
6470 ac_cv_header_sys_wait_h=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_cv_header_sys_wait_h=no
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6481 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6482 if test $ac_cv_header_sys_wait_h = yes; then
6484 cat >>confdefs.h <<\_ACEOF
6485 #define HAVE_SYS_WAIT_H 1
6490 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6491 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6492 if test "${ac_cv_header_stdbool_h+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 cat >conftest.$ac_ext <<_ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6502 #include <stdbool.h>
6504 "error: bool is not defined"
6507 "error: false is not defined"
6510 "error: false is not 0"
6513 "error: true is not defined"
6516 "error: true is not 1"
6518 #ifndef __bool_true_false_are_defined
6519 "error: __bool_true_false_are_defined is not defined"
6522 struct s { _Bool s: 1; _Bool t; } s;
6524 char a[true == 1 ? 1 : -1];
6525 char b[false == 0 ? 1 : -1];
6526 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6527 char d[(bool) 0.5 == true ? 1 : -1];
6529 char f[(_Bool) 0.0 == false ? 1 : -1];
6531 char h[sizeof (_Bool)];
6533 enum { j = false, k = true, l = false * true, m = true * 256 };
6535 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6536 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6537 #if defined __xlc__ || defined __GNUC__
6538 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6539 reported by James Lemley on 2005-10-05; see
6540 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6541 This test is not quite right, since xlc is allowed to
6542 reject this program, as the initializer for xlcbug is
6543 not one of the forms that C requires support for.
6544 However, doing the test right would require a run-time
6545 test, and that would make cross-compilation harder.
6546 Let us hope that IBM fixes the xlc bug, and also adds
6547 support for this kind of constant expression. In the
6548 meantime, this test will reject xlc, which is OK, since
6549 our stdbool.h substitute should suffice. We also test
6550 this with GCC, where it should work, to detect more
6551 quickly whether someone messes up the test in the
6553 char digs[] = "0123456789";
6554 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6556 /* Catch a bug in an HP-UX C compiler. See
6557 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6558 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6569 /* Refer to every declared value, to avoid compiler optimizations. */
6570 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6571 + !m + !n + !o + !p + !q + !pq);
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_compile") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 } && test -s conftest.$ac_objext; then
6594 ac_cv_header_stdbool_h=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_header_stdbool_h=no
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6605 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6606 { echo "$as_me:$LINENO: checking for _Bool" >&5
6607 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6608 if test "${ac_cv_type__Bool+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 $ac_includes_default
6618 typedef _Bool ac__type_new_;
6622 if ((ac__type_new_ *) 0)
6624 if (sizeof (ac__type_new_))
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6639 grep -v '^ *+' conftest.er1 >conftest.err
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.$ac_objext; then
6647 ac_cv_type__Bool=yes
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6658 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6659 if test $ac_cv_type__Bool = yes; then
6661 cat >>confdefs.h <<_ACEOF
6662 #define HAVE__BOOL 1
6668 if test $ac_cv_header_stdbool_h = yes; then
6670 cat >>confdefs.h <<\_ACEOF
6671 #define HAVE_STDBOOL_H 1
6678 # Define two additional variables used in the Makefile substitution.
6680 if test "$ac_cv_header_stdbool_h" = yes; then
6683 STDBOOL_H='stdbool.h'
6687 if test "$ac_cv_type__Bool" = yes; then
6701 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6702 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6703 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6704 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 #include <sys/types.h>
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6735 grep -v '^ *+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 eval "$as_ac_Header=yes"
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 eval "$as_ac_Header=no"
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 ac_res=`eval echo '${'$as_ac_Header'}'`
6754 { echo "$as_me:$LINENO: result: $ac_res" >&5
6755 echo "${ECHO_T}$ac_res" >&6; }
6756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6757 cat >>confdefs.h <<_ACEOF
6758 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6761 ac_header_dirent=$ac_hdr; break
6765 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6766 if test $ac_header_dirent = dirent.h; then
6767 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6768 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6769 if test "${ac_cv_search_opendir+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_func_search_save_LIBS=$LIBS
6773 cat >conftest.$ac_ext <<_ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6780 /* Override any GCC internal prototype to avoid an error.
6781 Use char because int might match the return type of a GCC
6782 builtin and then its argument prototype would still apply. */
6795 for ac_lib in '' dir; do
6796 if test -z "$ac_lib"; then
6797 ac_res="none required"
6800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (ac_try="$ac_link"
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_link") 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest$ac_exeext &&
6819 $as_test_x conftest$ac_exeext; then
6820 ac_cv_search_opendir=$ac_res
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6830 if test "${ac_cv_search_opendir+set}" = set; then
6834 if test "${ac_cv_search_opendir+set}" = set; then
6837 ac_cv_search_opendir=no
6840 LIBS=$ac_func_search_save_LIBS
6842 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6843 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6844 ac_res=$ac_cv_search_opendir
6845 if test "$ac_res" != no; then
6846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6851 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6853 if test "${ac_cv_search_opendir+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_func_search_save_LIBS=$LIBS
6857 cat >conftest.$ac_ext <<_ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6864 /* Override any GCC internal prototype to avoid an error.
6865 Use char because int might match the return type of a GCC
6866 builtin and then its argument prototype would still apply. */
6879 for ac_lib in '' x; do
6880 if test -z "$ac_lib"; then
6881 ac_res="none required"
6884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_link") 2>conftest.er1
6895 grep -v '^ *+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest$ac_exeext &&
6903 $as_test_x conftest$ac_exeext; then
6904 ac_cv_search_opendir=$ac_res
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6914 if test "${ac_cv_search_opendir+set}" = set; then
6918 if test "${ac_cv_search_opendir+set}" = set; then
6921 ac_cv_search_opendir=no
6924 LIBS=$ac_func_search_save_LIBS
6926 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6927 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6928 ac_res=$ac_cv_search_opendir
6929 if test "$ac_res" != no; then
6930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6936 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6937 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6938 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 #include <sys/types.h>
6951 return makedev(0, 0);
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (ac_try="$ac_link"
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_link") 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest$ac_exeext &&
6973 $as_test_x conftest$ac_exeext; then
6974 ac_cv_header_sys_types_h_makedev=yes
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_cv_header_sys_types_h_makedev=no
6982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6983 conftest$ac_exeext conftest.$ac_ext
6986 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6987 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6989 if test $ac_cv_header_sys_types_h_makedev = no; then
6990 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6991 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6992 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6993 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6997 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6999 # Is the header compilable?
7000 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7001 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
7002 cat >conftest.$ac_ext <<_ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 $ac_includes_default
7009 #include <sys/mkdev.h>
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
7028 ac_header_compiler=yes
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_header_compiler=no
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7038 echo "${ECHO_T}$ac_header_compiler" >&6; }
7040 # Is the header present?
7041 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7042 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
7043 cat >conftest.$ac_ext <<_ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7049 #include <sys/mkdev.h>
7051 if { (ac_try="$ac_cpp conftest.$ac_ext"
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7059 grep -v '^ *+' conftest.er1 >conftest.err
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } >/dev/null && {
7064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7067 ac_header_preproc=yes
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 ac_header_preproc=no
7075 rm -f conftest.err conftest.$ac_ext
7076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7077 echo "${ECHO_T}$ac_header_preproc" >&6; }
7079 # So? What about this header?
7080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7082 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7083 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7084 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7085 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7086 ac_header_preproc=yes
7089 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7090 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7091 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7092 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7093 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7094 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
7096 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
7097 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7098 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7099 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7100 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7102 ## ------------------------------ ##
7103 ## Report this to bug-tar@gnu.org ##
7104 ## ------------------------------ ##
7106 ) | sed "s/^/$as_me: WARNING: /" >&2
7109 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7110 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
7111 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_header_sys_mkdev_h=$ac_header_preproc
7116 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7117 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
7120 if test $ac_cv_header_sys_mkdev_h = yes; then
7122 cat >>confdefs.h <<\_ACEOF
7123 #define MAJOR_IN_MKDEV 1
7130 if test $ac_cv_header_sys_mkdev_h = no; then
7131 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7132 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7133 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7134 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7138 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7140 # Is the header compilable?
7141 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7142 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7150 #include <sys/sysmacros.h>
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7169 ac_header_compiler=yes
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_header_compiler=no
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6; }
7181 # Is the header present?
7182 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7183 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <sys/sysmacros.h>
7192 if { (ac_try="$ac_cpp conftest.$ac_ext"
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } >/dev/null && {
7205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7208 ac_header_preproc=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_header_preproc=no
7216 rm -f conftest.err conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7218 echo "${ECHO_T}$ac_header_preproc" >&6; }
7220 # So? What about this header?
7221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7224 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7226 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7227 ac_header_preproc=yes
7230 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7235 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7237 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7239 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7241 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7243 ## ------------------------------ ##
7244 ## Report this to bug-tar@gnu.org ##
7245 ## ------------------------------ ##
7247 ) | sed "s/^/$as_me: WARNING: /" >&2
7250 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7251 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7252 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7257 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7258 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7261 if test $ac_cv_header_sys_sysmacros_h = yes; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define MAJOR_IN_SYSMACROS 1
7273 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7274 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7275 if test "${ac_cv_header_stat_broken+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <sys/types.h>
7285 #include <sys/stat.h>
7287 #if defined S_ISBLK && defined S_IFDIR
7288 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7291 #if defined S_ISBLK && defined S_IFCHR
7292 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7295 #if defined S_ISLNK && defined S_IFREG
7296 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7299 #if defined S_ISSOCK && defined S_IFREG
7300 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1 >conftest.err
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7321 ac_cv_header_stat_broken=no
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_cv_header_stat_broken=yes
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7332 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7333 if test $ac_cv_header_stat_broken = yes; then
7335 cat >>confdefs.h <<\_ACEOF
7336 #define STAT_MACROS_BROKEN 1
7341 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7343 if test "${ac_cv_header_stdc+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 cat >conftest.$ac_ext <<_ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 ac_cv_header_stdc=yes
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 ac_cv_header_stdc=no
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 if test $ac_cv_header_stdc = yes; then
7393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "memchr" >/dev/null 2>&1; then
7407 ac_cv_header_stdc=no
7413 if test $ac_cv_header_stdc = yes; then
7414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7415 cat >conftest.$ac_ext <<_ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP "free" >/dev/null 2>&1; then
7428 ac_cv_header_stdc=no
7434 if test $ac_cv_header_stdc = yes; then
7435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7436 if test "$cross_compiling" = yes; then
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7447 #if ((' ' & 0x0FF) == 0x020)
7448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7451 # define ISLOWER(c) \
7452 (('a' <= (c) && (c) <= 'i') \
7453 || ('j' <= (c) && (c) <= 'r') \
7454 || ('s' <= (c) && (c) <= 'z'))
7455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7463 for (i = 0; i < 256; i++)
7464 if (XOR (islower (i), ISLOWER (i))
7465 || toupper (i) != TOUPPER (i))
7470 rm -f conftest$ac_exeext
7471 if { (ac_try="$ac_link"
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_link") 2>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7481 { (case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_try") 2>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7492 echo "$as_me: program exited with status $ac_status" >&5
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7497 ac_cv_header_stdc=no
7499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7505 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7506 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7507 if test $ac_cv_header_stdc = yes; then
7509 cat >>confdefs.h <<\_ACEOF
7510 #define STDC_HEADERS 1
7516 { echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7517 echo $ECHO_N "checking for st_fstype string in struct stat... $ECHO_C" >&6; }
7518 if test "${diff_cv_st_fstype_string+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <sys/types.h>
7528 #include <sys/stat.h>
7532 struct stat s; s.st_fstype[0] = 'x';
7537 rm -f conftest.$ac_objext
7538 if { (ac_try="$ac_compile"
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7546 grep -v '^ *+' conftest.er1 >conftest.err
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7554 diff_cv_st_fstype_string=yes
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 diff_cv_st_fstype_string=no
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 { echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7566 echo "${ECHO_T}$diff_cv_st_fstype_string" >&6; }
7567 if test $diff_cv_st_fstype_string = yes; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define HAVE_ST_FSTYPE_STRING 1
7575 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7577 if test "${ac_cv_type_signal+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 cat >conftest.$ac_ext <<_ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 #include <sys/types.h>
7592 return *(signal (0, 0)) (0) == 1;
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
7614 ac_cv_type_signal=int
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_cv_type_signal=void
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7625 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7627 cat >>confdefs.h <<_ACEOF
7628 #define RETSIGTYPE $ac_cv_type_signal
7632 { echo "$as_me:$LINENO: checking for mode_t" >&5
7633 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7634 if test "${ac_cv_type_mode_t+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 $ac_includes_default
7644 typedef mode_t ac__type_new_;
7648 if ((ac__type_new_ *) 0)
7650 if (sizeof (ac__type_new_))
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7665 grep -v '^ *+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_cv_type_mode_t=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_cv_type_mode_t=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7684 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7685 if test $ac_cv_type_mode_t = yes; then
7689 cat >>confdefs.h <<_ACEOF
7695 { echo "$as_me:$LINENO: checking for pid_t" >&5
7696 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7697 if test "${ac_cv_type_pid_t+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 cat >conftest.$ac_ext <<_ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 $ac_includes_default
7707 typedef pid_t ac__type_new_;
7711 if ((ac__type_new_ *) 0)
7713 if (sizeof (ac__type_new_))
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7728 grep -v '^ *+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 ac_cv_type_pid_t=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7747 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7748 if test $ac_cv_type_pid_t = yes; then
7752 cat >>confdefs.h <<_ACEOF
7758 { echo "$as_me:$LINENO: checking for off_t" >&5
7759 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7760 if test "${ac_cv_type_off_t+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 cat >conftest.$ac_ext <<_ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 $ac_includes_default
7770 typedef off_t ac__type_new_;
7774 if ((ac__type_new_ *) 0)
7776 if (sizeof (ac__type_new_))
7782 rm -f conftest.$ac_objext
7783 if { (ac_try="$ac_compile"
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_compile") 2>conftest.er1
7791 grep -v '^ *+' conftest.er1 >conftest.err
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && {
7796 test -z "$ac_c_werror_flag" ||
7797 test ! -s conftest.err
7798 } && test -s conftest.$ac_objext; then
7799 ac_cv_type_off_t=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7810 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7811 if test $ac_cv_type_off_t = yes; then
7815 cat >>confdefs.h <<_ACEOF
7816 #define off_t long int
7821 { echo "$as_me:$LINENO: checking for size_t" >&5
7822 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7823 if test "${ac_cv_type_size_t+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 $ac_includes_default
7833 typedef size_t ac__type_new_;
7837 if ((ac__type_new_ *) 0)
7839 if (sizeof (ac__type_new_))
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_type_size_t=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 ac_cv_type_size_t=no
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7873 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7874 if test $ac_cv_type_size_t = yes; then
7878 cat >>confdefs.h <<_ACEOF
7879 #define size_t unsigned int
7884 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7885 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7886 if test "${ac_cv_type_uid_t+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <sys/types.h>
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "uid_t" >/dev/null 2>&1; then
7900 ac_cv_type_uid_t=yes
7907 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7908 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7909 if test $ac_cv_type_uid_t = no; then
7911 cat >>confdefs.h <<\_ACEOF
7916 cat >>confdefs.h <<\_ACEOF
7922 { echo "$as_me:$LINENO: checking for major_t" >&5
7923 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
7924 if test "${ac_cv_type_major_t+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 $ac_includes_default
7934 typedef major_t ac__type_new_;
7938 if ((ac__type_new_ *) 0)
7940 if (sizeof (ac__type_new_))
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7963 ac_cv_type_major_t=yes
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_type_major_t=no
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
7974 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
7975 if test $ac_cv_type_major_t = yes; then
7979 cat >>confdefs.h <<\_ACEOF
7985 { echo "$as_me:$LINENO: checking for minor_t" >&5
7986 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
7987 if test "${ac_cv_type_minor_t+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 $ac_includes_default
7997 typedef minor_t ac__type_new_;
8001 if ((ac__type_new_ *) 0)
8003 if (sizeof (ac__type_new_))
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8018 grep -v '^ *+' conftest.er1 >conftest.err
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
8026 ac_cv_type_minor_t=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_type_minor_t=no
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8037 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
8038 if test $ac_cv_type_minor_t = yes; then
8042 cat >>confdefs.h <<\_ACEOF
8048 { echo "$as_me:$LINENO: checking for dev_t" >&5
8049 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
8050 if test "${ac_cv_type_dev_t+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 typedef dev_t ac__type_new_;
8064 if ((ac__type_new_ *) 0)
8066 if (sizeof (ac__type_new_))
8072 rm -f conftest.$ac_objext
8073 if { (ac_try="$ac_compile"
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_compile") 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest.$ac_objext; then
8089 ac_cv_type_dev_t=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8100 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
8101 if test $ac_cv_type_dev_t = yes; then
8105 cat >>confdefs.h <<_ACEOF
8106 #define dev_t unsigned
8111 { echo "$as_me:$LINENO: checking for ino_t" >&5
8112 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
8113 if test "${ac_cv_type_ino_t+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 $ac_includes_default
8123 typedef ino_t ac__type_new_;
8127 if ((ac__type_new_ *) 0)
8129 if (sizeof (ac__type_new_))
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_cv_type_ino_t=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8163 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
8164 if test $ac_cv_type_ino_t = yes; then
8168 cat >>confdefs.h <<_ACEOF
8169 #define ino_t unsigned
8176 { echo "$as_me:$LINENO: checking for ssize_t" >&5
8177 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8178 if test "${gt_cv_ssize_t+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <sys/types.h>
8191 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_compile") 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest.$ac_objext; then
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8225 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8226 if test $gt_cv_ssize_t = no; then
8228 cat >>confdefs.h <<\_ACEOF
8243 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8244 # for constant arguments. Useless!
8245 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8246 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8247 if test "${ac_cv_working_alloca_h+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8260 char *p = (char *) alloca (2 * sizeof (int));
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (ac_try="$ac_link"
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_link") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest$ac_exeext &&
8283 $as_test_x conftest$ac_exeext; then
8284 ac_cv_working_alloca_h=yes
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_working_alloca_h=no
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293 conftest$ac_exeext conftest.$ac_ext
8295 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8296 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8297 if test $ac_cv_working_alloca_h = yes; then
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_ALLOCA_H 1
8305 { echo "$as_me:$LINENO: checking for alloca" >&5
8306 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8307 if test "${ac_cv_func_alloca_works+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8317 # define alloca __builtin_alloca
8320 # include <malloc.h>
8321 # define alloca _alloca
8323 # ifdef HAVE_ALLOCA_H
8324 # include <alloca.h>
8329 # ifndef alloca /* predefined by HP cc +Olibcalls */
8340 char *p = (char *) alloca (1);
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_link") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest$ac_exeext &&
8363 $as_test_x conftest$ac_exeext; then
8364 ac_cv_func_alloca_works=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_func_alloca_works=no
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373 conftest$ac_exeext conftest.$ac_ext
8375 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8376 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8378 if test $ac_cv_func_alloca_works = yes; then
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_ALLOCA 1
8385 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8386 # that cause trouble. Some versions do not even contain alloca or
8387 # contain a buggy version. If you still want to use their alloca,
8388 # use ar to extract alloca.o from them instead of compiling alloca.c.
8394 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8396 cat >>confdefs.h <<\_ACEOF
8401 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8402 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8403 if test "${ac_cv_os_cray+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 #if defined CRAY && ! defined CRAY2
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "webecray" >/dev/null 2>&1; then
8428 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8429 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8430 if test $ac_cv_os_cray = yes; then
8431 for ac_func in _getb67 GETB67 getb67; do
8432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8446 #define $ac_func innocuous_$ac_func
8448 /* System header to define __stub macros and hopefully few prototypes,
8449 which can conflict with char $ac_func (); below.
8450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8451 <limits.h> exists even on freestanding compilers. */
8454 # include <limits.h>
8456 # include <assert.h>
8461 /* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8468 /* The GNU C library defines this for functions which it implements
8469 to always fail with ENOSYS. Some functions are actually named
8470 something starting with __ and the normal name is an alias. */
8471 #if defined __stub_$ac_func || defined __stub___$ac_func
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest$ac_exeext &&
8500 $as_test_x conftest$ac_exeext; then
8501 eval "$as_ac_var=yes"
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 eval "$as_ac_var=no"
8509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8510 conftest$ac_exeext conftest.$ac_ext
8512 ac_res=`eval echo '${'$as_ac_var'}'`
8513 { echo "$as_me:$LINENO: result: $ac_res" >&5
8514 echo "${ECHO_T}$ac_res" >&6; }
8515 if test `eval echo '${'$as_ac_var'}'` = yes; then
8517 cat >>confdefs.h <<_ACEOF
8518 #define CRAY_STACKSEG_END $ac_func
8527 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8528 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8529 if test "${ac_cv_c_stack_direction+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 if test "$cross_compiling" = yes; then
8533 ac_cv_c_stack_direction=0
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
8543 find_stack_direction ()
8545 static char *addr = 0;
8550 return find_stack_direction ();
8553 return (&dummy > addr) ? 1 : -1;
8559 return find_stack_direction () < 0;
8562 rm -f conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_c_stack_direction=1
8584 echo "$as_me: program exited with status $ac_status" >&5
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_cv_c_stack_direction=-1
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8596 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8597 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8599 cat >>confdefs.h <<_ACEOF
8600 #define STACK_DIRECTION $ac_cv_c_stack_direction
8606 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8607 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8608 if test "${ac_cv_c_restrict+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 # The order here caters to the fact that C++ does not require restrict.
8613 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 typedef int * int_ptr;
8621 int foo (int_ptr $ac_kw ip) {
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8652 ac_cv_c_restrict=$ac_kw
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 test "$ac_cv_c_restrict" != no && break
8665 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8666 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8669 case $ac_cv_c_restrict in
8671 no) cat >>confdefs.h <<\_ACEOF
8675 *) cat >>confdefs.h <<_ACEOF
8676 #define restrict $ac_cv_c_restrict
8681 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8682 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
8683 if test "${ac_cv_have_decl_getenv+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8692 $ac_includes_default
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest.$ac_objext; then
8721 ac_cv_have_decl_getenv=yes
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_cv_have_decl_getenv=no
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8732 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
8733 if test $ac_cv_have_decl_getenv = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_DECL_GETENV 1
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_DECL_GETENV 0
8749 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
8750 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
8751 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 cat >conftest.$ac_ext <<_ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 $ac_includes_default
8764 #ifndef clearerr_unlocked
8765 (void) clearerr_unlocked;
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_cv_have_decl_clearerr_unlocked=yes
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 ac_cv_have_decl_clearerr_unlocked=no
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
8800 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
8801 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
8803 cat >>confdefs.h <<_ACEOF
8804 #define HAVE_DECL_CLEARERR_UNLOCKED 1
8809 cat >>confdefs.h <<_ACEOF
8810 #define HAVE_DECL_CLEARERR_UNLOCKED 0
8817 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8818 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8819 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 $ac_includes_default
8832 #ifndef feof_unlocked
8833 (void) feof_unlocked;
8840 rm -f conftest.$ac_objext
8841 if { (ac_try="$ac_compile"
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_c_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.$ac_objext; then
8857 ac_cv_have_decl_feof_unlocked=yes
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_cv_have_decl_feof_unlocked=no
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8868 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8869 if test $ac_cv_have_decl_feof_unlocked = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_DECL_FEOF_UNLOCKED 1
8877 cat >>confdefs.h <<_ACEOF
8878 #define HAVE_DECL_FEOF_UNLOCKED 0
8885 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
8886 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
8887 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 $ac_includes_default
8900 #ifndef ferror_unlocked
8901 (void) ferror_unlocked;
8908 rm -f conftest.$ac_objext
8909 if { (ac_try="$ac_compile"
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_compile") 2>conftest.er1
8917 grep -v '^ *+' conftest.er1 >conftest.err
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest.$ac_objext; then
8925 ac_cv_have_decl_ferror_unlocked=yes
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8930 ac_cv_have_decl_ferror_unlocked=no
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
8936 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
8937 if test $ac_cv_have_decl_ferror_unlocked = yes; then
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_DECL_FERROR_UNLOCKED 1
8945 cat >>confdefs.h <<_ACEOF
8946 #define HAVE_DECL_FERROR_UNLOCKED 0
8953 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
8954 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
8955 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 cat >conftest.$ac_ext <<_ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 $ac_includes_default
8968 #ifndef fflush_unlocked
8969 (void) fflush_unlocked;
8976 rm -f conftest.$ac_objext
8977 if { (ac_try="$ac_compile"
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_compile") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest.$ac_objext; then
8993 ac_cv_have_decl_fflush_unlocked=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_have_decl_fflush_unlocked=no
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9004 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
9005 if test $ac_cv_have_decl_fflush_unlocked = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9013 cat >>confdefs.h <<_ACEOF
9014 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9021 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9022 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9023 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 $ac_includes_default
9036 #ifndef fgets_unlocked
9037 (void) fgets_unlocked;
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest.$ac_objext; then
9061 ac_cv_have_decl_fgets_unlocked=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 ac_cv_have_decl_fgets_unlocked=no
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9072 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9073 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_DECL_FGETS_UNLOCKED 1
9081 cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DECL_FGETS_UNLOCKED 0
9089 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9090 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
9091 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 cat >conftest.$ac_ext <<_ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9104 #ifndef fputc_unlocked
9105 (void) fputc_unlocked;
9112 rm -f conftest.$ac_objext
9113 if { (ac_try="$ac_compile"
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_compile") 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && {
9126 test -z "$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9128 } && test -s conftest.$ac_objext; then
9129 ac_cv_have_decl_fputc_unlocked=yes
9131 echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9134 ac_cv_have_decl_fputc_unlocked=no
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9140 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
9141 if test $ac_cv_have_decl_fputc_unlocked = yes; then
9143 cat >>confdefs.h <<_ACEOF
9144 #define HAVE_DECL_FPUTC_UNLOCKED 1
9149 cat >>confdefs.h <<_ACEOF
9150 #define HAVE_DECL_FPUTC_UNLOCKED 0
9157 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9158 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
9159 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 $ac_includes_default
9172 #ifndef fputs_unlocked
9173 (void) fputs_unlocked;
9180 rm -f conftest.$ac_objext
9181 if { (ac_try="$ac_compile"
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_compile") 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest.$ac_objext; then
9197 ac_cv_have_decl_fputs_unlocked=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ac_cv_have_decl_fputs_unlocked=no
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9208 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
9209 if test $ac_cv_have_decl_fputs_unlocked = yes; then
9211 cat >>confdefs.h <<_ACEOF
9212 #define HAVE_DECL_FPUTS_UNLOCKED 1
9217 cat >>confdefs.h <<_ACEOF
9218 #define HAVE_DECL_FPUTS_UNLOCKED 0
9225 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
9226 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
9227 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 $ac_includes_default
9240 #ifndef fread_unlocked
9241 (void) fread_unlocked;
9248 rm -f conftest.$ac_objext
9249 if { (ac_try="$ac_compile"
9251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255 (eval "$ac_compile") 2>conftest.er1
9257 grep -v '^ *+' conftest.er1 >conftest.err
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest.$ac_objext; then
9265 ac_cv_have_decl_fread_unlocked=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_cv_have_decl_fread_unlocked=no
9273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9275 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9276 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
9277 if test $ac_cv_have_decl_fread_unlocked = yes; then
9279 cat >>confdefs.h <<_ACEOF
9280 #define HAVE_DECL_FREAD_UNLOCKED 1
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_DECL_FREAD_UNLOCKED 0
9293 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9294 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
9295 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9308 #ifndef fwrite_unlocked
9309 (void) fwrite_unlocked;
9316 rm -f conftest.$ac_objext
9317 if { (ac_try="$ac_compile"
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
9325 grep -v '^ *+' conftest.er1 >conftest.err
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
9333 ac_cv_have_decl_fwrite_unlocked=yes
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_have_decl_fwrite_unlocked=no
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9344 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
9345 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_DECL_FWRITE_UNLOCKED 1
9353 cat >>confdefs.h <<_ACEOF
9354 #define HAVE_DECL_FWRITE_UNLOCKED 0
9361 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9362 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9363 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 $ac_includes_default
9376 #ifndef getc_unlocked
9377 (void) getc_unlocked;
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_compile") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 } && test -s conftest.$ac_objext; then
9401 ac_cv_have_decl_getc_unlocked=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_cv_have_decl_getc_unlocked=no
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9412 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9413 if test $ac_cv_have_decl_getc_unlocked = yes; then
9415 cat >>confdefs.h <<_ACEOF
9416 #define HAVE_DECL_GETC_UNLOCKED 1
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_DECL_GETC_UNLOCKED 0
9429 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
9430 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
9431 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 $ac_includes_default
9444 #ifndef getchar_unlocked
9445 (void) getchar_unlocked;
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_compile") 2>conftest.er1
9461 grep -v '^ *+' conftest.er1 >conftest.err
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && {
9466 test -z "$ac_c_werror_flag" ||
9467 test ! -s conftest.err
9468 } && test -s conftest.$ac_objext; then
9469 ac_cv_have_decl_getchar_unlocked=yes
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_cv_have_decl_getchar_unlocked=no
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
9480 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
9481 if test $ac_cv_have_decl_getchar_unlocked = yes; then
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_DECL_GETCHAR_UNLOCKED 1
9489 cat >>confdefs.h <<_ACEOF
9490 #define HAVE_DECL_GETCHAR_UNLOCKED 0
9497 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
9498 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
9499 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 cat >conftest.$ac_ext <<_ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 $ac_includes_default
9512 #ifndef putc_unlocked
9513 (void) putc_unlocked;
9520 rm -f conftest.$ac_objext
9521 if { (ac_try="$ac_compile"
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_compile") 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && {
9534 test -z "$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 } && test -s conftest.$ac_objext; then
9537 ac_cv_have_decl_putc_unlocked=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_cv_have_decl_putc_unlocked=no
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
9548 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
9549 if test $ac_cv_have_decl_putc_unlocked = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define HAVE_DECL_PUTC_UNLOCKED 1
9557 cat >>confdefs.h <<_ACEOF
9558 #define HAVE_DECL_PUTC_UNLOCKED 0
9565 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
9566 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
9567 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 cat >conftest.$ac_ext <<_ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 $ac_includes_default
9580 #ifndef putchar_unlocked
9581 (void) putchar_unlocked;
9588 rm -f conftest.$ac_objext
9589 if { (ac_try="$ac_compile"
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_compile") 2>conftest.er1
9597 grep -v '^ *+' conftest.er1 >conftest.err
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && {
9602 test -z "$ac_c_werror_flag" ||
9603 test ! -s conftest.err
9604 } && test -s conftest.$ac_objext; then
9605 ac_cv_have_decl_putchar_unlocked=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 ac_cv_have_decl_putchar_unlocked=no
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
9616 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
9617 if test $ac_cv_have_decl_putchar_unlocked = yes; then
9619 cat >>confdefs.h <<_ACEOF
9620 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
9625 cat >>confdefs.h <<_ACEOF
9626 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
9637 for ac_func in $ac_func_list
9639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define $ac_func innocuous_$ac_func
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char $ac_func (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9661 # include <limits.h>
9663 # include <assert.h>
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_$ac_func || defined __stub___$ac_func
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
9708 eval "$as_ac_var=yes"
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 eval "$as_ac_var=no"
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717 conftest$ac_exeext conftest.$ac_ext
9719 ac_res=`eval echo '${'$as_ac_var'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9722 if test `eval echo '${'$as_ac_var'}'` = yes; then
9723 cat >>confdefs.h <<_ACEOF
9724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9739 XGETTEXT_EXTRA_OPTIONS=
9741 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9742 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9743 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 if test "$cross_compiling" = yes; then
9747 gl_cv_struct_dirent_d_ino=no
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 #include <sys/types.h>
9756 #include <sys/stat.h>
9762 DIR *dp = opendir (".");
9769 && stat (e->d_name, &st) == 0
9770 && e->d_ino == st.st_ino);
9775 rm -f conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 gl_cv_struct_dirent_d_ino=yes
9797 echo "$as_me: program exited with status $ac_status" >&5
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9802 gl_cv_struct_dirent_d_ino=no
9804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9809 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
9810 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
9811 if test $gl_cv_struct_dirent_d_ino = yes; then
9813 cat >>confdefs.h <<\_ACEOF
9814 #define D_INO_IN_DIRENT 1
9821 { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9822 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
9823 if test "${ac_cv_win_or_dos+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9837 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9838 neither MSDOS nor Windows
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_compile") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.$ac_objext; then
9861 ac_cv_win_or_dos=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9873 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
9875 if test x"$ac_cv_win_or_dos" = xyes; then
9876 ac_fs_accepts_drive_letter_prefix=1
9877 ac_fs_backslash_is_file_name_separator=1
9878 { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
9879 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
9880 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9894 #if defined __CYGWIN__
9895 drive letters are always absolute
9901 rm -f conftest.$ac_objext
9902 if { (ac_try="$ac_compile"
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_compile") 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest.$ac_objext; then
9918 ac_cv_drive_letter_can_be_relative=yes
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ac_cv_drive_letter_can_be_relative=no
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
9930 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
9931 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
9932 ac_fs_drive_letter_can_be_relative=1
9934 ac_fs_drive_letter_can_be_relative=0
9937 ac_fs_accepts_drive_letter_prefix=0
9938 ac_fs_backslash_is_file_name_separator=0
9939 ac_fs_drive_letter_can_be_relative=0
9943 cat >>confdefs.h <<_ACEOF
9944 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9952 cat >>confdefs.h <<_ACEOF
9953 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9958 cat >>confdefs.h <<_ACEOF
9959 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
9963 { echo "$as_me:$LINENO: checking for long file names" >&5
9964 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9965 if test "${ac_cv_sys_long_file_names+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 ac_cv_sys_long_file_names=yes
9969 # Test for long file names in all the places we know might matter:
9970 # . the current directory, where building will happen
9971 # $prefix/lib where we will be installing things
9972 # $exec_prefix/lib likewise
9973 # $TMPDIR if set, where it might want to write temporary files
9974 # /tmp where it might want to write temporary files
9977 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9978 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9979 # in the usual case where exec_prefix is '${prefix}'.
9981 . | /* | ?:[\\/]*) ;; #(
9984 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9985 ac_xdir=$ac_dir/cf$$
9986 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9987 ac_tf1=$ac_xdir/conftest9012345
9988 ac_tf2=$ac_xdir/conftest9012346
9989 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9990 ac_cv_sys_long_file_names=no
9991 rm -f -r "$ac_xdir" 2>/dev/null
9992 test $ac_cv_sys_long_file_names = no && break
9995 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9996 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9997 if test $ac_cv_sys_long_file_names = yes; then
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_LONG_FILE_NAMES 1
10013 GNULIB_MBSRTOWCS=0;
10014 GNULIB_MBSNRTOWCS=0;
10016 GNULIB_WCSRTOMBS=0;
10017 GNULIB_WCSNRTOMBS=0;
10029 HAVE_DECL_WCWIDTH=1;
10030 REPLACE_MBSTATE_T=0;
10036 REPLACE_MBSRTOWCS=0;
10037 REPLACE_MBSNRTOWCS=0;
10039 REPLACE_WCSRTOMBS=0;
10046 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10047 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10048 if test "${am_cv_langinfo_codeset+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 cat >conftest.$ac_ext <<_ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 #include <langinfo.h>
10061 char* cs = nl_langinfo(CODESET); return !cs;
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext &&
10083 $as_test_x conftest$ac_exeext; then
10084 am_cv_langinfo_codeset=yes
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 am_cv_langinfo_codeset=no
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093 conftest$ac_exeext conftest.$ac_ext
10096 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10097 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10098 if test $am_cv_langinfo_codeset = yes; then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_LANGINFO_CODESET 1
10109 { echo "$as_me:$LINENO: checking for a traditional french locale" >&5
10110 echo $ECHO_N "checking for a traditional french locale... $ECHO_C" >&6; }
10111 if test "${gt_cv_locale_fr+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10122 #include <locale.h>
10124 #if HAVE_LANGINFO_CODESET
10125 # include <langinfo.h>
10127 #include <stdlib.h>
10128 #include <string.h>
10132 /* Check whether the given locale name is recognized by the system. */
10133 if (setlocale (LC_ALL, "") == NULL) return 1;
10134 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10135 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10136 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10137 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10138 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10139 some unit tests fail. */
10140 #if HAVE_LANGINFO_CODESET
10142 const char *cs = nl_langinfo (CODESET);
10143 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10148 /* On Cygwin, avoid locale names without encoding suffix, because the
10149 locale_charset() function relies on the encoding suffix. Note that
10150 LC_ALL is set on the command line. */
10151 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10153 /* Check whether in the abbreviation of the second month, the second
10154 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10155 one byte long. This excludes the UTF-8 encoding. */
10156 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10157 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10158 /* Check whether the decimal separator is a comma.
10159 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10160 are nl_langinfo(RADIXCHAR) are both ".". */
10161 if (localeconv () ->decimal_point[0] != ',') return 1;
10166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10167 (eval $ac_link) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } && test -s conftest$ac_exeext; then
10171 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10172 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10173 # configure script would override the LC_ALL setting. Likewise for
10174 # LC_CTYPE, which is also set at the beginning of the configure script.
10175 # Test for the usual locale name.
10176 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10177 gt_cv_locale_fr=fr_FR
10179 # Test for the locale name with explicit encoding suffix.
10180 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10181 gt_cv_locale_fr=fr_FR.ISO-8859-1
10183 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10184 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10185 gt_cv_locale_fr=fr_FR.ISO8859-1
10187 # Test for the HP-UX locale name.
10188 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10189 gt_cv_locale_fr=fr_FR.iso88591
10191 # Test for the Solaris 7 locale name.
10192 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10196 gt_cv_locale_fr=none
10206 { echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
10207 echo "${ECHO_T}$gt_cv_locale_fr" >&6; }
10208 LOCALE_FR=$gt_cv_locale_fr
10211 { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
10212 echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; }
10213 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10226 #ifndef canonicalize_file_name
10227 (void) canonicalize_file_name;
10234 rm -f conftest.$ac_objext
10235 if { (ac_try="$ac_compile"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_compile") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest.$ac_objext; then
10251 ac_cv_have_decl_canonicalize_file_name=yes
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_cv_have_decl_canonicalize_file_name=no
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
10262 echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; }
10263 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
10271 cat >>confdefs.h <<_ACEOF
10272 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
10290 GNULIB_EUIDACCESS=0;
10293 GNULIB_FTRUNCATE=0;
10295 GNULIB_GETDOMAINNAME=0;
10296 GNULIB_GETDTABLESIZE=0;
10297 GNULIB_GETHOSTNAME=0;
10298 GNULIB_GETLOGIN_R=0;
10299 GNULIB_GETPAGESIZE=0;
10300 GNULIB_GETUSERSHELL=0;
10306 GNULIB_UNISTD_H_SIGPIPE=0;
10312 HAVE_GETDOMAINNAME=1;
10313 HAVE_GETDTABLESIZE=1;
10314 HAVE_GETHOSTNAME=1;
10315 HAVE_GETPAGESIZE=1;
10316 HAVE_GETUSERSHELL=1;
10320 HAVE_DECL_ENVIRON=1;
10321 HAVE_DECL_GETLOGIN_R=1;
10323 HAVE_SYS_PARAM_H=0;
10328 REPLACE_GETPAGESIZE=0;
10332 UNISTD_H_HAVE_WINSOCK2_H=0;
10335 for ac_header in unistd.h
10337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 ac_res=`eval echo '${'$as_ac_Header'}'`
10345 { echo "$as_me:$LINENO: result: $ac_res" >&5
10346 echo "${ECHO_T}$ac_res" >&6; }
10348 # Is the header compilable?
10349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 #include <$ac_header>
10360 rm -f conftest.$ac_objext
10361 if { (ac_try="$ac_compile"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_compile") 2>conftest.er1
10369 grep -v '^ *+' conftest.er1 >conftest.err
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } && {
10374 test -z "$ac_c_werror_flag" ||
10375 test ! -s conftest.err
10376 } && test -s conftest.$ac_objext; then
10377 ac_header_compiler=yes
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 ac_header_compiler=no
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 echo "${ECHO_T}$ac_header_compiler" >&6; }
10389 # Is the header present?
10390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 #include <$ac_header>
10400 if { (ac_try="$ac_cpp conftest.$ac_ext"
10401 case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10408 grep -v '^ *+' conftest.er1 >conftest.err
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } >/dev/null && {
10413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10414 test ! -s conftest.err
10416 ac_header_preproc=yes
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10421 ac_header_preproc=no
10424 rm -f conftest.err conftest.$ac_ext
10425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10426 echo "${ECHO_T}$ac_header_preproc" >&6; }
10428 # So? What about this header?
10429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10435 ac_header_preproc=yes
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10451 ## ------------------------------ ##
10452 ## Report this to bug-tar@gnu.org ##
10453 ## ------------------------------ ##
10455 ) | sed "s/^/$as_me: WARNING: /" >&2
10458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 eval "$as_ac_Header=\$ac_header_preproc"
10465 ac_res=`eval echo '${'$as_ac_Header'}'`
10466 { echo "$as_me:$LINENO: result: $ac_res" >&5
10467 echo "${ECHO_T}$ac_res" >&6; }
10470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10479 { echo "$as_me:$LINENO: checking for working chown" >&5
10480 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10481 if test "${ac_cv_func_chown_works+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 if test "$cross_compiling" = yes; then
10485 ac_cv_func_chown_works=no
10487 cat >conftest.$ac_ext <<_ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 $ac_includes_default
10499 char *f = "conftest.chown";
10500 struct stat before, after;
10502 if (creat (f, 0600) < 0)
10504 if (stat (f, &before) < 0)
10506 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10508 if (stat (f, &after) < 0)
10510 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10516 rm -f conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_link") 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10527 { (case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_try") 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 ac_cv_func_chown_works=yes
10538 echo "$as_me: program exited with status $ac_status" >&5
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 ( exit $ac_status )
10543 ac_cv_func_chown_works=no
10545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10549 rm -f conftest.chown
10552 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10553 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10554 if test $ac_cv_func_chown_works = yes; then
10556 cat >>confdefs.h <<\_ACEOF
10557 #define HAVE_CHOWN 1
10563 { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
10564 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
10565 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 if test "$cross_compiling" = yes; then
10570 gl_cv_func_chown_follows_symlink=yes
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10580 #include <unistd.h>
10581 #include <stdlib.h>
10587 char const *dangling_symlink = "conftest.dangle";
10589 unlink (dangling_symlink);
10590 if (symlink ("conftest.no-such", dangling_symlink))
10593 /* Exit successfully on a conforming system,
10594 i.e., where chown must fail with ENOENT. */
10595 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
10596 && errno == ENOENT));
10600 rm -f conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10611 { (case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_try") 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 gl_cv_func_chown_follows_symlink=yes
10622 echo "$as_me: program exited with status $ac_status" >&5
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ( exit $ac_status )
10627 gl_cv_func_chown_follows_symlink=no
10629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10636 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
10637 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
10639 if test $gl_cv_func_chown_follows_symlink = no; then
10641 cat >>confdefs.h <<\_ACEOF
10642 #define CHOWN_MODIFIES_SYMLINK 1
10650 GNULIB_ALPHASORT=0;
10658 { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
10659 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
10660 if test "${gl_cv_have_include_next+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 rm -rf conftestd1a conftestd1b conftestd2
10664 mkdir conftestd1a conftestd1b conftestd2
10665 cat <<EOF > conftestd1a/conftest.h
10666 #define DEFINED_IN_CONFTESTD1
10667 #include_next <conftest.h>
10668 #ifdef DEFINED_IN_CONFTESTD2
10671 #error "include_next doesn't work"
10674 cat <<EOF > conftestd1b/conftest.h
10675 #define DEFINED_IN_CONFTESTD1
10677 #include_next <conftest.h>
10678 #ifdef DEFINED_IN_CONFTESTD2
10681 #error "include_next doesn't work"
10684 cat <<EOF > conftestd2/conftest.h
10685 #ifndef DEFINED_IN_CONFTESTD1
10686 #error "include_next test doesn't work"
10688 #define DEFINED_IN_CONFTESTD2
10690 gl_save_CPPFLAGS="$CPPFLAGS"
10691 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
10692 cat >conftest.$ac_ext <<_ACEOF
10693 #include <conftest.h>
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest.$ac_objext; then
10712 gl_cv_have_include_next=yes
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
10718 cat >conftest.$ac_ext <<_ACEOF
10719 #include <conftest.h>
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest.$ac_objext; then
10738 gl_cv_have_include_next=buggy
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 gl_cv_have_include_next=no
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 CPPFLAGS="$gl_save_CPPFLAGS"
10752 rm -rf conftestd1a conftestd1b conftestd2
10755 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
10756 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
10757 PRAGMA_SYSTEM_HEADER=
10758 if test $gl_cv_have_include_next = yes; then
10759 INCLUDE_NEXT=include_next
10760 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10761 if test -n "$GCC"; then
10762 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10765 if test $gl_cv_have_include_next = buggy; then
10766 INCLUDE_NEXT=include
10767 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10769 INCLUDE_NEXT=include
10770 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
10781 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10782 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
10783 if test "${gl_cv_double_slash_root+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 if test x"$cross_compiling" = xyes ; then
10787 # When cross-compiling, there is no way to tell whether // is special
10788 # short of a list of hosts. However, the only known hosts to date
10789 # that have a distinct // are Apollo DomainOS (too old to port to),
10790 # Cygwin, and z/OS. If anyone knows of another system for which // has
10791 # special semantics and is distinct from /, please report it to
10792 # <bug-gnulib@gnu.org>.
10794 *-cygwin | i370-ibm-openedition)
10795 gl_cv_double_slash_root=yes ;;
10797 # Be optimistic and assume that / and // are the same when we
10799 gl_cv_double_slash_root='unknown, assuming no' ;;
10802 set x `ls -di / // 2>/dev/null`
10803 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10804 gl_cv_double_slash_root=no
10806 gl_cv_double_slash_root=yes
10810 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10811 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
10812 if test "$gl_cv_double_slash_root" = yes; then
10814 cat >>confdefs.h <<\_ACEOF
10815 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10826 { echo "$as_me:$LINENO: checking for complete errno.h" >&5
10827 echo $ECHO_N "checking for complete errno.h... $ECHO_C" >&6; }
10828 if test "${gl_cv_header_errno_h_complete+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10840 #if !defined ENOMSG
10846 #if !defined ENOLINK
10849 #if !defined EPROTO
10852 #if !defined EMULTIHOP
10855 #if !defined EBADMSG
10858 #if !defined EOVERFLOW
10861 #if !defined ENOTSUP
10864 #if !defined ECANCELED
10869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10870 $EGREP "booboo" >/dev/null 2>&1; then
10871 gl_cv_header_errno_h_complete=no
10873 gl_cv_header_errno_h_complete=yes
10879 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
10880 echo "${ECHO_T}$gl_cv_header_errno_h_complete" >&6; }
10881 if test $gl_cv_header_errno_h_complete = yes; then
10895 if test $gl_cv_have_include_next = yes; then
10896 gl_cv_next_errno_h='<'errno.h'>'
10898 { echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
10899 echo $ECHO_N "checking absolute name of <errno.h>... $ECHO_C" >&6; }
10900 if test "${gl_cv_next_errno_h+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 if test $ac_cv_header_errno_h = yes; then
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10915 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10916 *) gl_absname_cpp="$ac_cpp" ;;
10918 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10919 sed -n '\#/errno.h#{
10920 s#.*"\(.*/errno.h\)".*#\1#
10926 gl_cv_next_errno_h='<'errno.h'>'
10930 { echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
10931 echo "${ECHO_T}$gl_cv_next_errno_h" >&6; }
10933 NEXT_ERRNO_H=$gl_cv_next_errno_h
10941 if test -n "$ERRNO_H"; then
10942 { echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
10943 echo $ECHO_N "checking for EMULTIHOP value... $ECHO_C" >&6; }
10944 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10962 $EGREP "yes" >/dev/null 2>&1; then
10963 gl_cv_header_errno_h_EMULTIHOP=yes
10965 gl_cv_header_errno_h_EMULTIHOP=no
10969 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10970 cat >conftest.$ac_ext <<_ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10977 #define _XOPEN_SOURCE_EXTENDED 1
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985 $EGREP "yes" >/dev/null 2>&1; then
10986 gl_cv_header_errno_h_EMULTIHOP=hidden
10990 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10991 if test "$cross_compiling" = yes; then
10992 # Depending upon the size, compute the lo and hi bounds.
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11000 #define _XOPEN_SOURCE_EXTENDED 1
11002 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11004 #include <stdlib.h>
11009 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
11016 rm -f conftest.$ac_objext
11017 if { (ac_try="$ac_compile"
11018 case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_compile") 2>conftest.er1
11025 grep -v '^ *+' conftest.er1 >conftest.err
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && {
11030 test -z "$ac_c_werror_flag" ||
11031 test ! -s conftest.err
11032 } && test -s conftest.$ac_objext; then
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11042 #define _XOPEN_SOURCE_EXTENDED 1
11044 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11046 #include <stdlib.h>
11051 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
11058 rm -f conftest.$ac_objext
11059 if { (ac_try="$ac_compile"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_compile") 2>conftest.er1
11067 grep -v '^ *+' conftest.er1 >conftest.err
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && {
11072 test -z "$ac_c_werror_flag" ||
11073 test ! -s conftest.err
11074 } && test -s conftest.$ac_objext; then
11075 ac_hi=$ac_mid; break
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_lo=`expr $ac_mid + 1`
11081 if test $ac_lo -le $ac_mid; then
11085 ac_mid=`expr 2 '*' $ac_mid + 1`
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11101 #define _XOPEN_SOURCE_EXTENDED 1
11103 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11105 #include <stdlib.h>
11110 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
11117 rm -f conftest.$ac_objext
11118 if { (ac_try="$ac_compile"
11119 case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest.$ac_objext; then
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11143 #define _XOPEN_SOURCE_EXTENDED 1
11145 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11147 #include <stdlib.h>
11152 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
11159 rm -f conftest.$ac_objext
11160 if { (ac_try="$ac_compile"
11161 case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_compile") 2>conftest.er1
11168 grep -v '^ *+' conftest.er1 >conftest.err
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && {
11173 test -z "$ac_c_werror_flag" ||
11174 test ! -s conftest.err
11175 } && test -s conftest.$ac_objext; then
11176 ac_lo=$ac_mid; break
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 ac_hi=`expr '(' $ac_mid ')' - 1`
11182 if test $ac_mid -le $ac_hi; then
11186 ac_mid=`expr 2 '*' $ac_mid`
11189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202 # Binary search between lo and hi bounds.
11203 while test "x$ac_lo" != "x$ac_hi"; do
11204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11212 #define _XOPEN_SOURCE_EXTENDED 1
11214 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11216 #include <stdlib.h>
11221 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
11228 rm -f conftest.$ac_objext
11229 if { (ac_try="$ac_compile"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_compile") 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && {
11242 test -z "$ac_c_werror_flag" ||
11243 test ! -s conftest.err
11244 } && test -s conftest.$ac_objext; then
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_lo=`expr '(' $ac_mid ')' + 1`
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
11260 cat >conftest.$ac_ext <<_ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11267 #define _XOPEN_SOURCE_EXTENDED 1
11269 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11271 #include <stdlib.h>
11273 static long int longval () { return EMULTIHOP; }
11274 static unsigned long int ulongval () { return EMULTIHOP; }
11276 #include <stdlib.h>
11281 FILE *f = fopen ("conftest.val", "w");
11284 if ((EMULTIHOP) < 0)
11286 long int i = longval ();
11287 if (i != (EMULTIHOP))
11289 fprintf (f, "%ld\n", i);
11293 unsigned long int i = ulongval ();
11294 if (i != (EMULTIHOP))
11296 fprintf (f, "%lu\n", i);
11298 return ferror (f) || fclose (f) != 0;
11304 rm -f conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_link") 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
11326 echo "$as_me: program exited with status $ac_status" >&5
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11338 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
11339 echo "${ECHO_T}$gl_cv_header_errno_h_EMULTIHOP" >&6; }
11340 case $gl_cv_header_errno_h_EMULTIHOP in
11342 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
11345 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
11353 if test -n "$ERRNO_H"; then
11354 { echo "$as_me:$LINENO: checking for ENOLINK value" >&5
11355 echo $ECHO_N "checking for ENOLINK value... $ECHO_C" >&6; }
11356 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11374 $EGREP "yes" >/dev/null 2>&1; then
11375 gl_cv_header_errno_h_ENOLINK=yes
11377 gl_cv_header_errno_h_ENOLINK=no
11381 if test $gl_cv_header_errno_h_ENOLINK = no; then
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11389 #define _XOPEN_SOURCE_EXTENDED 1
11396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11397 $EGREP "yes" >/dev/null 2>&1; then
11398 gl_cv_header_errno_h_ENOLINK=hidden
11402 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
11403 if test "$cross_compiling" = yes; then
11404 # Depending upon the size, compute the lo and hi bounds.
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11412 #define _XOPEN_SOURCE_EXTENDED 1
11414 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11416 #include <stdlib.h>
11421 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
11428 rm -f conftest.$ac_objext
11429 if { (ac_try="$ac_compile"
11430 case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_compile") 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } && {
11442 test -z "$ac_c_werror_flag" ||
11443 test ! -s conftest.err
11444 } && test -s conftest.$ac_objext; then
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11454 #define _XOPEN_SOURCE_EXTENDED 1
11456 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11458 #include <stdlib.h>
11463 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11470 rm -f conftest.$ac_objext
11471 if { (ac_try="$ac_compile"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_compile") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest.$ac_objext; then
11487 ac_hi=$ac_mid; break
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_lo=`expr $ac_mid + 1`
11493 if test $ac_lo -le $ac_mid; then
11497 ac_mid=`expr 2 '*' $ac_mid + 1`
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 cat >conftest.$ac_ext <<_ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11513 #define _XOPEN_SOURCE_EXTENDED 1
11515 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11517 #include <stdlib.h>
11522 static int test_array [1 - 2 * !((ENOLINK) < 0)];
11529 rm -f conftest.$ac_objext
11530 if { (ac_try="$ac_compile"
11531 case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_compile") 2>conftest.er1
11538 grep -v '^ *+' conftest.er1 >conftest.err
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest.$ac_objext; then
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11555 #define _XOPEN_SOURCE_EXTENDED 1
11557 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11559 #include <stdlib.h>
11564 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
11571 rm -f conftest.$ac_objext
11572 if { (ac_try="$ac_compile"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_compile") 2>conftest.er1
11580 grep -v '^ *+' conftest.er1 >conftest.err
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && {
11585 test -z "$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 } && test -s conftest.$ac_objext; then
11588 ac_lo=$ac_mid; break
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_hi=`expr '(' $ac_mid ')' - 1`
11594 if test $ac_mid -le $ac_hi; then
11598 ac_mid=`expr 2 '*' $ac_mid`
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 # Binary search between lo and hi bounds.
11615 while test "x$ac_lo" != "x$ac_hi"; do
11616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11617 cat >conftest.$ac_ext <<_ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11624 #define _XOPEN_SOURCE_EXTENDED 1
11626 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11628 #include <stdlib.h>
11633 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
11640 rm -f conftest.$ac_objext
11641 if { (ac_try="$ac_compile"
11642 case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_compile") 2>conftest.er1
11649 grep -v '^ *+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest.$ac_objext; then
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ac_lo=`expr '(' $ac_mid ')' + 1`
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11679 #define _XOPEN_SOURCE_EXTENDED 1
11681 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11683 #include <stdlib.h>
11685 static long int longval () { return ENOLINK; }
11686 static unsigned long int ulongval () { return ENOLINK; }
11688 #include <stdlib.h>
11693 FILE *f = fopen ("conftest.val", "w");
11698 long int i = longval ();
11699 if (i != (ENOLINK))
11701 fprintf (f, "%ld\n", i);
11705 unsigned long int i = ulongval ();
11706 if (i != (ENOLINK))
11708 fprintf (f, "%lu\n", i);
11710 return ferror (f) || fclose (f) != 0;
11716 rm -f conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_link") 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11727 { (case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_try") 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
11738 echo "$as_me: program exited with status $ac_status" >&5
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11750 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
11751 echo "${ECHO_T}$gl_cv_header_errno_h_ENOLINK" >&6; }
11752 case $gl_cv_header_errno_h_ENOLINK in
11754 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
11757 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
11765 if test -n "$ERRNO_H"; then
11766 { echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
11767 echo $ECHO_N "checking for EOVERFLOW value... $ECHO_C" >&6; }
11768 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11786 $EGREP "yes" >/dev/null 2>&1; then
11787 gl_cv_header_errno_h_EOVERFLOW=yes
11789 gl_cv_header_errno_h_EOVERFLOW=no
11793 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
11794 cat >conftest.$ac_ext <<_ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h. */
11801 #define _XOPEN_SOURCE_EXTENDED 1
11808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11809 $EGREP "yes" >/dev/null 2>&1; then
11810 gl_cv_header_errno_h_EOVERFLOW=hidden
11814 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11815 if test "$cross_compiling" = yes; then
11816 # Depending upon the size, compute the lo and hi bounds.
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11824 #define _XOPEN_SOURCE_EXTENDED 1
11826 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11828 #include <stdlib.h>
11833 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11866 #define _XOPEN_SOURCE_EXTENDED 1
11868 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11870 #include <stdlib.h>
11875 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
11882 rm -f conftest.$ac_objext
11883 if { (ac_try="$ac_compile"
11884 case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_compile") 2>conftest.er1
11891 grep -v '^ *+' conftest.er1 >conftest.err
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } && {
11896 test -z "$ac_c_werror_flag" ||
11897 test ! -s conftest.err
11898 } && test -s conftest.$ac_objext; then
11899 ac_hi=$ac_mid; break
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_lo=`expr $ac_mid + 1`
11905 if test $ac_lo -le $ac_mid; then
11909 ac_mid=`expr 2 '*' $ac_mid + 1`
11912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 cat >conftest.$ac_ext <<_ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11925 #define _XOPEN_SOURCE_EXTENDED 1
11927 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11929 #include <stdlib.h>
11934 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
11941 rm -f conftest.$ac_objext
11942 if { (ac_try="$ac_compile"
11943 case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11950 grep -v '^ *+' conftest.er1 >conftest.err
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest.$ac_objext; then
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 #define _XOPEN_SOURCE_EXTENDED 1
11969 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11971 #include <stdlib.h>
11976 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
11983 rm -f conftest.$ac_objext
11984 if { (ac_try="$ac_compile"
11985 case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_compile") 2>conftest.er1
11992 grep -v '^ *+' conftest.er1 >conftest.err
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } && {
11997 test -z "$ac_c_werror_flag" ||
11998 test ! -s conftest.err
11999 } && test -s conftest.$ac_objext; then
12000 ac_lo=$ac_mid; break
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_hi=`expr '(' $ac_mid ')' - 1`
12006 if test $ac_mid -le $ac_hi; then
12010 ac_mid=`expr 2 '*' $ac_mid`
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 # Binary search between lo and hi bounds.
12027 while test "x$ac_lo" != "x$ac_hi"; do
12028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12029 cat >conftest.$ac_ext <<_ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12036 #define _XOPEN_SOURCE_EXTENDED 1
12038 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12040 #include <stdlib.h>
12045 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ac_lo=`expr '(' $ac_mid ')' + 1`
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12091 #define _XOPEN_SOURCE_EXTENDED 1
12093 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12095 #include <stdlib.h>
12097 static long int longval () { return EOVERFLOW; }
12098 static unsigned long int ulongval () { return EOVERFLOW; }
12100 #include <stdlib.h>
12105 FILE *f = fopen ("conftest.val", "w");
12108 if ((EOVERFLOW) < 0)
12110 long int i = longval ();
12111 if (i != (EOVERFLOW))
12113 fprintf (f, "%ld\n", i);
12117 unsigned long int i = ulongval ();
12118 if (i != (EOVERFLOW))
12120 fprintf (f, "%lu\n", i);
12122 return ferror (f) || fclose (f) != 0;
12128 rm -f conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
12150 echo "$as_me: program exited with status $ac_status" >&5
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12162 { echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
12163 echo "${ECHO_T}$gl_cv_header_errno_h_EOVERFLOW" >&6; }
12164 case $gl_cv_header_errno_h_EOVERFLOW in
12166 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
12169 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
12178 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
12179 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
12180 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 $ac_includes_default
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_compile") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && {
12215 test -z "$ac_c_werror_flag" ||
12216 test ! -s conftest.err
12217 } && test -s conftest.$ac_objext; then
12218 ac_cv_have_decl_strerror_r=yes
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_cv_have_decl_strerror_r=no
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
12229 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
12230 if test $ac_cv_have_decl_strerror_r = yes; then
12232 cat >>confdefs.h <<_ACEOF
12233 #define HAVE_DECL_STRERROR_R 1
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_DECL_STRERROR_R 0
12247 for ac_func in strerror_r
12249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12263 #define $ac_func innocuous_$ac_func
12265 /* System header to define __stub macros and hopefully few prototypes,
12266 which can conflict with char $ac_func (); below.
12267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12268 <limits.h> exists even on freestanding compilers. */
12271 # include <limits.h>
12273 # include <assert.h>
12278 /* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
12285 /* The GNU C library defines this for functions which it implements
12286 to always fail with ENOSYS. Some functions are actually named
12287 something starting with __ and the normal name is an alias. */
12288 #if defined __stub_$ac_func || defined __stub___$ac_func
12295 return $ac_func ();
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (ac_try="$ac_link"
12302 case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_link") 2>conftest.er1
12309 grep -v '^ *+' conftest.er1 >conftest.err
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && {
12314 test -z "$ac_c_werror_flag" ||
12315 test ! -s conftest.err
12316 } && test -s conftest$ac_exeext &&
12317 $as_test_x conftest$ac_exeext; then
12318 eval "$as_ac_var=yes"
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 eval "$as_ac_var=no"
12326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12327 conftest$ac_exeext conftest.$ac_ext
12329 ac_res=`eval echo '${'$as_ac_var'}'`
12330 { echo "$as_me:$LINENO: result: $ac_res" >&5
12331 echo "${ECHO_T}$ac_res" >&6; }
12332 if test `eval echo '${'$as_ac_var'}'` = yes; then
12333 cat >>confdefs.h <<_ACEOF
12334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12340 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
12341 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
12342 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 ac_cv_func_strerror_r_char_p=no
12347 if test $ac_cv_have_decl_strerror_r = yes; then
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 $ac_includes_default
12360 char x = *strerror_r (0, buf, sizeof buf);
12361 char *p = strerror_r (0, buf, sizeof buf);
12368 rm -f conftest.$ac_objext
12369 if { (ac_try="$ac_compile"
12370 case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_compile") 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } && {
12382 test -z "$ac_c_werror_flag" ||
12383 test ! -s conftest.err
12384 } && test -s conftest.$ac_objext; then
12385 ac_cv_func_strerror_r_char_p=yes
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 # strerror_r is not declared. Choose between
12396 # systems that have relatively inaccessible declarations for the
12397 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12398 # former has a strerror_r that returns char*, while the latter
12399 # has a strerror_r that returns `int'.
12400 # This test should segfault on the DEC system.
12401 if test "$cross_compiling" = yes; then
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12411 extern char *strerror_r ();
12416 char x = *strerror_r (0, buf, sizeof buf);
12417 return ! isalpha (x);
12422 rm -f conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_func_strerror_r_char_p=yes
12444 echo "$as_me: program exited with status $ac_status" >&5
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12456 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12457 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
12458 if test $ac_cv_func_strerror_r_char_p = yes; then
12460 cat >>confdefs.h <<\_ACEOF
12461 #define STRERROR_R_CHAR_P 1
12474 GNULIB_FPRINTF_POSIX=0;
12476 GNULIB_PRINTF_POSIX=0;
12478 GNULIB_SPRINTF_POSIX=0;
12480 GNULIB_VFPRINTF_POSIX=0;
12482 GNULIB_VPRINTF_POSIX=0;
12483 GNULIB_VSNPRINTF=0;
12484 GNULIB_VSPRINTF_POSIX=0;
12487 GNULIB_VASPRINTF=0;
12488 GNULIB_OBSTACK_PRINTF=0;
12489 GNULIB_OBSTACK_PRINTF_POSIX=0;
12507 GNULIB_STDIO_H_SIGPIPE=0;
12508 REPLACE_STDIO_WRITE_FUNCS=0;
12510 REPLACE_VFPRINTF=0;
12513 REPLACE_SNPRINTF=0;
12514 HAVE_DECL_SNPRINTF=1;
12515 REPLACE_VSNPRINTF=0;
12516 HAVE_DECL_VSNPRINTF=1;
12518 REPLACE_VSPRINTF=0;
12522 REPLACE_VDPRINTF=0;
12524 REPLACE_VASPRINTF=0;
12525 HAVE_DECL_OBSTACK_PRINTF=1;
12526 REPLACE_OBSTACK_PRINTF=0;
12537 HAVE_DECL_GETDELIM=1;
12538 HAVE_DECL_GETLINE=1;
12546 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
12547 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
12548 if test "${ac_cv_type_mbstate_t+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 $ac_includes_default
12558 # include <wchar.h>
12562 mbstate_t x; return sizeof x;
12567 rm -f conftest.$ac_objext
12568 if { (ac_try="$ac_compile"
12569 case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_compile") 2>conftest.er1
12576 grep -v '^ *+' conftest.er1 >conftest.err
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } && {
12581 test -z "$ac_c_werror_flag" ||
12582 test ! -s conftest.err
12583 } && test -s conftest.$ac_objext; then
12584 ac_cv_type_mbstate_t=yes
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12589 ac_cv_type_mbstate_t=no
12592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12595 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
12596 if test $ac_cv_type_mbstate_t = yes; then
12598 cat >>confdefs.h <<\_ACEOF
12599 #define HAVE_MBSTATE_T 1
12604 cat >>confdefs.h <<\_ACEOF
12605 #define mbstate_t int
12631 { echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
12632 echo $ECHO_N "checking whether stdin defaults to large file offsets... $ECHO_C" >&6; }
12633 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12646 #if defined __SL64 && defined __SCLE /* cygwin */
12647 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
12648 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
12649 it is easier to do a version check than building a runtime test. */
12650 # include <cygwin/version.h>
12651 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (ac_try="$ac_link"
12661 case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666 (eval "$ac_link") 2>conftest.er1
12668 grep -v '^ *+' conftest.er1 >conftest.err
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && {
12673 test -z "$ac_c_werror_flag" ||
12674 test ! -s conftest.err
12675 } && test -s conftest$ac_exeext &&
12676 $as_test_x conftest$ac_exeext; then
12677 gl_cv_var_stdin_large_offset=yes
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 gl_cv_var_stdin_large_offset=no
12685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12686 conftest$ac_exeext conftest.$ac_ext
12688 { echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
12689 echo "${ECHO_T}$gl_cv_var_stdin_large_offset" >&6; }
12694 { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
12695 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
12696 if test "${gl_cv_func_getcwd_null+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 if test "$cross_compiling" = yes; then
12700 gl_cv_func_getcwd_null=no
12702 cat >conftest.$ac_ext <<_ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12709 # include <stdlib.h>
12710 # include <unistd.h>
12717 if (chdir ("/") != 0)
12721 char *f = getcwd (NULL, 0);
12722 exit (! (f && f[0] == '/' && !f[1]));
12726 rm -f conftest$ac_exeext
12727 if { (ac_try="$ac_link"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_link") 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 gl_cv_func_getcwd_null=yes
12748 echo "$as_me: program exited with status $ac_status" >&5
12749 echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12752 ( exit $ac_status )
12753 gl_cv_func_getcwd_null=no
12755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12760 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
12761 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
12763 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
12764 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
12765 if test "${ac_cv_have_decl_getcwd+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 cat >conftest.$ac_ext <<_ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 $ac_includes_default
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_compile") 2>conftest.er1
12795 grep -v '^ *+' conftest.er1 >conftest.err
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } && {
12800 test -z "$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12802 } && test -s conftest.$ac_objext; then
12803 ac_cv_have_decl_getcwd=yes
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_cv_have_decl_getcwd=no
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
12814 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
12815 if test $ac_cv_have_decl_getcwd = yes; then
12817 cat >>confdefs.h <<_ACEOF
12818 #define HAVE_DECL_GETCWD 1
12823 cat >>confdefs.h <<_ACEOF
12824 #define HAVE_DECL_GETCWD 0
12835 # getdate.y works with bison only.
12836 : ${YACC='bison -y'}
12839 { echo "$as_me:$LINENO: checking for compound literals" >&5
12840 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
12841 if test "${gl_cv_compound_literals+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 struct s { int i, j; };
12854 struct s t = (struct s) { 3, 4 };
12855 if (t.i != 0) return 0;
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_compile") 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && {
12874 test -z "$ac_c_werror_flag" ||
12875 test ! -s conftest.err
12876 } && test -s conftest.$ac_objext; then
12877 gl_cv_compound_literals=yes
12879 echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 gl_cv_compound_literals=no
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
12888 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
12889 if test $gl_cv_compound_literals = yes; then
12891 cat >>confdefs.h <<\_ACEOF
12892 #define HAVE_COMPOUND_LITERALS 1
12897 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12898 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12899 if test "${ac_cv_struct_tm+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908 #include <sys/types.h>
12915 int *p = &tm.tm_sec;
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_compile") 2>conftest.er1
12930 grep -v '^ *+' conftest.er1 >conftest.err
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest.$ac_objext; then
12938 ac_cv_struct_tm=time.h
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 ac_cv_struct_tm=sys/time.h
12946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12949 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12950 if test $ac_cv_struct_tm = sys/time.h; then
12952 cat >>confdefs.h <<\_ACEOF
12953 #define TM_IN_SYS_TIME 1
12959 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
12960 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
12961 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12975 static struct tm ac_aggr;
12976 if (ac_aggr.tm_gmtoff)
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_compile") 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && {
12996 test -z "$ac_c_werror_flag" ||
12997 test ! -s conftest.err
12998 } && test -s conftest.$ac_objext; then
12999 ac_cv_member_struct_tm_tm_gmtoff=yes
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13004 cat >conftest.$ac_ext <<_ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13015 static struct tm ac_aggr;
13016 if (sizeof ac_aggr.tm_gmtoff)
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13031 grep -v '^ *+' conftest.er1 >conftest.err
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && {
13036 test -z "$ac_c_werror_flag" ||
13037 test ! -s conftest.err
13038 } && test -s conftest.$ac_objext; then
13039 ac_cv_member_struct_tm_tm_gmtoff=yes
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ac_cv_member_struct_tm_tm_gmtoff=no
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13053 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
13054 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_TM_GMTOFF 1
13063 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
13064 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
13065 if test "${ac_cv_have_decl_getdelim+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 $ac_includes_default
13086 rm -f conftest.$ac_objext
13087 if { (ac_try="$ac_compile"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13103 ac_cv_have_decl_getdelim=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_cv_have_decl_getdelim=no
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
13114 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
13115 if test $ac_cv_have_decl_getdelim = yes; then
13117 cat >>confdefs.h <<_ACEOF
13118 #define HAVE_DECL_GETDELIM 1
13123 cat >>confdefs.h <<_ACEOF
13124 #define HAVE_DECL_GETDELIM 0
13131 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
13132 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
13133 if test "${ac_cv_have_decl_getline+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 $ac_includes_default
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_compile") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } && {
13168 test -z "$ac_c_werror_flag" ||
13169 test ! -s conftest.err
13170 } && test -s conftest.$ac_objext; then
13171 ac_cv_have_decl_getline=yes
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13176 ac_cv_have_decl_getline=no
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
13182 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
13183 if test $ac_cv_have_decl_getline = yes; then
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_DECL_GETLINE 1
13191 cat >>confdefs.h <<_ACEOF
13192 #define HAVE_DECL_GETLINE 0
13200 if test -z "$GETOPT_H"; then
13202 for ac_header in getopt.h
13204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 ac_res=`eval echo '${'$as_ac_Header'}'`
13212 { echo "$as_me:$LINENO: result: $ac_res" >&5
13213 echo "${ECHO_T}$ac_res" >&6; }
13215 # Is the header compilable?
13216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13218 cat >conftest.$ac_ext <<_ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 $ac_includes_default
13225 #include <$ac_header>
13227 rm -f conftest.$ac_objext
13228 if { (ac_try="$ac_compile"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_compile") 2>conftest.er1
13236 grep -v '^ *+' conftest.er1 >conftest.err
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest.$ac_objext; then
13244 ac_header_compiler=yes
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13249 ac_header_compiler=no
13252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13254 echo "${ECHO_T}$ac_header_compiler" >&6; }
13256 # Is the header present?
13257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 #include <$ac_header>
13267 if { (ac_try="$ac_cpp conftest.$ac_ext"
13268 case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13275 grep -v '^ *+' conftest.er1 >conftest.err
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } >/dev/null && {
13280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13281 test ! -s conftest.err
13283 ac_header_preproc=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ac_header_preproc=no
13291 rm -f conftest.err conftest.$ac_ext
13292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13293 echo "${ECHO_T}$ac_header_preproc" >&6; }
13295 # So? What about this header?
13296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13302 ac_header_preproc=yes
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13318 ## ------------------------------ ##
13319 ## Report this to bug-tar@gnu.org ##
13320 ## ------------------------------ ##
13322 ) | sed "s/^/$as_me: WARNING: /" >&2
13325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 eval "$as_ac_Header=\$ac_header_preproc"
13332 ac_res=`eval echo '${'$as_ac_Header'}'`
13333 { echo "$as_me:$LINENO: result: $ac_res" >&5
13334 echo "${ECHO_T}$ac_res" >&6; }
13337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13338 cat >>confdefs.h <<_ACEOF
13339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13350 if test -z "$GETOPT_H"; then
13352 for ac_func in getopt_long_only
13354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 cat >conftest.$ac_ext <<_ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13368 #define $ac_func innocuous_$ac_func
13370 /* System header to define __stub macros and hopefully few prototypes,
13371 which can conflict with char $ac_func (); below.
13372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13373 <limits.h> exists even on freestanding compilers. */
13376 # include <limits.h>
13378 # include <assert.h>
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13390 /* The GNU C library defines this for functions which it implements
13391 to always fail with ENOSYS. Some functions are actually named
13392 something starting with __ and the normal name is an alias. */
13393 #if defined __stub_$ac_func || defined __stub___$ac_func
13400 return $ac_func ();
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } && {
13419 test -z "$ac_c_werror_flag" ||
13420 test ! -s conftest.err
13421 } && test -s conftest$ac_exeext &&
13422 $as_test_x conftest$ac_exeext; then
13423 eval "$as_ac_var=yes"
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 eval "$as_ac_var=no"
13431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13432 conftest$ac_exeext conftest.$ac_ext
13434 ac_res=`eval echo '${'$as_ac_var'}'`
13435 { echo "$as_me:$LINENO: result: $ac_res" >&5
13436 echo "${ECHO_T}$ac_res" >&6; }
13437 if test `eval echo '${'$as_ac_var'}'` = yes; then
13438 cat >>confdefs.h <<_ACEOF
13439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13449 if test -z "$GETOPT_H"; then
13450 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
13451 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
13452 if test "${ac_cv_have_decl_optreset+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 cat >conftest.$ac_ext <<_ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 #include <getopt.h>
13474 rm -f conftest.$ac_objext
13475 if { (ac_try="$ac_compile"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_compile") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest.$ac_objext; then
13491 ac_cv_have_decl_optreset=yes
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_cv_have_decl_optreset=no
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
13502 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
13503 if test $ac_cv_have_decl_optreset = yes; then
13509 if test -z "$GETOPT_H"; then
13510 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
13511 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
13512 if test "${gl_cv_func_gnu_getopt+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 if test "$cross_compiling" = yes; then
13516 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
13517 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
13518 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 cat >conftest.$ac_ext <<_ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <getopt.h>
13532 #ifndef getopt_clip
13533 (void) getopt_clip;
13540 rm -f conftest.$ac_objext
13541 if { (ac_try="$ac_compile"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_compile") 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest.$ac_objext; then
13557 ac_cv_have_decl_getopt_clip=yes
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 ac_cv_have_decl_getopt_clip=no
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
13568 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
13569 if test $ac_cv_have_decl_getopt_clip = yes; then
13570 gl_cv_func_gnu_getopt=no
13572 gl_cv_func_gnu_getopt=yes
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <getopt.h>
13588 myargv[0] = "conftest";
13591 return getopt (2, myargv, "+a") != '?';
13597 rm -f conftest$ac_exeext
13598 if { (ac_try="$ac_link"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_link") 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13608 { (case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_try") 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 gl_cv_func_gnu_getopt=yes
13619 echo "$as_me: program exited with status $ac_status" >&5
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13623 ( exit $ac_status )
13624 gl_cv_func_gnu_getopt=no
13626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13631 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
13632 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
13633 if test "$gl_cv_func_gnu_getopt" = "no"; then
13655 if test $gl_cv_have_include_next = yes; then
13656 gl_cv_next_sys_time_h='<'sys/time.h'>'
13658 { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
13659 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
13660 if test "${gl_cv_next_sys_time_h+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 if test $ac_cv_header_sys_time_h = yes; then
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 #include <sys/time.h>
13675 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13676 *) gl_absname_cpp="$ac_cpp" ;;
13678 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13679 sed -n '\#/sys/time.h#{
13680 s#.*"\(.*/sys/time.h\)".*#\1#
13686 gl_cv_next_sys_time_h='<'sys/time.h'>'
13690 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
13691 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
13693 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
13698 if test $ac_cv_header_sys_time_h = yes; then
13705 { echo "$as_me:$LINENO: checking for struct timeval" >&5
13706 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
13707 if test "${gl_cv_sys_struct_timeval+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 #if HAVE_SYS_TIME_H
13717 #include <sys/time.h>
13724 static struct timeval x; x.tv_sec = x.tv_usec;
13729 rm -f conftest.$ac_objext
13730 if { (ac_try="$ac_compile"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compile") 2>conftest.er1
13738 grep -v '^ *+' conftest.er1 >conftest.err
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest.$ac_objext; then
13746 gl_cv_sys_struct_timeval=yes
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 gl_cv_sys_struct_timeval=no
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
13757 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
13758 if test $gl_cv_sys_struct_timeval = yes; then
13759 HAVE_STRUCT_TIMEVAL=1
13761 HAVE_STRUCT_TIMEVAL=0
13765 REPLACE_GETTIMEOFDAY=0
13767 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
13768 SYS_TIME_H=sys/time.h
13778 { echo "$as_me:$LINENO: checking for long long int" >&5
13779 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
13780 if test "${ac_cv_type_long_long_int+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 /* For now, do not test the preprocessor; as of 2007 there are too many
13791 implementations with broken preprocessors. Perhaps this can
13792 be revisited in 2012. In the meantime, code should not expect
13793 #if to work with literals wider than 32 bits. */
13794 /* Test literals. */
13795 long long int ll = 9223372036854775807ll;
13796 long long int nll = -9223372036854775807LL;
13797 unsigned long long int ull = 18446744073709551615ULL;
13798 /* Test constant expressions. */
13799 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13801 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13807 /* Test availability of runtime routines for shift and division. */
13808 long long int llmax = 9223372036854775807ll;
13809 unsigned long long int ullmax = 18446744073709551615ull;
13810 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13811 | (llmax / ll) | (llmax % ll)
13812 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13813 | (ullmax / ull) | (ullmax % ull));
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest$ac_exeext &&
13836 $as_test_x conftest$ac_exeext; then
13837 if test "$cross_compiling" = yes; then
13838 ac_cv_type_long_long_int=yes
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 #include <limits.h>
13849 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
13850 # define LLONG_MAX (HALF - 1 + HALF)
13855 long long int n = 1;
13859 long long int m = n << i;
13862 if (LLONG_MAX / 2 < m)
13870 rm -f conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13881 { (case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 ac_cv_type_long_long_int=yes
13892 echo "$as_me: program exited with status $ac_status" >&5
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13896 ( exit $ac_status )
13897 ac_cv_type_long_long_int=no
13899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_type_long_long_int=no
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
13913 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13914 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
13915 if test $ac_cv_type_long_long_int = yes; then
13917 cat >>confdefs.h <<\_ACEOF
13918 #define HAVE_LONG_LONG_INT 1
13924 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
13925 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
13926 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 /* For now, do not test the preprocessor; as of 2007 there are too many
13937 implementations with broken preprocessors. Perhaps this can
13938 be revisited in 2012. In the meantime, code should not expect
13939 #if to work with literals wider than 32 bits. */
13940 /* Test literals. */
13941 long long int ll = 9223372036854775807ll;
13942 long long int nll = -9223372036854775807LL;
13943 unsigned long long int ull = 18446744073709551615ULL;
13944 /* Test constant expressions. */
13945 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13947 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13953 /* Test availability of runtime routines for shift and division. */
13954 long long int llmax = 9223372036854775807ll;
13955 unsigned long long int ullmax = 18446744073709551615ull;
13956 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13957 | (llmax / ll) | (llmax % ll)
13958 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13959 | (ullmax / ull) | (ullmax % ull));
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (ac_try="$ac_link"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_link") 2>conftest.er1
13974 grep -v '^ *+' conftest.er1 >conftest.err
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest$ac_exeext &&
13982 $as_test_x conftest$ac_exeext; then
13983 ac_cv_type_unsigned_long_long_int=yes
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ac_cv_type_unsigned_long_long_int=no
13991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13992 conftest$ac_exeext conftest.$ac_ext
13994 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
13995 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
13996 if test $ac_cv_type_unsigned_long_long_int = yes; then
13998 cat >>confdefs.h <<\_ACEOF
13999 #define HAVE_UNSIGNED_LONG_LONG_INT 1
14009 gl_cv_c_multiarch=no
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #ifndef __APPLE_CC__
14017 not a universal capable compiler
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_compile") 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } && {
14036 test -z "$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14038 } && test -s conftest.$ac_objext; then
14042 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14043 if test -n "$prev"; then
14045 i?86 | x86_64 | ppc | ppc64)
14046 if test -z "$arch" || test "$arch" = "$word"; then
14049 gl_cv_c_multiarch=yes
14055 if test "x$word" = "x-arch"; then
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 if test $gl_cv_c_multiarch = yes; then
14071 cat >>confdefs.h <<\_ACEOF
14072 #define AA_APPLE_UNIVERSAL_BUILD 1
14075 APPLE_UNIVERSAL_BUILD=1
14077 APPLE_UNIVERSAL_BUILD=0
14085 if test $ac_cv_type_long_long_int = yes; then
14086 HAVE_LONG_LONG_INT=1
14088 HAVE_LONG_LONG_INT=0
14092 if test $ac_cv_type_unsigned_long_long_int = yes; then
14093 HAVE_UNSIGNED_LONG_LONG_INT=1
14095 HAVE_UNSIGNED_LONG_LONG_INT=0
14099 if test $ac_cv_header_inttypes_h = yes; then
14106 if test $ac_cv_header_sys_types_h = yes; then
14124 if test $gl_cv_have_include_next = yes; then
14125 gl_cv_next_stdint_h='<'stdint.h'>'
14127 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
14128 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
14129 if test "${gl_cv_next_stdint_h+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 if test $ac_cv_header_stdint_h = yes; then
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 #include <stdint.h>
14144 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14145 *) gl_absname_cpp="$ac_cpp" ;;
14147 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14148 sed -n '\#/stdint.h#{
14149 s#.*"\(.*/stdint.h\)".*#\1#
14155 gl_cv_next_stdint_h='<'stdint.h'>'
14159 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
14160 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
14162 NEXT_STDINT_H=$gl_cv_next_stdint_h
14166 if test $ac_cv_header_stdint_h = yes; then
14173 if test $ac_cv_header_stdint_h = yes; then
14174 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
14175 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
14176 if test "${gl_cv_header_working_stdint_h+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 gl_cv_header_working_stdint_h=no
14180 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14188 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
14189 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
14190 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
14191 #include <stdint.h>
14192 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
14193 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
14194 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
14198 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14199 included before <wchar.h>. */
14200 #include <stddef.h>
14201 #include <signal.h>
14203 # include <stdio.h>
14205 # include <wchar.h>
14210 int8_t a1 = INT8_MAX;
14211 int8_t a1min = INT8_MIN;
14214 int16_t a2 = INT16_MAX;
14215 int16_t a2min = INT16_MIN;
14218 int32_t a3 = INT32_MAX;
14219 int32_t a3min = INT32_MIN;
14222 int64_t a4 = INT64_MAX;
14223 int64_t a4min = INT64_MIN;
14226 uint8_t b1 = UINT8_MAX;
14228 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
14231 uint16_t b2 = UINT16_MAX;
14234 uint32_t b3 = UINT32_MAX;
14237 uint64_t b4 = UINT64_MAX;
14239 int_least8_t c1 = INT8_C (0x7f);
14240 int_least8_t c1max = INT_LEAST8_MAX;
14241 int_least8_t c1min = INT_LEAST8_MIN;
14242 int_least16_t c2 = INT16_C (0x7fff);
14243 int_least16_t c2max = INT_LEAST16_MAX;
14244 int_least16_t c2min = INT_LEAST16_MIN;
14245 int_least32_t c3 = INT32_C (0x7fffffff);
14246 int_least32_t c3max = INT_LEAST32_MAX;
14247 int_least32_t c3min = INT_LEAST32_MIN;
14248 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
14249 int_least64_t c4max = INT_LEAST64_MAX;
14250 int_least64_t c4min = INT_LEAST64_MIN;
14251 uint_least8_t d1 = UINT8_C (0xff);
14252 uint_least8_t d1max = UINT_LEAST8_MAX;
14253 uint_least16_t d2 = UINT16_C (0xffff);
14254 uint_least16_t d2max = UINT_LEAST16_MAX;
14255 uint_least32_t d3 = UINT32_C (0xffffffff);
14256 uint_least32_t d3max = UINT_LEAST32_MAX;
14257 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
14258 uint_least64_t d4max = UINT_LEAST64_MAX;
14259 int_fast8_t e1 = INT_FAST8_MAX;
14260 int_fast8_t e1min = INT_FAST8_MIN;
14261 int_fast16_t e2 = INT_FAST16_MAX;
14262 int_fast16_t e2min = INT_FAST16_MIN;
14263 int_fast32_t e3 = INT_FAST32_MAX;
14264 int_fast32_t e3min = INT_FAST32_MIN;
14265 int_fast64_t e4 = INT_FAST64_MAX;
14266 int_fast64_t e4min = INT_FAST64_MIN;
14267 uint_fast8_t f1 = UINT_FAST8_MAX;
14268 uint_fast16_t f2 = UINT_FAST16_MAX;
14269 uint_fast32_t f3 = UINT_FAST32_MAX;
14270 uint_fast64_t f4 = UINT_FAST64_MAX;
14272 intptr_t g = INTPTR_MAX;
14273 intptr_t gmin = INTPTR_MIN;
14276 uintptr_t h = UINTPTR_MAX;
14278 intmax_t i = INTMAX_MAX;
14279 uintmax_t j = UINTMAX_MAX;
14281 #include <limits.h> /* for CHAR_BIT */
14282 #define TYPE_MINIMUM(t) \
14283 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
14284 #define TYPE_MAXIMUM(t) \
14285 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
14288 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
14289 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
14291 /* Detect bug in FreeBSD 6.0 / ia64. */
14292 int check_SIG_ATOMIC:
14293 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
14294 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
14296 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
14298 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
14299 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
14301 /* Detect bug in mingw. */
14303 WINT_MIN == TYPE_MINIMUM (wint_t)
14304 && WINT_MAX == TYPE_MAXIMUM (wint_t)
14307 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
14309 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
14310 int check_UINT16_C:
14311 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
14313 /* Detect bugs in OpenBSD 3.9 stdint.h. */
14315 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
14318 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
14321 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
14324 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
14326 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
14327 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
14328 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
14329 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
14330 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
14331 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
14332 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
14333 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
14334 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
14335 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
14336 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
14347 rm -f conftest.$ac_objext
14348 if { (ac_try="$ac_compile"
14349 case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_compile") 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } && {
14361 test -z "$ac_c_werror_flag" ||
14362 test ! -s conftest.err
14363 } && test -s conftest.$ac_objext; then
14364 gl_cv_header_working_stdint_h=yes
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
14375 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
14377 if test "$gl_cv_header_working_stdint_h" = yes; then
14382 for ac_header in sys/inttypes.h sys/bitypes.h
14384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 ac_res=`eval echo '${'$as_ac_Header'}'`
14392 { echo "$as_me:$LINENO: result: $ac_res" >&5
14393 echo "${ECHO_T}$ac_res" >&6; }
14395 # Is the header compilable?
14396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14398 cat >conftest.$ac_ext <<_ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 $ac_includes_default
14405 #include <$ac_header>
14407 rm -f conftest.$ac_objext
14408 if { (ac_try="$ac_compile"
14409 case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_compile") 2>conftest.er1
14416 grep -v '^ *+' conftest.er1 >conftest.err
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } && {
14421 test -z "$ac_c_werror_flag" ||
14422 test ! -s conftest.err
14423 } && test -s conftest.$ac_objext; then
14424 ac_header_compiler=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 ac_header_compiler=no
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14434 echo "${ECHO_T}$ac_header_compiler" >&6; }
14436 # Is the header present?
14437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <$ac_header>
14447 if { (ac_try="$ac_cpp conftest.$ac_ext"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14455 grep -v '^ *+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } >/dev/null && {
14460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14463 ac_header_preproc=yes
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ac_header_preproc=no
14471 rm -f conftest.err conftest.$ac_ext
14472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 echo "${ECHO_T}$ac_header_preproc" >&6; }
14475 # So? What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14498 ## ------------------------------ ##
14499 ## Report this to bug-tar@gnu.org ##
14500 ## ------------------------------ ##
14502 ) | sed "s/^/$as_me: WARNING: /" >&2
14505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 eval "$as_ac_Header=\$ac_header_preproc"
14512 ac_res=`eval echo '${'$as_ac_Header'}'`
14513 { echo "$as_me:$LINENO: result: $ac_res" >&5
14514 echo "${ECHO_T}$ac_res" >&6; }
14517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14518 cat >>confdefs.h <<_ACEOF
14519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14526 if test $ac_cv_header_sys_inttypes_h = yes; then
14527 HAVE_SYS_INTTYPES_H=1
14529 HAVE_SYS_INTTYPES_H=0
14532 if test $ac_cv_header_sys_bitypes_h = yes; then
14533 HAVE_SYS_BITYPES_H=1
14535 HAVE_SYS_BITYPES_H=0
14548 if test $APPLE_UNIVERSAL_BUILD = 0; then
14553 for gltype in ptrdiff_t size_t ; do
14554 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
14555 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
14556 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 if test "$cross_compiling" = yes; then
14560 # Depending upon the size, compute the lo and hi bounds.
14561 cat >conftest.$ac_ext <<_ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14569 included before <wchar.h>. */
14570 #include <stddef.h>
14571 #include <signal.h>
14573 # include <stdio.h>
14575 # include <wchar.h>
14578 #include <limits.h>
14582 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest.$ac_objext; then
14608 cat >conftest.$ac_ext <<_ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h. */
14615 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14616 included before <wchar.h>. */
14617 #include <stddef.h>
14618 #include <signal.h>
14620 # include <stdio.h>
14622 # include <wchar.h>
14625 #include <limits.h>
14629 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_compile") 2>conftest.er1
14645 grep -v '^ *+' conftest.er1 >conftest.err
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && {
14650 test -z "$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 } && test -s conftest.$ac_objext; then
14653 ac_hi=$ac_mid; break
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_lo=`expr $ac_mid + 1`
14659 if test $ac_lo -le $ac_mid; then
14663 ac_mid=`expr 2 '*' $ac_mid + 1`
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14679 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14680 included before <wchar.h>. */
14681 #include <stddef.h>
14682 #include <signal.h>
14684 # include <stdio.h>
14686 # include <wchar.h>
14689 #include <limits.h>
14693 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest.$ac_objext; then
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14726 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14727 included before <wchar.h>. */
14728 #include <stddef.h>
14729 #include <signal.h>
14731 # include <stdio.h>
14733 # include <wchar.h>
14736 #include <limits.h>
14740 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
14747 rm -f conftest.$ac_objext
14748 if { (ac_try="$ac_compile"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_compile") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest.$ac_objext; then
14764 ac_lo=$ac_mid; break
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_hi=`expr '(' $ac_mid ')' - 1`
14770 if test $ac_mid -le $ac_hi; then
14774 ac_mid=`expr 2 '*' $ac_mid`
14777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14790 # Binary search between lo and hi bounds.
14791 while test "x$ac_lo" != "x$ac_hi"; do
14792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14793 cat >conftest.$ac_ext <<_ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14800 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14801 included before <wchar.h>. */
14802 #include <stddef.h>
14803 #include <signal.h>
14805 # include <stdio.h>
14807 # include <wchar.h>
14810 #include <limits.h>
14814 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_compile") 2>conftest.er1
14830 grep -v '^ *+' conftest.er1 >conftest.err
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } && {
14835 test -z "$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 } && test -s conftest.$ac_objext; then
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 ac_lo=`expr '(' $ac_mid ')' + 1`
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849 ?*) result=$ac_lo;;
14850 '') result=unknown ;;
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14860 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14861 included before <wchar.h>. */
14862 #include <stddef.h>
14863 #include <signal.h>
14865 # include <stdio.h>
14867 # include <wchar.h>
14870 #include <limits.h>
14871 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
14872 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
14874 #include <stdlib.h>
14879 FILE *f = fopen ("conftest.val", "w");
14882 if ((sizeof ($gltype) * CHAR_BIT) < 0)
14884 long int i = longval ();
14885 if (i != (sizeof ($gltype) * CHAR_BIT))
14887 fprintf (f, "%ld\n", i);
14891 unsigned long int i = ulongval ();
14892 if (i != (sizeof ($gltype) * CHAR_BIT))
14894 fprintf (f, "%lu\n", i);
14896 return ferror (f) || fclose (f) != 0;
14902 rm -f conftest$ac_exeext
14903 if { (ac_try="$ac_link"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_link") 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14913 { (case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_try") 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 result=`cat conftest.val`
14924 echo "$as_me: program exited with status $ac_status" >&5
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ( exit $ac_status )
14931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14934 eval gl_cv_bitsizeof_${gltype}=\$result
14937 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
14938 { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14940 eval result=\$gl_cv_bitsizeof_${gltype}
14941 if test $result = unknown; then
14944 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14945 cat >>confdefs.h <<_ACEOF
14946 #define BITSIZEOF_${GLTYPE} $result
14949 eval BITSIZEOF_${GLTYPE}=\$result
14959 for gltype in sig_atomic_t wchar_t wint_t ; do
14960 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
14961 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
14962 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 if test "$cross_compiling" = yes; then
14966 # Depending upon the size, compute the lo and hi bounds.
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14974 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14975 included before <wchar.h>. */
14976 #include <stddef.h>
14977 #include <signal.h>
14979 # include <stdio.h>
14981 # include <wchar.h>
14984 #include <limits.h>
14988 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14995 rm -f conftest.$ac_objext
14996 if { (ac_try="$ac_compile"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_compile") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest.$ac_objext; then
15014 cat >conftest.$ac_ext <<_ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15022 included before <wchar.h>. */
15023 #include <stddef.h>
15024 #include <signal.h>
15026 # include <stdio.h>
15028 # include <wchar.h>
15031 #include <limits.h>
15035 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15042 rm -f conftest.$ac_objext
15043 if { (ac_try="$ac_compile"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_compile") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest.$ac_objext; then
15059 ac_hi=$ac_mid; break
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_lo=`expr $ac_mid + 1`
15065 if test $ac_lo -le $ac_mid; then
15069 ac_mid=`expr 2 '*' $ac_mid + 1`
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 cat >conftest.$ac_ext <<_ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15085 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15086 included before <wchar.h>. */
15087 #include <stddef.h>
15088 #include <signal.h>
15090 # include <stdio.h>
15092 # include <wchar.h>
15095 #include <limits.h>
15099 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
15106 rm -f conftest.$ac_objext
15107 if { (ac_try="$ac_compile"
15108 case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_compile") 2>conftest.er1
15115 grep -v '^ *+' conftest.er1 >conftest.err
15117 cat conftest.err >&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } && {
15120 test -z "$ac_c_werror_flag" ||
15121 test ! -s conftest.err
15122 } && test -s conftest.$ac_objext; then
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15132 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15133 included before <wchar.h>. */
15134 #include <stddef.h>
15135 #include <signal.h>
15137 # include <stdio.h>
15139 # include <wchar.h>
15142 #include <limits.h>
15146 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_compile") 2>conftest.er1
15162 grep -v '^ *+' conftest.er1 >conftest.err
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } && {
15167 test -z "$ac_c_werror_flag" ||
15168 test ! -s conftest.err
15169 } && test -s conftest.$ac_objext; then
15170 ac_lo=$ac_mid; break
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_hi=`expr '(' $ac_mid ')' - 1`
15176 if test $ac_mid -le $ac_hi; then
15180 ac_mid=`expr 2 '*' $ac_mid`
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 # Binary search between lo and hi bounds.
15197 while test "x$ac_lo" != "x$ac_hi"; do
15198 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15199 cat >conftest.$ac_ext <<_ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15207 included before <wchar.h>. */
15208 #include <stddef.h>
15209 #include <signal.h>
15211 # include <stdio.h>
15213 # include <wchar.h>
15216 #include <limits.h>
15220 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15227 rm -f conftest.$ac_objext
15228 if { (ac_try="$ac_compile"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_compile") 2>conftest.er1
15236 grep -v '^ *+' conftest.er1 >conftest.err
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } && {
15241 test -z "$ac_c_werror_flag" ||
15242 test ! -s conftest.err
15243 } && test -s conftest.$ac_objext; then
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_lo=`expr '(' $ac_mid ')' + 1`
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255 ?*) result=$ac_lo;;
15256 '') result=unknown ;;
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15266 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15267 included before <wchar.h>. */
15268 #include <stddef.h>
15269 #include <signal.h>
15271 # include <stdio.h>
15273 # include <wchar.h>
15276 #include <limits.h>
15277 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
15278 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
15280 #include <stdlib.h>
15285 FILE *f = fopen ("conftest.val", "w");
15288 if ((sizeof ($gltype) * CHAR_BIT) < 0)
15290 long int i = longval ();
15291 if (i != (sizeof ($gltype) * CHAR_BIT))
15293 fprintf (f, "%ld\n", i);
15297 unsigned long int i = ulongval ();
15298 if (i != (sizeof ($gltype) * CHAR_BIT))
15300 fprintf (f, "%lu\n", i);
15302 return ferror (f) || fclose (f) != 0;
15308 rm -f conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15319 { (case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_try") 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 result=`cat conftest.val`
15330 echo "$as_me: program exited with status $ac_status" >&5
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ( exit $ac_status )
15337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15340 eval gl_cv_bitsizeof_${gltype}=\$result
15343 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
15344 { echo "$as_me:$LINENO: result: $ac_res" >&5
15345 echo "${ECHO_T}$ac_res" >&6; }
15346 eval result=\$gl_cv_bitsizeof_${gltype}
15347 if test $result = unknown; then
15350 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15351 cat >>confdefs.h <<_ACEOF
15352 #define BITSIZEOF_${GLTYPE} $result
15355 eval BITSIZEOF_${GLTYPE}=\$result
15364 for gltype in sig_atomic_t wchar_t wint_t ; do
15365 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
15366 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
15367 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 cat >conftest.$ac_ext <<_ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h. */
15377 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15378 included before <wchar.h>. */
15379 #include <stddef.h>
15380 #include <signal.h>
15382 # include <stdio.h>
15384 # include <wchar.h>
15387 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15396 rm -f conftest.$ac_objext
15397 if { (ac_try="$ac_compile"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_compile") 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && {
15410 test -z "$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15412 } && test -s conftest.$ac_objext; then
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 eval gl_cv_type_${gltype}_signed=\$result
15425 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
15426 { echo "$as_me:$LINENO: result: $ac_res" >&5
15427 echo "${ECHO_T}$ac_res" >&6; }
15428 eval result=\$gl_cv_type_${gltype}_signed
15429 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15430 if test "$result" = yes; then
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_SIGNED_${GLTYPE} 1
15435 eval HAVE_SIGNED_${GLTYPE}=1
15437 eval HAVE_SIGNED_${GLTYPE}=0
15442 gl_cv_type_ptrdiff_t_signed=yes
15443 gl_cv_type_size_t_signed=no
15444 if test $APPLE_UNIVERSAL_BUILD = 0; then
15449 for gltype in ptrdiff_t size_t ; do
15450 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
15451 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
15452 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 eval gl_cv_type_${gltype}_suffix=no
15456 eval result=\$gl_cv_type_${gltype}_signed
15457 if test "$result" = yes; then
15462 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15464 '') gltype1='int';;
15465 l) gltype1='long int';;
15466 ll) gltype1='long long int';;
15467 i64) gltype1='__int64';;
15468 u) gltype1='unsigned int';;
15469 ul) gltype1='unsigned long int';;
15470 ull) gltype1='unsigned long long int';;
15471 ui64)gltype1='unsigned __int64';;
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15480 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15481 included before <wchar.h>. */
15482 #include <stddef.h>
15483 #include <signal.h>
15485 # include <stdio.h>
15487 # include <wchar.h>
15490 extern $gltype foo;
15491 extern $gltype1 foo;
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_compile") 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } && {
15514 test -z "$ac_c_werror_flag" ||
15515 test ! -s conftest.err
15516 } && test -s conftest.$ac_objext; then
15517 eval gl_cv_type_${gltype}_suffix=\$glsuf
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 eval result=\$gl_cv_type_${gltype}_suffix
15527 test "$result" != no && break
15530 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
15531 { echo "$as_me:$LINENO: result: $ac_res" >&5
15532 echo "${ECHO_T}$ac_res" >&6; }
15533 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15534 eval result=\$gl_cv_type_${gltype}_suffix
15535 test "$result" = no && result=
15536 eval ${GLTYPE}_SUFFIX=\$result
15537 cat >>confdefs.h <<_ACEOF
15538 #define ${GLTYPE}_SUFFIX $result
15550 for gltype in sig_atomic_t wchar_t wint_t ; do
15551 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
15552 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
15553 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 eval gl_cv_type_${gltype}_suffix=no
15557 eval result=\$gl_cv_type_${gltype}_signed
15558 if test "$result" = yes; then
15563 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15565 '') gltype1='int';;
15566 l) gltype1='long int';;
15567 ll) gltype1='long long int';;
15568 i64) gltype1='__int64';;
15569 u) gltype1='unsigned int';;
15570 ul) gltype1='unsigned long int';;
15571 ull) gltype1='unsigned long long int';;
15572 ui64)gltype1='unsigned __int64';;
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15581 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15582 included before <wchar.h>. */
15583 #include <stddef.h>
15584 #include <signal.h>
15586 # include <stdio.h>
15588 # include <wchar.h>
15591 extern $gltype foo;
15592 extern $gltype1 foo;
15601 rm -f conftest.$ac_objext
15602 if { (ac_try="$ac_compile"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_compile") 2>conftest.er1
15610 grep -v '^ *+' conftest.er1 >conftest.err
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } && {
15615 test -z "$ac_c_werror_flag" ||
15616 test ! -s conftest.err
15617 } && test -s conftest.$ac_objext; then
15618 eval gl_cv_type_${gltype}_suffix=\$glsuf
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 eval result=\$gl_cv_type_${gltype}_suffix
15628 test "$result" != no && break
15631 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
15632 { echo "$as_me:$LINENO: result: $ac_res" >&5
15633 echo "${ECHO_T}$ac_res" >&6; }
15634 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15635 eval result=\$gl_cv_type_${gltype}_suffix
15636 test "$result" = no && result=
15637 eval ${GLTYPE}_SUFFIX=\$result
15638 cat >>confdefs.h <<_ACEOF
15639 #define ${GLTYPE}_SUFFIX $result
15652 for ac_header in inttypes.h
15654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15661 ac_res=`eval echo '${'$as_ac_Header'}'`
15662 { echo "$as_me:$LINENO: result: $ac_res" >&5
15663 echo "${ECHO_T}$ac_res" >&6; }
15665 # Is the header compilable?
15666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $ac_includes_default
15675 #include <$ac_header>
15677 rm -f conftest.$ac_objext
15678 if { (ac_try="$ac_compile"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_compile") 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } && {
15691 test -z "$ac_c_werror_flag" ||
15692 test ! -s conftest.err
15693 } && test -s conftest.$ac_objext; then
15694 ac_header_compiler=yes
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 ac_header_compiler=no
15702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15704 echo "${ECHO_T}$ac_header_compiler" >&6; }
15706 # Is the header present?
15707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 #include <$ac_header>
15717 if { (ac_try="$ac_cpp conftest.$ac_ext"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } >/dev/null && {
15730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15733 ac_header_preproc=yes
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 ac_header_preproc=no
15741 rm -f conftest.err conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15743 echo "${ECHO_T}$ac_header_preproc" >&6; }
15745 # So? What about this header?
15746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15752 ac_header_preproc=yes
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15768 ## ------------------------------ ##
15769 ## Report this to bug-tar@gnu.org ##
15770 ## ------------------------------ ##
15772 ) | sed "s/^/$as_me: WARNING: /" >&2
15775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 eval "$as_ac_Header=\$ac_header_preproc"
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783 { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15788 cat >>confdefs.h <<_ACEOF
15789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15796 if test $ac_cv_header_inttypes_h = yes; then
15797 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15798 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
15799 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <inttypes.h>
15822 rm -f conftest.$ac_objext
15823 if { (ac_try="$ac_compile"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_compile") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } && {
15836 test -z "$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15838 } && test -s conftest.$ac_objext; then
15839 gt_cv_inttypes_pri_broken=no
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 gt_cv_inttypes_pri_broken=yes
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15851 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
15853 if test "$gt_cv_inttypes_pri_broken" = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define PRI_MACROS_BROKEN 1
15859 PRI_MACROS_BROKEN=1
15861 PRI_MACROS_BROKEN=0
15865 { echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
15866 echo $ECHO_N "checking whether imaxabs is declared... $ECHO_C" >&6; }
15867 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 cat >conftest.$ac_ext <<_ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 $ac_includes_default
15888 rm -f conftest.$ac_objext
15889 if { (ac_try="$ac_compile"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_compile") 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } && {
15902 test -z "$ac_c_werror_flag" ||
15903 test ! -s conftest.err
15904 } && test -s conftest.$ac_objext; then
15905 ac_cv_have_decl_imaxabs=yes
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 ac_cv_have_decl_imaxabs=no
15913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
15916 echo "${ECHO_T}$ac_cv_have_decl_imaxabs" >&6; }
15917 if test $ac_cv_have_decl_imaxabs = yes; then
15919 cat >>confdefs.h <<_ACEOF
15920 #define HAVE_DECL_IMAXABS 1
15925 cat >>confdefs.h <<_ACEOF
15926 #define HAVE_DECL_IMAXABS 0
15933 { echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
15934 echo $ECHO_N "checking whether imaxdiv is declared... $ECHO_C" >&6; }
15935 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 $ac_includes_default
15956 rm -f conftest.$ac_objext
15957 if { (ac_try="$ac_compile"
15958 case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_compile") 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest.$ac_objext; then
15973 ac_cv_have_decl_imaxdiv=yes
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_cv_have_decl_imaxdiv=no
15981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15983 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
15984 echo "${ECHO_T}$ac_cv_have_decl_imaxdiv" >&6; }
15985 if test $ac_cv_have_decl_imaxdiv = yes; then
15987 cat >>confdefs.h <<_ACEOF
15988 #define HAVE_DECL_IMAXDIV 1
15993 cat >>confdefs.h <<_ACEOF
15994 #define HAVE_DECL_IMAXDIV 0
16001 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
16002 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
16003 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 $ac_includes_default
16024 rm -f conftest.$ac_objext
16025 if { (ac_try="$ac_compile"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_compile") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest.$ac_objext; then
16041 ac_cv_have_decl_strtoimax=yes
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 ac_cv_have_decl_strtoimax=no
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
16052 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
16053 if test $ac_cv_have_decl_strtoimax = yes; then
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_DECL_STRTOIMAX 1
16061 cat >>confdefs.h <<_ACEOF
16062 #define HAVE_DECL_STRTOIMAX 0
16069 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
16070 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
16071 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 $ac_includes_default
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_compile") 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && {
16106 test -z "$ac_c_werror_flag" ||
16107 test ! -s conftest.err
16108 } && test -s conftest.$ac_objext; then
16109 ac_cv_have_decl_strtoumax=yes
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_cv_have_decl_strtoumax=no
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
16120 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
16121 if test $ac_cv_have_decl_strtoumax = yes; then
16123 cat >>confdefs.h <<_ACEOF
16124 #define HAVE_DECL_STRTOUMAX 1
16129 cat >>confdefs.h <<_ACEOF
16130 #define HAVE_DECL_STRTOUMAX 0
16140 GNULIB_STRTOIMAX=0;
16141 GNULIB_STRTOUMAX=0;
16142 HAVE_DECL_IMAXABS=1;
16143 HAVE_DECL_IMAXDIV=1;
16144 HAVE_DECL_STRTOIMAX=1;
16145 HAVE_DECL_STRTOUMAX=1;
16150 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
16151 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
16152 if test "${ac_cv_gnu_library_2_1+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16162 #include <features.h>
16163 #ifdef __GNU_LIBRARY__
16164 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16171 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
16172 ac_cv_gnu_library_2_1=yes
16174 ac_cv_gnu_library_2_1=no
16181 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
16182 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
16184 GLIBC21="$ac_cv_gnu_library_2_1"
16197 { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
16198 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
16199 if test "${gl_cv_func_malloc_posix+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16213 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } && {
16235 test -z "$ac_c_werror_flag" ||
16236 test ! -s conftest.err
16237 } && test -s conftest.$ac_objext; then
16238 gl_cv_func_malloc_posix=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 gl_cv_func_malloc_posix=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
16250 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
16253 GNULIB_MALLOC_POSIX=0;
16254 GNULIB_REALLOC_POSIX=0;
16255 GNULIB_CALLOC_POSIX=0;
16257 GNULIB_GETLOADAVG=0;
16258 GNULIB_GETSUBOPT=0;
16270 HAVE_CALLOC_POSIX=1;
16272 HAVE_MALLOC_POSIX=1;
16274 HAVE_REALLOC_POSIX=1;
16281 HAVE_STRUCT_RANDOM_DATA=1;
16282 HAVE_SYS_LOADAVG_H=0;
16284 HAVE_DECL_GETLOADAVG=1;
16292 for ac_header in stdlib.h
16294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 ac_res=`eval echo '${'$as_ac_Header'}'`
16302 { echo "$as_me:$LINENO: result: $ac_res" >&5
16303 echo "${ECHO_T}$ac_res" >&6; }
16305 # Is the header compilable?
16306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16308 cat >conftest.$ac_ext <<_ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 $ac_includes_default
16315 #include <$ac_header>
16317 rm -f conftest.$ac_objext
16318 if { (ac_try="$ac_compile"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324 (eval "$ac_compile") 2>conftest.er1
16326 grep -v '^ *+' conftest.er1 >conftest.err
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && {
16331 test -z "$ac_c_werror_flag" ||
16332 test ! -s conftest.err
16333 } && test -s conftest.$ac_objext; then
16334 ac_header_compiler=yes
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ac_header_compiler=no
16342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344 echo "${ECHO_T}$ac_header_compiler" >&6; }
16346 # Is the header present?
16347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 #include <$ac_header>
16357 if { (ac_try="$ac_cpp conftest.$ac_ext"
16358 case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16365 grep -v '^ *+' conftest.er1 >conftest.err
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } >/dev/null && {
16370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16371 test ! -s conftest.err
16373 ac_header_preproc=yes
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_header_preproc=no
16381 rm -f conftest.err conftest.$ac_ext
16382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16383 echo "${ECHO_T}$ac_header_preproc" >&6; }
16385 # So? What about this header?
16386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16392 ac_header_preproc=yes
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16408 ## ------------------------------ ##
16409 ## Report this to bug-tar@gnu.org ##
16410 ## ------------------------------ ##
16412 ) | sed "s/^/$as_me: WARNING: /" >&2
16415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 eval "$as_ac_Header=\$ac_header_preproc"
16422 ac_res=`eval echo '${'$as_ac_Header'}'`
16423 { echo "$as_me:$LINENO: result: $ac_res" >&5
16424 echo "${ECHO_T}$ac_res" >&6; }
16427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16428 cat >>confdefs.h <<_ACEOF
16429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16436 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
16437 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
16438 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 if test "$cross_compiling" = yes; then
16442 ac_cv_func_malloc_0_nonnull=no
16444 cat >conftest.$ac_ext <<_ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16451 # include <stdlib.h>
16459 return ! malloc (0);
16464 rm -f conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_link") 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16475 { (case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_try") 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_func_malloc_0_nonnull=yes
16486 echo "$as_me: program exited with status $ac_status" >&5
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ( exit $ac_status )
16491 ac_cv_func_malloc_0_nonnull=no
16493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16498 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
16499 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
16500 if test $ac_cv_func_malloc_0_nonnull = yes; then
16501 gl_cv_func_malloc_0_nonnull=1
16503 gl_cv_func_malloc_0_nonnull=0
16508 cat >>confdefs.h <<_ACEOF
16509 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
16520 { echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
16521 echo $ECHO_N "checking for a traditional japanese locale... $ECHO_C" >&6; }
16522 if test "${gt_cv_locale_ja+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16533 #include <locale.h>
16535 #if HAVE_LANGINFO_CODESET
16536 # include <langinfo.h>
16538 #include <stdlib.h>
16539 #include <string.h>
16545 /* Check whether the given locale name is recognized by the system. */
16546 if (setlocale (LC_ALL, "") == NULL) return 1;
16547 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16548 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16549 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16550 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16551 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16552 some unit tests fail. */
16553 #if HAVE_LANGINFO_CODESET
16555 const char *cs = nl_langinfo (CODESET);
16556 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16561 /* On Cygwin, avoid locale names without encoding suffix, because the
16562 locale_charset() function relies on the encoding suffix. Note that
16563 LC_ALL is set on the command line. */
16564 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16566 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
16567 on Cygwin 1.5.x. */
16568 if (MB_CUR_MAX == 1)
16570 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16571 This excludes the UTF-8 encoding. */
16572 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16573 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16574 for (p = buf; *p != '\0'; p++)
16575 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16582 (eval $ac_link) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && test -s conftest$ac_exeext; then
16586 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16587 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16588 # configure script would override the LC_ALL setting. Likewise for
16589 # LC_CTYPE, which is also set at the beginning of the configure script.
16590 # Test for the AIX locale name.
16591 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16592 gt_cv_locale_ja=ja_JP
16594 # Test for the locale name with explicit encoding suffix.
16595 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16596 gt_cv_locale_ja=ja_JP.EUC-JP
16598 # Test for the HP-UX, OSF/1, NetBSD locale name.
16599 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16600 gt_cv_locale_ja=ja_JP.eucJP
16602 # Test for the IRIX, FreeBSD locale name.
16603 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16604 gt_cv_locale_ja=ja_JP.EUC
16606 # Test for the Solaris 7 locale name.
16607 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16610 # Special test for NetBSD 1.6.
16611 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16612 gt_cv_locale_ja=ja_JP.eucJP
16615 gt_cv_locale_ja=none
16626 { echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
16627 echo "${ECHO_T}$gt_cv_locale_ja" >&6; }
16628 LOCALE_JA=$gt_cv_locale_ja
16633 { echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
16634 echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6; }
16635 if test "${gt_cv_locale_fr_utf8+set}" = set; then
16636 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16646 #include <locale.h>
16648 #if HAVE_LANGINFO_CODESET
16649 # include <langinfo.h>
16651 #include <stdlib.h>
16652 #include <string.h>
16656 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
16657 imitates locale dependent behaviour by looking at the environment
16658 variables, and all locales use the UTF-8 encoding. */
16659 #if !(defined __BEOS__ || defined __HAIKU__)
16660 /* Check whether the given locale name is recognized by the system. */
16661 if (setlocale (LC_ALL, "") == NULL) return 1;
16662 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16663 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16664 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16665 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16666 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16667 some unit tests fail. */
16668 # if HAVE_LANGINFO_CODESET
16670 const char *cs = nl_langinfo (CODESET);
16671 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16676 /* On Cygwin, avoid locale names without encoding suffix, because the
16677 locale_charset() function relies on the encoding suffix. Note that
16678 LC_ALL is set on the command line. */
16679 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16681 /* Check whether in the abbreviation of the second month, the second
16682 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16683 two bytes long, with UTF-8 encoding. */
16684 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16685 if (strftime (buf, sizeof (buf), "%b", &t) < 4
16686 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16689 /* Check whether the decimal separator is a comma.
16690 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16691 are nl_langinfo(RADIXCHAR) are both ".". */
16692 if (localeconv () ->decimal_point[0] != ',') return 1;
16697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698 (eval $ac_link) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } && test -s conftest$ac_exeext; then
16702 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16703 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16704 # configure script would override the LC_ALL setting. Likewise for
16705 # LC_CTYPE, which is also set at the beginning of the configure script.
16706 # Test for the usual locale name.
16707 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16708 gt_cv_locale_fr_utf8=fr_FR
16710 # Test for the locale name with explicit encoding suffix.
16711 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16712 gt_cv_locale_fr_utf8=fr_FR.UTF-8
16714 # Test for the Solaris 7 locale name.
16715 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16716 gt_cv_locale_fr_utf8=fr.UTF-8
16719 gt_cv_locale_fr_utf8=none
16727 { echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
16728 echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6; }
16729 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16735 { echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
16736 echo $ECHO_N "checking for a transitional chinese locale... $ECHO_C" >&6; }
16737 if test "${gt_cv_locale_zh_CN+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16748 #include <locale.h>
16749 #include <stdlib.h>
16751 #if HAVE_LANGINFO_CODESET
16752 # include <langinfo.h>
16754 #include <stdlib.h>
16755 #include <string.h>
16761 /* Check whether the given locale name is recognized by the system. */
16762 if (setlocale (LC_ALL, "") == NULL) return 1;
16763 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16764 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16765 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16766 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16767 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16768 some unit tests fail. */
16769 #if HAVE_LANGINFO_CODESET
16771 const char *cs = nl_langinfo (CODESET);
16772 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16777 /* On Cygwin, avoid locale names without encoding suffix, because the
16778 locale_charset() function relies on the encoding suffix. Note that
16779 LC_ALL is set on the command line. */
16780 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16782 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16783 This excludes the UTF-8 encoding. */
16784 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16785 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16786 for (p = buf; *p != '\0'; p++)
16787 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16789 /* Check whether a typical GB18030 multibyte sequence is recognized as a
16790 single wide character. This excludes the GB2312 and GBK encodings. */
16791 if (mblen ("\203\062\332\066", 5) != 4)
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } && test -s conftest$ac_exeext; then
16802 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16803 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16804 # configure script would override the LC_ALL setting. Likewise for
16805 # LC_CTYPE, which is also set at the beginning of the configure script.
16806 # Test for the locale name without encoding suffix.
16807 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16808 gt_cv_locale_zh_CN=zh_CN
16810 # Test for the locale name with explicit encoding suffix.
16811 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16812 gt_cv_locale_zh_CN=zh_CN.GB18030
16815 gt_cv_locale_zh_CN=none
16819 # If there was a link error, due to mblen(), the system is so old that
16820 # it certainly doesn't have a chinese locale.
16821 gt_cv_locale_zh_CN=none
16826 { echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
16827 echo "${ECHO_T}$gt_cv_locale_zh_CN" >&6; }
16828 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16832 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
16833 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
16834 if test "${ac_cv_func_mbrtowc+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 cat >conftest.$ac_ext <<_ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16848 char const s[] = "";
16851 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (ac_try="$ac_link"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_link") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest$ac_exeext &&
16873 $as_test_x conftest$ac_exeext; then
16874 ac_cv_func_mbrtowc=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_cv_func_mbrtowc=no
16882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16883 conftest$ac_exeext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
16886 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
16887 if test $ac_cv_func_mbrtowc = yes; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_MBRTOWC 1
16899 GNULIB_RAWMEMCHR=0;
16902 GNULIB_STRCHRNUL=0;
16909 GNULIB_STRCASESTR=0;
16916 GNULIB_MBSCASECMP=0;
16917 GNULIB_MBSNCASECMP=0;
16918 GNULIB_MBSPCASECMP=0;
16919 GNULIB_MBSCASESTR=0;
16926 GNULIB_STRSIGNAL=0;
16927 GNULIB_STRVERSCMP=0;
16928 HAVE_DECL_MEMMEM=1;
16930 HAVE_DECL_MEMRCHR=1;
16935 HAVE_DECL_STRDUP=1;
16937 HAVE_DECL_STRNDUP=1;
16938 HAVE_DECL_STRNLEN=1;
16942 HAVE_DECL_STRTOK_R=1;
16943 HAVE_DECL_STRERROR=1;
16944 HAVE_DECL_STRSIGNAL=1;
16949 REPLACE_STRCASESTR=0;
16950 REPLACE_STRERROR=0;
16951 REPLACE_STRSIGNAL=0;
16953 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
16954 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
16955 if test "${ac_cv_have_decl_memrchr+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 cat >conftest.$ac_ext <<_ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 $ac_includes_default
16976 rm -f conftest.$ac_objext
16977 if { (ac_try="$ac_compile"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_compile") 2>conftest.er1
16985 grep -v '^ *+' conftest.er1 >conftest.err
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } && {
16990 test -z "$ac_c_werror_flag" ||
16991 test ! -s conftest.err
16992 } && test -s conftest.$ac_objext; then
16993 ac_cv_have_decl_memrchr=yes
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 ac_cv_have_decl_memrchr=no
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
17004 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
17005 if test $ac_cv_have_decl_memrchr = yes; then
17007 cat >>confdefs.h <<_ACEOF
17008 #define HAVE_DECL_MEMRCHR 1
17013 cat >>confdefs.h <<_ACEOF
17014 #define HAVE_DECL_MEMRCHR 0
17031 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17032 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17033 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 $ac_includes_default
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_compile") 2>conftest.er1
17063 grep -v '^ *+' conftest.er1 >conftest.err
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
17070 } && test -s conftest.$ac_objext; then
17071 ac_cv_have_decl_snprintf=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_have_decl_snprintf=no
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17082 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17083 if test $ac_cv_have_decl_snprintf = yes; then
17085 cat >>confdefs.h <<_ACEOF
17086 #define HAVE_DECL_SNPRINTF 1
17091 cat >>confdefs.h <<_ACEOF
17092 #define HAVE_DECL_SNPRINTF 0
17107 HAVE_DECL_STRNCASECMP=1;
17109 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
17110 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
17111 if test "${ac_cv_have_decl_strdup+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 cat >conftest.$ac_ext <<_ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120 $ac_includes_default
17132 rm -f conftest.$ac_objext
17133 if { (ac_try="$ac_compile"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_compile") 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest.$ac_objext; then
17149 ac_cv_have_decl_strdup=yes
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17154 ac_cv_have_decl_strdup=no
17157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
17160 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
17161 if test $ac_cv_have_decl_strdup = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define HAVE_DECL_STRDUP 1
17169 cat >>confdefs.h <<_ACEOF
17170 #define HAVE_DECL_STRDUP 0
17182 if test -z "$ERRNO_H"; then
17183 { echo "$as_me:$LINENO: checking for working strerror function" >&5
17184 echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; }
17185 if test "${gl_cv_func_working_strerror+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 if test "$cross_compiling" = yes; then
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <string.h>
17200 return !*strerror (-2);
17205 rm -f conftest.$ac_objext
17206 if { (ac_try="$ac_compile"
17207 case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_compile") 2>conftest.er1
17214 grep -v '^ *+' conftest.er1 >conftest.err
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && {
17219 test -z "$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17221 } && test -s conftest.$ac_objext; then
17222 gl_cv_func_working_strerror=yes
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 gl_cv_func_working_strerror=no
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17233 cat >conftest.$ac_ext <<_ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239 #include <string.h>
17244 return !*strerror (-2);
17249 rm -f conftest$ac_exeext
17250 if { (ac_try="$ac_link"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_link") 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 gl_cv_func_working_strerror=yes
17271 echo "$as_me: program exited with status $ac_status" >&5
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ( exit $ac_status )
17276 gl_cv_func_working_strerror=no
17278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
17285 echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; }
17286 if test $gl_cv_func_working_strerror = no; then
17292 if test $REPLACE_STRERROR = 1; then
17294 { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
17295 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
17296 if test "${ac_cv_have_decl_strerror+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 cat >conftest.$ac_ext <<_ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 $ac_includes_default
17317 rm -f conftest.$ac_objext
17318 if { (ac_try="$ac_compile"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_compile") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } && {
17331 test -z "$ac_c_werror_flag" ||
17332 test ! -s conftest.err
17333 } && test -s conftest.$ac_objext; then
17334 ac_cv_have_decl_strerror=yes
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_cv_have_decl_strerror=no
17342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17344 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
17345 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
17346 if test $ac_cv_have_decl_strerror = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define HAVE_DECL_STRERROR 1
17354 cat >>confdefs.h <<_ACEOF
17355 #define HAVE_DECL_STRERROR 0
17368 if test $ac_cv_header_sys_socket_h != yes; then
17370 for ac_header in winsock2.h
17372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 ac_res=`eval echo '${'$as_ac_Header'}'`
17380 { echo "$as_me:$LINENO: result: $ac_res" >&5
17381 echo "${ECHO_T}$ac_res" >&6; }
17383 # Is the header compilable?
17384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17386 cat >conftest.$ac_ext <<_ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17392 $ac_includes_default
17393 #include <$ac_header>
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_compile") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest.$ac_objext; then
17412 ac_header_compiler=yes
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_header_compiler=no
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17422 echo "${ECHO_T}$ac_header_compiler" >&6; }
17424 # Is the header present?
17425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <$ac_header>
17435 if { (ac_try="$ac_cpp conftest.$ac_ext"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } >/dev/null && {
17448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17449 test ! -s conftest.err
17451 ac_header_preproc=yes
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_header_preproc=no
17459 rm -f conftest.err conftest.$ac_ext
17460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17461 echo "${ECHO_T}$ac_header_preproc" >&6; }
17463 # So? What about this header?
17464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17470 ac_header_preproc=yes
17473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17486 ## ------------------------------ ##
17487 ## Report this to bug-tar@gnu.org ##
17488 ## ------------------------------ ##
17490 ) | sed "s/^/$as_me: WARNING: /" >&2
17493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 eval "$as_ac_Header=\$ac_header_preproc"
17500 ac_res=`eval echo '${'$as_ac_Header'}'`
17501 { echo "$as_me:$LINENO: result: $ac_res" >&5
17502 echo "${ECHO_T}$ac_res" >&6; }
17505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17532 if test $gl_cv_have_include_next = yes; then
17533 gl_cv_next_string_h='<'string.h'>'
17535 { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
17536 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
17537 if test "${gl_cv_next_string_h+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 if test $ac_cv_header_string_h = yes; then
17542 cat >conftest.$ac_ext <<_ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17548 #include <string.h>
17552 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17553 *) gl_absname_cpp="$ac_cpp" ;;
17555 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17556 sed -n '\#/string.h#{
17557 s#.*"\(.*/string.h\)".*#\1#
17563 gl_cv_next_string_h='<'string.h'>'
17567 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
17568 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
17570 NEXT_STRING_H=$gl_cv_next_string_h
17590 if test $gl_cv_have_include_next = yes; then
17591 gl_cv_next_strings_h='<'strings.h'>'
17593 { echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
17594 echo $ECHO_N "checking absolute name of <strings.h>... $ECHO_C" >&6; }
17595 if test "${gl_cv_next_strings_h+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 if test $ac_cv_header_strings_h = yes; then
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <strings.h>
17610 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17611 *) gl_absname_cpp="$ac_cpp" ;;
17613 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17614 sed -n '\#/strings.h#{
17615 s#.*"\(.*/strings.h\)".*#\1#
17621 gl_cv_next_strings_h='<'strings.h'>'
17625 { echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
17626 echo "${ECHO_T}$gl_cv_next_strings_h" >&6; }
17628 NEXT_STRINGS_H=$gl_cv_next_strings_h
17633 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
17634 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
17635 if test "${ac_cv_have_decl_strndup+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 $ac_includes_default
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest.$ac_objext; then
17673 ac_cv_have_decl_strndup=yes
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_have_decl_strndup=no
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
17684 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
17685 if test $ac_cv_have_decl_strndup = yes; then
17687 cat >>confdefs.h <<_ACEOF
17688 #define HAVE_DECL_STRNDUP 1
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_DECL_STRNDUP 0
17701 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
17702 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
17703 if test "${ac_cv_have_decl_strnlen+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 $ac_includes_default
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } && {
17738 test -z "$ac_c_werror_flag" ||
17739 test ! -s conftest.err
17740 } && test -s conftest.$ac_objext; then
17741 ac_cv_have_decl_strnlen=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_have_decl_strnlen=no
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
17752 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
17753 if test $ac_cv_have_decl_strnlen = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define HAVE_DECL_STRNLEN 1
17761 cat >>confdefs.h <<_ACEOF
17762 #define HAVE_DECL_STRNLEN 0
17774 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17775 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17776 REPLACE_STRPTIME=GNULIB_PORTCHECK;
17777 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17788 { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
17789 echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
17790 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 cat >conftest.$ac_ext <<_ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17804 static struct timespec x; x.tv_sec = x.tv_nsec;
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_compile") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } && {
17823 test -z "$ac_c_werror_flag" ||
17824 test ! -s conftest.err
17825 } && test -s conftest.$ac_objext; then
17826 gl_cv_sys_struct_timespec_in_time_h=yes
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 gl_cv_sys_struct_timespec_in_time_h=no
17834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17837 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17839 TIME_H_DEFINES_STRUCT_TIMESPEC=0
17840 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
17841 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17842 TIME_H_DEFINES_STRUCT_TIMESPEC=1
17844 { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
17845 echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
17846 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 #include <sys/time.h>
17860 static struct timespec x; x.tv_sec = x.tv_nsec;
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_compile") 2>conftest.er1
17874 grep -v '^ *+' conftest.er1 >conftest.err
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } && {
17879 test -z "$ac_c_werror_flag" ||
17880 test ! -s conftest.err
17881 } && test -s conftest.$ac_objext; then
17882 gl_cv_sys_struct_timespec_in_sys_time_h=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 gl_cv_sys_struct_timespec_in_sys_time_h=no
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17893 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17894 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17895 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
17915 if test $gl_cv_have_include_next = yes; then
17916 gl_cv_next_time_h='<'time.h'>'
17918 { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
17919 echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
17920 if test "${gl_cv_next_time_h+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 if test $ac_cv_header_time_h = yes; then
17925 cat >conftest.$ac_ext <<_ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17935 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17936 *) gl_absname_cpp="$ac_cpp" ;;
17938 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17939 sed -n '\#/time.h#{
17940 s#.*"\(.*/time.h\)".*#\1#
17946 gl_cv_next_time_h='<'time.h'>'
17950 { echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
17951 echo "${ECHO_T}$gl_cv_next_time_h" >&6; }
17953 NEXT_TIME_H=$gl_cv_next_time_h
17971 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
17972 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
17973 if test "${ac_cv_func_utime_null+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 rm -f conftest.data; >conftest.data
17977 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
17978 if test "$cross_compiling" = yes; then
17979 ac_cv_func_utime_null=no
17981 cat >conftest.$ac_ext <<_ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 $ac_includes_default
17988 #ifdef HAVE_UTIME_H
17989 # include <utime.h>
17995 return ! (stat ("conftest.data", &s) == 0
17996 && utime ("conftest.data", 0) == 0
17997 && stat ("conftest.data", &t) == 0
17998 && t.st_mtime >= s.st_mtime
17999 && t.st_mtime - s.st_mtime < 120);
18004 rm -f conftest$ac_exeext
18005 if { (ac_try="$ac_link"
18006 case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_link") 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18015 { (case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_try") 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024 ac_cv_func_utime_null=yes
18026 echo "$as_me: program exited with status $ac_status" >&5
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 ( exit $ac_status )
18031 ac_cv_func_utime_null=no
18033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18038 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
18039 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
18040 if test $ac_cv_func_utime_null = yes; then
18042 cat >>confdefs.h <<\_ACEOF
18043 #define HAVE_UTIME_NULL 1
18047 rm -f conftest.data
18058 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
18059 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
18060 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 cat >conftest.$ac_ext <<_ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 #if HAVE_SYS_TIME_H
18070 #include <sys/time.h>
18073 #ifdef HAVE_UTIME_H
18080 static struct utimbuf x; x.actime = x.modtime;
18085 rm -f conftest.$ac_objext
18086 if { (ac_try="$ac_compile"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_compile") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } && {
18099 test -z "$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18101 } && test -s conftest.$ac_objext; then
18102 gl_cv_sys_struct_utimbuf=yes
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 gl_cv_sys_struct_utimbuf=no
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
18113 echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
18115 if test $gl_cv_sys_struct_utimbuf = yes; then
18117 cat >>confdefs.h <<\_ACEOF
18118 #define HAVE_STRUCT_UTIMBUF 1
18124 { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
18125 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
18126 if test "${gl_cv_func_working_utimes+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 if test "$cross_compiling" = yes; then
18131 gl_cv_func_working_utimes=no
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18140 #include <sys/types.h>
18141 #include <sys/stat.h>
18143 #include <sys/time.h>
18145 #include <unistd.h>
18146 #include <stdlib.h>
18153 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
18155 char const *file = "conftest.utimes";
18160 int ok = ((f = fopen (file, "w"))
18162 && utimes (file, timeval) == 0
18163 && lstat (file, &sbuf) == 0
18164 && sbuf.st_atime == timeval[0].tv_sec
18165 && sbuf.st_mtime == timeval[1].tv_sec);
18171 ((f = fopen (file, "w"))
18173 && time (&now) != (time_t)-1
18174 && utimes (file, NULL) == 0
18175 && lstat (file, &sbuf) == 0
18176 && now - sbuf.st_atime <= 2
18177 && now - sbuf.st_mtime <= 2);
18182 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
18184 && utimes (file, NULL) == 0);
18191 rm -f conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_link") 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 gl_cv_func_working_utimes=yes
18213 echo "$as_me: program exited with status $ac_status" >&5
18214 echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18217 ( exit $ac_status )
18218 gl_cv_func_working_utimes=no
18220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18225 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
18226 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
18228 if test $gl_cv_func_working_utimes = yes; then
18230 cat >>confdefs.h <<\_ACEOF
18231 #define HAVE_WORKING_UTIMES 1
18247 { echo "$as_me:$LINENO: checking for wchar_t" >&5
18248 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
18249 if test "${gt_cv_c_wchar_t+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 cat >conftest.$ac_ext <<_ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 #include <stddef.h>
18259 wchar_t foo = (wchar_t)'\0';
18268 rm -f conftest.$ac_objext
18269 if { (ac_try="$ac_compile"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_compile") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } && {
18282 test -z "$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18284 } && test -s conftest.$ac_objext; then
18285 gt_cv_c_wchar_t=yes
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
18296 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
18297 if test $gt_cv_c_wchar_t = yes; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_WCHAR_T 1
18306 { echo "$as_me:$LINENO: checking for wint_t" >&5
18307 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
18308 if test "${gt_cv_c_wint_t+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18320 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18321 before <wchar.h>. */
18322 #include <stddef.h>
18326 wint_t foo = (wchar_t)'\0';
18335 rm -f conftest.$ac_objext
18336 if { (ac_try="$ac_compile"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_compile") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1 >conftest.err
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest.$ac_objext; then
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18363 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
18364 if test $gt_cv_c_wint_t = yes; then
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE_WINT_T 1
18373 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
18374 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
18375 if test "${gl_cv_header_inttypes_h+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 #include <sys/types.h>
18385 #include <inttypes.h>
18389 uintmax_t i = (uintmax_t) -1; return !i;
18394 rm -f conftest.$ac_objext
18395 if { (ac_try="$ac_compile"
18396 case "(($ac_try" in
18397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398 *) ac_try_echo=$ac_try;;
18400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18401 (eval "$ac_compile") 2>conftest.er1
18403 grep -v '^ *+' conftest.er1 >conftest.err
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } && {
18408 test -z "$ac_c_werror_flag" ||
18409 test ! -s conftest.err
18410 } && test -s conftest.$ac_objext; then
18411 gl_cv_header_inttypes_h=yes
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 gl_cv_header_inttypes_h=no
18419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18421 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
18422 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
18423 if test $gl_cv_header_inttypes_h = yes; then
18425 cat >>confdefs.h <<_ACEOF
18426 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18432 { echo "$as_me:$LINENO: checking for stdint.h" >&5
18433 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
18434 if test "${gl_cv_header_stdint_h+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 #include <sys/types.h>
18444 #include <stdint.h>
18448 uintmax_t i = (uintmax_t) -1; return !i;
18453 rm -f conftest.$ac_objext
18454 if { (ac_try="$ac_compile"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_compile") 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest.$ac_objext; then
18470 gl_cv_header_stdint_h=yes
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 gl_cv_header_stdint_h=no
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
18481 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
18482 if test $gl_cv_header_stdint_h = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define HAVE_STDINT_H_WITH_UINTMAX 1
18493 { echo "$as_me:$LINENO: checking for intmax_t" >&5
18494 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
18495 if test "${gt_cv_c_intmax_t+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18505 #include <stddef.h>
18506 #include <stdlib.h>
18507 #if HAVE_STDINT_H_WITH_UINTMAX
18508 #include <stdint.h>
18510 #if HAVE_INTTYPES_H_WITH_UINTMAX
18511 #include <inttypes.h>
18517 intmax_t x = -1; return !x;
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_compile") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } && {
18536 test -z "$ac_c_werror_flag" ||
18537 test ! -s conftest.err
18538 } && test -s conftest.$ac_objext; then
18539 gt_cv_c_intmax_t=yes
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 gt_cv_c_intmax_t=no
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18549 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
18550 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
18551 if test $gt_cv_c_intmax_t = yes; then
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_INTMAX_T 1
18559 test $ac_cv_type_long_long_int = yes \
18560 && ac_type='long long' \
18563 cat >>confdefs.h <<_ACEOF
18564 #define intmax_t $ac_type
18569 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18570 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
18571 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 $ac_includes_default
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_compile") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest.$ac_objext; then
18609 ac_cv_have_decl_vsnprintf=yes
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_have_decl_vsnprintf=no
18617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18619 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18620 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
18621 if test $ac_cv_have_decl_vsnprintf = yes; then
18623 cat >>confdefs.h <<_ACEOF
18624 #define HAVE_DECL_VSNPRINTF 1
18629 cat >>confdefs.h <<_ACEOF
18630 #define HAVE_DECL_VSNPRINTF 0
18645 GL_COND_LIBTOOL_TRUE=
18646 GL_COND_LIBTOOL_FALSE='#'
18648 GL_COND_LIBTOOL_TRUE='#'
18649 GL_COND_LIBTOOL_FALSE=
18652 gl_cond_libtool=false
18664 gl_source_base='.#bootmp/lib'
18670 if test $ac_cv_func_alloca_works = no; then
18674 # Define an additional variable used in the Makefile substitution.
18675 if test $ac_cv_working_alloca_h = yes; then
18676 { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18677 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
18678 if test "${gl_cv_rpl_alloca+set}" = set; then
18679 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18689 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18695 $EGREP "Need own alloca" >/dev/null 2>&1; then
18696 gl_cv_rpl_alloca=yes
18698 gl_cv_rpl_alloca=no
18704 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18705 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
18706 if test $gl_cv_rpl_alloca = yes; then
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_ALLOCA 1
18730 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
18746 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18756 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18761 cat >>confdefs.h <<\_ACEOF
18762 #define __GETOPT_PREFIX rpl_
18775 { echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
18776 echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6; }
18777 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 cat >conftest.$ac_ext <<_ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18791 #ifndef program_invocation_name
18792 (void) program_invocation_name;
18799 rm -f conftest.$ac_objext
18800 if { (ac_try="$ac_compile"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_compile") 2>conftest.er1
18808 grep -v '^ *+' conftest.er1 >conftest.err
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && {
18813 test -z "$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 } && test -s conftest.$ac_objext; then
18816 ac_cv_have_decl_program_invocation_name=yes
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_cv_have_decl_program_invocation_name=no
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
18827 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6; }
18828 if test $ac_cv_have_decl_program_invocation_name = yes; then
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
18836 cat >>confdefs.h <<\_ACEOF
18837 #define GNULIB_PROGRAM_INVOCATION_NAME 1
18842 { echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
18843 echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6; }
18844 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18858 #ifndef program_invocation_short_name
18859 (void) program_invocation_short_name;
18866 rm -f conftest.$ac_objext
18867 if { (ac_try="$ac_compile"
18868 case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_compile") 2>conftest.er1
18875 grep -v '^ *+' conftest.er1 >conftest.err
18877 cat conftest.err >&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } && {
18880 test -z "$ac_c_werror_flag" ||
18881 test ! -s conftest.err
18882 } && test -s conftest.$ac_objext; then
18883 ac_cv_have_decl_program_invocation_short_name=yes
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_cv_have_decl_program_invocation_short_name=no
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
18894 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6; }
18895 if test $ac_cv_have_decl_program_invocation_short_name = yes; then
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
18903 cat >>confdefs.h <<\_ACEOF
18904 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
18910 # Check if program_invocation_name and program_invocation_short_name
18911 # are defined elsewhere. It is improbable that only one of them will
18912 # be defined and other not, I prefer to stay on the safe side and to
18913 # test each one separately.
18914 { echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
18915 echo $ECHO_N "checking whether program_invocation_name is defined... $ECHO_C" >&6; }
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18926 program_invocation_name = "test";
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_link") 2>conftest.er1
18940 grep -v '^ *+' conftest.er1 >conftest.err
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } && {
18945 test -z "$ac_c_werror_flag" ||
18946 test ! -s conftest.err
18947 } && test -s conftest$ac_exeext &&
18948 $as_test_x conftest$ac_exeext; then
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE_PROGRAM_INVOCATION_NAME 1
18954 { echo "$as_me:$LINENO: result: yes" >&5
18955 echo "${ECHO_T}yes" >&6; }
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 { echo "$as_me:$LINENO: result: no" >&5
18961 echo "${ECHO_T}no" >&6; }
18964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18965 conftest$ac_exeext conftest.$ac_ext
18967 { echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
18968 echo $ECHO_N "checking whether program_invocation_short_name is defined... $ECHO_C" >&6; }
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18979 program_invocation_short_name = "test";
18984 rm -f conftest.$ac_objext conftest$ac_exeext
18985 if { (ac_try="$ac_link"
18986 case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_link") 2>conftest.er1
18993 grep -v '^ *+' conftest.er1 >conftest.err
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } && {
18998 test -z "$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 } && test -s conftest$ac_exeext &&
19001 $as_test_x conftest$ac_exeext; then
19003 cat >>confdefs.h <<\_ACEOF
19004 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
19007 { echo "$as_me:$LINENO: result: yes" >&5
19008 echo "${ECHO_T}yes" >&6; }
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 { echo "$as_me:$LINENO: result: no" >&5
19014 echo "${ECHO_T}no" >&6; }
19017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19018 conftest$ac_exeext conftest.$ac_ext
19091 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
19095 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
19106 gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
19128 if test $ac_cv_func_btowc = no; then
19134 { echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
19135 echo $ECHO_N "checking whether btowc(EOF) is correct... $ECHO_C" >&6; }
19136 if test "${gl_cv_func_btowc_eof+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 # Guess no on IRIX.
19142 irix*) gl_cv_func_btowc_eof="guessing no" ;;
19143 # Guess yes otherwise.
19144 *) gl_cv_func_btowc_eof="guessing yes" ;;
19146 if test $LOCALE_FR != none; then
19147 if test "$cross_compiling" = yes; then
19148 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19149 See \`config.log' for more details." >&5
19150 echo "$as_me: error: cannot run test program while cross compiling
19151 See \`config.log' for more details." >&2;}
19152 { (exit 1); exit 1; }; }
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19161 #include <locale.h>
19163 #include <string.h>
19167 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19169 if (btowc (EOF) != WEOF)
19175 rm -f conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_link") 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 gl_cv_func_btowc_eof=yes
19197 echo "$as_me: program exited with status $ac_status" >&5
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ( exit $ac_status )
19202 gl_cv_func_btowc_eof=no
19204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19211 { echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
19212 echo "${ECHO_T}$gl_cv_func_btowc_eof" >&6; }
19213 case "$gl_cv_func_btowc_eof" in
19215 *) REPLACE_BTOWC=1 ;;
19218 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
19231 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
19253 if test $ac_cv_func_canonicalize_file_name = no; then
19262 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
19265 cat >>confdefs.h <<\_ACEOF
19266 #define realpath rpl_realpath
19291 cat >>confdefs.h <<\_ACEOF
19292 #define GNULIB_CANONICALIZE_LGPL 1
19297 { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
19298 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
19299 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 #include <unistd.h>
19309 #include <limits.h>
19310 #if defined PATH_MAX || defined MAXPATHLEN
19311 have_arbitrary_file_name_length_limit
19314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19315 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
19316 gl_cv_have_arbitrary_file_name_length_limit=yes
19318 gl_cv_have_arbitrary_file_name_length_limit=no
19323 { echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
19324 echo "${ECHO_T}$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
19326 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
19335 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
19348 if test $ac_cv_func_chown_works = no; then
19350 cat >>confdefs.h <<\_ACEOF
19351 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
19356 # If chown has either of the above problems, then we need the wrapper.
19357 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
19358 : # no wrapper needed
19369 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
19372 { echo "$as_me:$LINENO: checking for fchown" >&5
19373 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_fchown+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 cat >conftest.$ac_ext <<_ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
19384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19385 #define fchown innocuous_fchown
19387 /* System header to define __stub macros and hopefully few prototypes,
19388 which can conflict with char fchown (); below.
19389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19390 <limits.h> exists even on freestanding compilers. */
19393 # include <limits.h>
19395 # include <assert.h>
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19407 /* The GNU C library defines this for functions which it implements
19408 to always fail with ENOSYS. Some functions are actually named
19409 something starting with __ and the normal name is an alias. */
19410 #if defined __stub_fchown || defined __stub___fchown
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>conftest.er1
19431 grep -v '^ *+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest$ac_exeext &&
19439 $as_test_x conftest$ac_exeext; then
19440 ac_cv_func_fchown=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_func_fchown=no
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449 conftest$ac_exeext conftest.$ac_ext
19451 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
19452 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
19453 if test $ac_cv_func_fchown = yes; then
19464 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
19478 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19479 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19481 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
19482 # programs in the package would end up linked with that potentially-shared
19483 # library, inducing unnecessary run-time overhead.
19484 gl_saved_libs=$LIBS
19485 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19486 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19487 if test "${ac_cv_search_clock_gettime+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 ac_func_search_save_LIBS=$LIBS
19491 cat >conftest.$ac_ext <<_ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19498 /* Override any GCC internal prototype to avoid an error.
19499 Use char because int might match the return type of a GCC
19500 builtin and then its argument prototype would still apply. */
19504 char clock_gettime ();
19508 return clock_gettime ();
19513 for ac_lib in '' rt posix4; do
19514 if test -z "$ac_lib"; then
19515 ac_res="none required"
19518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19520 rm -f conftest.$ac_objext conftest$ac_exeext
19521 if { (ac_try="$ac_link"
19522 case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_link") 2>conftest.er1
19529 grep -v '^ *+' conftest.er1 >conftest.err
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } && {
19534 test -z "$ac_c_werror_flag" ||
19535 test ! -s conftest.err
19536 } && test -s conftest$ac_exeext &&
19537 $as_test_x conftest$ac_exeext; then
19538 ac_cv_search_clock_gettime=$ac_res
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19548 if test "${ac_cv_search_clock_gettime+set}" = set; then
19552 if test "${ac_cv_search_clock_gettime+set}" = set; then
19555 ac_cv_search_clock_gettime=no
19557 rm conftest.$ac_ext
19558 LIBS=$ac_func_search_save_LIBS
19560 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19561 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19562 ac_res=$ac_cv_search_clock_gettime
19563 if test "$ac_res" != no; then
19564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19565 test "$ac_cv_search_clock_gettime" = "none required" ||
19566 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
19572 for ac_func in clock_gettime clock_settime
19574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19588 #define $ac_func innocuous_$ac_func
19590 /* System header to define __stub macros and hopefully few prototypes,
19591 which can conflict with char $ac_func (); below.
19592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19593 <limits.h> exists even on freestanding compilers. */
19596 # include <limits.h>
19598 # include <assert.h>
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply. */
19610 /* The GNU C library defines this for functions which it implements
19611 to always fail with ENOSYS. Some functions are actually named
19612 something starting with __ and the normal name is an alias. */
19613 #if defined __stub_$ac_func || defined __stub___$ac_func
19620 return $ac_func ();
19625 rm -f conftest.$ac_objext conftest$ac_exeext
19626 if { (ac_try="$ac_link"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_link") 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && {
19639 test -z "$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest$ac_exeext &&
19642 $as_test_x conftest$ac_exeext; then
19643 eval "$as_ac_var=yes"
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 eval "$as_ac_var=no"
19651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19652 conftest$ac_exeext conftest.$ac_ext
19654 ac_res=`eval echo '${'$as_ac_var'}'`
19655 { echo "$as_me:$LINENO: result: $ac_res" >&5
19656 echo "${ECHO_T}$ac_res" >&6; }
19657 if test `eval echo '${'$as_ac_var'}'` = yes; then
19658 cat >>confdefs.h <<_ACEOF
19659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19665 LIBS=$gl_saved_libs
19683 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
19690 cat >>confdefs.h <<\_ACEOF
19691 #define GNULIB_CLOSE_STREAM 1
19704 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
19709 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
19710 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
19711 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 if test "$cross_compiling" = yes; then
19715 gl_cv_struct_dirent_d_ino=no
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 #include <sys/types.h>
19724 #include <sys/stat.h>
19725 #include <dirent.h>
19730 DIR *dp = opendir (".");
19737 && stat (e->d_name, &st) == 0
19738 && e->d_ino == st.st_ino);
19743 rm -f conftest$ac_exeext
19744 if { (ac_try="$ac_link"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750 (eval "$ac_link") 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19754 { (case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_try") 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 gl_cv_struct_dirent_d_ino=yes
19765 echo "$as_me: program exited with status $ac_status" >&5
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 ( exit $ac_status )
19770 gl_cv_struct_dirent_d_ino=no
19772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19777 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
19778 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
19779 if test $gl_cv_struct_dirent_d_ino = yes; then
19781 cat >>confdefs.h <<\_ACEOF
19782 #define D_INO_IN_DIRENT 1
19802 if test $gl_cv_have_include_next = yes; then
19803 gl_cv_next_dirent_h='<'dirent.h'>'
19805 { echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
19806 echo $ECHO_N "checking absolute name of <dirent.h>... $ECHO_C" >&6; }
19807 if test "${gl_cv_next_dirent_h+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 if test $ac_cv_header_dirent_h = yes; then
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <dirent.h>
19822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19823 *) gl_absname_cpp="$ac_cpp" ;;
19825 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19826 sed -n '\#/dirent.h#{
19827 s#.*"\(.*/dirent.h\)".*#\1#
19833 gl_cv_next_dirent_h='<'dirent.h'>'
19837 { echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
19838 echo "${ECHO_T}$gl_cv_next_dirent_h" >&6; }
19840 NEXT_DIRENT_H=$gl_cv_next_dirent_h
19849 DIRENT_H='dirent.h'
19858 for ac_func in dirfd
19860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19874 #define $ac_func innocuous_$ac_func
19876 /* System header to define __stub macros and hopefully few prototypes,
19877 which can conflict with char $ac_func (); below.
19878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19879 <limits.h> exists even on freestanding compilers. */
19882 # include <limits.h>
19884 # include <assert.h>
19889 /* Override any GCC internal prototype to avoid an error.
19890 Use char because int might match the return type of a GCC
19891 builtin and then its argument prototype would still apply. */
19896 /* The GNU C library defines this for functions which it implements
19897 to always fail with ENOSYS. Some functions are actually named
19898 something starting with __ and the normal name is an alias. */
19899 #if defined __stub_$ac_func || defined __stub___$ac_func
19906 return $ac_func ();
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_link") 2>conftest.er1
19920 grep -v '^ *+' conftest.er1 >conftest.err
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } && {
19925 test -z "$ac_c_werror_flag" ||
19926 test ! -s conftest.err
19927 } && test -s conftest$ac_exeext &&
19928 $as_test_x conftest$ac_exeext; then
19929 eval "$as_ac_var=yes"
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 eval "$as_ac_var=no"
19937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19938 conftest$ac_exeext conftest.$ac_ext
19940 ac_res=`eval echo '${'$as_ac_var'}'`
19941 { echo "$as_me:$LINENO: result: $ac_res" >&5
19942 echo "${ECHO_T}$ac_res" >&6; }
19943 if test `eval echo '${'$as_ac_var'}'` = yes; then
19944 cat >>confdefs.h <<_ACEOF
19945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19951 { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19952 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
19953 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 cat >conftest.$ac_ext <<_ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 #include <sys/types.h>
19963 #include <dirent.h>
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest.$ac_objext; then
19993 ac_cv_have_decl_dirfd=yes
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_cv_have_decl_dirfd=no
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20004 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
20005 if test $ac_cv_have_decl_dirfd = yes; then
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_DECL_DIRFD 1
20013 cat >>confdefs.h <<_ACEOF
20014 #define HAVE_DECL_DIRFD 0
20021 if test $ac_cv_have_decl_dirfd = no; then
20025 { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20026 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
20027 if test "${gl_cv_func_dirfd_macro+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20037 #include <sys/types.h>
20038 #include <dirent.h>
20040 dirent_header_defines_dirfd
20043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20045 gl_cv_func_dirfd_macro=yes
20047 gl_cv_func_dirfd_macro=no
20052 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
20053 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
20055 # Use the replacement only if we have no function, macro,
20056 # or declaration with that name.
20057 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
20068 for ac_func in dirfd
20070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20084 #define $ac_func innocuous_$ac_func
20086 /* System header to define __stub macros and hopefully few prototypes,
20087 which can conflict with char $ac_func (); below.
20088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20089 <limits.h> exists even on freestanding compilers. */
20092 # include <limits.h>
20094 # include <assert.h>
20099 /* Override any GCC internal prototype to avoid an error.
20100 Use char because int might match the return type of a GCC
20101 builtin and then its argument prototype would still apply. */
20106 /* The GNU C library defines this for functions which it implements
20107 to always fail with ENOSYS. Some functions are actually named
20108 something starting with __ and the normal name is an alias. */
20109 #if defined __stub_$ac_func || defined __stub___$ac_func
20116 return $ac_func ();
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (ac_try="$ac_link"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_link") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest$ac_exeext &&
20138 $as_test_x conftest$ac_exeext; then
20139 eval "$as_ac_var=yes"
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 eval "$as_ac_var=no"
20147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20148 conftest$ac_exeext conftest.$ac_ext
20150 ac_res=`eval echo '${'$as_ac_var'}'`
20151 { echo "$as_me:$LINENO: result: $ac_res" >&5
20152 echo "${ECHO_T}$ac_res" >&6; }
20153 if test `eval echo '${'$as_ac_var'}'` = yes; then
20154 cat >>confdefs.h <<_ACEOF
20155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20160 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20166 { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20167 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
20168 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 dirfd_save_CFLAGS=$CFLAGS
20173 for ac_expr in d_fd dd_fd; do
20175 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 #include <sys/types.h>
20183 #include <dirent.h>
20187 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20192 rm -f conftest.$ac_objext
20193 if { (ac_try="$ac_compile"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_compile") 2>conftest.er1
20201 grep -v '^ *+' conftest.er1 >conftest.err
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } && {
20206 test -z "$ac_c_werror_flag" ||
20207 test ! -s conftest.err
20208 } && test -s conftest.$ac_objext; then
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 CFLAGS=$dirfd_save_CFLAGS
20220 test "$dir_fd_found" = yes && break
20222 test "$dir_fd_found" = yes || ac_expr=no_such_member
20224 gl_cv_sys_dir_fd_member_name=$ac_expr
20228 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
20229 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
20230 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
20254 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
20264 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
20274 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
20283 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
20284 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
20285 if test "${gl_cv_double_slash_root+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20288 if test x"$cross_compiling" = xyes ; then
20289 # When cross-compiling, there is no way to tell whether // is special
20290 # short of a list of hosts. However, the only known hosts to date
20291 # that have a distinct // are Apollo DomainOS (too old to port to),
20292 # Cygwin, and z/OS. If anyone knows of another system for which // has
20293 # special semantics and is distinct from /, please report it to
20294 # <bug-gnulib@gnu.org>.
20296 *-cygwin | i370-ibm-openedition)
20297 gl_cv_double_slash_root=yes ;;
20299 # Be optimistic and assume that / and // are the same when we
20301 gl_cv_double_slash_root='unknown, assuming no' ;;
20304 set x `ls -di / // 2>/dev/null`
20305 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20306 gl_cv_double_slash_root=no
20308 gl_cv_double_slash_root=yes
20312 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
20313 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
20314 if test "$gl_cv_double_slash_root" = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
20330 if test $ac_cv_func_dup2 = no; then
20340 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20353 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
20354 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
20355 if test "${gt_cv_var_environ_declaration+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 cat >conftest.$ac_ext <<_ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20365 #include <unistd.h>
20366 extern struct { int foo; } environ;
20375 rm -f conftest.$ac_objext
20376 if { (ac_try="$ac_compile"
20377 case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_compile") 2>conftest.er1
20384 grep -v '^ *+' conftest.er1 >conftest.err
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } && {
20389 test -z "$ac_c_werror_flag" ||
20390 test ! -s conftest.err
20391 } && test -s conftest.$ac_objext; then
20392 gt_cv_var_environ_declaration=no
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 gt_cv_var_environ_declaration=yes
20400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20403 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
20404 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
20405 if test $gt_cv_var_environ_declaration = yes; then
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_ENVIRON_DECL 1
20414 if test $gt_cv_var_environ_declaration != yes; then
20415 HAVE_DECL_ENVIRON=0
20436 { echo "$as_me:$LINENO: checking for error_at_line" >&5
20437 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
20438 if test "${ac_cv_lib_error_at_line+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 cat >conftest.$ac_ext <<_ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20451 error_at_line (0, 0, "", 0, "an error occurred");
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest$ac_exeext &&
20473 $as_test_x conftest$ac_exeext; then
20474 ac_cv_lib_error_at_line=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_cv_lib_error_at_line=no
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483 conftest$ac_exeext conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20486 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
20487 if test $ac_cv_lib_error_at_line = no; then
20496 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20507 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20511 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20522 gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
20534 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
20548 if test $ac_cv_func_fchdir = no; then
20558 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
20562 cat >>confdefs.h <<\_ACEOF
20563 #define FCHDIR_REPLACEMENT 1
20568 if test $REPLACE_OPEN != 1; then
20577 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
20588 if test $REPLACE_CLOSE != 1; then
20597 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
20603 if test $REPLACE_FCLOSE != 1; then
20612 gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
20617 LIB_CLOSE="-lws2_32"
20622 DIRENT_H='dirent.h'
20638 { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
20639 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
20640 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 if test "$cross_compiling" = yes; then
20644 gl_cv_header_working_fcntl_h=cross-compiling
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <sys/types.h>
20653 #include <sys/stat.h>
20654 #include <unistd.h>
20657 #define O_NOATIME 0
20660 #define O_NOFOLLOW 0
20662 static int const constants[] =
20664 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20665 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20672 int status = !constants;
20674 static char const sym[] = "conftest.sym";
20675 if (symlink (".", sym) != 0
20676 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
20680 static char const file[] = "confdefs.h";
20681 int fd = open (file, O_RDONLY | O_NOATIME);
20683 struct stat st0, st1;
20685 || fstat (fd, &st0) != 0
20687 || read (fd, &c, 1) != 1
20689 || stat (file, &st1) != 0
20690 || st0.st_atime != st1.st_atime)
20698 rm -f conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_link") 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20709 { (case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_try") 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 gl_cv_header_working_fcntl_h=yes
20720 echo "$as_me: program exited with status $ac_status" >&5
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ( exit $ac_status )
20726 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20727 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20728 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20729 *) gl_cv_header_working_fcntl_h='no';;
20732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
20738 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
20740 case $gl_cv_header_working_fcntl_h in #(
20741 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20745 cat >>confdefs.h <<_ACEOF
20746 #define HAVE_WORKING_O_NOATIME $ac_val
20750 case $gl_cv_header_working_fcntl_h in #(
20751 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20755 cat >>confdefs.h <<_ACEOF
20756 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20771 if test $gl_cv_have_include_next = yes; then
20772 gl_cv_next_fcntl_h='<'fcntl.h'>'
20774 { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
20775 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
20776 if test "${gl_cv_next_fcntl_h+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 if test $ac_cv_header_fcntl_h = yes; then
20781 cat >conftest.$ac_ext <<_ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20791 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20792 *) gl_absname_cpp="$ac_cpp" ;;
20794 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20795 sed -n '\#/fcntl.h#{
20796 s#.*"\(.*/fcntl.h\)".*#\1#
20802 gl_cv_next_fcntl_h='<'fcntl.h'>'
20806 { echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
20807 echo "${ECHO_T}$gl_cv_next_fcntl_h" >&6; }
20809 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20825 gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
20835 gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
20840 cat >>confdefs.h <<\_ACEOF
20841 #define GNULIB_FCNTL_SAFER 1
20846 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20847 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20848 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 $ac_includes_default
20861 static struct stat ac_aggr;
20862 if (ac_aggr.st_blocks)
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20885 ac_cv_member_struct_stat_st_blocks=yes
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 $ac_includes_default
20900 static struct stat ac_aggr;
20901 if (sizeof ac_aggr.st_blocks)
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_compile") 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
20924 ac_cv_member_struct_stat_st_blocks=yes
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_cv_member_struct_stat_st_blocks=no
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20939 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20941 cat >>confdefs.h <<_ACEOF
20942 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_ST_BLOCKS 1
20959 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
20964 if test $ac_cv_member_struct_stat_st_blocks = no; then
20994 if test $gl_cv_have_include_next = yes; then
20995 gl_cv_next_float_h='<'float.h'>'
20997 { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
20998 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
20999 if test "${gl_cv_next_float_h+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21003 if test $ac_cv_header_float_h = yes; then
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21014 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21015 *) gl_absname_cpp="$ac_cpp" ;;
21017 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21018 sed -n '\#/float.h#{
21019 s#.*"\(.*/float.h\)".*#\1#
21025 gl_cv_next_float_h='<'float.h'>'
21029 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
21030 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
21032 NEXT_FLOAT_H=$gl_cv_next_float_h
21040 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
21045 { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
21046 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
21047 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 if test "$cross_compiling" = yes; then
21051 ac_cv_func_fnmatch_gnu=cross
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <fnmatch.h>
21061 y (char const *pattern, char const *string, int flags)
21063 return fnmatch (pattern, string, flags) == 0;
21066 n (char const *pattern, char const *string, int flags)
21068 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
21074 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
21075 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
21076 static char const A_1[] = { 'A' - 1, 0 };
21077 static char const A01[] = { 'A' + 1, 0 };
21078 static char const a_1[] = { 'a' - 1, 0 };
21079 static char const a01[] = { 'a' + 1, 0 };
21080 static char const bs_1[] = { '\\\\' - 1, 0 };
21081 static char const bs01[] = { '\\\\' + 1, 0 };
21084 && y ("a*", "abc", 0)
21085 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
21086 && y ("a\\\\bc", "abc", 0)
21087 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
21088 && y ("*x", ".x", 0)
21089 && n ("*x", ".x", FNM_PERIOD)
21090 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
21091 && y (apat, "\\\\", 0) && y (apat, "a", 0)
21092 && n (Apat, A_1, 0) == ('A' < '\\\\')
21093 && n (apat, a_1, 0) == ('a' < '\\\\')
21094 && y (Apat, A01, 0) == ('A' < '\\\\')
21095 && y (apat, a01, 0) == ('a' < '\\\\')
21096 && y (Apat, bs_1, 0) == ('A' < '\\\\')
21097 && y (apat, bs_1, 0) == ('a' < '\\\\')
21098 && n (Apat, bs01, 0) == ('A' < '\\\\')
21099 && n (apat, bs01, 0) == ('a' < '\\\\')
21100 && y ("xxXX", "xXxX", FNM_CASEFOLD)
21101 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
21102 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
21103 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
21104 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
21105 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
21110 rm -f conftest$ac_exeext
21111 if { (ac_try="$ac_link"
21112 case "(($ac_try" in
21113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114 *) ac_try_echo=$ac_try;;
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117 (eval "$ac_link") 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21121 { (case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_try") 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_cv_func_fnmatch_gnu=yes
21132 echo "$as_me: program exited with status $ac_status" >&5
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ( exit $ac_status )
21137 ac_cv_func_fnmatch_gnu=no
21139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21144 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
21145 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
21146 if test $ac_cv_func_fnmatch_gnu = yes; then
21147 rm -f lib/fnmatch.h
21149 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
21150 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
21151 if test "${ac_cv_have_decl_isblank+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 cat >conftest.$ac_ext <<_ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_compile") 2>conftest.er1
21182 grep -v '^ *+' conftest.er1 >conftest.err
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest.$ac_objext; then
21190 ac_cv_have_decl_isblank=yes
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21195 ac_cv_have_decl_isblank=no
21198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
21201 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
21202 if test $ac_cv_have_decl_isblank = yes; then
21204 cat >>confdefs.h <<_ACEOF
21205 #define HAVE_DECL_ISBLANK 1
21210 cat >>confdefs.h <<_ACEOF
21211 #define HAVE_DECL_ISBLANK 0
21252 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
21254 FNMATCH_H=fnmatch.h
21259 if test $ac_cv_func_fnmatch_gnu != yes; then
21261 cat >>confdefs.h <<\_ACEOF
21262 #define fnmatch gnu_fnmatch
21282 # include <stdio.h>
21283 # if HAVE_STDIO_EXT_H
21284 # include <stdio_ext.h>
21287 { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
21288 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
21289 if test "${ac_cv_have_decl___fpending+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_compile") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest.$ac_objext; then
21328 ac_cv_have_decl___fpending=yes
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_cv_have_decl___fpending=no
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
21339 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
21340 if test $ac_cv_have_decl___fpending = yes; then
21342 cat >>confdefs.h <<_ACEOF
21343 #define HAVE_DECL___FPENDING 1
21348 cat >>confdefs.h <<_ACEOF
21349 #define HAVE_DECL___FPENDING 0
21356 if test $ac_cv_func___fpending = no; then
21357 { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
21358 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
21359 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 'fp->_IO_write_ptr - fp->_IO_write_base' \
21368 '# traditional Unix' \
21369 'fp->_ptr - fp->_base' \
21372 'fp->_p - fp->_bf._base' \
21374 '# SCO, Unixware' \
21375 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21378 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21381 'fp->__bufp - fp->__buffer' \
21383 '# old glibc iostream?' \
21384 'fp->_pptr - fp->_pbase' \
21387 'fp->_ptr - fp->_buffer' \
21390 '(*fp)->_ptr - (*fp)->_base' \
21392 '# e.g., DGUX R4.11; the info is not available' \
21396 # Skip each embedded comment.
21397 case "$ac_expr" in '#'*) continue;; esac
21399 cat >conftest.$ac_ext <<_ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21410 FILE *fp = stdin; (void) ($ac_expr);
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442 test "$fp_done" = yes && break
21445 ac_cv_sys_pending_output_n_bytes=$ac_expr
21449 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
21450 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
21452 cat >>confdefs.h <<_ACEOF
21453 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21464 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21475 { echo "$as_me:$LINENO: checking for fseeko" >&5
21476 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
21477 if test "${gl_cv_func_fseeko+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21491 fseeko (stdin, 0, 0);
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_link") 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest$ac_exeext &&
21513 $as_test_x conftest$ac_exeext; then
21514 gl_cv_func_fseeko=yes
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 gl_cv_func_fseeko=no
21522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21523 conftest$ac_exeext conftest.$ac_ext
21526 { echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
21527 echo "${ECHO_T}$gl_cv_func_fseeko" >&6; }
21528 if test $gl_cv_func_fseeko = no; then
21539 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21544 elif test $gl_cv_var_stdin_large_offset = no; then
21554 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
21574 if test $ac_cv_func_ftruncate = no; then
21584 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
21588 for ac_func in chsize
21590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21604 #define $ac_func innocuous_$ac_func
21606 /* System header to define __stub macros and hopefully few prototypes,
21607 which can conflict with char $ac_func (); below.
21608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21609 <limits.h> exists even on freestanding compilers. */
21612 # include <limits.h>
21614 # include <assert.h>
21619 /* Override any GCC internal prototype to avoid an error.
21620 Use char because int might match the return type of a GCC
21621 builtin and then its argument prototype would still apply. */
21626 /* The GNU C library defines this for functions which it implements
21627 to always fail with ENOSYS. Some functions are actually named
21628 something starting with __ and the normal name is an alias. */
21629 #if defined __stub_$ac_func || defined __stub___$ac_func
21636 return $ac_func ();
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648 (eval "$ac_link") 2>conftest.er1
21650 grep -v '^ *+' conftest.er1 >conftest.err
21652 cat conftest.err >&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && {
21655 test -z "$ac_c_werror_flag" ||
21656 test ! -s conftest.err
21657 } && test -s conftest$ac_exeext &&
21658 $as_test_x conftest$ac_exeext; then
21659 eval "$as_ac_var=yes"
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 eval "$as_ac_var=no"
21667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668 conftest$ac_exeext conftest.$ac_ext
21670 ac_res=`eval echo '${'$as_ac_var'}'`
21671 { echo "$as_me:$LINENO: result: $ac_res" >&5
21672 echo "${ECHO_T}$ac_res" >&6; }
21673 if test `eval echo '${'$as_ac_var'}'` = yes; then
21674 cat >>confdefs.h <<_ACEOF
21675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21684 # Yes, we know mingw lacks ftruncate.
21687 # If someone lacks ftruncate, make configure fail, and request
21688 # a bug report to inform us about it.
21689 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
21690 { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
21691 Please report this, along with the output of \"uname -a\", to the
21692 bug-coreutils@gnu.org mailing list. To continue past this point,
21693 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21694 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21695 See \`config.log' for more details." >&5
21696 echo "$as_me: error: Your system lacks the ftruncate function.
21697 Please report this, along with the output of \"uname -a\", to the
21698 bug-coreutils@gnu.org mailing list. To continue past this point,
21699 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21700 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21701 See \`config.log' for more details." >&2;}
21702 { (exit 1); exit 1; }; }
21716 case $gl_cv_func_getcwd_null in
21724 { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
21725 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
21726 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 # Arrange for deletion of the temporary directory this test creates.
21730 ac_clean_files="$ac_clean_files confdir3"
21731 if test "$cross_compiling" = yes; then
21732 gl_cv_func_getcwd_path_max=no
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21742 #include <stdlib.h>
21743 #include <unistd.h>
21744 #include <string.h>
21745 #include <limits.h>
21746 #include <sys/stat.h>
21747 #include <sys/types.h>
21751 # define AT_FDCWD 0
21753 #ifdef ENAMETOOLONG
21754 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
21756 # define is_ENAMETOOLONG(x) 0
21759 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
21763 # define S_IRWXU 0700
21766 /* The length of this name must be 8. */
21767 #define DIR_NAME "confdir3"
21768 #define DIR_NAME_LEN 8
21769 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
21771 /* The length of "../". */
21772 #define DOTDOTSLASH_LEN 3
21774 /* Leftover bytes in the buffer, to work around library or OS bugs. */
21775 #define BUF_SLOP 20
21781 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
21782 at least not on a local file system. And if we were to start worrying
21783 about remote file systems, we'd have to enable the wrapper function
21784 all of the time, just to be safe. That's not worth the cost. */
21786 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
21787 - DIR_NAME_SIZE - BUF_SLOP) \
21789 /* FIXME: Assuming there's a system for which this is true,
21790 this should be done in a compile test. */
21793 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
21794 + DIR_NAME_SIZE + BUF_SLOP];
21795 char *cwd = getcwd (buf, PATH_MAX);
21796 size_t initial_cwd_len;
21799 size_t n_chdirs = 0;
21804 cwd_len = initial_cwd_len = strlen (cwd);
21808 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
21811 cwd_len += DIR_NAME_SIZE;
21812 /* If mkdir or chdir fails, it could be that this system cannot create
21813 any file with an absolute name longer than PATH_MAX, such as cygwin.
21814 If so, leave fail as 0, because the current working directory can't
21815 be too long for getcwd if it can't even be created. For other
21816 errors, be pessimistic and consider that as a failure, too. */
21817 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
21819 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21824 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
21826 c = getcwd (buf, PATH_MAX);
21827 if (!c && errno == ENOENT)
21832 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21839 if (dotdot_max <= cwd_len - initial_cwd_len)
21841 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
21843 c = getcwd (buf, cwd_len + 1);
21846 if (! (errno == ERANGE || errno == ENOENT
21847 || is_ENAMETOOLONG (errno)))
21852 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
21860 if (c && strlen (c) != cwd_len)
21868 /* Leaving behind such a deep directory is not polite.
21869 So clean up here, right away, even though the driving
21870 shell script would also clean up. */
21874 /* Try rmdir first, in case the chdir failed. */
21876 for (i = 0; i <= n_chdirs; i++)
21878 if (chdir ("..") < 0)
21880 if (rmdir (DIR_NAME) != 0)
21890 rm -f conftest$ac_exeext
21891 if { (ac_try="$ac_link"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_link") 2>&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21901 { (case "(($ac_try" in
21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903 *) ac_try_echo=$ac_try;;
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906 (eval "$ac_try") 2>&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; }; then
21910 gl_cv_func_getcwd_path_max=yes
21912 echo "$as_me: program exited with status $ac_status" >&5
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ( exit $ac_status )
21918 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
21919 *) gl_cv_func_getcwd_path_max=no;;
21922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21928 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
21929 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
21930 case $gl_cv_func_getcwd_path_max in
21933 cat >>confdefs.h <<\_ACEOF
21934 #define HAVE_PARTLY_WORKING_GETCWD 1
21945 for ac_func in getpagesize
21947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21961 #define $ac_func innocuous_$ac_func
21963 /* System header to define __stub macros and hopefully few prototypes,
21964 which can conflict with char $ac_func (); below.
21965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21966 <limits.h> exists even on freestanding compilers. */
21969 # include <limits.h>
21971 # include <assert.h>
21976 /* Override any GCC internal prototype to avoid an error.
21977 Use char because int might match the return type of a GCC
21978 builtin and then its argument prototype would still apply. */
21983 /* The GNU C library defines this for functions which it implements
21984 to always fail with ENOSYS. Some functions are actually named
21985 something starting with __ and the normal name is an alias. */
21986 #if defined __stub_$ac_func || defined __stub___$ac_func
21993 return $ac_func ();
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_link") 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext &&
22015 $as_test_x conftest$ac_exeext; then
22016 eval "$as_ac_var=yes"
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 eval "$as_ac_var=no"
22024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22025 conftest$ac_exeext conftest.$ac_ext
22027 ac_res=`eval echo '${'$as_ac_var'}'`
22028 { echo "$as_me:$LINENO: result: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22030 if test `eval echo '${'$as_ac_var'}'` = yes; then
22031 cat >>confdefs.h <<_ACEOF
22032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22038 { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
22039 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
22040 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 # Remove any remnants of a previous test.
22044 rm -rf confdir-14B---
22045 # Arrange for deletion of the temporary directory this test creates.
22046 ac_clean_files="$ac_clean_files confdir-14B---"
22047 if test "$cross_compiling" = yes; then
22048 gl_cv_func_getcwd_abort_bug=yes
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22057 #include <stdlib.h>
22058 #include <unistd.h>
22059 #include <limits.h>
22060 #include <string.h>
22061 #include <sys/stat.h>
22063 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
22067 # define S_IRWXU 0700
22070 /* FIXME: skip the run-test altogether on systems without getpagesize. */
22071 #if ! HAVE_GETPAGESIZE
22072 # define getpagesize() 0
22075 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
22076 the 16kB pagesize on ia64 linux. Those conditions make the code below
22077 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
22078 #define TARGET_LEN (5 * 1024)
22083 char const *dir_name = "confdir-14B---";
22085 size_t initial_cwd_len;
22087 size_t desired_depth;
22090 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
22091 this relative expensive and invasive test if that's not true. */
22092 if (getpagesize () <= PATH_MAX)
22095 cwd = getcwd (NULL, 0);
22099 initial_cwd_len = strlen (cwd);
22101 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
22102 / (1 + strlen (dir_name)));
22103 for (d = 0; d < desired_depth; d++)
22105 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
22107 fail = 3; /* Unable to construct deep hierarchy. */
22112 /* If libc has the bug in question, this invocation of getcwd
22113 results in a failed assertion. */
22114 cwd = getcwd (NULL, 0);
22116 fail = 4; /* getcwd failed. This is ok, and expected. */
22119 /* Call rmdir first, in case the above chdir failed. */
22123 if (chdir ("..") < 0)
22132 rm -f conftest$ac_exeext
22133 if { (ac_try="$ac_link"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_link") 2>&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 gl_cv_func_getcwd_abort_bug=no
22154 echo "$as_me: program exited with status $ac_status" >&5
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ( exit $ac_status )
22159 gl_cv_func_getcwd_abort_bug=yes
22161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22167 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
22168 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
22169 if test $gl_cv_func_getcwd_abort_bug = yes; then
22176 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
22188 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
22207 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22208 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22209 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22212 cat >conftest.$ac_ext <<_ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 #include <sys/types.h>
22219 #include <$ac_cv_struct_tm>
22225 static struct tm ac_aggr;
22226 if (ac_aggr.tm_zone)
22232 rm -f conftest.$ac_objext
22233 if { (ac_try="$ac_compile"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22249 ac_cv_member_struct_tm_tm_zone=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 cat >conftest.$ac_ext <<_ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 #include <sys/types.h>
22261 #include <$ac_cv_struct_tm>
22267 static struct tm ac_aggr;
22268 if (sizeof ac_aggr.tm_zone)
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22283 grep -v '^ *+' conftest.er1 >conftest.err
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } && {
22288 test -z "$ac_c_werror_flag" ||
22289 test ! -s conftest.err
22290 } && test -s conftest.$ac_objext; then
22291 ac_cv_member_struct_tm_tm_zone=yes
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_cv_member_struct_tm_tm_zone=no
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22305 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22306 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309 #define HAVE_STRUCT_TM_TM_ZONE 1
22315 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22317 cat >>confdefs.h <<\_ACEOF
22318 #define HAVE_TM_ZONE 1
22322 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22323 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22324 if test "${ac_cv_have_decl_tzname+set}" = set; then
22325 echo $ECHO_N "(cached) $ECHO_C" >&6
22327 cat >conftest.$ac_ext <<_ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22346 rm -f conftest.$ac_objext
22347 if { (ac_try="$ac_compile"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_compile") 2>conftest.er1
22355 grep -v '^ *+' conftest.er1 >conftest.err
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } && {
22360 test -z "$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22362 } && test -s conftest.$ac_objext; then
22363 ac_cv_have_decl_tzname=yes
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 ac_cv_have_decl_tzname=no
22371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
22374 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
22375 if test $ac_cv_have_decl_tzname = yes; then
22377 cat >>confdefs.h <<_ACEOF
22378 #define HAVE_DECL_TZNAME 1
22383 cat >>confdefs.h <<_ACEOF
22384 #define HAVE_DECL_TZNAME 0
22391 { echo "$as_me:$LINENO: checking for tzname" >&5
22392 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22393 if test "${ac_cv_var_tzname+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22403 #if !HAVE_DECL_TZNAME
22404 extern char *tzname[];
22410 return tzname[0][0];
22415 rm -f conftest.$ac_objext conftest$ac_exeext
22416 if { (ac_try="$ac_link"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_link") 2>conftest.er1
22424 grep -v '^ *+' conftest.er1 >conftest.err
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest$ac_exeext &&
22432 $as_test_x conftest$ac_exeext; then
22433 ac_cv_var_tzname=yes
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_cv_var_tzname=no
22441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22442 conftest$ac_exeext conftest.$ac_ext
22444 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22445 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22446 if test $ac_cv_var_tzname = yes; then
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_TZNAME 1
22472 for ac_func in getdelim
22474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22488 #define $ac_func innocuous_$ac_func
22490 /* System header to define __stub macros and hopefully few prototypes,
22491 which can conflict with char $ac_func (); below.
22492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22493 <limits.h> exists even on freestanding compilers. */
22496 # include <limits.h>
22498 # include <assert.h>
22503 /* Override any GCC internal prototype to avoid an error.
22504 Use char because int might match the return type of a GCC
22505 builtin and then its argument prototype would still apply. */
22510 /* The GNU C library defines this for functions which it implements
22511 to always fail with ENOSYS. Some functions are actually named
22512 something starting with __ and the normal name is an alias. */
22513 #if defined __stub_$ac_func || defined __stub___$ac_func
22520 return $ac_func ();
22525 rm -f conftest.$ac_objext conftest$ac_exeext
22526 if { (ac_try="$ac_link"
22527 case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_link") 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && {
22539 test -z "$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 } && test -s conftest$ac_exeext &&
22542 $as_test_x conftest$ac_exeext; then
22543 eval "$as_ac_var=yes"
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 eval "$as_ac_var=no"
22551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22552 conftest$ac_exeext conftest.$ac_ext
22554 ac_res=`eval echo '${'$as_ac_var'}'`
22555 { echo "$as_me:$LINENO: result: $ac_res" >&5
22556 echo "${ECHO_T}$ac_res" >&6; }
22557 if test `eval echo '${'$as_ac_var'}'` = yes; then
22558 cat >>confdefs.h <<_ACEOF
22559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22564 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22575 if test $ac_cv_func_getdelim = no; then
22579 for ac_func in flockfile funlockfile
22581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22595 #define $ac_func innocuous_$ac_func
22597 /* System header to define __stub macros and hopefully few prototypes,
22598 which can conflict with char $ac_func (); below.
22599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600 <limits.h> exists even on freestanding compilers. */
22603 # include <limits.h>
22605 # include <assert.h>
22610 /* Override any GCC internal prototype to avoid an error.
22611 Use char because int might match the return type of a GCC
22612 builtin and then its argument prototype would still apply. */
22617 /* The GNU C library defines this for functions which it implements
22618 to always fail with ENOSYS. Some functions are actually named
22619 something starting with __ and the normal name is an alias. */
22620 #if defined __stub_$ac_func || defined __stub___$ac_func
22627 return $ac_func ();
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (ac_try="$ac_link"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_link") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest$ac_exeext &&
22649 $as_test_x conftest$ac_exeext; then
22650 eval "$as_ac_var=yes"
22652 echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22655 eval "$as_ac_var=no"
22658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659 conftest$ac_exeext conftest.$ac_ext
22661 ac_res=`eval echo '${'$as_ac_var'}'`
22662 { echo "$as_me:$LINENO: result: $ac_res" >&5
22663 echo "${ECHO_T}$ac_res" >&6; }
22664 if test `eval echo '${'$as_ac_var'}'` = yes; then
22665 cat >>confdefs.h <<_ACEOF
22666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22672 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22673 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22674 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 cat >conftest.$ac_ext <<_ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 $ac_includes_default
22687 #ifndef getc_unlocked
22688 (void) getc_unlocked;
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_compile") 2>conftest.er1
22704 grep -v '^ *+' conftest.er1 >conftest.err
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } && {
22709 test -z "$ac_c_werror_flag" ||
22710 test ! -s conftest.err
22711 } && test -s conftest.$ac_objext; then
22712 ac_cv_have_decl_getc_unlocked=yes
22714 echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22717 ac_cv_have_decl_getc_unlocked=no
22720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22723 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22724 if test $ac_cv_have_decl_getc_unlocked = yes; then
22726 cat >>confdefs.h <<_ACEOF
22727 #define HAVE_DECL_GETC_UNLOCKED 1
22732 cat >>confdefs.h <<_ACEOF
22733 #define HAVE_DECL_GETC_UNLOCKED 0
22743 if test $ac_cv_have_decl_getdelim = no; then
22744 HAVE_DECL_GETDELIM=0
22761 gl_getline_needs_run_time_check=no
22762 { echo "$as_me:$LINENO: checking for getline" >&5
22763 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
22764 if test "${ac_cv_func_getline+set}" = set; then
22765 echo $ECHO_N "(cached) $ECHO_C" >&6
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22773 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
22774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22775 #define getline innocuous_getline
22777 /* System header to define __stub macros and hopefully few prototypes,
22778 which can conflict with char getline (); below.
22779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22780 <limits.h> exists even on freestanding compilers. */
22783 # include <limits.h>
22785 # include <assert.h>
22790 /* Override any GCC internal prototype to avoid an error.
22791 Use char because int might match the return type of a GCC
22792 builtin and then its argument prototype would still apply. */
22797 /* The GNU C library defines this for functions which it implements
22798 to always fail with ENOSYS. Some functions are actually named
22799 something starting with __ and the normal name is an alias. */
22800 #if defined __stub_getline || defined __stub___getline
22812 rm -f conftest.$ac_objext conftest$ac_exeext
22813 if { (ac_try="$ac_link"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_link") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest$ac_exeext &&
22829 $as_test_x conftest$ac_exeext; then
22830 ac_cv_func_getline=yes
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 ac_cv_func_getline=no
22838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22839 conftest$ac_exeext conftest.$ac_ext
22841 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
22842 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
22843 if test $ac_cv_func_getline = yes; then
22844 gl_getline_needs_run_time_check=yes
22846 am_cv_func_working_getline=no
22849 if test $gl_getline_needs_run_time_check = yes; then
22850 { echo "$as_me:$LINENO: checking for working getline function" >&5
22851 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
22852 if test "${am_cv_func_working_getline+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
22856 if test "$cross_compiling" = yes; then
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22864 #include <features.h>
22865 #ifdef __GNU_LIBRARY__
22866 #if (__GLIBC__ >= 2)
22872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22873 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22874 am_cv_func_working_getline=yes
22876 am_cv_func_working_getline=no
22882 cat >conftest.$ac_ext <<_ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h. */
22889 # include <stdio.h>
22890 # include <stdlib.h>
22891 # include <string.h>
22893 { /* Based on a test program from Karl Heuer. */
22897 FILE *in = fopen ("./conftest.data", "r");
22900 len = getline (&line, &siz, in);
22901 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
22905 rm -f conftest$ac_exeext
22906 if { (ac_try="$ac_link"
22907 case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_link") 2>&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22916 { (case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921 (eval "$ac_try") 2>&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; }; then
22925 am_cv_func_working_getline=yes
22927 echo "$as_me: program exited with status $ac_status" >&5
22928 echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22931 ( exit $ac_status )
22932 am_cv_func_working_getline=no
22934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
22940 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
22943 if test $ac_cv_have_decl_getline = no; then
22944 HAVE_DECL_GETLINE=0
22947 if test $am_cv_func_working_getline = no; then
22957 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
22975 for ac_func in getdelim
22977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22991 #define $ac_func innocuous_$ac_func
22993 /* System header to define __stub macros and hopefully few prototypes,
22994 which can conflict with char $ac_func (); below.
22995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22996 <limits.h> exists even on freestanding compilers. */
22999 # include <limits.h>
23001 # include <assert.h>
23006 /* Override any GCC internal prototype to avoid an error.
23007 Use char because int might match the return type of a GCC
23008 builtin and then its argument prototype would still apply. */
23013 /* The GNU C library defines this for functions which it implements
23014 to always fail with ENOSYS. Some functions are actually named
23015 something starting with __ and the normal name is an alias. */
23016 #if defined __stub_$ac_func || defined __stub___$ac_func
23023 return $ac_func ();
23028 rm -f conftest.$ac_objext conftest$ac_exeext
23029 if { (ac_try="$ac_link"
23030 case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_link") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } && {
23042 test -z "$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23044 } && test -s conftest$ac_exeext &&
23045 $as_test_x conftest$ac_exeext; then
23046 eval "$as_ac_var=yes"
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23051 eval "$as_ac_var=no"
23054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23055 conftest$ac_exeext conftest.$ac_ext
23057 ac_res=`eval echo '${'$as_ac_var'}'`
23058 { echo "$as_me:$LINENO: result: $ac_res" >&5
23059 echo "${ECHO_T}$ac_res" >&6; }
23060 if test `eval echo '${'$as_ac_var'}'` = yes; then
23061 cat >>confdefs.h <<_ACEOF
23062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23078 if test $ac_cv_func_getdelim = no; then
23082 for ac_func in flockfile funlockfile
23084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23098 #define $ac_func innocuous_$ac_func
23100 /* System header to define __stub macros and hopefully few prototypes,
23101 which can conflict with char $ac_func (); below.
23102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23103 <limits.h> exists even on freestanding compilers. */
23106 # include <limits.h>
23108 # include <assert.h>
23113 /* Override any GCC internal prototype to avoid an error.
23114 Use char because int might match the return type of a GCC
23115 builtin and then its argument prototype would still apply. */
23120 /* The GNU C library defines this for functions which it implements
23121 to always fail with ENOSYS. Some functions are actually named
23122 something starting with __ and the normal name is an alias. */
23123 #if defined __stub_$ac_func || defined __stub___$ac_func
23130 return $ac_func ();
23135 rm -f conftest.$ac_objext conftest$ac_exeext
23136 if { (ac_try="$ac_link"
23137 case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_link") 2>conftest.er1
23144 grep -v '^ *+' conftest.er1 >conftest.err
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } && {
23149 test -z "$ac_c_werror_flag" ||
23150 test ! -s conftest.err
23151 } && test -s conftest$ac_exeext &&
23152 $as_test_x conftest$ac_exeext; then
23153 eval "$as_ac_var=yes"
23155 echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23158 eval "$as_ac_var=no"
23161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23162 conftest$ac_exeext conftest.$ac_ext
23164 ac_res=`eval echo '${'$as_ac_var'}'`
23165 { echo "$as_me:$LINENO: result: $ac_res" >&5
23166 echo "${ECHO_T}$ac_res" >&6; }
23167 if test `eval echo '${'$as_ac_var'}'` = yes; then
23168 cat >>confdefs.h <<_ACEOF
23169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23175 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23176 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
23177 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 $ac_includes_default
23190 #ifndef getc_unlocked
23191 (void) getc_unlocked;
23198 rm -f conftest.$ac_objext
23199 if { (ac_try="$ac_compile"
23200 case "(($ac_try" in
23201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202 *) ac_try_echo=$ac_try;;
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23207 grep -v '^ *+' conftest.er1 >conftest.err
23209 cat conftest.err >&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.$ac_objext; then
23215 ac_cv_have_decl_getc_unlocked=yes
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23220 ac_cv_have_decl_getc_unlocked=no
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23226 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
23227 if test $ac_cv_have_decl_getc_unlocked = yes; then
23229 cat >>confdefs.h <<_ACEOF
23230 #define HAVE_DECL_GETC_UNLOCKED 1
23235 cat >>confdefs.h <<_ACEOF
23236 #define HAVE_DECL_GETC_UNLOCKED 0
23246 if test $ac_cv_have_decl_getdelim = no; then
23247 HAVE_DECL_GETDELIM=0
23259 if test -n "$GETOPT_H"; then
23269 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23279 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23284 cat >>confdefs.h <<\_ACEOF
23285 #define __GETOPT_PREFIX rpl_
23304 for ac_func in getpagesize
23306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23320 #define $ac_func innocuous_$ac_func
23322 /* System header to define __stub macros and hopefully few prototypes,
23323 which can conflict with char $ac_func (); below.
23324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23325 <limits.h> exists even on freestanding compilers. */
23328 # include <limits.h>
23330 # include <assert.h>
23335 /* Override any GCC internal prototype to avoid an error.
23336 Use char because int might match the return type of a GCC
23337 builtin and then its argument prototype would still apply. */
23342 /* The GNU C library defines this for functions which it implements
23343 to always fail with ENOSYS. Some functions are actually named
23344 something starting with __ and the normal name is an alias. */
23345 #if defined __stub_$ac_func || defined __stub___$ac_func
23352 return $ac_func ();
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (ac_try="$ac_link"
23359 case "(($ac_try" in
23360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361 *) ac_try_echo=$ac_try;;
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364 (eval "$ac_link") 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest$ac_exeext &&
23374 $as_test_x conftest$ac_exeext; then
23375 eval "$as_ac_var=yes"
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 eval "$as_ac_var=no"
23383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23384 conftest$ac_exeext conftest.$ac_ext
23386 ac_res=`eval echo '${'$as_ac_var'}'`
23387 { echo "$as_me:$LINENO: result: $ac_res" >&5
23388 echo "${ECHO_T}$ac_res" >&6; }
23389 if test `eval echo '${'$as_ac_var'}'` = yes; then
23390 cat >>confdefs.h <<_ACEOF
23391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23397 if test $ac_cv_func_getpagesize = no; then
23400 for ac_header in OS.h
23402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 ac_res=`eval echo '${'$as_ac_Header'}'`
23410 { echo "$as_me:$LINENO: result: $ac_res" >&5
23411 echo "${ECHO_T}$ac_res" >&6; }
23413 # Is the header compilable?
23414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 $ac_includes_default
23423 #include <$ac_header>
23425 rm -f conftest.$ac_objext
23426 if { (ac_try="$ac_compile"
23427 case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_compile") 2>conftest.er1
23434 grep -v '^ *+' conftest.er1 >conftest.err
23436 cat conftest.err >&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } && {
23439 test -z "$ac_c_werror_flag" ||
23440 test ! -s conftest.err
23441 } && test -s conftest.$ac_objext; then
23442 ac_header_compiler=yes
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23447 ac_header_compiler=no
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23452 echo "${ECHO_T}$ac_header_compiler" >&6; }
23454 # Is the header present?
23455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23457 cat >conftest.$ac_ext <<_ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 #include <$ac_header>
23465 if { (ac_try="$ac_cpp conftest.$ac_ext"
23466 case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23473 grep -v '^ *+' conftest.er1 >conftest.err
23475 cat conftest.err >&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); } >/dev/null && {
23478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23479 test ! -s conftest.err
23481 ac_header_preproc=yes
23483 echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23486 ac_header_preproc=no
23489 rm -f conftest.err conftest.$ac_ext
23490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23491 echo "${ECHO_T}$ac_header_preproc" >&6; }
23493 # So? What about this header?
23494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23500 ac_header_preproc=yes
23503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23516 ## ------------------------------ ##
23517 ## Report this to bug-tar@gnu.org ##
23518 ## ------------------------------ ##
23520 ) | sed "s/^/$as_me: WARNING: /" >&2
23523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 eval "$as_ac_Header=\$ac_header_preproc"
23530 ac_res=`eval echo '${'$as_ac_Header'}'`
23531 { echo "$as_me:$LINENO: result: $ac_res" >&5
23532 echo "${ECHO_T}$ac_res" >&6; }
23535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23536 cat >>confdefs.h <<_ACEOF
23537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23544 if test $ac_cv_header_OS_h = yes; then
23548 for ac_header in sys/param.h
23550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 ac_res=`eval echo '${'$as_ac_Header'}'`
23558 { echo "$as_me:$LINENO: result: $ac_res" >&5
23559 echo "${ECHO_T}$ac_res" >&6; }
23561 # Is the header compilable?
23562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23564 cat >conftest.$ac_ext <<_ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 $ac_includes_default
23571 #include <$ac_header>
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577 *) ac_try_echo=$ac_try;;
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.$ac_objext; then
23590 ac_header_compiler=yes
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_header_compiler=no
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23600 echo "${ECHO_T}$ac_header_compiler" >&6; }
23602 # Is the header present?
23603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 #include <$ac_header>
23613 if { (ac_try="$ac_cpp conftest.$ac_ext"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23621 grep -v '^ *+' conftest.er1 >conftest.err
23623 cat conftest.err >&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } >/dev/null && {
23626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23627 test ! -s conftest.err
23629 ac_header_preproc=yes
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 ac_header_preproc=no
23637 rm -f conftest.err conftest.$ac_ext
23638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23639 echo "${ECHO_T}$ac_header_preproc" >&6; }
23641 # So? What about this header?
23642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23648 ac_header_preproc=yes
23651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23664 ## ------------------------------ ##
23665 ## Report this to bug-tar@gnu.org ##
23666 ## ------------------------------ ##
23668 ) | sed "s/^/$as_me: WARNING: /" >&2
23671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23674 echo $ECHO_N "(cached) $ECHO_C" >&6
23676 eval "$as_ac_Header=\$ac_header_preproc"
23678 ac_res=`eval echo '${'$as_ac_Header'}'`
23679 { echo "$as_me:$LINENO: result: $ac_res" >&5
23680 echo "${ECHO_T}$ac_res" >&6; }
23683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23684 cat >>confdefs.h <<_ACEOF
23685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23692 if test $ac_cv_header_sys_param_h = yes; then
23698 REPLACE_GETPAGESIZE=1
23707 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
23714 GNULIB_GETPAGESIZE=1
23728 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
23752 { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
23753 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
23754 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23757 cat >conftest.$ac_ext <<_ACEOF
23760 cat confdefs.h >>conftest.$ac_ext
23761 cat >>conftest.$ac_ext <<_ACEOF
23762 /* end confdefs.h. */
23763 #include <sys/time.h>
23770 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
23772 return !(x | c.tv_sec | c.tv_usec);
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest.$ac_objext; then
23795 gl_cv_func_gettimeofday_posix_signature=yes
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 gl_cv_func_gettimeofday_posix_signature=no
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23806 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
23811 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
23812 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
23813 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
23814 echo $ECHO_N "(cached) $ECHO_C" >&6
23816 if test "$cross_compiling" = yes; then
23817 gl_cv_func_gettimeofday_clobber=yes
23819 cat >conftest.$ac_ext <<_ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h. */
23825 #include <string.h>
23826 #include <sys/time.h>
23828 #include <stdlib.h>
23836 struct tm saved_lt;
23838 lt = localtime (&t);
23840 gettimeofday (&tv, NULL);
23841 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23847 rm -f conftest$ac_exeext
23848 if { (ac_try="$ac_link"
23849 case "(($ac_try" in
23850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851 *) ac_try_echo=$ac_try;;
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_link") 2>&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23858 { (case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863 (eval "$ac_try") 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 gl_cv_func_gettimeofday_clobber=no
23869 echo "$as_me: program exited with status $ac_status" >&5
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23873 ( exit $ac_status )
23874 gl_cv_func_gettimeofday_clobber=yes
23876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23881 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
23882 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
23884 if test $gl_cv_func_gettimeofday_clobber = yes; then
23885 REPLACE_GETTIMEOFDAY=1
23886 SYS_TIME_H=sys/time.h
23896 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23900 for ac_header in sys/timeb.h
23902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23907 echo $ECHO_N "(cached) $ECHO_C" >&6
23909 ac_res=`eval echo '${'$as_ac_Header'}'`
23910 { echo "$as_me:$LINENO: result: $ac_res" >&5
23911 echo "${ECHO_T}$ac_res" >&6; }
23913 # Is the header compilable?
23914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23916 cat >conftest.$ac_ext <<_ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h. */
23922 $ac_includes_default
23923 #include <$ac_header>
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929 *) ac_try_echo=$ac_try;;
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23934 grep -v '^ *+' conftest.er1 >conftest.err
23936 cat conftest.err >&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23942 ac_header_compiler=yes
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23947 ac_header_compiler=no
23950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23952 echo "${ECHO_T}$ac_header_compiler" >&6; }
23954 # Is the header present?
23955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23957 cat >conftest.$ac_ext <<_ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23963 #include <$ac_header>
23965 if { (ac_try="$ac_cpp conftest.$ac_ext"
23966 case "(($ac_try" in
23967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968 *) ac_try_echo=$ac_try;;
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23973 grep -v '^ *+' conftest.er1 >conftest.err
23975 cat conftest.err >&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); } >/dev/null && {
23978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23979 test ! -s conftest.err
23981 ac_header_preproc=yes
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 ac_header_preproc=no
23989 rm -f conftest.err conftest.$ac_ext
23990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23991 echo "${ECHO_T}$ac_header_preproc" >&6; }
23993 # So? What about this header?
23994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24000 ac_header_preproc=yes
24003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24016 ## ------------------------------ ##
24017 ## Report this to bug-tar@gnu.org ##
24018 ## ------------------------------ ##
24020 ) | sed "s/^/$as_me: WARNING: /" >&2
24023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24028 eval "$as_ac_Header=\$ac_header_preproc"
24030 ac_res=`eval echo '${'$as_ac_Header'}'`
24031 { echo "$as_me:$LINENO: result: $ac_res" >&5
24032 echo "${ECHO_T}$ac_res" >&6; }
24035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24036 cat >>confdefs.h <<_ACEOF
24037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24045 for ac_func in _ftime
24047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24061 #define $ac_func innocuous_$ac_func
24063 /* System header to define __stub macros and hopefully few prototypes,
24064 which can conflict with char $ac_func (); below.
24065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24066 <limits.h> exists even on freestanding compilers. */
24069 # include <limits.h>
24071 # include <assert.h>
24076 /* Override any GCC internal prototype to avoid an error.
24077 Use char because int might match the return type of a GCC
24078 builtin and then its argument prototype would still apply. */
24083 /* The GNU C library defines this for functions which it implements
24084 to always fail with ENOSYS. Some functions are actually named
24085 something starting with __ and the normal name is an alias. */
24086 #if defined __stub_$ac_func || defined __stub___$ac_func
24093 return $ac_func ();
24098 rm -f conftest.$ac_objext conftest$ac_exeext
24099 if { (ac_try="$ac_link"
24100 case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_link") 2>conftest.er1
24107 grep -v '^ *+' conftest.er1 >conftest.err
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest$ac_exeext &&
24115 $as_test_x conftest$ac_exeext; then
24116 eval "$as_ac_var=yes"
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 eval "$as_ac_var=no"
24124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24125 conftest$ac_exeext conftest.$ac_ext
24127 ac_res=`eval echo '${'$as_ac_var'}'`
24128 { echo "$as_me:$LINENO: result: $ac_res" >&5
24129 echo "${ECHO_T}$ac_res" >&6; }
24130 if test `eval echo '${'$as_ac_var'}'` = yes; then
24131 cat >>confdefs.h <<_ACEOF
24132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24140 cat >>confdefs.h <<\_ACEOF
24141 #define gmtime rpl_gmtime
24145 cat >>confdefs.h <<\_ACEOF
24146 #define localtime rpl_localtime
24151 cat >>confdefs.h <<\_ACEOF
24152 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
24158 if test $gl_cv_func_gettimeofday_posix_signature != yes; then
24159 REPLACE_GETTIMEOFDAY=1
24160 SYS_TIME_H=sys/time.h
24161 if test $gl_cv_func_gettimeofday_clobber != yes; then
24170 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24174 for ac_header in sys/timeb.h
24176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24183 ac_res=`eval echo '${'$as_ac_Header'}'`
24184 { echo "$as_me:$LINENO: result: $ac_res" >&5
24185 echo "${ECHO_T}$ac_res" >&6; }
24187 # Is the header compilable?
24188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24190 cat >conftest.$ac_ext <<_ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24196 $ac_includes_default
24197 #include <$ac_header>
24199 rm -f conftest.$ac_objext
24200 if { (ac_try="$ac_compile"
24201 case "(($ac_try" in
24202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203 *) ac_try_echo=$ac_try;;
24205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24206 (eval "$ac_compile") 2>conftest.er1
24208 grep -v '^ *+' conftest.er1 >conftest.err
24210 cat conftest.err >&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } && {
24213 test -z "$ac_c_werror_flag" ||
24214 test ! -s conftest.err
24215 } && test -s conftest.$ac_objext; then
24216 ac_header_compiler=yes
24218 echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.$ac_ext >&5
24221 ac_header_compiler=no
24224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24226 echo "${ECHO_T}$ac_header_compiler" >&6; }
24228 # Is the header present?
24229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24231 cat >conftest.$ac_ext <<_ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h. */
24237 #include <$ac_header>
24239 if { (ac_try="$ac_cpp conftest.$ac_ext"
24240 case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24247 grep -v '^ *+' conftest.er1 >conftest.err
24249 cat conftest.err >&5
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); } >/dev/null && {
24252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24253 test ! -s conftest.err
24255 ac_header_preproc=yes
24257 echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24260 ac_header_preproc=no
24263 rm -f conftest.err conftest.$ac_ext
24264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24265 echo "${ECHO_T}$ac_header_preproc" >&6; }
24267 # So? What about this header?
24268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24274 ac_header_preproc=yes
24277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24290 ## ------------------------------ ##
24291 ## Report this to bug-tar@gnu.org ##
24292 ## ------------------------------ ##
24294 ) | sed "s/^/$as_me: WARNING: /" >&2
24297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24302 eval "$as_ac_Header=\$ac_header_preproc"
24304 ac_res=`eval echo '${'$as_ac_Header'}'`
24305 { echo "$as_me:$LINENO: result: $ac_res" >&5
24306 echo "${ECHO_T}$ac_res" >&6; }
24309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24310 cat >>confdefs.h <<_ACEOF
24311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24319 for ac_func in _ftime
24321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 cat >conftest.$ac_ext <<_ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24335 #define $ac_func innocuous_$ac_func
24337 /* System header to define __stub macros and hopefully few prototypes,
24338 which can conflict with char $ac_func (); below.
24339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24340 <limits.h> exists even on freestanding compilers. */
24343 # include <limits.h>
24345 # include <assert.h>
24350 /* Override any GCC internal prototype to avoid an error.
24351 Use char because int might match the return type of a GCC
24352 builtin and then its argument prototype would still apply. */
24357 /* The GNU C library defines this for functions which it implements
24358 to always fail with ENOSYS. Some functions are actually named
24359 something starting with __ and the normal name is an alias. */
24360 #if defined __stub_$ac_func || defined __stub___$ac_func
24367 return $ac_func ();
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (ac_try="$ac_link"
24374 case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379 (eval "$ac_link") 2>conftest.er1
24381 grep -v '^ *+' conftest.er1 >conftest.err
24383 cat conftest.err >&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } && {
24386 test -z "$ac_c_werror_flag" ||
24387 test ! -s conftest.err
24388 } && test -s conftest$ac_exeext &&
24389 $as_test_x conftest$ac_exeext; then
24390 eval "$as_ac_var=yes"
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24395 eval "$as_ac_var=no"
24398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24399 conftest$ac_exeext conftest.$ac_ext
24401 ac_res=`eval echo '${'$as_ac_var'}'`
24402 { echo "$as_me:$LINENO: result: $ac_res" >&5
24403 echo "${ECHO_T}$ac_res" >&6; }
24404 if test `eval echo '${'$as_ac_var'}'` = yes; then
24405 cat >>confdefs.h <<_ACEOF
24406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24425 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
24439 gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
24446 { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
24447 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
24448 if test "${gl_cv_c_inline_effective+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 if test $ac_cv_c_inline = no; then
24452 gl_cv_c_inline_effective=no
24454 cat >conftest.$ac_ext <<_ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h. */
24464 #ifdef __NO_INLINE__
24465 #error "inline is not effective"
24471 rm -f conftest.$ac_objext
24472 if { (ac_try="$ac_compile"
24473 case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_compile") 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } && {
24485 test -z "$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 } && test -s conftest.$ac_objext; then
24488 gl_cv_c_inline_effective=yes
24490 echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 gl_cv_c_inline_effective=no
24496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24500 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
24501 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
24502 if test $gl_cv_c_inline_effective = yes; then
24504 cat >>confdefs.h <<\_ACEOF
24505 #define HAVE_INLINE 1
24519 gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
24529 gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
24539 gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
24549 gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
24581 { echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
24582 echo $ECHO_N "checking whether inttypes.h conforms to C99... $ECHO_C" >&6; }
24583 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24586 gl_cv_header_working_inttypes_h=no
24587 if test "$gl_cv_header_working_stdint_h" = yes \
24588 && test $ac_cv_header_inttypes_h = yes \
24589 && test "$ac_cv_have_decl_imaxabs" = yes \
24590 && test "$ac_cv_have_decl_imaxdiv" = yes \
24591 && test "$ac_cv_have_decl_strtoimax" = yes \
24592 && test "$ac_cv_have_decl_strtoumax" = yes; then
24593 cat >conftest.$ac_ext <<_ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h. */
24601 #include <stddef.h>
24602 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
24603 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
24604 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
24605 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
24606 #include <inttypes.h>
24608 /* No need to duplicate the tests of stdint.m4; they are subsumed by
24609 $gl_cv_header_working_stdint_h = yes. */
24611 /* Tests for macros supposed to be defined in inttypes.h. */
24613 const char *k = /* implicit string concatenation */
24618 PRIo8 PRIu8 PRIx8 PRIX8
24624 PRIo16 PRIu16 PRIx16 PRIX16
24630 PRIo32 PRIu32 PRIx32 PRIX32
24636 PRIo64 PRIu64 PRIx64 PRIX64
24638 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
24639 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
24640 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
24641 PRIdLEAST64 PRIiLEAST64
24642 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
24643 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
24644 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
24645 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
24646 PRIdFAST64 PRIiFAST64
24647 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
24648 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
24653 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
24656 const char *l = /* implicit string concatenation */
24667 SCNo16 SCNu16 SCNx16
24673 SCNo32 SCNu32 SCNx32
24679 SCNo64 SCNu64 SCNx64
24681 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
24682 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
24683 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
24684 SCNdLEAST64 SCNiLEAST64
24685 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
24686 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
24687 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
24688 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
24689 SCNdFAST64 SCNiFAST64
24690 SCNoFAST64 SCNuFAST64 SCNxFAST64
24691 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
24696 SCNoPTR SCNuPTR SCNxPTR
24708 rm -f conftest.$ac_objext
24709 if { (ac_try="$ac_compile"
24710 case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715 (eval "$ac_compile") 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } && {
24722 test -z "$ac_c_werror_flag" ||
24723 test ! -s conftest.err
24724 } && test -s conftest.$ac_objext; then
24725 gl_cv_header_working_inttypes_h=yes
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736 { echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
24737 echo "${ECHO_T}$gl_cv_header_working_inttypes_h" >&6; }
24739 if false && test $gl_cv_header_working_inttypes_h = yes; then
24755 if test $gl_cv_have_include_next = yes; then
24756 gl_cv_next_inttypes_h='<'inttypes.h'>'
24758 { echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
24759 echo $ECHO_N "checking absolute name of <inttypes.h>... $ECHO_C" >&6; }
24760 if test "${gl_cv_next_inttypes_h+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24764 if test $ac_cv_header_inttypes_h = yes; then
24765 cat >conftest.$ac_ext <<_ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771 #include <inttypes.h>
24775 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24776 *) gl_absname_cpp="$ac_cpp" ;;
24778 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24779 sed -n '\#/inttypes.h#{
24780 s#.*"\(.*/inttypes.h\)".*#\1#
24786 gl_cv_next_inttypes_h='<'inttypes.h'>'
24790 { echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
24791 echo "${ECHO_T}$gl_cv_next_inttypes_h" >&6; }
24793 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
24801 cat >>confdefs.h <<\_ACEOF
24802 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
24809 if test -n "$STDINT_H"; then
24810 PRIPTR_PREFIX='"l"'
24812 for glpfx in '' l ll I64; do
24814 '') gltype1='int';;
24815 l) gltype1='long int';;
24816 ll) gltype1='long long int';;
24817 I64) gltype1='__int64';;
24819 cat >conftest.$ac_ext <<_ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h. */
24825 #include <stdint.h>
24826 extern intptr_t foo;
24827 extern $gltype1 foo;
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_compile") 2>conftest.er1
24845 grep -v '^ *+' conftest.er1 >conftest.err
24847 cat conftest.err >&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); } && {
24850 test -z "$ac_c_werror_flag" ||
24851 test ! -s conftest.err
24852 } && test -s conftest.$ac_objext; then
24853 PRIPTR_PREFIX='"'$glpfx'"'
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24862 test -n "$PRIPTR_PREFIX" && break
24867 if test "$ac_cv_have_decl_imaxabs" = yes; then
24868 HAVE_DECL_IMAXABS=1
24870 HAVE_DECL_IMAXABS=0
24873 if test "$ac_cv_have_decl_imaxdiv" = yes; then
24874 HAVE_DECL_IMAXDIV=1
24876 HAVE_DECL_IMAXDIV=0
24879 if test "$ac_cv_have_decl_strtoimax" = yes; then
24880 HAVE_DECL_STRTOIMAX=1
24882 HAVE_DECL_STRTOIMAX=0
24885 if test "$ac_cv_have_decl_strtoumax" = yes; then
24886 HAVE_DECL_STRTOUMAX=1
24888 HAVE_DECL_STRTOUMAX=0
24892 { echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
24893 echo $ECHO_N "checking whether INT32_MAX < INTMAX_MAX... $ECHO_C" >&6; }
24894 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
24895 echo $ECHO_N "(cached) $ECHO_C" >&6
24897 cat >conftest.$ac_ext <<_ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 /* Work also in C++ mode. */
24904 #define __STDC_LIMIT_MACROS 1
24906 /* Work if build is not clean. */
24907 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24909 #include <limits.h>
24911 #include <stdint.h>
24914 #if defined INT32_MAX && defined INTMAX_MAX
24915 #define CONDITION (INT32_MAX < INTMAX_MAX)
24916 #elif HAVE_LONG_LONG_INT
24917 #define CONDITION (sizeof (int) < sizeof (long long int))
24919 #define CONDITION 0
24921 int test[CONDITION ? 1 : -1];
24930 rm -f conftest.$ac_objext
24931 if { (ac_try="$ac_compile"
24932 case "(($ac_try" in
24933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934 *) ac_try_echo=$ac_try;;
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937 (eval "$ac_compile") 2>conftest.er1
24939 grep -v '^ *+' conftest.er1 >conftest.err
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } && {
24944 test -z "$ac_c_werror_flag" ||
24945 test ! -s conftest.err
24946 } && test -s conftest.$ac_objext; then
24947 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
24955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24957 { echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
24958 echo "${ECHO_T}$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
24959 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
24960 INT32_MAX_LT_INTMAX_MAX=1;
24962 INT32_MAX_LT_INTMAX_MAX=0;
24966 if test $APPLE_UNIVERSAL_BUILD = 0; then
24968 { echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
24969 echo $ECHO_N "checking whether INT64_MAX == LONG_MAX... $ECHO_C" >&6; }
24970 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24973 cat >conftest.$ac_ext <<_ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 /* Work also in C++ mode. */
24980 #define __STDC_LIMIT_MACROS 1
24982 /* Work if build is not clean. */
24983 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
24985 #include <limits.h>
24987 #include <stdint.h>
24990 #if defined INT64_MAX
24991 #define CONDITION (INT64_MAX == LONG_MAX)
24992 #elif HAVE_LONG_LONG_INT
24993 #define CONDITION (sizeof (long long int) == sizeof (long int))
24995 #define CONDITION 0
24997 int test[CONDITION ? 1 : -1];
25006 rm -f conftest.$ac_objext
25007 if { (ac_try="$ac_compile"
25008 case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013 (eval "$ac_compile") 2>conftest.er1
25015 grep -v '^ *+' conftest.er1 >conftest.err
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } && {
25020 test -z "$ac_c_werror_flag" ||
25021 test ! -s conftest.err
25022 } && test -s conftest.$ac_objext; then
25023 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
25025 echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25028 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
25031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033 { echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
25034 echo "${ECHO_T}$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
25035 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
25036 INT64_MAX_EQ_LONG_MAX=1;
25038 INT64_MAX_EQ_LONG_MAX=0;
25043 INT64_MAX_EQ_LONG_MAX=-1
25046 { echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
25047 echo $ECHO_N "checking whether UINT32_MAX < UINTMAX_MAX... $ECHO_C" >&6; }
25048 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 /* Work also in C++ mode. */
25058 #define __STDC_LIMIT_MACROS 1
25060 /* Work if build is not clean. */
25061 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25063 #include <limits.h>
25065 #include <stdint.h>
25068 #if defined UINT32_MAX && defined UINTMAX_MAX
25069 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
25070 #elif HAVE_LONG_LONG_INT
25071 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
25073 #define CONDITION 0
25075 int test[CONDITION ? 1 : -1];
25084 rm -f conftest.$ac_objext
25085 if { (ac_try="$ac_compile"
25086 case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091 (eval "$ac_compile") 2>conftest.er1
25093 grep -v '^ *+' conftest.er1 >conftest.err
25095 cat conftest.err >&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } && {
25098 test -z "$ac_c_werror_flag" ||
25099 test ! -s conftest.err
25100 } && test -s conftest.$ac_objext; then
25101 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25106 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
25109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
25112 echo "${ECHO_T}$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
25113 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
25114 UINT32_MAX_LT_UINTMAX_MAX=1;
25116 UINT32_MAX_LT_UINTMAX_MAX=0;
25120 if test $APPLE_UNIVERSAL_BUILD = 0; then
25122 { echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
25123 echo $ECHO_N "checking whether UINT64_MAX == ULONG_MAX... $ECHO_C" >&6; }
25124 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
25125 echo $ECHO_N "(cached) $ECHO_C" >&6
25127 cat >conftest.$ac_ext <<_ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25133 /* Work also in C++ mode. */
25134 #define __STDC_LIMIT_MACROS 1
25136 /* Work if build is not clean. */
25137 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25139 #include <limits.h>
25141 #include <stdint.h>
25144 #if defined UINT64_MAX
25145 #define CONDITION (UINT64_MAX == ULONG_MAX)
25146 #elif HAVE_LONG_LONG_INT
25147 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
25149 #define CONDITION 0
25151 int test[CONDITION ? 1 : -1];
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167 (eval "$ac_compile") 2>conftest.er1
25169 grep -v '^ *+' conftest.er1 >conftest.err
25171 cat conftest.err >&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); } && {
25174 test -z "$ac_c_werror_flag" ||
25175 test ! -s conftest.err
25176 } && test -s conftest.$ac_objext; then
25177 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
25179 echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25182 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
25188 echo "${ECHO_T}$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
25189 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
25190 UINT64_MAX_EQ_ULONG_MAX=1;
25192 UINT64_MAX_EQ_ULONG_MAX=0;
25197 UINT64_MAX_EQ_ULONG_MAX=-1
25200 INTTYPES_H='inttypes.h'
25216 for ac_func in lchown
25218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25224 cat >conftest.$ac_ext <<_ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h. */
25230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25232 #define $ac_func innocuous_$ac_func
25234 /* System header to define __stub macros and hopefully few prototypes,
25235 which can conflict with char $ac_func (); below.
25236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25237 <limits.h> exists even on freestanding compilers. */
25240 # include <limits.h>
25242 # include <assert.h>
25247 /* Override any GCC internal prototype to avoid an error.
25248 Use char because int might match the return type of a GCC
25249 builtin and then its argument prototype would still apply. */
25254 /* The GNU C library defines this for functions which it implements
25255 to always fail with ENOSYS. Some functions are actually named
25256 something starting with __ and the normal name is an alias. */
25257 #if defined __stub_$ac_func || defined __stub___$ac_func
25264 return $ac_func ();
25269 rm -f conftest.$ac_objext conftest$ac_exeext
25270 if { (ac_try="$ac_link"
25271 case "(($ac_try" in
25272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25273 *) ac_try_echo=$ac_try;;
25275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25276 (eval "$ac_link") 2>conftest.er1
25278 grep -v '^ *+' conftest.er1 >conftest.err
25280 cat conftest.err >&5
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); } && {
25283 test -z "$ac_c_werror_flag" ||
25284 test ! -s conftest.err
25285 } && test -s conftest$ac_exeext &&
25286 $as_test_x conftest$ac_exeext; then
25287 eval "$as_ac_var=yes"
25289 echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25292 eval "$as_ac_var=no"
25295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25296 conftest$ac_exeext conftest.$ac_ext
25298 ac_res=`eval echo '${'$as_ac_var'}'`
25299 { echo "$as_me:$LINENO: result: $ac_res" >&5
25300 echo "${ECHO_T}$ac_res" >&6; }
25301 if test `eval echo '${'$as_ac_var'}'` = yes; then
25302 cat >>confdefs.h <<_ACEOF
25303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25308 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25314 if test $ac_cv_func_lchown = no; then
25332 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
25337 { echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
25338 echo $ECHO_N "checking whether lseek detects pipes... $ECHO_C" >&6; }
25339 if test "${gl_cv_func_lseek_pipe+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25342 if test $cross_compiling = no; then
25343 cat >conftest.$ac_ext <<_ACEOF
25345 #include <sys/types.h> /* for off_t */
25346 #include <stdio.h> /* for SEEK_CUR */
25347 #include <unistd.h>
25350 /* Exit with success only if stdin is seekable. */
25351 return lseek (0, (off_t)0, SEEK_CUR) < 0;
25354 rm -f conftest.$ac_objext conftest$ac_exeext
25355 if { (ac_try="$ac_link"
25356 case "(($ac_try" in
25357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358 *) ac_try_echo=$ac_try;;
25360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361 (eval "$ac_link") 2>conftest.er1
25363 grep -v '^ *+' conftest.er1 >conftest.err
25365 cat conftest.err >&5
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); } && {
25368 test -z "$ac_c_werror_flag" ||
25369 test ! -s conftest.err
25370 } && test -s conftest$ac_exeext &&
25371 $as_test_x conftest$ac_exeext; then
25372 if test -s conftest$ac_exeext \
25373 && ./conftest$ac_exeext < conftest.$ac_ext \
25374 && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
25375 gl_cv_func_lseek_pipe=yes
25377 gl_cv_func_lseek_pipe=no
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25383 gl_cv_func_lseek_pipe=no
25386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25387 conftest$ac_exeext conftest.$ac_ext
25389 cat >conftest.$ac_ext <<_ACEOF
25391 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
25392 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
25396 rm -f conftest.$ac_objext
25397 if { (ac_try="$ac_compile"
25398 case "(($ac_try" in
25399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25400 *) ac_try_echo=$ac_try;;
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403 (eval "$ac_compile") 2>conftest.er1
25405 grep -v '^ *+' conftest.er1 >conftest.err
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } && {
25410 test -z "$ac_c_werror_flag" ||
25411 test ! -s conftest.err
25412 } && test -s conftest.$ac_objext; then
25413 gl_cv_func_lseek_pipe=yes
25415 echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25418 gl_cv_func_lseek_pipe=no
25421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25424 { echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
25425 echo "${ECHO_T}$gl_cv_func_lseek_pipe" >&6; }
25426 if test $gl_cv_func_lseek_pipe = no; then
25436 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
25441 cat >>confdefs.h <<\_ACEOF
25442 #define LSEEK_PIPE_BROKEN 1
25460 if test $ac_cv_func_lstat = yes; then
25461 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25462 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25463 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25464 echo $ECHO_N "(cached) $ECHO_C" >&6
25466 rm -f conftest.sym conftest.file
25467 echo >conftest.file
25468 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25469 if test "$cross_compiling" = yes; then
25470 ac_cv_func_lstat_dereferences_slashed_symlink=no
25472 cat >conftest.$ac_ext <<_ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 $ac_includes_default
25483 /* Linux will dereference the symlink and fail.
25484 That is better in the sense that it means we will not
25485 have to compile and use the lstat wrapper. */
25486 return lstat ("conftest.sym/", &sbuf) == 0;
25491 rm -f conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498 (eval "$ac_link") 2>&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25502 { (case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_try") 2>&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; }; then
25511 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25513 echo "$as_me: program exited with status $ac_status" >&5
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25517 ( exit $ac_status )
25518 ac_cv_func_lstat_dereferences_slashed_symlink=no
25520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25525 # If the `ln -s' command failed, then we probably don't even
25526 # have an lstat function.
25527 ac_cv_func_lstat_dereferences_slashed_symlink=no
25529 rm -f conftest.sym conftest.file
25532 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25533 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25535 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25537 cat >>confdefs.h <<_ACEOF
25538 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25542 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25551 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
25555 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25558 # Prerequisites of lib/lstat.c.
25567 for ac_header in stdlib.h
25569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 ac_res=`eval echo '${'$as_ac_Header'}'`
25577 { echo "$as_me:$LINENO: result: $ac_res" >&5
25578 echo "${ECHO_T}$ac_res" >&6; }
25580 # Is the header compilable?
25581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25583 cat >conftest.$ac_ext <<_ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25589 $ac_includes_default
25590 #include <$ac_header>
25592 rm -f conftest.$ac_objext
25593 if { (ac_try="$ac_compile"
25594 case "(($ac_try" in
25595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25596 *) ac_try_echo=$ac_try;;
25598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25609 ac_header_compiler=yes
25611 echo "$as_me: failed program was:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25614 ac_header_compiler=no
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25619 echo "${ECHO_T}$ac_header_compiler" >&6; }
25621 # Is the header present?
25622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25624 cat >conftest.$ac_ext <<_ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25630 #include <$ac_header>
25632 if { (ac_try="$ac_cpp conftest.$ac_ext"
25633 case "(($ac_try" in
25634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635 *) ac_try_echo=$ac_try;;
25637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25640 grep -v '^ *+' conftest.er1 >conftest.err
25642 cat conftest.err >&5
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); } >/dev/null && {
25645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25646 test ! -s conftest.err
25648 ac_header_preproc=yes
25650 echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25653 ac_header_preproc=no
25656 rm -f conftest.err conftest.$ac_ext
25657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25658 echo "${ECHO_T}$ac_header_preproc" >&6; }
25660 # So? What about this header?
25661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25667 ac_header_preproc=yes
25670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25683 ## ------------------------------ ##
25684 ## Report this to bug-tar@gnu.org ##
25685 ## ------------------------------ ##
25687 ) | sed "s/^/$as_me: WARNING: /" >&2
25690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25695 eval "$as_ac_Header=\$ac_header_preproc"
25697 ac_res=`eval echo '${'$as_ac_Header'}'`
25698 { echo "$as_me:$LINENO: result: $ac_res" >&5
25699 echo "${ECHO_T}$ac_res" >&6; }
25702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25703 cat >>confdefs.h <<_ACEOF
25704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25711 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
25712 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
25713 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
25714 echo $ECHO_N "(cached) $ECHO_C" >&6
25716 if test "$cross_compiling" = yes; then
25717 ac_cv_func_malloc_0_nonnull=no
25719 cat >conftest.$ac_ext <<_ACEOF
25722 cat confdefs.h >>conftest.$ac_ext
25723 cat >>conftest.$ac_ext <<_ACEOF
25724 /* end confdefs.h. */
25725 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
25726 # include <stdlib.h>
25734 return ! malloc (0);
25739 rm -f conftest$ac_exeext
25740 if { (ac_try="$ac_link"
25741 case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_link") 2>&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25750 { (case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_try") 2>&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; }; then
25759 ac_cv_func_malloc_0_nonnull=yes
25761 echo "$as_me: program exited with status $ac_status" >&5
25762 echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25765 ( exit $ac_status )
25766 ac_cv_func_malloc_0_nonnull=no
25768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25773 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
25774 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
25775 if test $ac_cv_func_malloc_0_nonnull = yes; then
25777 cat >>confdefs.h <<\_ACEOF
25778 #define HAVE_MALLOC 1
25782 cat >>confdefs.h <<\_ACEOF
25783 #define HAVE_MALLOC 0
25794 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25797 cat >>confdefs.h <<\_ACEOF
25798 #define malloc rpl_malloc
25806 cat >>confdefs.h <<\_ACEOF
25807 #define GNULIB_MALLOC_GNU 1
25812 if test $gl_cv_func_malloc_posix = yes; then
25813 HAVE_MALLOC_POSIX=1
25815 cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_MALLOC_POSIX 1
25828 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
25830 HAVE_MALLOC_POSIX=0
25836 GNULIB_MALLOC_POSIX=1
25865 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
25869 { echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
25870 echo $ECHO_N "checking whether mbrtowc handles incomplete characters... $ECHO_C" >&6; }
25871 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25876 # Guess no on AIX and OSF/1.
25877 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
25878 # Guess yes otherwise.
25879 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
25881 if test $LOCALE_JA != none; then
25882 if test "$cross_compiling" = yes; then
25883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25884 See \`config.log' for more details." >&5
25885 echo "$as_me: error: cannot run test program while cross compiling
25886 See \`config.log' for more details." >&2;}
25887 { (exit 1); exit 1; }; }
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25896 #include <locale.h>
25897 #include <string.h>
25901 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25903 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
25907 memset (&state, '\0', sizeof (mbstate_t));
25908 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
25909 if (mbsinit (&state))
25915 rm -f conftest$ac_exeext
25916 if { (ac_try="$ac_link"
25917 case "(($ac_try" in
25918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919 *) ac_try_echo=$ac_try;;
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922 (eval "$ac_link") 2>&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25926 { (case "(($ac_try" in
25927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928 *) ac_try_echo=$ac_try;;
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931 (eval "$ac_try") 2>&5
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; }; then
25935 gl_cv_func_mbrtowc_incomplete_state=yes
25937 echo "$as_me: program exited with status $ac_status" >&5
25938 echo "$as_me: failed program was:" >&5
25939 sed 's/^/| /' conftest.$ac_ext >&5
25941 ( exit $ac_status )
25942 gl_cv_func_mbrtowc_incomplete_state=no
25944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25951 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
25952 echo "${ECHO_T}$gl_cv_func_mbrtowc_incomplete_state" >&6; }
25954 case "$gl_cv_func_mbrtowc_incomplete_state" in
25955 *yes) REPLACE_MBSTATE_T=0 ;;
25956 *) REPLACE_MBSTATE_T=1 ;;
25959 REPLACE_MBSTATE_T=1
25961 if test $REPLACE_MBSTATE_T = 1; then
25968 if test $REPLACE_MBSTATE_T = 1; then
25977 if test $ac_cv_func_mbrtowc = no; then
25980 if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
25984 { echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
25985 echo $ECHO_N "checking whether mbrtowc handles a NULL string argument... $ECHO_C" >&6; }
25986 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 # Guess no on OSF/1.
25992 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
25993 # Guess yes otherwise.
25994 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
25996 if test $LOCALE_FR_UTF8 != none; then
25997 if test "$cross_compiling" = yes; then
25998 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25999 See \`config.log' for more details." >&5
26000 echo "$as_me: error: cannot run test program while cross compiling
26001 See \`config.log' for more details." >&2;}
26002 { (exit 1); exit 1; }; }
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26011 #include <locale.h>
26012 #include <string.h>
26016 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26022 memset (&state, '\0', sizeof (mbstate_t));
26023 wc = (wchar_t) 0xBADFACE;
26024 mbrtowc (&wc, NULL, 5, &state);
26025 /* Check that wc was not modified. */
26026 if (wc != (wchar_t) 0xBADFACE)
26032 rm -f conftest$ac_exeext
26033 if { (ac_try="$ac_link"
26034 case "(($ac_try" in
26035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036 *) ac_try_echo=$ac_try;;
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039 (eval "$ac_link") 2>&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26043 { (case "(($ac_try" in
26044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045 *) ac_try_echo=$ac_try;;
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_try") 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 gl_cv_func_mbrtowc_null_arg=yes
26054 echo "$as_me: program exited with status $ac_status" >&5
26055 echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26058 ( exit $ac_status )
26059 gl_cv_func_mbrtowc_null_arg=no
26061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26068 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
26069 echo "${ECHO_T}$gl_cv_func_mbrtowc_null_arg" >&6; }
26075 { echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
26076 echo $ECHO_N "checking whether mbrtowc has a correct return value... $ECHO_C" >&6; }
26077 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
26078 echo $ECHO_N "(cached) $ECHO_C" >&6
26082 # Guess no on HP-UX and Solaris.
26083 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
26084 # Guess yes otherwise.
26085 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
26087 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
26088 if test "$cross_compiling" = yes; then
26089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26090 See \`config.log' for more details." >&5
26091 echo "$as_me: error: cannot run test program while cross compiling
26092 See \`config.log' for more details." >&2;}
26093 { (exit 1); exit 1; }; }
26095 cat >conftest.$ac_ext <<_ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h. */
26102 #include <locale.h>
26103 #include <string.h>
26107 /* This fails on Solaris. */
26108 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26110 char input[] = "B\303\274\303\237er"; /* "Büßer" */
26114 memset (&state, '\0', sizeof (mbstate_t));
26115 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26118 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
26122 /* This fails on HP-UX 11.11. */
26123 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26125 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26129 memset (&state, '\0', sizeof (mbstate_t));
26130 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26133 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
26140 rm -f conftest$ac_exeext
26141 if { (ac_try="$ac_link"
26142 case "(($ac_try" in
26143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144 *) ac_try_echo=$ac_try;;
26146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26147 (eval "$ac_link") 2>&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26151 { (case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156 (eval "$ac_try") 2>&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); }; }; then
26160 gl_cv_func_mbrtowc_retval=yes
26162 echo "$as_me: program exited with status $ac_status" >&5
26163 echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26166 ( exit $ac_status )
26167 gl_cv_func_mbrtowc_retval=no
26169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26176 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
26177 echo "${ECHO_T}$gl_cv_func_mbrtowc_retval" >&6; }
26182 { echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
26183 echo $ECHO_N "checking whether mbrtowc returns 0 when parsing a NUL character... $ECHO_C" >&6; }
26184 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
26185 echo $ECHO_N "(cached) $ECHO_C" >&6
26189 # Guess no on Solaris 9.
26190 solaris2.9) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
26191 # Guess yes otherwise.
26192 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
26194 if test $LOCALE_ZH_CN != none; then
26195 if test "$cross_compiling" = yes; then
26196 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26197 See \`config.log' for more details." >&5
26198 echo "$as_me: error: cannot run test program while cross compiling
26199 See \`config.log' for more details." >&2;}
26200 { (exit 1); exit 1; }; }
26202 cat >conftest.$ac_ext <<_ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h. */
26209 #include <locale.h>
26210 #include <string.h>
26214 /* This fails on Solaris 9. */
26215 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
26220 memset (&state, '\0', sizeof (mbstate_t));
26221 if (mbrtowc (&wc, "", 1, &state) != 0)
26227 rm -f conftest$ac_exeext
26228 if { (ac_try="$ac_link"
26229 case "(($ac_try" in
26230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26231 *) ac_try_echo=$ac_try;;
26233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26234 (eval "$ac_link") 2>&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26238 { (case "(($ac_try" in
26239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240 *) ac_try_echo=$ac_try;;
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243 (eval "$ac_try") 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; }; then
26247 gl_cv_func_mbrtowc_nul_retval=yes
26249 echo "$as_me: program exited with status $ac_status" >&5
26250 echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26253 ( exit $ac_status )
26254 gl_cv_func_mbrtowc_nul_retval=no
26256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26263 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
26264 echo "${ECHO_T}$gl_cv_func_mbrtowc_nul_retval" >&6; }
26266 case "$gl_cv_func_mbrtowc_null_arg" in
26269 cat >>confdefs.h <<\_ACEOF
26270 #define MBRTOWC_NULL_ARG_BUG 1
26276 case "$gl_cv_func_mbrtowc_retval" in
26279 cat >>confdefs.h <<\_ACEOF
26280 #define MBRTOWC_RETVAL_BUG 1
26286 case "$gl_cv_func_mbrtowc_nul_retval" in
26289 cat >>confdefs.h <<\_ACEOF
26290 #define MBRTOWC_NUL_RETVAL_BUG 1
26297 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
26310 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
26329 GNULIB_MBSCASECMP=1
26351 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
26355 { echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
26356 echo $ECHO_N "checking whether mbrtowc handles incomplete characters... $ECHO_C" >&6; }
26357 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 # Guess no on AIX and OSF/1.
26363 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
26364 # Guess yes otherwise.
26365 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
26367 if test $LOCALE_JA != none; then
26368 if test "$cross_compiling" = yes; then
26369 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26370 See \`config.log' for more details." >&5
26371 echo "$as_me: error: cannot run test program while cross compiling
26372 See \`config.log' for more details." >&2;}
26373 { (exit 1); exit 1; }; }
26375 cat >conftest.$ac_ext <<_ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h. */
26382 #include <locale.h>
26383 #include <string.h>
26387 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26389 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26393 memset (&state, '\0', sizeof (mbstate_t));
26394 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26395 if (mbsinit (&state))
26401 rm -f conftest$ac_exeext
26402 if { (ac_try="$ac_link"
26403 case "(($ac_try" in
26404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26405 *) ac_try_echo=$ac_try;;
26407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26408 (eval "$ac_link") 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26412 { (case "(($ac_try" in
26413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414 *) ac_try_echo=$ac_try;;
26416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26417 (eval "$ac_try") 2>&5
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); }; }; then
26421 gl_cv_func_mbrtowc_incomplete_state=yes
26423 echo "$as_me: program exited with status $ac_status" >&5
26424 echo "$as_me: failed program was:" >&5
26425 sed 's/^/| /' conftest.$ac_ext >&5
26427 ( exit $ac_status )
26428 gl_cv_func_mbrtowc_incomplete_state=no
26430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26437 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
26438 echo "${ECHO_T}$gl_cv_func_mbrtowc_incomplete_state" >&6; }
26440 case "$gl_cv_func_mbrtowc_incomplete_state" in
26441 *yes) REPLACE_MBSTATE_T=0 ;;
26442 *) REPLACE_MBSTATE_T=1 ;;
26445 REPLACE_MBSTATE_T=1
26447 if test $REPLACE_MBSTATE_T = 1; then
26454 if test $REPLACE_MBSTATE_T = 1; then
26463 if test $ac_cv_func_mbsinit = no; then
26466 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
26479 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
26510 for ac_func in mempcpy
26512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26518 cat >conftest.$ac_ext <<_ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h. */
26524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26526 #define $ac_func innocuous_$ac_func
26528 /* System header to define __stub macros and hopefully few prototypes,
26529 which can conflict with char $ac_func (); below.
26530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26531 <limits.h> exists even on freestanding compilers. */
26534 # include <limits.h>
26536 # include <assert.h>
26541 /* Override any GCC internal prototype to avoid an error.
26542 Use char because int might match the return type of a GCC
26543 builtin and then its argument prototype would still apply. */
26548 /* The GNU C library defines this for functions which it implements
26549 to always fail with ENOSYS. Some functions are actually named
26550 something starting with __ and the normal name is an alias. */
26551 #if defined __stub_$ac_func || defined __stub___$ac_func
26558 return $ac_func ();
26563 rm -f conftest.$ac_objext conftest$ac_exeext
26564 if { (ac_try="$ac_link"
26565 case "(($ac_try" in
26566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567 *) ac_try_echo=$ac_try;;
26569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26570 (eval "$ac_link") 2>conftest.er1
26572 grep -v '^ *+' conftest.er1 >conftest.err
26574 cat conftest.err >&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } && {
26577 test -z "$ac_c_werror_flag" ||
26578 test ! -s conftest.err
26579 } && test -s conftest$ac_exeext &&
26580 $as_test_x conftest$ac_exeext; then
26581 eval "$as_ac_var=yes"
26583 echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26586 eval "$as_ac_var=no"
26589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26590 conftest$ac_exeext conftest.$ac_ext
26592 ac_res=`eval echo '${'$as_ac_var'}'`
26593 { echo "$as_me:$LINENO: result: $ac_res" >&5
26594 echo "${ECHO_T}$ac_res" >&6; }
26595 if test `eval echo '${'$as_ac_var'}'` = yes; then
26596 cat >>confdefs.h <<_ACEOF
26597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26602 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26608 if test $ac_cv_func_mempcpy = no; then
26627 if test $ac_cv_have_decl_memrchr = no; then
26628 HAVE_DECL_MEMRCHR=0
26640 for ac_func in memrchr
26642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26646 echo $ECHO_N "(cached) $ECHO_C" >&6
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26656 #define $ac_func innocuous_$ac_func
26658 /* System header to define __stub macros and hopefully few prototypes,
26659 which can conflict with char $ac_func (); below.
26660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26661 <limits.h> exists even on freestanding compilers. */
26664 # include <limits.h>
26666 # include <assert.h>
26671 /* Override any GCC internal prototype to avoid an error.
26672 Use char because int might match the return type of a GCC
26673 builtin and then its argument prototype would still apply. */
26678 /* The GNU C library defines this for functions which it implements
26679 to always fail with ENOSYS. Some functions are actually named
26680 something starting with __ and the normal name is an alias. */
26681 #if defined __stub_$ac_func || defined __stub___$ac_func
26688 return $ac_func ();
26693 rm -f conftest.$ac_objext conftest$ac_exeext
26694 if { (ac_try="$ac_link"
26695 case "(($ac_try" in
26696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697 *) ac_try_echo=$ac_try;;
26699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26700 (eval "$ac_link") 2>conftest.er1
26702 grep -v '^ *+' conftest.er1 >conftest.err
26704 cat conftest.err >&5
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); } && {
26707 test -z "$ac_c_werror_flag" ||
26708 test ! -s conftest.err
26709 } && test -s conftest$ac_exeext &&
26710 $as_test_x conftest$ac_exeext; then
26711 eval "$as_ac_var=yes"
26713 echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26716 eval "$as_ac_var=no"
26719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26720 conftest$ac_exeext conftest.$ac_ext
26722 ac_res=`eval echo '${'$as_ac_var'}'`
26723 { echo "$as_me:$LINENO: result: $ac_res" >&5
26724 echo "${ECHO_T}$ac_res" >&6; }
26725 if test `eval echo '${'$as_ac_var'}'` = yes; then
26726 cat >>confdefs.h <<_ACEOF
26727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26732 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26738 if test $ac_cv_func_memrchr = no; then
26757 for ac_func in mkdtemp
26759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
26765 cat >conftest.$ac_ext <<_ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26773 #define $ac_func innocuous_$ac_func
26775 /* System header to define __stub macros and hopefully few prototypes,
26776 which can conflict with char $ac_func (); below.
26777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26778 <limits.h> exists even on freestanding compilers. */
26781 # include <limits.h>
26783 # include <assert.h>
26788 /* Override any GCC internal prototype to avoid an error.
26789 Use char because int might match the return type of a GCC
26790 builtin and then its argument prototype would still apply. */
26795 /* The GNU C library defines this for functions which it implements
26796 to always fail with ENOSYS. Some functions are actually named
26797 something starting with __ and the normal name is an alias. */
26798 #if defined __stub_$ac_func || defined __stub___$ac_func
26805 return $ac_func ();
26810 rm -f conftest.$ac_objext conftest$ac_exeext
26811 if { (ac_try="$ac_link"
26812 case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_link") 2>conftest.er1
26819 grep -v '^ *+' conftest.er1 >conftest.err
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } && {
26824 test -z "$ac_c_werror_flag" ||
26825 test ! -s conftest.err
26826 } && test -s conftest$ac_exeext &&
26827 $as_test_x conftest$ac_exeext; then
26828 eval "$as_ac_var=yes"
26830 echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26833 eval "$as_ac_var=no"
26836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26837 conftest$ac_exeext conftest.$ac_ext
26839 ac_res=`eval echo '${'$as_ac_var'}'`
26840 { echo "$as_me:$LINENO: result: $ac_res" >&5
26841 echo "${ECHO_T}$ac_res" >&6; }
26842 if test `eval echo '${'$as_ac_var'}'` = yes; then
26843 cat >>confdefs.h <<_ACEOF
26844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26849 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26855 if test $ac_cv_func_mkdtemp = no; then
26879 if test $APPLE_UNIVERSAL_BUILD = 1; then
26880 # A universal build on Apple MacOS X platforms.
26881 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
26882 # But we need a configuration result that is valid in both modes.
26883 ac_cv_func_working_mktime=no
26885 { echo "$as_me:$LINENO: checking for working mktime" >&5
26886 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
26887 if test "${ac_cv_func_working_mktime+set}" = set; then
26888 echo $ECHO_N "(cached) $ECHO_C" >&6
26890 if test "$cross_compiling" = yes; then
26891 ac_cv_func_working_mktime=no
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 /* Test program from Paul Eggert and Tony Leneis. */
26900 #include <limits.h>
26901 #include <stdlib.h>
26904 #ifdef HAVE_UNISTD_H
26905 # include <unistd.h>
26909 # define alarm(X) /* empty */
26912 /* Work around redefinition to rpl_putenv by other config tests. */
26915 static time_t time_t_max;
26916 static time_t time_t_min;
26918 /* Values we'll use to set the TZ environment variable. */
26919 static char *tz_strings[] = {
26920 (char *) 0, "TZ=GMT0", "TZ=JST-9",
26921 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
26923 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
26925 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
26926 Based on a problem report from Andreas Jaeger. */
26928 spring_forward_gap ()
26930 /* glibc (up to about 1998-10-07) failed this test. */
26933 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
26934 instead of "TZ=America/Vancouver" in order to detect the bug even
26935 on systems that don't support the Olson extension, or don't have the
26936 full zoneinfo tables installed. */
26937 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
26946 return mktime (&tm) != (time_t) -1;
26950 mktime_test1 (time_t now)
26953 return ! (lt = localtime (&now)) || mktime (lt) == now;
26957 mktime_test (time_t now)
26959 return (mktime_test1 (now)
26960 && mktime_test1 ((time_t) (time_t_max - now))
26961 && mktime_test1 ((time_t) (time_t_min + now)));
26967 /* Based on code from Ariel Faigon. */
26977 return tm.tm_mon == 2 && tm.tm_mday == 31;
26981 bigtime_test (int j)
26985 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
26986 now = mktime (&tm);
26987 if (now != (time_t) -1)
26989 struct tm *lt = localtime (&now);
26991 && lt->tm_year == tm.tm_year
26992 && lt->tm_mon == tm.tm_mon
26993 && lt->tm_mday == tm.tm_mday
26994 && lt->tm_hour == tm.tm_hour
26995 && lt->tm_min == tm.tm_min
26996 && lt->tm_sec == tm.tm_sec
26997 && lt->tm_yday == tm.tm_yday
26998 && lt->tm_wday == tm.tm_wday
26999 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
27000 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
27009 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
27010 ignoring leap seconds. */
27011 unsigned long int answer = 2527315200UL;
27015 tm.tm_year = 2050 - 1900;
27018 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
27021 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
27022 instead of "TZ=America/Vancouver" in order to detect the bug even
27023 on systems that don't support the Olson extension, or don't have the
27024 full zoneinfo tables installed. */
27025 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
27029 /* Check that the result is either a failure, or close enough
27030 to the correct answer that we can assume the discrepancy is
27031 due to leap seconds. */
27032 return (t == (time_t) -1
27033 || (0 < t && answer - 120 <= t && t <= answer + 120));
27042 /* This test makes some buggy mktime implementations loop.
27043 Give up after 60 seconds; a mktime slower than that
27044 isn't worth using anyway. */
27049 t = (time_t_max << 1) + 1;
27050 if (t <= time_t_max)
27054 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
27056 delta = time_t_max / 997; /* a suitable prime number */
27057 for (i = 0; i < N_STRINGS; i++)
27060 putenv (tz_strings[i]);
27062 for (t = 0; t <= time_t_max - delta; t += delta)
27063 if (! mktime_test (t))
27065 if (! (mktime_test ((time_t) 1)
27066 && mktime_test ((time_t) (60 * 60))
27067 && mktime_test ((time_t) (60 * 60 * 24))))
27070 for (j = 1; ; j <<= 1)
27071 if (! bigtime_test (j))
27073 else if (INT_MAX / 2 < j)
27075 if (! bigtime_test (INT_MAX))
27078 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
27081 rm -f conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_link") 2>&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27092 { (case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_try") 2>&5
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); }; }; then
27101 ac_cv_func_working_mktime=yes
27103 echo "$as_me: program exited with status $ac_status" >&5
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27107 ( exit $ac_status )
27108 ac_cv_func_working_mktime=no
27110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27115 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
27116 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
27117 if test $ac_cv_func_working_mktime = no; then
27126 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
27130 if test $ac_cv_func_working_mktime = no; then
27132 cat >>confdefs.h <<\_ACEOF
27133 #define mktime rpl_mktime
27150 gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
27166 { echo "$as_me:$LINENO: checking for obstacks" >&5
27167 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
27168 if test "${ac_cv_func_obstack+set}" = set; then
27169 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27177 $ac_includes_default
27178 #include "obstack.h"
27182 struct obstack mem;
27183 #define obstack_chunk_alloc malloc
27184 #define obstack_chunk_free free
27185 obstack_init (&mem);
27186 obstack_free (&mem, 0);
27191 rm -f conftest.$ac_objext conftest$ac_exeext
27192 if { (ac_try="$ac_link"
27193 case "(($ac_try" in
27194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195 *) ac_try_echo=$ac_try;;
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198 (eval "$ac_link") 2>conftest.er1
27200 grep -v '^ *+' conftest.er1 >conftest.err
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } && {
27205 test -z "$ac_c_werror_flag" ||
27206 test ! -s conftest.err
27207 } && test -s conftest$ac_exeext &&
27208 $as_test_x conftest$ac_exeext; then
27209 ac_cv_func_obstack=yes
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_cv_func_obstack=no
27217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27218 conftest$ac_exeext conftest.$ac_ext
27220 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
27221 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
27222 if test $ac_cv_func_obstack = yes; then
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_OBSTACK 1
27237 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
27247 if test $REPLACE_OPEN != 1; then
27256 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
27267 { echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
27268 echo $ECHO_N "checking whether open recognizes a trailing slash... $ECHO_C" >&6; }
27269 if test "${gl_cv_func_open_slash+set}" = set; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27273 if test "$cross_compiling" = yes; then
27276 solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
27277 hpux*) gl_cv_func_open_slash="guessing no" ;;
27278 *) gl_cv_func_open_slash="guessing yes" ;;
27282 cat >conftest.$ac_ext <<_ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h. */
27291 # include <unistd.h>
27295 return open ("conftest.sl/", O_CREAT, 0600) >= 0;
27298 rm -f conftest$ac_exeext
27299 if { (ac_try="$ac_link"
27300 case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305 (eval "$ac_link") 2>&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27309 { (case "(($ac_try" in
27310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27311 *) ac_try_echo=$ac_try;;
27313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27314 (eval "$ac_try") 2>&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; }; then
27318 gl_cv_func_open_slash=yes
27320 echo "$as_me: program exited with status $ac_status" >&5
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27324 ( exit $ac_status )
27325 gl_cv_func_open_slash=no
27327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27334 { echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
27335 echo "${ECHO_T}$gl_cv_func_open_slash" >&6; }
27336 case "$gl_cv_func_open_slash" in
27339 cat >>confdefs.h <<\_ACEOF
27340 #define OPEN_TRAILING_SLASH_BUG 1
27345 if test $REPLACE_OPEN != 1; then
27354 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
27370 cat >>confdefs.h <<\_ACEOF
27371 #define GNULIB_OPEN 1
27388 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27428 for ac_func in fchmodat mkdirat openat
27430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27434 echo $ECHO_N "(cached) $ECHO_C" >&6
27436 cat >conftest.$ac_ext <<_ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h. */
27442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27444 #define $ac_func innocuous_$ac_func
27446 /* System header to define __stub macros and hopefully few prototypes,
27447 which can conflict with char $ac_func (); below.
27448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27449 <limits.h> exists even on freestanding compilers. */
27452 # include <limits.h>
27454 # include <assert.h>
27459 /* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27466 /* The GNU C library defines this for functions which it implements
27467 to always fail with ENOSYS. Some functions are actually named
27468 something starting with __ and the normal name is an alias. */
27469 #if defined __stub_$ac_func || defined __stub___$ac_func
27476 return $ac_func ();
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
27490 grep -v '^ *+' conftest.er1 >conftest.err
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } && {
27495 test -z "$ac_c_werror_flag" ||
27496 test ! -s conftest.err
27497 } && test -s conftest$ac_exeext &&
27498 $as_test_x conftest$ac_exeext; then
27499 eval "$as_ac_var=yes"
27501 echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27504 eval "$as_ac_var=no"
27507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27508 conftest$ac_exeext conftest.$ac_ext
27510 ac_res=`eval echo '${'$as_ac_var'}'`
27511 { echo "$as_me:$LINENO: result: $ac_res" >&5
27512 echo "${ECHO_T}$ac_res" >&6; }
27513 if test `eval echo '${'$as_ac_var'}'` = yes; then
27514 cat >>confdefs.h <<_ACEOF
27515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27520 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
27527 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
27537 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
27541 cat >>confdefs.h <<\_ACEOF
27542 #define __OPENAT_PREFIX rpl_
27550 # Assume we'll use the replacement function.
27551 # The only case in which we won't is when we have fchownat, and it works.
27552 use_replacement_fchownat=yes
27554 { echo "$as_me:$LINENO: checking for fchownat" >&5
27555 echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
27556 if test "${ac_cv_func_fchownat+set}" = set; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27565 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
27566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27567 #define fchownat innocuous_fchownat
27569 /* System header to define __stub macros and hopefully few prototypes,
27570 which can conflict with char fchownat (); below.
27571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27572 <limits.h> exists even on freestanding compilers. */
27575 # include <limits.h>
27577 # include <assert.h>
27582 /* Override any GCC internal prototype to avoid an error.
27583 Use char because int might match the return type of a GCC
27584 builtin and then its argument prototype would still apply. */
27589 /* The GNU C library defines this for functions which it implements
27590 to always fail with ENOSYS. Some functions are actually named
27591 something starting with __ and the normal name is an alias. */
27592 #if defined __stub_fchownat || defined __stub___fchownat
27599 return fchownat ();
27604 rm -f conftest.$ac_objext conftest$ac_exeext
27605 if { (ac_try="$ac_link"
27606 case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_link") 2>conftest.er1
27613 grep -v '^ *+' conftest.er1 >conftest.err
27615 cat conftest.err >&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); } && {
27618 test -z "$ac_c_werror_flag" ||
27619 test ! -s conftest.err
27620 } && test -s conftest$ac_exeext &&
27621 $as_test_x conftest$ac_exeext; then
27622 ac_cv_func_fchownat=yes
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 ac_cv_func_fchownat=no
27630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27631 conftest$ac_exeext conftest.$ac_ext
27633 { echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
27634 echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
27635 if test $ac_cv_func_fchownat = yes; then
27641 if test $have_fchownat = yes; then
27643 { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
27644 echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
27645 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
27646 echo $ECHO_N "(cached) $ECHO_C" >&6
27649 gl_dangle=conftest.dangle
27650 # Remove any remnants of a previous test.
27652 # Arrange for deletion of the temporary file this test creates.
27653 ac_clean_files="$ac_clean_files $gl_dangle"
27654 ln -s conftest.no-such $gl_dangle
27655 if test "$cross_compiling" = yes; then
27656 gl_cv_func_fchownat_nofollow_works=no
27658 cat >conftest.$ac_ext <<_ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27666 #include <unistd.h>
27667 #include <stdlib.h>
27669 #include <sys/types.h>
27673 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
27674 AT_SYMLINK_NOFOLLOW) != 0
27675 && errno == ENOENT);
27679 rm -f conftest$ac_exeext
27680 if { (ac_try="$ac_link"
27681 case "(($ac_try" in
27682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686 (eval "$ac_link") 2>&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27690 { (case "(($ac_try" in
27691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692 *) ac_try_echo=$ac_try;;
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695 (eval "$ac_try") 2>&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); }; }; then
27699 gl_cv_func_fchownat_nofollow_works=yes
27701 echo "$as_me: program exited with status $ac_status" >&5
27702 echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27705 ( exit $ac_status )
27706 gl_cv_func_fchownat_nofollow_works=no
27708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27714 { echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
27715 echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
27716 if test $gl_cv_func_fchownat_nofollow_works = no; then
27719 use_replacement_fchownat=no
27725 if test $use_replacement_fchownat = yes; then
27734 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
27737 cat >>confdefs.h <<\_ACEOF
27738 #define fchownat rpl_fchownat
27761 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
27774 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
27785 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
27786 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
27787 if test "${ac_cv_type_mbstate_t+set}" = set; then
27788 echo $ECHO_N "(cached) $ECHO_C" >&6
27790 cat >conftest.$ac_ext <<_ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h. */
27796 $ac_includes_default
27797 # include <wchar.h>
27801 mbstate_t x; return sizeof x;
27806 rm -f conftest.$ac_objext
27807 if { (ac_try="$ac_compile"
27808 case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_compile") 2>conftest.er1
27815 grep -v '^ *+' conftest.er1 >conftest.err
27817 cat conftest.err >&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } && {
27820 test -z "$ac_c_werror_flag" ||
27821 test ! -s conftest.err
27822 } && test -s conftest.$ac_objext; then
27823 ac_cv_type_mbstate_t=yes
27825 echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27828 ac_cv_type_mbstate_t=no
27831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27833 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
27834 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
27835 if test $ac_cv_type_mbstate_t = yes; then
27837 cat >>confdefs.h <<\_ACEOF
27838 #define HAVE_MBSTATE_T 1
27843 cat >>confdefs.h <<\_ACEOF
27844 #define mbstate_t int
27850 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
27851 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
27852 if test "${ac_cv_func_mbrtowc+set}" = set; then
27853 echo $ECHO_N "(cached) $ECHO_C" >&6
27855 cat >conftest.$ac_ext <<_ACEOF
27858 cat confdefs.h >>conftest.$ac_ext
27859 cat >>conftest.$ac_ext <<_ACEOF
27860 /* end confdefs.h. */
27866 char const s[] = "";
27869 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
27874 rm -f conftest.$ac_objext conftest$ac_exeext
27875 if { (ac_try="$ac_link"
27876 case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_link") 2>conftest.er1
27883 grep -v '^ *+' conftest.er1 >conftest.err
27885 cat conftest.err >&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } && {
27888 test -z "$ac_c_werror_flag" ||
27889 test ! -s conftest.err
27890 } && test -s conftest$ac_exeext &&
27891 $as_test_x conftest$ac_exeext; then
27892 ac_cv_func_mbrtowc=yes
27894 echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27897 ac_cv_func_mbrtowc=no
27900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27901 conftest$ac_exeext conftest.$ac_ext
27903 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
27904 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
27905 if test $ac_cv_func_mbrtowc = yes; then
27907 cat >>confdefs.h <<\_ACEOF
27908 #define HAVE_MBRTOWC 1
27927 for ac_func in rawmemchr
27929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27933 echo $ECHO_N "(cached) $ECHO_C" >&6
27935 cat >conftest.$ac_ext <<_ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h. */
27941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27943 #define $ac_func innocuous_$ac_func
27945 /* System header to define __stub macros and hopefully few prototypes,
27946 which can conflict with char $ac_func (); below.
27947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27948 <limits.h> exists even on freestanding compilers. */
27951 # include <limits.h>
27953 # include <assert.h>
27958 /* Override any GCC internal prototype to avoid an error.
27959 Use char because int might match the return type of a GCC
27960 builtin and then its argument prototype would still apply. */
27965 /* The GNU C library defines this for functions which it implements
27966 to always fail with ENOSYS. Some functions are actually named
27967 something starting with __ and the normal name is an alias. */
27968 #if defined __stub_$ac_func || defined __stub___$ac_func
27975 return $ac_func ();
27980 rm -f conftest.$ac_objext conftest$ac_exeext
27981 if { (ac_try="$ac_link"
27982 case "(($ac_try" in
27983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984 *) ac_try_echo=$ac_try;;
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987 (eval "$ac_link") 2>conftest.er1
27989 grep -v '^ *+' conftest.er1 >conftest.err
27991 cat conftest.err >&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); } && {
27994 test -z "$ac_c_werror_flag" ||
27995 test ! -s conftest.err
27996 } && test -s conftest$ac_exeext &&
27997 $as_test_x conftest$ac_exeext; then
27998 eval "$as_ac_var=yes"
28000 echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28003 eval "$as_ac_var=no"
28006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007 conftest$ac_exeext conftest.$ac_ext
28009 ac_res=`eval echo '${'$as_ac_var'}'`
28010 { echo "$as_me:$LINENO: result: $ac_res" >&5
28011 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_var'}'` = yes; then
28013 cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28019 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28025 if test $ac_cv_func_rawmemchr = no; then
28042 if test $ac_cv_func_readlink = no; then
28052 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
28065 if test $gl_cv_func_malloc_posix = yes; then
28066 HAVE_REALLOC_POSIX=1
28068 cat >>confdefs.h <<\_ACEOF
28069 #define HAVE_REALLOC_POSIX 1
28081 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
28083 HAVE_REALLOC_POSIX=0
28089 GNULIB_REALLOC_POSIX=1
28100 # Check whether --with-included-regex was given.
28101 if test "${with_included_regex+set}" = set; then
28102 withval=$with_included_regex;
28106 case $with_included_regex in #(
28107 yes|no) ac_use_included_regex=$with_included_regex
28110 # If the system regex support is good enough that it passes the
28111 # following run test, then default to *not* using the included regex.c.
28112 # If cross compiling, assume the test would fail and use the included
28114 { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
28115 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
28116 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
28117 echo $ECHO_N "(cached) $ECHO_C" >&6
28119 if test "$cross_compiling" = yes; then
28120 gl_cv_func_re_compile_pattern_working=no
28122 cat >conftest.$ac_ext <<_ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h. */
28128 $ac_includes_default
28130 #include <locale.h>
28132 #include <limits.h>
28138 static struct re_pattern_buffer regex;
28139 unsigned char folded_chars[UCHAR_MAX + 1];
28142 struct re_registers regs;
28145 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
28146 This test needs valgrind to catch the bug on Debian
28147 GNU/Linux 3.1 x86, but it might catch the bug better
28148 on other platforms and it shouldn't hurt to try the
28150 if (setlocale (LC_ALL, "en_US.UTF-8"))
28152 static char const pat[] = "insert into";
28153 static char const data[] =
28154 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
28155 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
28157 memset (®ex, 0, sizeof regex);
28158 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
28161 if (re_search (®ex, data, sizeof data - 1,
28162 0, sizeof data - 1, ®s)
28165 if (! setlocale (LC_ALL, "C"))
28170 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
28171 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
28172 memset (®ex, 0, sizeof regex);
28173 s = re_compile_pattern ("a[^x]b", 6, ®ex);
28177 /* This should fail, but succeeds for glibc-2.5. */
28178 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
28181 /* This regular expression is from Spencer ere test number 75
28183 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
28184 memset (®ex, 0, sizeof regex);
28185 for (i = 0; i <= UCHAR_MAX; i++)
28186 folded_chars[i] = i;
28187 regex.translate = folded_chars;
28188 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
28189 /* This should fail with _Invalid character class name_ error. */
28193 /* This should succeed, but does not for glibc-2.1.3. */
28194 memset (®ex, 0, sizeof regex);
28195 s = re_compile_pattern ("{1", 2, ®ex);
28200 /* The following example is derived from a problem report
28201 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
28202 memset (®ex, 0, sizeof regex);
28203 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
28207 /* This should match, but does not for glibc-2.2.1. */
28208 if (re_match (®ex, "an", 2, 0, ®s) != 2)
28211 memset (®ex, 0, sizeof regex);
28212 s = re_compile_pattern ("x", 1, ®ex);
28216 /* glibc-2.2.93 does not work with a negative RANGE argument. */
28217 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
28220 /* The version of regex.c in older versions of gnulib
28221 ignored RE_ICASE. Detect that problem too. */
28222 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
28223 memset (®ex, 0, sizeof regex);
28224 s = re_compile_pattern ("x", 1, ®ex);
28228 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
28231 /* Catch a bug reported by Vin Shelton in
28232 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
28234 re_set_syntax (RE_SYNTAX_POSIX_BASIC
28235 & ~RE_CONTEXT_INVALID_DUP
28236 & ~RE_NO_EMPTY_RANGES);
28237 memset (®ex, 0, sizeof regex);
28238 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
28242 /* REG_STARTEND was added to glibc on 2004-01-15.
28243 Reject older versions. */
28244 if (! REG_STARTEND)
28247 /* Reject hosts whose regoff_t values are too narrow.
28248 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
28250 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
28251 || sizeof (regoff_t) < sizeof (ssize_t))
28259 rm -f conftest$ac_exeext
28260 if { (ac_try="$ac_link"
28261 case "(($ac_try" in
28262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263 *) ac_try_echo=$ac_try;;
28265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266 (eval "$ac_link") 2>&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28270 { (case "(($ac_try" in
28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272 *) ac_try_echo=$ac_try;;
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275 (eval "$ac_try") 2>&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; }; then
28279 gl_cv_func_re_compile_pattern_working=yes
28281 echo "$as_me: program exited with status $ac_status" >&5
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28285 ( exit $ac_status )
28286 gl_cv_func_re_compile_pattern_working=no
28288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28293 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
28294 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
28295 case $gl_cv_func_re_compile_pattern_working in #(
28296 yes) ac_use_included_regex=no;; #(
28297 no) ac_use_included_regex=yes;;
28300 *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
28301 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
28302 { (exit 1); exit 1; }; }
28306 if test $ac_use_included_regex = yes; then
28308 cat >>confdefs.h <<\_ACEOF
28309 #define _REGEX_LARGE_OFFSETS 1
28313 cat >>confdefs.h <<\_ACEOF
28314 #define re_syntax_options rpl_re_syntax_options
28318 cat >>confdefs.h <<\_ACEOF
28319 #define re_set_syntax rpl_re_set_syntax
28323 cat >>confdefs.h <<\_ACEOF
28324 #define re_compile_pattern rpl_re_compile_pattern
28328 cat >>confdefs.h <<\_ACEOF
28329 #define re_compile_fastmap rpl_re_compile_fastmap
28333 cat >>confdefs.h <<\_ACEOF
28334 #define re_search rpl_re_search
28338 cat >>confdefs.h <<\_ACEOF
28339 #define re_search_2 rpl_re_search_2
28343 cat >>confdefs.h <<\_ACEOF
28344 #define re_match rpl_re_match
28348 cat >>confdefs.h <<\_ACEOF
28349 #define re_match_2 rpl_re_match_2
28353 cat >>confdefs.h <<\_ACEOF
28354 #define re_set_registers rpl_re_set_registers
28358 cat >>confdefs.h <<\_ACEOF
28359 #define re_comp rpl_re_comp
28363 cat >>confdefs.h <<\_ACEOF
28364 #define re_exec rpl_re_exec
28368 cat >>confdefs.h <<\_ACEOF
28369 #define regcomp rpl_regcomp
28373 cat >>confdefs.h <<\_ACEOF
28374 #define regexec rpl_regexec
28378 cat >>confdefs.h <<\_ACEOF
28379 #define regerror rpl_regerror
28383 cat >>confdefs.h <<\_ACEOF
28384 #define regfree rpl_regfree
28395 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
28402 for ac_header in libintl.h
28404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28409 echo $ECHO_N "(cached) $ECHO_C" >&6
28411 ac_res=`eval echo '${'$as_ac_Header'}'`
28412 { echo "$as_me:$LINENO: result: $ac_res" >&5
28413 echo "${ECHO_T}$ac_res" >&6; }
28415 # Is the header compilable?
28416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28418 cat >conftest.$ac_ext <<_ACEOF
28421 cat confdefs.h >>conftest.$ac_ext
28422 cat >>conftest.$ac_ext <<_ACEOF
28423 /* end confdefs.h. */
28424 $ac_includes_default
28425 #include <$ac_header>
28427 rm -f conftest.$ac_objext
28428 if { (ac_try="$ac_compile"
28429 case "(($ac_try" in
28430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28431 *) ac_try_echo=$ac_try;;
28433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28434 (eval "$ac_compile") 2>conftest.er1
28436 grep -v '^ *+' conftest.er1 >conftest.err
28438 cat conftest.err >&5
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); } && {
28441 test -z "$ac_c_werror_flag" ||
28442 test ! -s conftest.err
28443 } && test -s conftest.$ac_objext; then
28444 ac_header_compiler=yes
28446 echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28449 ac_header_compiler=no
28452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28454 echo "${ECHO_T}$ac_header_compiler" >&6; }
28456 # Is the header present?
28457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28465 #include <$ac_header>
28467 if { (ac_try="$ac_cpp conftest.$ac_ext"
28468 case "(($ac_try" in
28469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28475 grep -v '^ *+' conftest.er1 >conftest.err
28477 cat conftest.err >&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } >/dev/null && {
28480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28481 test ! -s conftest.err
28483 ac_header_preproc=yes
28485 echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28488 ac_header_preproc=no
28491 rm -f conftest.err conftest.$ac_ext
28492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28493 echo "${ECHO_T}$ac_header_preproc" >&6; }
28495 # So? What about this header?
28496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28502 ac_header_preproc=yes
28505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28518 ## ------------------------------ ##
28519 ## Report this to bug-tar@gnu.org ##
28520 ## ------------------------------ ##
28522 ) | sed "s/^/$as_me: WARNING: /" >&2
28525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 eval "$as_ac_Header=\$ac_header_preproc"
28532 ac_res=`eval echo '${'$as_ac_Header'}'`
28533 { echo "$as_me:$LINENO: result: $ac_res" >&5
28534 echo "${ECHO_T}$ac_res" >&6; }
28537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28538 cat >>confdefs.h <<_ACEOF
28539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28556 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
28557 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
28558 if test "${ac_cv_have_decl_isblank+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 cat >conftest.$ac_ext <<_ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h. */
28580 rm -f conftest.$ac_objext
28581 if { (ac_try="$ac_compile"
28582 case "(($ac_try" in
28583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584 *) ac_try_echo=$ac_try;;
28586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587 (eval "$ac_compile") 2>conftest.er1
28589 grep -v '^ *+' conftest.er1 >conftest.err
28591 cat conftest.err >&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } && {
28594 test -z "$ac_c_werror_flag" ||
28595 test ! -s conftest.err
28596 } && test -s conftest.$ac_objext; then
28597 ac_cv_have_decl_isblank=yes
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28602 ac_cv_have_decl_isblank=no
28605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28607 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
28608 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
28609 if test $ac_cv_have_decl_isblank = yes; then
28611 cat >>confdefs.h <<_ACEOF
28612 #define HAVE_DECL_ISBLANK 1
28617 cat >>confdefs.h <<_ACEOF
28618 #define HAVE_DECL_ISBLANK 0
28641 for ac_func in rpmatch
28643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28647 echo $ECHO_N "(cached) $ECHO_C" >&6
28649 cat >conftest.$ac_ext <<_ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h. */
28655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28657 #define $ac_func innocuous_$ac_func
28659 /* System header to define __stub macros and hopefully few prototypes,
28660 which can conflict with char $ac_func (); below.
28661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28662 <limits.h> exists even on freestanding compilers. */
28665 # include <limits.h>
28667 # include <assert.h>
28672 /* Override any GCC internal prototype to avoid an error.
28673 Use char because int might match the return type of a GCC
28674 builtin and then its argument prototype would still apply. */
28679 /* The GNU C library defines this for functions which it implements
28680 to always fail with ENOSYS. Some functions are actually named
28681 something starting with __ and the normal name is an alias. */
28682 #if defined __stub_$ac_func || defined __stub___$ac_func
28689 return $ac_func ();
28694 rm -f conftest.$ac_objext conftest$ac_exeext
28695 if { (ac_try="$ac_link"
28696 case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_link") 2>conftest.er1
28703 grep -v '^ *+' conftest.er1 >conftest.err
28705 cat conftest.err >&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } && {
28708 test -z "$ac_c_werror_flag" ||
28709 test ! -s conftest.err
28710 } && test -s conftest$ac_exeext &&
28711 $as_test_x conftest$ac_exeext; then
28712 eval "$as_ac_var=yes"
28714 echo "$as_me: failed program was:" >&5
28715 sed 's/^/| /' conftest.$ac_ext >&5
28717 eval "$as_ac_var=no"
28720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28721 conftest$ac_exeext conftest.$ac_ext
28723 ac_res=`eval echo '${'$as_ac_var'}'`
28724 { echo "$as_me:$LINENO: result: $ac_res" >&5
28725 echo "${ECHO_T}$ac_res" >&6; }
28726 if test `eval echo '${'$as_ac_var'}'` = yes; then
28727 cat >>confdefs.h <<_ACEOF
28728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28733 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28739 if test $ac_cv_func_rpmatch = no; then
28742 { echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
28743 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6; }
28744 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28747 cat >conftest.$ac_ext <<_ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h. */
28753 #include <langinfo.h>
28757 char* cs = nl_langinfo(YESEXPR); return !cs;
28762 rm -f conftest.$ac_objext conftest$ac_exeext
28763 if { (ac_try="$ac_link"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_link") 2>conftest.er1
28771 grep -v '^ *+' conftest.er1 >conftest.err
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } && {
28776 test -z "$ac_c_werror_flag" ||
28777 test ! -s conftest.err
28778 } && test -s conftest$ac_exeext &&
28779 $as_test_x conftest$ac_exeext; then
28780 gl_cv_langinfo_yesexpr=yes
28782 echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28785 gl_cv_langinfo_yesexpr=no
28788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28789 conftest$ac_exeext conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
28793 echo "${ECHO_T}$gl_cv_langinfo_yesexpr" >&6; }
28794 if test $gl_cv_langinfo_yesexpr = yes; then
28796 cat >>confdefs.h <<\_ACEOF
28797 #define HAVE_LANGINFO_YESEXPR 1
28817 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
28833 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
28851 gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
28869 gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
28880 if test $ac_cv_func_setenv = no; then
28890 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
28902 for ac_header in search.h
28904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28911 ac_res=`eval echo '${'$as_ac_Header'}'`
28912 { echo "$as_me:$LINENO: result: $ac_res" >&5
28913 echo "${ECHO_T}$ac_res" >&6; }
28915 # Is the header compilable?
28916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28918 cat >conftest.$ac_ext <<_ACEOF
28921 cat confdefs.h >>conftest.$ac_ext
28922 cat >>conftest.$ac_ext <<_ACEOF
28923 /* end confdefs.h. */
28924 $ac_includes_default
28925 #include <$ac_header>
28927 rm -f conftest.$ac_objext
28928 if { (ac_try="$ac_compile"
28929 case "(($ac_try" in
28930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28931 *) ac_try_echo=$ac_try;;
28933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28934 (eval "$ac_compile") 2>conftest.er1
28936 grep -v '^ *+' conftest.er1 >conftest.err
28938 cat conftest.err >&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } && {
28941 test -z "$ac_c_werror_flag" ||
28942 test ! -s conftest.err
28943 } && test -s conftest.$ac_objext; then
28944 ac_header_compiler=yes
28946 echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28949 ac_header_compiler=no
28952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28954 echo "${ECHO_T}$ac_header_compiler" >&6; }
28956 # Is the header present?
28957 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28959 cat >conftest.$ac_ext <<_ACEOF
28962 cat confdefs.h >>conftest.$ac_ext
28963 cat >>conftest.$ac_ext <<_ACEOF
28964 /* end confdefs.h. */
28965 #include <$ac_header>
28967 if { (ac_try="$ac_cpp conftest.$ac_ext"
28968 case "(($ac_try" in
28969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 *) ac_try_echo=$ac_try;;
28972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28975 grep -v '^ *+' conftest.er1 >conftest.err
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } >/dev/null && {
28980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28981 test ! -s conftest.err
28983 ac_header_preproc=yes
28985 echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28988 ac_header_preproc=no
28991 rm -f conftest.err conftest.$ac_ext
28992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993 echo "${ECHO_T}$ac_header_preproc" >&6; }
28995 # So? What about this header?
28996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29002 ac_header_preproc=yes
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29018 ## ------------------------------ ##
29019 ## Report this to bug-tar@gnu.org ##
29020 ## ------------------------------ ##
29022 ) | sed "s/^/$as_me: WARNING: /" >&2
29025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 eval "$as_ac_Header=\$ac_header_preproc"
29032 ac_res=`eval echo '${'$as_ac_Header'}'`
29033 { echo "$as_me:$LINENO: result: $ac_res" >&5
29034 echo "${ECHO_T}$ac_res" >&6; }
29037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29038 cat >>confdefs.h <<_ACEOF
29039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29047 for ac_func in tsearch
29049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 cat >conftest.$ac_ext <<_ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h. */
29061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29063 #define $ac_func innocuous_$ac_func
29065 /* System header to define __stub macros and hopefully few prototypes,
29066 which can conflict with char $ac_func (); below.
29067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29068 <limits.h> exists even on freestanding compilers. */
29071 # include <limits.h>
29073 # include <assert.h>
29078 /* Override any GCC internal prototype to avoid an error.
29079 Use char because int might match the return type of a GCC
29080 builtin and then its argument prototype would still apply. */
29085 /* The GNU C library defines this for functions which it implements
29086 to always fail with ENOSYS. Some functions are actually named
29087 something starting with __ and the normal name is an alias. */
29088 #if defined __stub_$ac_func || defined __stub___$ac_func
29095 return $ac_func ();
29100 rm -f conftest.$ac_objext conftest$ac_exeext
29101 if { (ac_try="$ac_link"
29102 case "(($ac_try" in
29103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104 *) ac_try_echo=$ac_try;;
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107 (eval "$ac_link") 2>conftest.er1
29109 grep -v '^ *+' conftest.er1 >conftest.err
29111 cat conftest.err >&5
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); } && {
29114 test -z "$ac_c_werror_flag" ||
29115 test ! -s conftest.err
29116 } && test -s conftest$ac_exeext &&
29117 $as_test_x conftest$ac_exeext; then
29118 eval "$as_ac_var=yes"
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29123 eval "$as_ac_var=no"
29126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29127 conftest$ac_exeext conftest.$ac_ext
29129 ac_res=`eval echo '${'$as_ac_var'}'`
29130 { echo "$as_me:$LINENO: result: $ac_res" >&5
29131 echo "${ECHO_T}$ac_res" >&6; }
29132 if test `eval echo '${'$as_ac_var'}'` = yes; then
29133 cat >>confdefs.h <<_ACEOF
29134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29149 for ac_header in stdint.h
29151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29156 echo $ECHO_N "(cached) $ECHO_C" >&6
29158 ac_res=`eval echo '${'$as_ac_Header'}'`
29159 { echo "$as_me:$LINENO: result: $ac_res" >&5
29160 echo "${ECHO_T}$ac_res" >&6; }
29162 # Is the header compilable?
29163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29165 cat >conftest.$ac_ext <<_ACEOF
29168 cat confdefs.h >>conftest.$ac_ext
29169 cat >>conftest.$ac_ext <<_ACEOF
29170 /* end confdefs.h. */
29171 $ac_includes_default
29172 #include <$ac_header>
29174 rm -f conftest.$ac_objext
29175 if { (ac_try="$ac_compile"
29176 case "(($ac_try" in
29177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29178 *) ac_try_echo=$ac_try;;
29180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29181 (eval "$ac_compile") 2>conftest.er1
29183 grep -v '^ *+' conftest.er1 >conftest.err
29185 cat conftest.err >&5
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } && {
29188 test -z "$ac_c_werror_flag" ||
29189 test ! -s conftest.err
29190 } && test -s conftest.$ac_objext; then
29191 ac_header_compiler=yes
29193 echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29196 ac_header_compiler=no
29199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29201 echo "${ECHO_T}$ac_header_compiler" >&6; }
29203 # Is the header present?
29204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29206 cat >conftest.$ac_ext <<_ACEOF
29209 cat confdefs.h >>conftest.$ac_ext
29210 cat >>conftest.$ac_ext <<_ACEOF
29211 /* end confdefs.h. */
29212 #include <$ac_header>
29214 if { (ac_try="$ac_cpp conftest.$ac_ext"
29215 case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29222 grep -v '^ *+' conftest.er1 >conftest.err
29224 cat conftest.err >&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } >/dev/null && {
29227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29228 test ! -s conftest.err
29230 ac_header_preproc=yes
29232 echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29235 ac_header_preproc=no
29238 rm -f conftest.err conftest.$ac_ext
29239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29240 echo "${ECHO_T}$ac_header_preproc" >&6; }
29242 # So? What about this header?
29243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29249 ac_header_preproc=yes
29252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29265 ## ------------------------------ ##
29266 ## Report this to bug-tar@gnu.org ##
29267 ## ------------------------------ ##
29269 ) | sed "s/^/$as_me: WARNING: /" >&2
29272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29275 echo $ECHO_N "(cached) $ECHO_C" >&6
29277 eval "$as_ac_Header=\$ac_header_preproc"
29279 ac_res=`eval echo '${'$as_ac_Header'}'`
29280 { echo "$as_me:$LINENO: result: $ac_res" >&5
29281 echo "${ECHO_T}$ac_res" >&6; }
29284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29285 cat >>confdefs.h <<_ACEOF
29286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29293 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
29294 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
29295 if test "${gl_cv_size_max+set}" = set; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29300 cat >conftest.$ac_ext <<_ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h. */
29307 #include <limits.h>
29309 #include <stdint.h>
29316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29317 $EGREP "Found it" >/dev/null 2>&1; then
29322 if test -z "$gl_cv_size_max"; then
29323 if test "$cross_compiling" = yes; then
29324 # Depending upon the size, compute the lo and hi bounds.
29325 cat >conftest.$ac_ext <<_ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h. */
29331 #include <stddef.h>
29332 #include <limits.h>
29336 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
29343 rm -f conftest.$ac_objext
29344 if { (ac_try="$ac_compile"
29345 case "(($ac_try" in
29346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29347 *) ac_try_echo=$ac_try;;
29349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29350 (eval "$ac_compile") 2>conftest.er1
29352 grep -v '^ *+' conftest.er1 >conftest.err
29354 cat conftest.err >&5
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); } && {
29357 test -z "$ac_c_werror_flag" ||
29358 test ! -s conftest.err
29359 } && test -s conftest.$ac_objext; then
29362 cat >conftest.$ac_ext <<_ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h. */
29368 #include <stddef.h>
29369 #include <limits.h>
29373 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
29380 rm -f conftest.$ac_objext
29381 if { (ac_try="$ac_compile"
29382 case "(($ac_try" in
29383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384 *) ac_try_echo=$ac_try;;
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387 (eval "$ac_compile") 2>conftest.er1
29389 grep -v '^ *+' conftest.er1 >conftest.err
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } && {
29394 test -z "$ac_c_werror_flag" ||
29395 test ! -s conftest.err
29396 } && test -s conftest.$ac_objext; then
29397 ac_hi=$ac_mid; break
29399 echo "$as_me: failed program was:" >&5
29400 sed 's/^/| /' conftest.$ac_ext >&5
29402 ac_lo=`expr $ac_mid + 1`
29403 if test $ac_lo -le $ac_mid; then
29407 ac_mid=`expr 2 '*' $ac_mid + 1`
29410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 <stddef.h>
29423 #include <limits.h>
29427 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
29434 rm -f conftest.$ac_objext
29435 if { (ac_try="$ac_compile"
29436 case "(($ac_try" in
29437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438 *) ac_try_echo=$ac_try;;
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441 (eval "$ac_compile") 2>conftest.er1
29443 grep -v '^ *+' conftest.er1 >conftest.err
29445 cat conftest.err >&5
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); } && {
29448 test -z "$ac_c_werror_flag" ||
29449 test ! -s conftest.err
29450 } && test -s conftest.$ac_objext; then
29453 cat >conftest.$ac_ext <<_ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h. */
29459 #include <stddef.h>
29460 #include <limits.h>
29464 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
29471 rm -f conftest.$ac_objext
29472 if { (ac_try="$ac_compile"
29473 case "(($ac_try" in
29474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29475 *) ac_try_echo=$ac_try;;
29477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29478 (eval "$ac_compile") 2>conftest.er1
29480 grep -v '^ *+' conftest.er1 >conftest.err
29482 cat conftest.err >&5
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); } && {
29485 test -z "$ac_c_werror_flag" ||
29486 test ! -s conftest.err
29487 } && test -s conftest.$ac_objext; then
29488 ac_lo=$ac_mid; break
29490 echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29493 ac_hi=`expr '(' $ac_mid ')' - 1`
29494 if test $ac_mid -le $ac_hi; then
29498 ac_mid=`expr 2 '*' $ac_mid`
29501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29504 echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29514 # Binary search between lo and hi bounds.
29515 while test "x$ac_lo" != "x$ac_hi"; do
29516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29517 cat >conftest.$ac_ext <<_ACEOF
29520 cat confdefs.h >>conftest.$ac_ext
29521 cat >>conftest.$ac_ext <<_ACEOF
29522 /* end confdefs.h. */
29523 #include <stddef.h>
29524 #include <limits.h>
29528 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
29535 rm -f conftest.$ac_objext
29536 if { (ac_try="$ac_compile"
29537 case "(($ac_try" in
29538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29539 *) ac_try_echo=$ac_try;;
29541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29542 (eval "$ac_compile") 2>conftest.er1
29544 grep -v '^ *+' conftest.er1 >conftest.err
29546 cat conftest.err >&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } && {
29549 test -z "$ac_c_werror_flag" ||
29550 test ! -s conftest.err
29551 } && test -s conftest.$ac_objext; then
29554 echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29557 ac_lo=`expr '(' $ac_mid ')' + 1`
29560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29563 ?*) size_t_bits_minus_1=$ac_lo;;
29564 '') size_t_bits_minus_1= ;;
29567 cat >conftest.$ac_ext <<_ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h. */
29573 #include <stddef.h>
29574 #include <limits.h>
29575 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
29576 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
29578 #include <stdlib.h>
29583 FILE *f = fopen ("conftest.val", "w");
29586 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
29588 long int i = longval ();
29589 if (i != (sizeof (size_t) * CHAR_BIT - 1))
29591 fprintf (f, "%ld\n", i);
29595 unsigned long int i = ulongval ();
29596 if (i != (sizeof (size_t) * CHAR_BIT - 1))
29598 fprintf (f, "%lu\n", i);
29600 return ferror (f) || fclose (f) != 0;
29606 rm -f conftest$ac_exeext
29607 if { (ac_try="$ac_link"
29608 case "(($ac_try" in
29609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610 *) ac_try_echo=$ac_try;;
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613 (eval "$ac_link") 2>&5
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29617 { (case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622 (eval "$ac_try") 2>&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; }; then
29626 size_t_bits_minus_1=`cat conftest.val`
29628 echo "$as_me: program exited with status $ac_status" >&5
29629 echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29632 ( exit $ac_status )
29633 size_t_bits_minus_1=
29635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29638 if test "$cross_compiling" = yes; then
29639 # Depending upon the size, compute the lo and hi bounds.
29640 cat >conftest.$ac_ext <<_ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h. */
29646 #include <stddef.h>
29650 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
29657 rm -f conftest.$ac_objext
29658 if { (ac_try="$ac_compile"
29659 case "(($ac_try" in
29660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661 *) ac_try_echo=$ac_try;;
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664 (eval "$ac_compile") 2>conftest.er1
29666 grep -v '^ *+' conftest.er1 >conftest.err
29668 cat conftest.err >&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } && {
29671 test -z "$ac_c_werror_flag" ||
29672 test ! -s conftest.err
29673 } && test -s conftest.$ac_objext; then
29676 cat >conftest.$ac_ext <<_ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h. */
29682 #include <stddef.h>
29686 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
29693 rm -f conftest.$ac_objext
29694 if { (ac_try="$ac_compile"
29695 case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_compile") 2>conftest.er1
29702 grep -v '^ *+' conftest.er1 >conftest.err
29704 cat conftest.err >&5
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); } && {
29707 test -z "$ac_c_werror_flag" ||
29708 test ! -s conftest.err
29709 } && test -s conftest.$ac_objext; then
29710 ac_hi=$ac_mid; break
29712 echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29715 ac_lo=`expr $ac_mid + 1`
29716 if test $ac_lo -le $ac_mid; then
29720 ac_mid=`expr 2 '*' $ac_mid + 1`
29723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29726 echo "$as_me: failed program was:" >&5
29727 sed 's/^/| /' conftest.$ac_ext >&5
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29735 #include <stddef.h>
29739 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
29746 rm -f conftest.$ac_objext
29747 if { (ac_try="$ac_compile"
29748 case "(($ac_try" in
29749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29750 *) ac_try_echo=$ac_try;;
29752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29753 (eval "$ac_compile") 2>conftest.er1
29755 grep -v '^ *+' conftest.er1 >conftest.err
29757 cat conftest.err >&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } && {
29760 test -z "$ac_c_werror_flag" ||
29761 test ! -s conftest.err
29762 } && test -s conftest.$ac_objext; then
29765 cat >conftest.$ac_ext <<_ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29771 #include <stddef.h>
29775 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
29782 rm -f conftest.$ac_objext
29783 if { (ac_try="$ac_compile"
29784 case "(($ac_try" in
29785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786 *) ac_try_echo=$ac_try;;
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789 (eval "$ac_compile") 2>conftest.er1
29791 grep -v '^ *+' conftest.er1 >conftest.err
29793 cat conftest.err >&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } && {
29796 test -z "$ac_c_werror_flag" ||
29797 test ! -s conftest.err
29798 } && test -s conftest.$ac_objext; then
29799 ac_lo=$ac_mid; break
29801 echo "$as_me: failed program was:" >&5
29802 sed 's/^/| /' conftest.$ac_ext >&5
29804 ac_hi=`expr '(' $ac_mid ')' - 1`
29805 if test $ac_mid -le $ac_hi; then
29809 ac_mid=`expr 2 '*' $ac_mid`
29812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29815 echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29825 # Binary search between lo and hi bounds.
29826 while test "x$ac_lo" != "x$ac_hi"; do
29827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 <stddef.h>
29838 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
29845 rm -f conftest.$ac_objext
29846 if { (ac_try="$ac_compile"
29847 case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_compile") 2>conftest.er1
29854 grep -v '^ *+' conftest.er1 >conftest.err
29856 cat conftest.err >&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } && {
29859 test -z "$ac_c_werror_flag" ||
29860 test ! -s conftest.err
29861 } && test -s conftest.$ac_objext; then
29864 echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29867 ac_lo=`expr '(' $ac_mid ')' + 1`
29870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29873 ?*) fits_in_uint=$ac_lo;;
29874 '') fits_in_uint= ;;
29877 cat >conftest.$ac_ext <<_ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h. */
29883 #include <stddef.h>
29884 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
29885 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
29887 #include <stdlib.h>
29892 FILE *f = fopen ("conftest.val", "w");
29895 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
29897 long int i = longval ();
29898 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
29900 fprintf (f, "%ld\n", i);
29904 unsigned long int i = ulongval ();
29905 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
29907 fprintf (f, "%lu\n", i);
29909 return ferror (f) || fclose (f) != 0;
29915 rm -f conftest$ac_exeext
29916 if { (ac_try="$ac_link"
29917 case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922 (eval "$ac_link") 2>&5
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29926 { (case "(($ac_try" in
29927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29928 *) ac_try_echo=$ac_try;;
29930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29931 (eval "$ac_try") 2>&5
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); }; }; then
29935 fits_in_uint=`cat conftest.val`
29937 echo "$as_me: program exited with status $ac_status" >&5
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29941 ( exit $ac_status )
29944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29947 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
29948 if test $fits_in_uint = 1; then
29949 cat >conftest.$ac_ext <<_ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29955 #include <stddef.h>
29957 extern unsigned long foo;
29967 rm -f conftest.$ac_objext
29968 if { (ac_try="$ac_compile"
29969 case "(($ac_try" in
29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971 *) ac_try_echo=$ac_try;;
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_compile") 2>conftest.er1
29976 grep -v '^ *+' conftest.er1 >conftest.err
29978 cat conftest.err >&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } && {
29981 test -z "$ac_c_werror_flag" ||
29982 test ! -s conftest.err
29983 } && test -s conftest.$ac_objext; then
29986 echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29994 if test $fits_in_uint = 1; then
29995 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
29997 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
30000 gl_cv_size_max='((size_t)~(size_t)0)'
30006 { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
30007 echo "${ECHO_T}$gl_cv_size_max" >&6; }
30008 if test "$gl_cv_size_max" != yes; then
30010 cat >>confdefs.h <<_ACEOF
30011 #define SIZE_MAX $gl_cv_size_max
30018 { echo "$as_me:$LINENO: checking whether sleep is declared" >&5
30019 echo $ECHO_N "checking whether sleep is declared... $ECHO_C" >&6; }
30020 if test "${ac_cv_have_decl_sleep+set}" = set; then
30021 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 cat >conftest.$ac_ext <<_ACEOF
30026 cat confdefs.h >>conftest.$ac_ext
30027 cat >>conftest.$ac_ext <<_ACEOF
30028 /* end confdefs.h. */
30029 #include <unistd.h>
30042 rm -f conftest.$ac_objext
30043 if { (ac_try="$ac_compile"
30044 case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_compile") 2>conftest.er1
30051 grep -v '^ *+' conftest.er1 >conftest.err
30053 cat conftest.err >&5
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); } && {
30056 test -z "$ac_c_werror_flag" ||
30057 test ! -s conftest.err
30058 } && test -s conftest.$ac_objext; then
30059 ac_cv_have_decl_sleep=yes
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30064 ac_cv_have_decl_sleep=no
30067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30069 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
30070 echo "${ECHO_T}$ac_cv_have_decl_sleep" >&6; }
30071 if test $ac_cv_have_decl_sleep = yes; then
30073 cat >>confdefs.h <<_ACEOF
30074 #define HAVE_DECL_SLEEP 1
30079 cat >>confdefs.h <<_ACEOF
30080 #define HAVE_DECL_SLEEP 0
30087 if test $ac_cv_have_decl_sleep != yes; then
30097 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
30108 gl_cv_func_snprintf_usable=no
30110 for ac_func in snprintf
30112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30116 echo $ECHO_N "(cached) $ECHO_C" >&6
30118 cat >conftest.$ac_ext <<_ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h. */
30124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30126 #define $ac_func innocuous_$ac_func
30128 /* System header to define __stub macros and hopefully few prototypes,
30129 which can conflict with char $ac_func (); below.
30130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30131 <limits.h> exists even on freestanding compilers. */
30134 # include <limits.h>
30136 # include <assert.h>
30141 /* Override any GCC internal prototype to avoid an error.
30142 Use char because int might match the return type of a GCC
30143 builtin and then its argument prototype would still apply. */
30148 /* The GNU C library defines this for functions which it implements
30149 to always fail with ENOSYS. Some functions are actually named
30150 something starting with __ and the normal name is an alias. */
30151 #if defined __stub_$ac_func || defined __stub___$ac_func
30158 return $ac_func ();
30163 rm -f conftest.$ac_objext conftest$ac_exeext
30164 if { (ac_try="$ac_link"
30165 case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170 (eval "$ac_link") 2>conftest.er1
30172 grep -v '^ *+' conftest.er1 >conftest.err
30174 cat conftest.err >&5
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); } && {
30177 test -z "$ac_c_werror_flag" ||
30178 test ! -s conftest.err
30179 } && test -s conftest$ac_exeext &&
30180 $as_test_x conftest$ac_exeext; then
30181 eval "$as_ac_var=yes"
30183 echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30186 eval "$as_ac_var=no"
30189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30190 conftest$ac_exeext conftest.$ac_ext
30192 ac_res=`eval echo '${'$as_ac_var'}'`
30193 { echo "$as_me:$LINENO: result: $ac_res" >&5
30194 echo "${ECHO_T}$ac_res" >&6; }
30195 if test `eval echo '${'$as_ac_var'}'` = yes; then
30196 cat >>confdefs.h <<_ACEOF
30197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30203 if test $ac_cv_func_snprintf = yes; then
30206 { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
30207 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
30208 if test "${gl_cv_func_snprintf_size1+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30212 if test "$cross_compiling" = yes; then
30213 gl_cv_func_snprintf_size1="guessing yes"
30215 cat >conftest.$ac_ext <<_ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h. */
30225 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
30226 snprintf (buf, 1, "%d", 12345);
30227 return buf[1] != 'E';
30230 rm -f conftest$ac_exeext
30231 if { (ac_try="$ac_link"
30232 case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237 (eval "$ac_link") 2>&5
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30241 { (case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_try") 2>&5
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; }; then
30250 gl_cv_func_snprintf_size1=yes
30252 echo "$as_me: program exited with status $ac_status" >&5
30253 echo "$as_me: failed program was:" >&5
30254 sed 's/^/| /' conftest.$ac_ext >&5
30256 ( exit $ac_status )
30257 gl_cv_func_snprintf_size1=no
30259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30265 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
30266 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
30268 case "$gl_cv_func_snprintf_size1" in
30270 gl_cv_func_snprintf_usable=yes
30274 if test $gl_cv_func_snprintf_usable = no; then
30285 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
30287 if test $ac_cv_func_snprintf = yes; then
30297 if test $ac_cv_have_decl_snprintf = no; then
30298 HAVE_DECL_SNPRINTF=0
30306 { echo "$as_me:$LINENO: checking for ssize_t" >&5
30307 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
30308 if test "${gt_cv_ssize_t+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30311 cat >conftest.$ac_ext <<_ACEOF
30314 cat confdefs.h >>conftest.$ac_ext
30315 cat >>conftest.$ac_ext <<_ACEOF
30316 /* end confdefs.h. */
30317 #include <sys/types.h>
30321 int x = sizeof (ssize_t *) + sizeof (ssize_t);
30327 rm -f conftest.$ac_objext
30328 if { (ac_try="$ac_compile"
30329 case "(($ac_try" in
30330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30331 *) ac_try_echo=$ac_try;;
30333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30334 (eval "$ac_compile") 2>conftest.er1
30336 grep -v '^ *+' conftest.er1 >conftest.err
30338 cat conftest.err >&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); } && {
30341 test -z "$ac_c_werror_flag" ||
30342 test ! -s conftest.err
30343 } && test -s conftest.$ac_objext; then
30346 echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30354 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
30355 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
30356 if test $gt_cv_ssize_t = no; then
30358 cat >>confdefs.h <<\_ACEOF
30359 #define ssize_t int
30374 { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
30375 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
30376 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
30377 echo $ECHO_N "(cached) $ECHO_C" >&6
30379 cat >conftest.$ac_ext <<_ACEOF
30382 cat confdefs.h >>conftest.$ac_ext
30383 cat >>conftest.$ac_ext <<_ACEOF
30384 /* end confdefs.h. */
30385 #include <sys/types.h>
30386 #include <sys/stat.h>
30391 static struct stat ac_aggr;
30392 if (ac_aggr.st_atim.tv_nsec)
30398 rm -f conftest.$ac_objext
30399 if { (ac_try="$ac_compile"
30400 case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_compile") 2>conftest.er1
30407 grep -v '^ *+' conftest.er1 >conftest.err
30409 cat conftest.err >&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); } && {
30412 test -z "$ac_c_werror_flag" ||
30413 test ! -s conftest.err
30414 } && test -s conftest.$ac_objext; then
30415 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
30417 echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30420 cat >conftest.$ac_ext <<_ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h. */
30426 #include <sys/types.h>
30427 #include <sys/stat.h>
30432 static struct stat ac_aggr;
30433 if (sizeof ac_aggr.st_atim.tv_nsec)
30439 rm -f conftest.$ac_objext
30440 if { (ac_try="$ac_compile"
30441 case "(($ac_try" in
30442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30443 *) ac_try_echo=$ac_try;;
30445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30446 (eval "$ac_compile") 2>conftest.er1
30448 grep -v '^ *+' conftest.er1 >conftest.err
30450 cat conftest.err >&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } && {
30453 test -z "$ac_c_werror_flag" ||
30454 test ! -s conftest.err
30455 } && test -s conftest.$ac_objext; then
30456 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
30458 echo "$as_me: failed program was:" >&5
30459 sed 's/^/| /' conftest.$ac_ext >&5
30461 ac_cv_member_struct_stat_st_atim_tv_nsec=no
30464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30469 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
30470 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
30471 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
30473 cat >>confdefs.h <<_ACEOF
30474 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
30477 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
30478 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
30479 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30482 cat >conftest.$ac_ext <<_ACEOF
30485 cat confdefs.h >>conftest.$ac_ext
30486 cat >>conftest.$ac_ext <<_ACEOF
30487 /* end confdefs.h. */
30489 #include <sys/types.h>
30490 #include <sys/stat.h>
30491 #if HAVE_SYS_TIME_H
30492 # include <sys/time.h>
30495 struct timespec ts;
30508 rm -f conftest.$ac_objext
30509 if { (ac_try="$ac_compile"
30510 case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_compile") 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } && {
30522 test -z "$ac_c_werror_flag" ||
30523 test ! -s conftest.err
30524 } && test -s conftest.$ac_objext; then
30525 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
30527 echo "$as_me: failed program was:" >&5
30528 sed 's/^/| /' conftest.$ac_ext >&5
30530 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
30533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30535 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
30536 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
30537 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
30539 cat >>confdefs.h <<\_ACEOF
30540 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
30545 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
30546 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
30547 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
30548 echo $ECHO_N "(cached) $ECHO_C" >&6
30550 cat >conftest.$ac_ext <<_ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30556 #include <sys/types.h>
30557 #include <sys/stat.h>
30562 static struct stat ac_aggr;
30563 if (ac_aggr.st_atimespec.tv_nsec)
30569 rm -f conftest.$ac_objext
30570 if { (ac_try="$ac_compile"
30571 case "(($ac_try" in
30572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573 *) ac_try_echo=$ac_try;;
30575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576 (eval "$ac_compile") 2>conftest.er1
30578 grep -v '^ *+' conftest.er1 >conftest.err
30580 cat conftest.err >&5
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); } && {
30583 test -z "$ac_c_werror_flag" ||
30584 test ! -s conftest.err
30585 } && test -s conftest.$ac_objext; then
30586 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
30588 echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30591 cat >conftest.$ac_ext <<_ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30597 #include <sys/types.h>
30598 #include <sys/stat.h>
30603 static struct stat ac_aggr;
30604 if (sizeof ac_aggr.st_atimespec.tv_nsec)
30610 rm -f conftest.$ac_objext
30611 if { (ac_try="$ac_compile"
30612 case "(($ac_try" in
30613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614 *) ac_try_echo=$ac_try;;
30616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617 (eval "$ac_compile") 2>conftest.er1
30619 grep -v '^ *+' conftest.er1 >conftest.err
30621 cat conftest.err >&5
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); } && {
30624 test -z "$ac_c_werror_flag" ||
30625 test ! -s conftest.err
30626 } && test -s conftest.$ac_objext; then
30627 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
30629 echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30632 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
30635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
30641 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
30642 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
30644 cat >>confdefs.h <<_ACEOF
30645 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
30650 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
30651 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
30652 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
30653 echo $ECHO_N "(cached) $ECHO_C" >&6
30655 cat >conftest.$ac_ext <<_ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h. */
30661 #include <sys/types.h>
30662 #include <sys/stat.h>
30667 static struct stat ac_aggr;
30668 if (ac_aggr.st_atimensec)
30674 rm -f conftest.$ac_objext
30675 if { (ac_try="$ac_compile"
30676 case "(($ac_try" in
30677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678 *) ac_try_echo=$ac_try;;
30680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681 (eval "$ac_compile") 2>conftest.er1
30683 grep -v '^ *+' conftest.er1 >conftest.err
30685 cat conftest.err >&5
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); } && {
30688 test -z "$ac_c_werror_flag" ||
30689 test ! -s conftest.err
30690 } && test -s conftest.$ac_objext; then
30691 ac_cv_member_struct_stat_st_atimensec=yes
30693 echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30696 cat >conftest.$ac_ext <<_ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30702 #include <sys/types.h>
30703 #include <sys/stat.h>
30708 static struct stat ac_aggr;
30709 if (sizeof ac_aggr.st_atimensec)
30715 rm -f conftest.$ac_objext
30716 if { (ac_try="$ac_compile"
30717 case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_compile") 2>conftest.er1
30724 grep -v '^ *+' conftest.er1 >conftest.err
30726 cat conftest.err >&5
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); } && {
30729 test -z "$ac_c_werror_flag" ||
30730 test ! -s conftest.err
30731 } && test -s conftest.$ac_objext; then
30732 ac_cv_member_struct_stat_st_atimensec=yes
30734 echo "$as_me: failed program was:" >&5
30735 sed 's/^/| /' conftest.$ac_ext >&5
30737 ac_cv_member_struct_stat_st_atimensec=no
30740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
30746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
30747 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
30749 cat >>confdefs.h <<_ACEOF
30750 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
30755 { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
30756 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
30757 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
30758 echo $ECHO_N "(cached) $ECHO_C" >&6
30760 cat >conftest.$ac_ext <<_ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h. */
30766 #include <sys/types.h>
30767 #include <sys/stat.h>
30772 static struct stat ac_aggr;
30773 if (ac_aggr.st_atim.st__tim.tv_nsec)
30779 rm -f conftest.$ac_objext
30780 if { (ac_try="$ac_compile"
30781 case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786 (eval "$ac_compile") 2>conftest.er1
30788 grep -v '^ *+' conftest.er1 >conftest.err
30790 cat conftest.err >&5
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); } && {
30793 test -z "$ac_c_werror_flag" ||
30794 test ! -s conftest.err
30795 } && test -s conftest.$ac_objext; then
30796 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
30798 echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30801 cat >conftest.$ac_ext <<_ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h. */
30807 #include <sys/types.h>
30808 #include <sys/stat.h>
30813 static struct stat ac_aggr;
30814 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
30820 rm -f conftest.$ac_objext
30821 if { (ac_try="$ac_compile"
30822 case "(($ac_try" in
30823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30824 *) ac_try_echo=$ac_try;;
30826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30827 (eval "$ac_compile") 2>conftest.er1
30829 grep -v '^ *+' conftest.er1 >conftest.err
30831 cat conftest.err >&5
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); } && {
30834 test -z "$ac_c_werror_flag" ||
30835 test ! -s conftest.err
30836 } && test -s conftest.$ac_objext; then
30837 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
30839 echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30842 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
30845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30850 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
30851 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
30852 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
30854 cat >>confdefs.h <<_ACEOF
30855 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
30877 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
30878 echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
30879 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
30880 echo $ECHO_N "(cached) $ECHO_C" >&6
30882 cat >conftest.$ac_ext <<_ACEOF
30885 cat confdefs.h >>conftest.$ac_ext
30886 cat >>conftest.$ac_ext <<_ACEOF
30887 /* end confdefs.h. */
30888 #include <sys/types.h>
30889 #include <sys/stat.h>
30894 static struct stat ac_aggr;
30895 if (ac_aggr.st_birthtimespec.tv_nsec)
30901 rm -f conftest.$ac_objext
30902 if { (ac_try="$ac_compile"
30903 case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_compile") 2>conftest.er1
30910 grep -v '^ *+' conftest.er1 >conftest.err
30912 cat conftest.err >&5
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); } && {
30915 test -z "$ac_c_werror_flag" ||
30916 test ! -s conftest.err
30917 } && test -s conftest.$ac_objext; then
30918 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
30920 echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30923 cat >conftest.$ac_ext <<_ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h. */
30929 #include <sys/types.h>
30930 #include <sys/stat.h>
30935 static struct stat ac_aggr;
30936 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
30942 rm -f conftest.$ac_objext
30943 if { (ac_try="$ac_compile"
30944 case "(($ac_try" in
30945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946 *) ac_try_echo=$ac_try;;
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949 (eval "$ac_compile") 2>conftest.er1
30951 grep -v '^ *+' conftest.er1 >conftest.err
30953 cat conftest.err >&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); } && {
30956 test -z "$ac_c_werror_flag" ||
30957 test ! -s conftest.err
30958 } && test -s conftest.$ac_objext; then
30959 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
30961 echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30964 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
30967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30972 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
30973 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
30974 if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
30976 cat >>confdefs.h <<_ACEOF
30977 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
30982 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
30983 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
30984 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
30985 echo $ECHO_N "(cached) $ECHO_C" >&6
30987 cat >conftest.$ac_ext <<_ACEOF
30990 cat confdefs.h >>conftest.$ac_ext
30991 cat >>conftest.$ac_ext <<_ACEOF
30992 /* end confdefs.h. */
30993 #include <sys/types.h>
30994 #include <sys/stat.h>
30999 static struct stat ac_aggr;
31000 if (ac_aggr.st_birthtimensec)
31006 rm -f conftest.$ac_objext
31007 if { (ac_try="$ac_compile"
31008 case "(($ac_try" in
31009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010 *) ac_try_echo=$ac_try;;
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013 (eval "$ac_compile") 2>conftest.er1
31015 grep -v '^ *+' conftest.er1 >conftest.err
31017 cat conftest.err >&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } && {
31020 test -z "$ac_c_werror_flag" ||
31021 test ! -s conftest.err
31022 } && test -s conftest.$ac_objext; then
31023 ac_cv_member_struct_stat_st_birthtimensec=yes
31025 echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31028 cat >conftest.$ac_ext <<_ACEOF
31031 cat confdefs.h >>conftest.$ac_ext
31032 cat >>conftest.$ac_ext <<_ACEOF
31033 /* end confdefs.h. */
31034 #include <sys/types.h>
31035 #include <sys/stat.h>
31040 static struct stat ac_aggr;
31041 if (sizeof ac_aggr.st_birthtimensec)
31047 rm -f conftest.$ac_objext
31048 if { (ac_try="$ac_compile"
31049 case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_compile") 2>conftest.er1
31056 grep -v '^ *+' conftest.er1 >conftest.err
31058 cat conftest.err >&5
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && {
31061 test -z "$ac_c_werror_flag" ||
31062 test ! -s conftest.err
31063 } && test -s conftest.$ac_objext; then
31064 ac_cv_member_struct_stat_st_birthtimensec=yes
31066 echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31069 ac_cv_member_struct_stat_st_birthtimensec=no
31072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31077 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
31078 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
31079 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
31081 cat >>confdefs.h <<_ACEOF
31082 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
31087 { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
31088 echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
31089 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
31090 echo $ECHO_N "(cached) $ECHO_C" >&6
31092 cat >conftest.$ac_ext <<_ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h. */
31098 #include <sys/types.h>
31099 #include <sys/stat.h>
31104 static struct stat ac_aggr;
31105 if (ac_aggr.st_birthtim.tv_nsec)
31111 rm -f conftest.$ac_objext
31112 if { (ac_try="$ac_compile"
31113 case "(($ac_try" in
31114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31115 *) ac_try_echo=$ac_try;;
31117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31118 (eval "$ac_compile") 2>conftest.er1
31120 grep -v '^ *+' conftest.er1 >conftest.err
31122 cat conftest.err >&5
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); } && {
31125 test -z "$ac_c_werror_flag" ||
31126 test ! -s conftest.err
31127 } && test -s conftest.$ac_objext; then
31128 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
31130 echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.$ac_ext >&5
31133 cat >conftest.$ac_ext <<_ACEOF
31136 cat confdefs.h >>conftest.$ac_ext
31137 cat >>conftest.$ac_ext <<_ACEOF
31138 /* end confdefs.h. */
31139 #include <sys/types.h>
31140 #include <sys/stat.h>
31145 static struct stat ac_aggr;
31146 if (sizeof ac_aggr.st_birthtim.tv_nsec)
31152 rm -f conftest.$ac_objext
31153 if { (ac_try="$ac_compile"
31154 case "(($ac_try" in
31155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156 *) ac_try_echo=$ac_try;;
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159 (eval "$ac_compile") 2>conftest.er1
31161 grep -v '^ *+' conftest.er1 >conftest.err
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } && {
31166 test -z "$ac_c_werror_flag" ||
31167 test ! -s conftest.err
31168 } && test -s conftest.$ac_objext; then
31169 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
31171 echo "$as_me: failed program was:" >&5
31172 sed 's/^/| /' conftest.$ac_ext >&5
31174 ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
31177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31182 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
31183 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
31184 if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
31186 cat >>confdefs.h <<_ACEOF
31187 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
31200 NEXT_STDARG_H='<stdarg.h>';
31201 { echo "$as_me:$LINENO: checking for va_copy" >&5
31202 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31203 if test "${gl_cv_func_va_copy+set}" = set; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31207 cat >conftest.$ac_ext <<_ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h. */
31213 #include <stdarg.h>
31219 void (*func) (va_list, va_list) = va_copy;
31226 rm -f conftest.$ac_objext
31227 if { (ac_try="$ac_compile"
31228 case "(($ac_try" in
31229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230 *) ac_try_echo=$ac_try;;
31232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31233 (eval "$ac_compile") 2>conftest.er1
31235 grep -v '^ *+' conftest.er1 >conftest.err
31237 cat conftest.err >&5
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); } && {
31240 test -z "$ac_c_werror_flag" ||
31241 test ! -s conftest.err
31242 } && test -s conftest.$ac_objext; then
31243 gl_cv_func_va_copy=yes
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31248 gl_cv_func_va_copy=no
31251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31254 { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
31255 echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
31256 if test $gl_cv_func_va_copy = no; then
31257 cat >conftest.$ac_ext <<_ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h. */
31263 #if defined _AIX && !defined __GNUC__
31268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31269 $EGREP "vaccine" >/dev/null 2>&1; then
31276 if test $gl_aixcc = yes; then
31289 if test $gl_cv_have_include_next = yes; then
31290 gl_cv_next_stdarg_h='<'stdarg.h'>'
31292 { echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
31293 echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6; }
31294 if test "${gl_cv_next_stdarg_h+set}" = set; then
31295 echo $ECHO_N "(cached) $ECHO_C" >&6
31298 if test $ac_cv_header_stdarg_h = yes; then
31299 cat >conftest.$ac_ext <<_ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h. */
31305 #include <stdarg.h>
31309 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31310 *) gl_absname_cpp="$ac_cpp" ;;
31312 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31313 sed -n '\#/stdarg.h#{
31314 s#.*"\(.*/stdarg.h\)".*#\1#
31320 gl_cv_next_stdarg_h='<'stdarg.h'>'
31324 { echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
31325 echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6; }
31327 NEXT_STDARG_H=$gl_cv_next_stdarg_h
31331 if test "$gl_cv_next_stdarg_h" = '""'; then
31332 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
31333 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
31336 if test "${gl_cv_func___va_copy+set}" = set; then
31337 echo $ECHO_N "(cached) $ECHO_C" >&6
31340 cat >conftest.$ac_ext <<_ACEOF
31343 cat confdefs.h >>conftest.$ac_ext
31344 cat >>conftest.$ac_ext <<_ACEOF
31345 /* end confdefs.h. */
31346 #include <stdarg.h>
31359 rm -f conftest.$ac_objext
31360 if { (ac_try="$ac_compile"
31361 case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_compile") 2>conftest.er1
31368 grep -v '^ *+' conftest.er1 >conftest.err
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } && {
31373 test -z "$ac_c_werror_flag" ||
31374 test ! -s conftest.err
31375 } && test -s conftest.$ac_objext; then
31376 gl_cv_func___va_copy=yes
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 gl_cv_func___va_copy=no
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31387 if test $gl_cv_func___va_copy = yes; then
31389 cat >>confdefs.h <<\_ACEOF
31390 #define va_copy __va_copy
31397 cat >>confdefs.h <<\_ACEOF
31398 #define va_copy gl_va_copy
31408 # Define two additional variables used in the Makefile substitution.
31410 if test "$ac_cv_header_stdbool_h" = yes; then
31413 STDBOOL_H='stdbool.h'
31417 if test "$ac_cv_type__Bool" = yes; then
31427 if test $ac_cv_type_long_long_int = yes; then
31428 HAVE_LONG_LONG_INT=1
31430 HAVE_LONG_LONG_INT=0
31434 if test $ac_cv_type_unsigned_long_long_int = yes; then
31435 HAVE_UNSIGNED_LONG_LONG_INT=1
31437 HAVE_UNSIGNED_LONG_LONG_INT=0
31441 if test $ac_cv_header_inttypes_h = yes; then
31448 if test $ac_cv_header_sys_types_h = yes; then
31466 if test $gl_cv_have_include_next = yes; then
31467 gl_cv_next_stdint_h='<'stdint.h'>'
31469 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
31470 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
31471 if test "${gl_cv_next_stdint_h+set}" = set; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31475 if test $ac_cv_header_stdint_h = yes; then
31476 cat >conftest.$ac_ext <<_ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h. */
31482 #include <stdint.h>
31486 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31487 *) gl_absname_cpp="$ac_cpp" ;;
31489 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31490 sed -n '\#/stdint.h#{
31491 s#.*"\(.*/stdint.h\)".*#\1#
31497 gl_cv_next_stdint_h='<'stdint.h'>'
31501 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
31502 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
31504 NEXT_STDINT_H=$gl_cv_next_stdint_h
31508 if test $ac_cv_header_stdint_h = yes; then
31515 if test $ac_cv_header_stdint_h = yes; then
31516 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
31517 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
31518 if test "${gl_cv_header_working_stdint_h+set}" = set; then
31519 echo $ECHO_N "(cached) $ECHO_C" >&6
31521 gl_cv_header_working_stdint_h=no
31522 cat >conftest.$ac_ext <<_ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h. */
31530 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
31531 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
31532 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
31533 #include <stdint.h>
31534 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
31535 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
31536 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
31540 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31541 included before <wchar.h>. */
31542 #include <stddef.h>
31543 #include <signal.h>
31545 # include <stdio.h>
31547 # include <wchar.h>
31552 int8_t a1 = INT8_MAX;
31553 int8_t a1min = INT8_MIN;
31556 int16_t a2 = INT16_MAX;
31557 int16_t a2min = INT16_MIN;
31560 int32_t a3 = INT32_MAX;
31561 int32_t a3min = INT32_MIN;
31564 int64_t a4 = INT64_MAX;
31565 int64_t a4min = INT64_MIN;
31568 uint8_t b1 = UINT8_MAX;
31570 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
31573 uint16_t b2 = UINT16_MAX;
31576 uint32_t b3 = UINT32_MAX;
31579 uint64_t b4 = UINT64_MAX;
31581 int_least8_t c1 = INT8_C (0x7f);
31582 int_least8_t c1max = INT_LEAST8_MAX;
31583 int_least8_t c1min = INT_LEAST8_MIN;
31584 int_least16_t c2 = INT16_C (0x7fff);
31585 int_least16_t c2max = INT_LEAST16_MAX;
31586 int_least16_t c2min = INT_LEAST16_MIN;
31587 int_least32_t c3 = INT32_C (0x7fffffff);
31588 int_least32_t c3max = INT_LEAST32_MAX;
31589 int_least32_t c3min = INT_LEAST32_MIN;
31590 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
31591 int_least64_t c4max = INT_LEAST64_MAX;
31592 int_least64_t c4min = INT_LEAST64_MIN;
31593 uint_least8_t d1 = UINT8_C (0xff);
31594 uint_least8_t d1max = UINT_LEAST8_MAX;
31595 uint_least16_t d2 = UINT16_C (0xffff);
31596 uint_least16_t d2max = UINT_LEAST16_MAX;
31597 uint_least32_t d3 = UINT32_C (0xffffffff);
31598 uint_least32_t d3max = UINT_LEAST32_MAX;
31599 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
31600 uint_least64_t d4max = UINT_LEAST64_MAX;
31601 int_fast8_t e1 = INT_FAST8_MAX;
31602 int_fast8_t e1min = INT_FAST8_MIN;
31603 int_fast16_t e2 = INT_FAST16_MAX;
31604 int_fast16_t e2min = INT_FAST16_MIN;
31605 int_fast32_t e3 = INT_FAST32_MAX;
31606 int_fast32_t e3min = INT_FAST32_MIN;
31607 int_fast64_t e4 = INT_FAST64_MAX;
31608 int_fast64_t e4min = INT_FAST64_MIN;
31609 uint_fast8_t f1 = UINT_FAST8_MAX;
31610 uint_fast16_t f2 = UINT_FAST16_MAX;
31611 uint_fast32_t f3 = UINT_FAST32_MAX;
31612 uint_fast64_t f4 = UINT_FAST64_MAX;
31614 intptr_t g = INTPTR_MAX;
31615 intptr_t gmin = INTPTR_MIN;
31618 uintptr_t h = UINTPTR_MAX;
31620 intmax_t i = INTMAX_MAX;
31621 uintmax_t j = UINTMAX_MAX;
31623 #include <limits.h> /* for CHAR_BIT */
31624 #define TYPE_MINIMUM(t) \
31625 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
31626 #define TYPE_MAXIMUM(t) \
31627 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
31630 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
31631 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
31633 /* Detect bug in FreeBSD 6.0 / ia64. */
31634 int check_SIG_ATOMIC:
31635 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
31636 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
31638 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
31640 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
31641 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
31643 /* Detect bug in mingw. */
31645 WINT_MIN == TYPE_MINIMUM (wint_t)
31646 && WINT_MAX == TYPE_MAXIMUM (wint_t)
31649 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
31651 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
31652 int check_UINT16_C:
31653 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
31655 /* Detect bugs in OpenBSD 3.9 stdint.h. */
31657 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
31660 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
31663 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
31666 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
31668 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
31669 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
31670 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
31671 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
31672 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
31673 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
31674 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
31675 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
31676 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
31677 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
31678 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
31689 rm -f conftest.$ac_objext
31690 if { (ac_try="$ac_compile"
31691 case "(($ac_try" in
31692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31693 *) ac_try_echo=$ac_try;;
31695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31696 (eval "$ac_compile") 2>conftest.er1
31698 grep -v '^ *+' conftest.er1 >conftest.err
31700 cat conftest.err >&5
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); } && {
31703 test -z "$ac_c_werror_flag" ||
31704 test ! -s conftest.err
31705 } && test -s conftest.$ac_objext; then
31706 gl_cv_header_working_stdint_h=yes
31708 echo "$as_me: failed program was:" >&5
31709 sed 's/^/| /' conftest.$ac_ext >&5
31714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31716 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
31717 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
31719 if test "$gl_cv_header_working_stdint_h" = yes; then
31724 for ac_header in sys/inttypes.h sys/bitypes.h
31726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31731 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 ac_res=`eval echo '${'$as_ac_Header'}'`
31734 { echo "$as_me:$LINENO: result: $ac_res" >&5
31735 echo "${ECHO_T}$ac_res" >&6; }
31737 # Is the header compilable?
31738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31740 cat >conftest.$ac_ext <<_ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31746 $ac_includes_default
31747 #include <$ac_header>
31749 rm -f conftest.$ac_objext
31750 if { (ac_try="$ac_compile"
31751 case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_compile") 2>conftest.er1
31758 grep -v '^ *+' conftest.er1 >conftest.err
31760 cat conftest.err >&5
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } && {
31763 test -z "$ac_c_werror_flag" ||
31764 test ! -s conftest.err
31765 } && test -s conftest.$ac_objext; then
31766 ac_header_compiler=yes
31768 echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31771 ac_header_compiler=no
31774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31776 echo "${ECHO_T}$ac_header_compiler" >&6; }
31778 # Is the header present?
31779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31781 cat >conftest.$ac_ext <<_ACEOF
31784 cat confdefs.h >>conftest.$ac_ext
31785 cat >>conftest.$ac_ext <<_ACEOF
31786 /* end confdefs.h. */
31787 #include <$ac_header>
31789 if { (ac_try="$ac_cpp conftest.$ac_ext"
31790 case "(($ac_try" in
31791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792 *) ac_try_echo=$ac_try;;
31794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31797 grep -v '^ *+' conftest.er1 >conftest.err
31799 cat conftest.err >&5
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); } >/dev/null && {
31802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31803 test ! -s conftest.err
31805 ac_header_preproc=yes
31807 echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31810 ac_header_preproc=no
31813 rm -f conftest.err conftest.$ac_ext
31814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31815 echo "${ECHO_T}$ac_header_preproc" >&6; }
31817 # So? What about this header?
31818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31824 ac_header_preproc=yes
31827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31840 ## ------------------------------ ##
31841 ## Report this to bug-tar@gnu.org ##
31842 ## ------------------------------ ##
31844 ) | sed "s/^/$as_me: WARNING: /" >&2
31847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31852 eval "$as_ac_Header=\$ac_header_preproc"
31854 ac_res=`eval echo '${'$as_ac_Header'}'`
31855 { echo "$as_me:$LINENO: result: $ac_res" >&5
31856 echo "${ECHO_T}$ac_res" >&6; }
31859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31860 cat >>confdefs.h <<_ACEOF
31861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31868 if test $ac_cv_header_sys_inttypes_h = yes; then
31869 HAVE_SYS_INTTYPES_H=1
31871 HAVE_SYS_INTTYPES_H=0
31874 if test $ac_cv_header_sys_bitypes_h = yes; then
31875 HAVE_SYS_BITYPES_H=1
31877 HAVE_SYS_BITYPES_H=0
31890 if test $APPLE_UNIVERSAL_BUILD = 0; then
31895 for gltype in ptrdiff_t size_t ; do
31896 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
31897 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
31898 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31901 if test "$cross_compiling" = yes; then
31902 # Depending upon the size, compute the lo and hi bounds.
31903 cat >conftest.$ac_ext <<_ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h. */
31910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31911 included before <wchar.h>. */
31912 #include <stddef.h>
31913 #include <signal.h>
31915 # include <stdio.h>
31917 # include <wchar.h>
31920 #include <limits.h>
31924 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
31931 rm -f conftest.$ac_objext
31932 if { (ac_try="$ac_compile"
31933 case "(($ac_try" in
31934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935 *) ac_try_echo=$ac_try;;
31937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938 (eval "$ac_compile") 2>conftest.er1
31940 grep -v '^ *+' conftest.er1 >conftest.err
31942 cat conftest.err >&5
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); } && {
31945 test -z "$ac_c_werror_flag" ||
31946 test ! -s conftest.err
31947 } && test -s conftest.$ac_objext; then
31950 cat >conftest.$ac_ext <<_ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h. */
31957 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31958 included before <wchar.h>. */
31959 #include <stddef.h>
31960 #include <signal.h>
31962 # include <stdio.h>
31964 # include <wchar.h>
31967 #include <limits.h>
31971 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_compile") 2>conftest.er1
31987 grep -v '^ *+' conftest.er1 >conftest.err
31989 cat conftest.err >&5
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); } && {
31992 test -z "$ac_c_werror_flag" ||
31993 test ! -s conftest.err
31994 } && test -s conftest.$ac_objext; then
31995 ac_hi=$ac_mid; break
31997 echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
32000 ac_lo=`expr $ac_mid + 1`
32001 if test $ac_lo -le $ac_mid; then
32005 ac_mid=`expr 2 '*' $ac_mid + 1`
32008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32011 echo "$as_me: failed program was:" >&5
32012 sed 's/^/| /' conftest.$ac_ext >&5
32014 cat >conftest.$ac_ext <<_ACEOF
32017 cat confdefs.h >>conftest.$ac_ext
32018 cat >>conftest.$ac_ext <<_ACEOF
32019 /* end confdefs.h. */
32021 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32022 included before <wchar.h>. */
32023 #include <stddef.h>
32024 #include <signal.h>
32026 # include <stdio.h>
32028 # include <wchar.h>
32031 #include <limits.h>
32035 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
32042 rm -f conftest.$ac_objext
32043 if { (ac_try="$ac_compile"
32044 case "(($ac_try" in
32045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32046 *) ac_try_echo=$ac_try;;
32048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32049 (eval "$ac_compile") 2>conftest.er1
32051 grep -v '^ *+' conftest.er1 >conftest.err
32053 cat conftest.err >&5
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); } && {
32056 test -z "$ac_c_werror_flag" ||
32057 test ! -s conftest.err
32058 } && test -s conftest.$ac_objext; then
32061 cat >conftest.$ac_ext <<_ACEOF
32064 cat confdefs.h >>conftest.$ac_ext
32065 cat >>conftest.$ac_ext <<_ACEOF
32066 /* end confdefs.h. */
32068 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32069 included before <wchar.h>. */
32070 #include <stddef.h>
32071 #include <signal.h>
32073 # include <stdio.h>
32075 # include <wchar.h>
32078 #include <limits.h>
32082 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
32089 rm -f conftest.$ac_objext
32090 if { (ac_try="$ac_compile"
32091 case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_compile") 2>conftest.er1
32098 grep -v '^ *+' conftest.er1 >conftest.err
32100 cat conftest.err >&5
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } && {
32103 test -z "$ac_c_werror_flag" ||
32104 test ! -s conftest.err
32105 } && test -s conftest.$ac_objext; then
32106 ac_lo=$ac_mid; break
32108 echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32111 ac_hi=`expr '(' $ac_mid ')' - 1`
32112 if test $ac_mid -le $ac_hi; then
32116 ac_mid=`expr 2 '*' $ac_mid`
32119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32122 echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.$ac_ext >&5
32128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32132 # Binary search between lo and hi bounds.
32133 while test "x$ac_lo" != "x$ac_hi"; do
32134 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32135 cat >conftest.$ac_ext <<_ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h. */
32142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32143 included before <wchar.h>. */
32144 #include <stddef.h>
32145 #include <signal.h>
32147 # include <stdio.h>
32149 # include <wchar.h>
32152 #include <limits.h>
32156 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32163 rm -f conftest.$ac_objext
32164 if { (ac_try="$ac_compile"
32165 case "(($ac_try" in
32166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32167 *) ac_try_echo=$ac_try;;
32169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32170 (eval "$ac_compile") 2>conftest.er1
32172 grep -v '^ *+' conftest.er1 >conftest.err
32174 cat conftest.err >&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } && {
32177 test -z "$ac_c_werror_flag" ||
32178 test ! -s conftest.err
32179 } && test -s conftest.$ac_objext; then
32182 echo "$as_me: failed program was:" >&5
32183 sed 's/^/| /' conftest.$ac_ext >&5
32185 ac_lo=`expr '(' $ac_mid ')' + 1`
32188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32191 ?*) result=$ac_lo;;
32192 '') result=unknown ;;
32195 cat >conftest.$ac_ext <<_ACEOF
32198 cat confdefs.h >>conftest.$ac_ext
32199 cat >>conftest.$ac_ext <<_ACEOF
32200 /* end confdefs.h. */
32202 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32203 included before <wchar.h>. */
32204 #include <stddef.h>
32205 #include <signal.h>
32207 # include <stdio.h>
32209 # include <wchar.h>
32212 #include <limits.h>
32213 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
32214 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
32216 #include <stdlib.h>
32221 FILE *f = fopen ("conftest.val", "w");
32224 if ((sizeof ($gltype) * CHAR_BIT) < 0)
32226 long int i = longval ();
32227 if (i != (sizeof ($gltype) * CHAR_BIT))
32229 fprintf (f, "%ld\n", i);
32233 unsigned long int i = ulongval ();
32234 if (i != (sizeof ($gltype) * CHAR_BIT))
32236 fprintf (f, "%lu\n", i);
32238 return ferror (f) || fclose (f) != 0;
32244 rm -f conftest$ac_exeext
32245 if { (ac_try="$ac_link"
32246 case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_link") 2>&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32255 { (case "(($ac_try" in
32256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257 *) ac_try_echo=$ac_try;;
32259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260 (eval "$ac_try") 2>&5
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; }; then
32264 result=`cat conftest.val`
32266 echo "$as_me: program exited with status $ac_status" >&5
32267 echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32270 ( exit $ac_status )
32273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32276 eval gl_cv_bitsizeof_${gltype}=\$result
32279 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
32280 { echo "$as_me:$LINENO: result: $ac_res" >&5
32281 echo "${ECHO_T}$ac_res" >&6; }
32282 eval result=\$gl_cv_bitsizeof_${gltype}
32283 if test $result = unknown; then
32286 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32287 cat >>confdefs.h <<_ACEOF
32288 #define BITSIZEOF_${GLTYPE} $result
32291 eval BITSIZEOF_${GLTYPE}=\$result
32301 for gltype in sig_atomic_t wchar_t wint_t ; do
32302 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
32303 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
32304 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
32305 echo $ECHO_N "(cached) $ECHO_C" >&6
32307 if test "$cross_compiling" = yes; then
32308 # Depending upon the size, compute the lo and hi bounds.
32309 cat >conftest.$ac_ext <<_ACEOF
32312 cat confdefs.h >>conftest.$ac_ext
32313 cat >>conftest.$ac_ext <<_ACEOF
32314 /* end confdefs.h. */
32316 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32317 included before <wchar.h>. */
32318 #include <stddef.h>
32319 #include <signal.h>
32321 # include <stdio.h>
32323 # include <wchar.h>
32326 #include <limits.h>
32330 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
32337 rm -f conftest.$ac_objext
32338 if { (ac_try="$ac_compile"
32339 case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_compile") 2>conftest.er1
32346 grep -v '^ *+' conftest.er1 >conftest.err
32348 cat conftest.err >&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); } && {
32351 test -z "$ac_c_werror_flag" ||
32352 test ! -s conftest.err
32353 } && test -s conftest.$ac_objext; then
32356 cat >conftest.$ac_ext <<_ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h. */
32363 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32364 included before <wchar.h>. */
32365 #include <stddef.h>
32366 #include <signal.h>
32368 # include <stdio.h>
32370 # include <wchar.h>
32373 #include <limits.h>
32377 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_compile") 2>conftest.er1
32393 grep -v '^ *+' conftest.er1 >conftest.err
32395 cat conftest.err >&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); } && {
32398 test -z "$ac_c_werror_flag" ||
32399 test ! -s conftest.err
32400 } && test -s conftest.$ac_objext; then
32401 ac_hi=$ac_mid; break
32403 echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32406 ac_lo=`expr $ac_mid + 1`
32407 if test $ac_lo -le $ac_mid; then
32411 ac_mid=`expr 2 '*' $ac_mid + 1`
32414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32417 echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32420 cat >conftest.$ac_ext <<_ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h. */
32427 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32428 included before <wchar.h>. */
32429 #include <stddef.h>
32430 #include <signal.h>
32432 # include <stdio.h>
32434 # include <wchar.h>
32437 #include <limits.h>
32441 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
32448 rm -f conftest.$ac_objext
32449 if { (ac_try="$ac_compile"
32450 case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_compile") 2>conftest.er1
32457 grep -v '^ *+' conftest.er1 >conftest.err
32459 cat conftest.err >&5
32460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461 (exit $ac_status); } && {
32462 test -z "$ac_c_werror_flag" ||
32463 test ! -s conftest.err
32464 } && test -s conftest.$ac_objext; then
32467 cat >conftest.$ac_ext <<_ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h. */
32474 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32475 included before <wchar.h>. */
32476 #include <stddef.h>
32477 #include <signal.h>
32479 # include <stdio.h>
32481 # include <wchar.h>
32484 #include <limits.h>
32488 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
32495 rm -f conftest.$ac_objext
32496 if { (ac_try="$ac_compile"
32497 case "(($ac_try" in
32498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499 *) ac_try_echo=$ac_try;;
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_compile") 2>conftest.er1
32504 grep -v '^ *+' conftest.er1 >conftest.err
32506 cat conftest.err >&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } && {
32509 test -z "$ac_c_werror_flag" ||
32510 test ! -s conftest.err
32511 } && test -s conftest.$ac_objext; then
32512 ac_lo=$ac_mid; break
32514 echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32517 ac_hi=`expr '(' $ac_mid ')' - 1`
32518 if test $ac_mid -le $ac_hi; then
32522 ac_mid=`expr 2 '*' $ac_mid`
32525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32528 echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32538 # Binary search between lo and hi bounds.
32539 while test "x$ac_lo" != "x$ac_hi"; do
32540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32541 cat >conftest.$ac_ext <<_ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h. */
32548 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32549 included before <wchar.h>. */
32550 #include <stddef.h>
32551 #include <signal.h>
32553 # include <stdio.h>
32555 # include <wchar.h>
32558 #include <limits.h>
32562 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32569 rm -f conftest.$ac_objext
32570 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
32588 echo "$as_me: failed program was:" >&5
32589 sed 's/^/| /' conftest.$ac_ext >&5
32591 ac_lo=`expr '(' $ac_mid ')' + 1`
32594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32597 ?*) result=$ac_lo;;
32598 '') result=unknown ;;
32601 cat >conftest.$ac_ext <<_ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h. */
32608 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32609 included before <wchar.h>. */
32610 #include <stddef.h>
32611 #include <signal.h>
32613 # include <stdio.h>
32615 # include <wchar.h>
32618 #include <limits.h>
32619 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
32620 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
32622 #include <stdlib.h>
32627 FILE *f = fopen ("conftest.val", "w");
32630 if ((sizeof ($gltype) * CHAR_BIT) < 0)
32632 long int i = longval ();
32633 if (i != (sizeof ($gltype) * CHAR_BIT))
32635 fprintf (f, "%ld\n", i);
32639 unsigned long int i = ulongval ();
32640 if (i != (sizeof ($gltype) * CHAR_BIT))
32642 fprintf (f, "%lu\n", i);
32644 return ferror (f) || fclose (f) != 0;
32650 rm -f conftest$ac_exeext
32651 if { (ac_try="$ac_link"
32652 case "(($ac_try" in
32653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654 *) ac_try_echo=$ac_try;;
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657 (eval "$ac_link") 2>&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32661 { (case "(($ac_try" in
32662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663 *) ac_try_echo=$ac_try;;
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666 (eval "$ac_try") 2>&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); }; }; then
32670 result=`cat conftest.val`
32672 echo "$as_me: program exited with status $ac_status" >&5
32673 echo "$as_me: failed program was:" >&5
32674 sed 's/^/| /' conftest.$ac_ext >&5
32676 ( exit $ac_status )
32679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32682 eval gl_cv_bitsizeof_${gltype}=\$result
32685 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
32686 { echo "$as_me:$LINENO: result: $ac_res" >&5
32687 echo "${ECHO_T}$ac_res" >&6; }
32688 eval result=\$gl_cv_bitsizeof_${gltype}
32689 if test $result = unknown; then
32692 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32693 cat >>confdefs.h <<_ACEOF
32694 #define BITSIZEOF_${GLTYPE} $result
32697 eval BITSIZEOF_${GLTYPE}=\$result
32706 for gltype in sig_atomic_t wchar_t wint_t ; do
32707 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
32708 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
32709 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
32710 echo $ECHO_N "(cached) $ECHO_C" >&6
32712 cat >conftest.$ac_ext <<_ACEOF
32715 cat confdefs.h >>conftest.$ac_ext
32716 cat >>conftest.$ac_ext <<_ACEOF
32717 /* end confdefs.h. */
32719 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32720 included before <wchar.h>. */
32721 #include <stddef.h>
32722 #include <signal.h>
32724 # include <stdio.h>
32726 # include <wchar.h>
32729 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
32738 rm -f conftest.$ac_objext
32739 if { (ac_try="$ac_compile"
32740 case "(($ac_try" in
32741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742 *) ac_try_echo=$ac_try;;
32744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745 (eval "$ac_compile") 2>conftest.er1
32747 grep -v '^ *+' conftest.er1 >conftest.err
32749 cat conftest.err >&5
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); } && {
32752 test -z "$ac_c_werror_flag" ||
32753 test ! -s conftest.err
32754 } && test -s conftest.$ac_objext; then
32757 echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32764 eval gl_cv_type_${gltype}_signed=\$result
32767 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
32768 { echo "$as_me:$LINENO: result: $ac_res" >&5
32769 echo "${ECHO_T}$ac_res" >&6; }
32770 eval result=\$gl_cv_type_${gltype}_signed
32771 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32772 if test "$result" = yes; then
32773 cat >>confdefs.h <<_ACEOF
32774 #define HAVE_SIGNED_${GLTYPE} 1
32777 eval HAVE_SIGNED_${GLTYPE}=1
32779 eval HAVE_SIGNED_${GLTYPE}=0
32784 gl_cv_type_ptrdiff_t_signed=yes
32785 gl_cv_type_size_t_signed=no
32786 if test $APPLE_UNIVERSAL_BUILD = 0; then
32791 for gltype in ptrdiff_t size_t ; do
32792 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
32793 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
32794 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
32795 echo $ECHO_N "(cached) $ECHO_C" >&6
32797 eval gl_cv_type_${gltype}_suffix=no
32798 eval result=\$gl_cv_type_${gltype}_signed
32799 if test "$result" = yes; then
32804 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
32806 '') gltype1='int';;
32807 l) gltype1='long int';;
32808 ll) gltype1='long long int';;
32809 i64) gltype1='__int64';;
32810 u) gltype1='unsigned int';;
32811 ul) gltype1='unsigned long int';;
32812 ull) gltype1='unsigned long long int';;
32813 ui64)gltype1='unsigned __int64';;
32815 cat >conftest.$ac_ext <<_ACEOF
32818 cat confdefs.h >>conftest.$ac_ext
32819 cat >>conftest.$ac_ext <<_ACEOF
32820 /* end confdefs.h. */
32822 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32823 included before <wchar.h>. */
32824 #include <stddef.h>
32825 #include <signal.h>
32827 # include <stdio.h>
32829 # include <wchar.h>
32832 extern $gltype foo;
32833 extern $gltype1 foo;
32842 rm -f conftest.$ac_objext
32843 if { (ac_try="$ac_compile"
32844 case "(($ac_try" in
32845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846 *) ac_try_echo=$ac_try;;
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849 (eval "$ac_compile") 2>conftest.er1
32851 grep -v '^ *+' conftest.er1 >conftest.err
32853 cat conftest.err >&5
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); } && {
32856 test -z "$ac_c_werror_flag" ||
32857 test ! -s conftest.err
32858 } && test -s conftest.$ac_objext; then
32859 eval gl_cv_type_${gltype}_suffix=\$glsuf
32861 echo "$as_me: failed program was:" >&5
32862 sed 's/^/| /' conftest.$ac_ext >&5
32867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32868 eval result=\$gl_cv_type_${gltype}_suffix
32869 test "$result" != no && break
32872 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
32873 { echo "$as_me:$LINENO: result: $ac_res" >&5
32874 echo "${ECHO_T}$ac_res" >&6; }
32875 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32876 eval result=\$gl_cv_type_${gltype}_suffix
32877 test "$result" = no && result=
32878 eval ${GLTYPE}_SUFFIX=\$result
32879 cat >>confdefs.h <<_ACEOF
32880 #define ${GLTYPE}_SUFFIX $result
32892 for gltype in sig_atomic_t wchar_t wint_t ; do
32893 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
32894 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
32895 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
32896 echo $ECHO_N "(cached) $ECHO_C" >&6
32898 eval gl_cv_type_${gltype}_suffix=no
32899 eval result=\$gl_cv_type_${gltype}_signed
32900 if test "$result" = yes; then
32905 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
32907 '') gltype1='int';;
32908 l) gltype1='long int';;
32909 ll) gltype1='long long int';;
32910 i64) gltype1='__int64';;
32911 u) gltype1='unsigned int';;
32912 ul) gltype1='unsigned long int';;
32913 ull) gltype1='unsigned long long int';;
32914 ui64)gltype1='unsigned __int64';;
32916 cat >conftest.$ac_ext <<_ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h. */
32923 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32924 included before <wchar.h>. */
32925 #include <stddef.h>
32926 #include <signal.h>
32928 # include <stdio.h>
32930 # include <wchar.h>
32933 extern $gltype foo;
32934 extern $gltype1 foo;
32943 rm -f conftest.$ac_objext
32944 if { (ac_try="$ac_compile"
32945 case "(($ac_try" in
32946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32947 *) ac_try_echo=$ac_try;;
32949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950 (eval "$ac_compile") 2>conftest.er1
32952 grep -v '^ *+' conftest.er1 >conftest.err
32954 cat conftest.err >&5
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); } && {
32957 test -z "$ac_c_werror_flag" ||
32958 test ! -s conftest.err
32959 } && test -s conftest.$ac_objext; then
32960 eval gl_cv_type_${gltype}_suffix=\$glsuf
32962 echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32969 eval result=\$gl_cv_type_${gltype}_suffix
32970 test "$result" != no && break
32973 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
32974 { echo "$as_me:$LINENO: result: $ac_res" >&5
32975 echo "${ECHO_T}$ac_res" >&6; }
32976 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32977 eval result=\$gl_cv_type_${gltype}_suffix
32978 test "$result" = no && result=
32979 eval ${GLTYPE}_SUFFIX=\$result
32980 cat >>confdefs.h <<_ACEOF
32981 #define ${GLTYPE}_SUFFIX $result
33005 if test $gl_cv_have_include_next = yes; then
33006 gl_cv_next_stdio_h='<'stdio.h'>'
33008 { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
33009 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
33010 if test "${gl_cv_next_stdio_h+set}" = set; then
33011 echo $ECHO_N "(cached) $ECHO_C" >&6
33014 if test $ac_cv_header_stdio_h = yes; then
33015 cat >conftest.$ac_ext <<_ACEOF
33018 cat confdefs.h >>conftest.$ac_ext
33019 cat >>conftest.$ac_ext <<_ACEOF
33020 /* end confdefs.h. */
33025 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33026 *) gl_absname_cpp="$ac_cpp" ;;
33028 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33029 sed -n '\#/stdio.h#{
33030 s#.*"\(.*/stdio.h\)".*#\1#
33036 gl_cv_next_stdio_h='<'stdio.h'>'
33040 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
33041 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
33043 NEXT_STDIO_H=$gl_cv_next_stdio_h
33072 if test $gl_cv_have_include_next = yes; then
33073 gl_cv_next_stdlib_h='<'stdlib.h'>'
33075 { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
33076 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
33077 if test "${gl_cv_next_stdlib_h+set}" = set; then
33078 echo $ECHO_N "(cached) $ECHO_C" >&6
33081 if test $ac_cv_header_stdlib_h = yes; then
33082 cat >conftest.$ac_ext <<_ACEOF
33085 cat confdefs.h >>conftest.$ac_ext
33086 cat >>conftest.$ac_ext <<_ACEOF
33087 /* end confdefs.h. */
33088 #include <stdlib.h>
33092 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33093 *) gl_absname_cpp="$ac_cpp" ;;
33095 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33096 sed -n '\#/stdlib.h#{
33097 s#.*"\(.*/stdlib.h\)".*#\1#
33103 gl_cv_next_stdlib_h='<'stdlib.h'>'
33107 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
33108 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
33110 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
33115 for ac_header in random.h
33117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33122 echo $ECHO_N "(cached) $ECHO_C" >&6
33124 ac_res=`eval echo '${'$as_ac_Header'}'`
33125 { echo "$as_me:$LINENO: result: $ac_res" >&5
33126 echo "${ECHO_T}$ac_res" >&6; }
33128 # Is the header compilable?
33129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33131 cat >conftest.$ac_ext <<_ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h. */
33137 $ac_includes_default
33138 #include <$ac_header>
33140 rm -f conftest.$ac_objext
33141 if { (ac_try="$ac_compile"
33142 case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_compile") 2>conftest.er1
33149 grep -v '^ *+' conftest.er1 >conftest.err
33151 cat conftest.err >&5
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } && {
33154 test -z "$ac_c_werror_flag" ||
33155 test ! -s conftest.err
33156 } && test -s conftest.$ac_objext; then
33157 ac_header_compiler=yes
33159 echo "$as_me: failed program was:" >&5
33160 sed 's/^/| /' conftest.$ac_ext >&5
33162 ac_header_compiler=no
33165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33167 echo "${ECHO_T}$ac_header_compiler" >&6; }
33169 # Is the header present?
33170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33172 cat >conftest.$ac_ext <<_ACEOF
33175 cat confdefs.h >>conftest.$ac_ext
33176 cat >>conftest.$ac_ext <<_ACEOF
33177 /* end confdefs.h. */
33178 #include <$ac_header>
33180 if { (ac_try="$ac_cpp conftest.$ac_ext"
33181 case "(($ac_try" in
33182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183 *) ac_try_echo=$ac_try;;
33185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33188 grep -v '^ *+' conftest.er1 >conftest.err
33190 cat conftest.err >&5
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); } >/dev/null && {
33193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33194 test ! -s conftest.err
33196 ac_header_preproc=yes
33198 echo "$as_me: failed program was:" >&5
33199 sed 's/^/| /' conftest.$ac_ext >&5
33201 ac_header_preproc=no
33204 rm -f conftest.err conftest.$ac_ext
33205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33206 echo "${ECHO_T}$ac_header_preproc" >&6; }
33208 # So? What about this header?
33209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33215 ac_header_preproc=yes
33218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33231 ## ------------------------------ ##
33232 ## Report this to bug-tar@gnu.org ##
33233 ## ------------------------------ ##
33235 ) | sed "s/^/$as_me: WARNING: /" >&2
33238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33243 eval "$as_ac_Header=\$ac_header_preproc"
33245 ac_res=`eval echo '${'$as_ac_Header'}'`
33246 { echo "$as_me:$LINENO: result: $ac_res" >&5
33247 echo "${ECHO_T}$ac_res" >&6; }
33250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33251 cat >>confdefs.h <<_ACEOF
33252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33259 if test $ac_cv_header_random_h = yes; then
33265 { echo "$as_me:$LINENO: checking for struct random_data" >&5
33266 echo $ECHO_N "checking for struct random_data... $ECHO_C" >&6; }
33267 if test "${ac_cv_type_struct_random_data+set}" = set; then
33268 echo $ECHO_N "(cached) $ECHO_C" >&6
33270 cat >conftest.$ac_ext <<_ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h. */
33276 #include <stdlib.h>
33278 # include <random.h>
33282 typedef struct random_data ac__type_new_;
33286 if ((ac__type_new_ *) 0)
33288 if (sizeof (ac__type_new_))
33294 rm -f conftest.$ac_objext
33295 if { (ac_try="$ac_compile"
33296 case "(($ac_try" in
33297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33298 *) ac_try_echo=$ac_try;;
33300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33301 (eval "$ac_compile") 2>conftest.er1
33303 grep -v '^ *+' conftest.er1 >conftest.err
33305 cat conftest.err >&5
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); } && {
33308 test -z "$ac_c_werror_flag" ||
33309 test ! -s conftest.err
33310 } && test -s conftest.$ac_objext; then
33311 ac_cv_type_struct_random_data=yes
33313 echo "$as_me: failed program was:" >&5
33314 sed 's/^/| /' conftest.$ac_ext >&5
33316 ac_cv_type_struct_random_data=no
33319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33321 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
33322 echo "${ECHO_T}$ac_cv_type_struct_random_data" >&6; }
33323 if test $ac_cv_type_struct_random_data = yes; then
33325 cat >>confdefs.h <<_ACEOF
33326 #define HAVE_STRUCT_RANDOM_DATA 1
33331 HAVE_STRUCT_RANDOM_DATA=0
33350 for ac_func in stpcpy
33352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33356 echo $ECHO_N "(cached) $ECHO_C" >&6
33358 cat >conftest.$ac_ext <<_ACEOF
33361 cat confdefs.h >>conftest.$ac_ext
33362 cat >>conftest.$ac_ext <<_ACEOF
33363 /* end confdefs.h. */
33364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33366 #define $ac_func innocuous_$ac_func
33368 /* System header to define __stub macros and hopefully few prototypes,
33369 which can conflict with char $ac_func (); below.
33370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33371 <limits.h> exists even on freestanding compilers. */
33374 # include <limits.h>
33376 # include <assert.h>
33381 /* Override any GCC internal prototype to avoid an error.
33382 Use char because int might match the return type of a GCC
33383 builtin and then its argument prototype would still apply. */
33388 /* The GNU C library defines this for functions which it implements
33389 to always fail with ENOSYS. Some functions are actually named
33390 something starting with __ and the normal name is an alias. */
33391 #if defined __stub_$ac_func || defined __stub___$ac_func
33398 return $ac_func ();
33403 rm -f conftest.$ac_objext conftest$ac_exeext
33404 if { (ac_try="$ac_link"
33405 case "(($ac_try" in
33406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407 *) ac_try_echo=$ac_try;;
33409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33410 (eval "$ac_link") 2>conftest.er1
33412 grep -v '^ *+' conftest.er1 >conftest.err
33414 cat conftest.err >&5
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); } && {
33417 test -z "$ac_c_werror_flag" ||
33418 test ! -s conftest.err
33419 } && test -s conftest$ac_exeext &&
33420 $as_test_x conftest$ac_exeext; then
33421 eval "$as_ac_var=yes"
33423 echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33426 eval "$as_ac_var=no"
33429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33430 conftest$ac_exeext conftest.$ac_ext
33432 ac_res=`eval echo '${'$as_ac_var'}'`
33433 { echo "$as_me:$LINENO: result: $ac_res" >&5
33434 echo "${ECHO_T}$ac_res" >&6; }
33435 if test `eval echo '${'$as_ac_var'}'` = yes; then
33436 cat >>confdefs.h <<_ACEOF
33437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33442 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33448 if test $ac_cv_func_stpcpy = no; then
33471 for ac_func in strcasecmp
33473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33477 echo $ECHO_N "(cached) $ECHO_C" >&6
33479 cat >conftest.$ac_ext <<_ACEOF
33482 cat confdefs.h >>conftest.$ac_ext
33483 cat >>conftest.$ac_ext <<_ACEOF
33484 /* end confdefs.h. */
33485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33487 #define $ac_func innocuous_$ac_func
33489 /* System header to define __stub macros and hopefully few prototypes,
33490 which can conflict with char $ac_func (); below.
33491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33492 <limits.h> exists even on freestanding compilers. */
33495 # include <limits.h>
33497 # include <assert.h>
33502 /* Override any GCC internal prototype to avoid an error.
33503 Use char because int might match the return type of a GCC
33504 builtin and then its argument prototype would still apply. */
33509 /* The GNU C library defines this for functions which it implements
33510 to always fail with ENOSYS. Some functions are actually named
33511 something starting with __ and the normal name is an alias. */
33512 #if defined __stub_$ac_func || defined __stub___$ac_func
33519 return $ac_func ();
33524 rm -f conftest.$ac_objext conftest$ac_exeext
33525 if { (ac_try="$ac_link"
33526 case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531 (eval "$ac_link") 2>conftest.er1
33533 grep -v '^ *+' conftest.er1 >conftest.err
33535 cat conftest.err >&5
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); } && {
33538 test -z "$ac_c_werror_flag" ||
33539 test ! -s conftest.err
33540 } && test -s conftest$ac_exeext &&
33541 $as_test_x conftest$ac_exeext; then
33542 eval "$as_ac_var=yes"
33544 echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33547 eval "$as_ac_var=no"
33550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33551 conftest$ac_exeext conftest.$ac_ext
33553 ac_res=`eval echo '${'$as_ac_var'}'`
33554 { echo "$as_me:$LINENO: result: $ac_res" >&5
33555 echo "${ECHO_T}$ac_res" >&6; }
33556 if test `eval echo '${'$as_ac_var'}'` = yes; then
33557 cat >>confdefs.h <<_ACEOF
33558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33563 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33569 if test $ac_cv_func_strcasecmp = no; then
33587 for ac_func in strncasecmp
33589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33593 echo $ECHO_N "(cached) $ECHO_C" >&6
33595 cat >conftest.$ac_ext <<_ACEOF
33598 cat confdefs.h >>conftest.$ac_ext
33599 cat >>conftest.$ac_ext <<_ACEOF
33600 /* end confdefs.h. */
33601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33603 #define $ac_func innocuous_$ac_func
33605 /* System header to define __stub macros and hopefully few prototypes,
33606 which can conflict with char $ac_func (); below.
33607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33608 <limits.h> exists even on freestanding compilers. */
33611 # include <limits.h>
33613 # include <assert.h>
33618 /* Override any GCC internal prototype to avoid an error.
33619 Use char because int might match the return type of a GCC
33620 builtin and then its argument prototype would still apply. */
33625 /* The GNU C library defines this for functions which it implements
33626 to always fail with ENOSYS. Some functions are actually named
33627 something starting with __ and the normal name is an alias. */
33628 #if defined __stub_$ac_func || defined __stub___$ac_func
33635 return $ac_func ();
33640 rm -f conftest.$ac_objext conftest$ac_exeext
33641 if { (ac_try="$ac_link"
33642 case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_link") 2>conftest.er1
33649 grep -v '^ *+' conftest.er1 >conftest.err
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } && {
33654 test -z "$ac_c_werror_flag" ||
33655 test ! -s conftest.err
33656 } && test -s conftest$ac_exeext &&
33657 $as_test_x conftest$ac_exeext; then
33658 eval "$as_ac_var=yes"
33660 echo "$as_me: failed program was:" >&5
33661 sed 's/^/| /' conftest.$ac_ext >&5
33663 eval "$as_ac_var=no"
33666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33667 conftest$ac_exeext conftest.$ac_ext
33669 ac_res=`eval echo '${'$as_ac_var'}'`
33670 { echo "$as_me:$LINENO: result: $ac_res" >&5
33671 echo "${ECHO_T}$ac_res" >&6; }
33672 if test `eval echo '${'$as_ac_var'}'` = yes; then
33673 cat >>confdefs.h <<_ACEOF
33674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33679 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33685 if test $ac_cv_func_strncasecmp = no; then
33690 { echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
33691 echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6; }
33692 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
33693 echo $ECHO_N "(cached) $ECHO_C" >&6
33695 cat >conftest.$ac_ext <<_ACEOF
33698 cat confdefs.h >>conftest.$ac_ext
33699 cat >>conftest.$ac_ext <<_ACEOF
33700 /* end confdefs.h. */
33701 $ac_includes_default
33705 #ifndef strncasecmp
33706 (void) strncasecmp;
33713 rm -f conftest.$ac_objext
33714 if { (ac_try="$ac_compile"
33715 case "(($ac_try" in
33716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33717 *) ac_try_echo=$ac_try;;
33719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33720 (eval "$ac_compile") 2>conftest.er1
33722 grep -v '^ *+' conftest.er1 >conftest.err
33724 cat conftest.err >&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); } && {
33727 test -z "$ac_c_werror_flag" ||
33728 test ! -s conftest.err
33729 } && test -s conftest.$ac_objext; then
33730 ac_cv_have_decl_strncasecmp=yes
33732 echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33735 ac_cv_have_decl_strncasecmp=no
33738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33740 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
33741 echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6; }
33742 if test $ac_cv_have_decl_strncasecmp = yes; then
33744 cat >>confdefs.h <<_ACEOF
33745 #define HAVE_DECL_STRNCASECMP 1
33750 cat >>confdefs.h <<_ACEOF
33751 #define HAVE_DECL_STRNCASECMP 0
33758 if test $ac_cv_have_decl_strncasecmp = no; then
33759 HAVE_DECL_STRNCASECMP=0
33776 for ac_func in strchrnul
33778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33782 echo $ECHO_N "(cached) $ECHO_C" >&6
33784 cat >conftest.$ac_ext <<_ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h. */
33790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33792 #define $ac_func innocuous_$ac_func
33794 /* System header to define __stub macros and hopefully few prototypes,
33795 which can conflict with char $ac_func (); below.
33796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33797 <limits.h> exists even on freestanding compilers. */
33800 # include <limits.h>
33802 # include <assert.h>
33807 /* Override any GCC internal prototype to avoid an error.
33808 Use char because int might match the return type of a GCC
33809 builtin and then its argument prototype would still apply. */
33814 /* The GNU C library defines this for functions which it implements
33815 to always fail with ENOSYS. Some functions are actually named
33816 something starting with __ and the normal name is an alias. */
33817 #if defined __stub_$ac_func || defined __stub___$ac_func
33824 return $ac_func ();
33829 rm -f conftest.$ac_objext conftest$ac_exeext
33830 if { (ac_try="$ac_link"
33831 case "(($ac_try" in
33832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33833 *) ac_try_echo=$ac_try;;
33835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33836 (eval "$ac_link") 2>conftest.er1
33838 grep -v '^ *+' conftest.er1 >conftest.err
33840 cat conftest.err >&5
33841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); } && {
33843 test -z "$ac_c_werror_flag" ||
33844 test ! -s conftest.err
33845 } && test -s conftest$ac_exeext &&
33846 $as_test_x conftest$ac_exeext; then
33847 eval "$as_ac_var=yes"
33849 echo "$as_me: failed program was:" >&5
33850 sed 's/^/| /' conftest.$ac_ext >&5
33852 eval "$as_ac_var=no"
33855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33856 conftest$ac_exeext conftest.$ac_ext
33858 ac_res=`eval echo '${'$as_ac_var'}'`
33859 { echo "$as_me:$LINENO: result: $ac_res" >&5
33860 echo "${ECHO_T}$ac_res" >&6; }
33861 if test `eval echo '${'$as_ac_var'}'` = yes; then
33862 cat >>confdefs.h <<_ACEOF
33863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33868 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33874 if test $ac_cv_func_strchrnul = no; then
33886 if test $gl_cv_func_malloc_posix != yes; then
33896 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
33908 for ac_func in strdup
33910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33914 echo $ECHO_N "(cached) $ECHO_C" >&6
33916 cat >conftest.$ac_ext <<_ACEOF
33919 cat confdefs.h >>conftest.$ac_ext
33920 cat >>conftest.$ac_ext <<_ACEOF
33921 /* end confdefs.h. */
33922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33924 #define $ac_func innocuous_$ac_func
33926 /* System header to define __stub macros and hopefully few prototypes,
33927 which can conflict with char $ac_func (); below.
33928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33929 <limits.h> exists even on freestanding compilers. */
33932 # include <limits.h>
33934 # include <assert.h>
33939 /* Override any GCC internal prototype to avoid an error.
33940 Use char because int might match the return type of a GCC
33941 builtin and then its argument prototype would still apply. */
33946 /* The GNU C library defines this for functions which it implements
33947 to always fail with ENOSYS. Some functions are actually named
33948 something starting with __ and the normal name is an alias. */
33949 #if defined __stub_$ac_func || defined __stub___$ac_func
33956 return $ac_func ();
33961 rm -f conftest.$ac_objext conftest$ac_exeext
33962 if { (ac_try="$ac_link"
33963 case "(($ac_try" in
33964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965 *) ac_try_echo=$ac_try;;
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968 (eval "$ac_link") 2>conftest.er1
33970 grep -v '^ *+' conftest.er1 >conftest.err
33972 cat conftest.err >&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); } && {
33975 test -z "$ac_c_werror_flag" ||
33976 test ! -s conftest.err
33977 } && test -s conftest$ac_exeext &&
33978 $as_test_x conftest$ac_exeext; then
33979 eval "$as_ac_var=yes"
33981 echo "$as_me: failed program was:" >&5
33982 sed 's/^/| /' conftest.$ac_ext >&5
33984 eval "$as_ac_var=no"
33987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33988 conftest$ac_exeext conftest.$ac_ext
33990 ac_res=`eval echo '${'$as_ac_var'}'`
33991 { echo "$as_me:$LINENO: result: $ac_res" >&5
33992 echo "${ECHO_T}$ac_res" >&6; }
33993 if test `eval echo '${'$as_ac_var'}'` = yes; then
33994 cat >>confdefs.h <<_ACEOF
33995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34000 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34011 if test $ac_cv_have_decl_strdup = no; then
34022 if test $REPLACE_STRERROR = 1; then
34031 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
34034 cat >>confdefs.h <<_ACEOF
34035 #define REPLACE_STRERROR $REPLACE_STRERROR
34058 if test $ac_cv_have_decl_strndup = no; then
34059 HAVE_DECL_STRNDUP=0
34062 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
34063 { echo "$as_me:$LINENO: checking for working strndup" >&5
34064 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
34065 if test "${gl_cv_func_strndup+set}" = set; then
34066 echo $ECHO_N "(cached) $ECHO_C" >&6
34068 if test "$cross_compiling" = yes; then
34069 { echo "$as_me:$LINENO: checking for strndup" >&5
34070 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
34071 if test "${ac_cv_func_strndup+set}" = set; then
34072 echo $ECHO_N "(cached) $ECHO_C" >&6
34074 cat >conftest.$ac_ext <<_ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h. */
34080 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
34081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34082 #define strndup innocuous_strndup
34084 /* System header to define __stub macros and hopefully few prototypes,
34085 which can conflict with char strndup (); below.
34086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34087 <limits.h> exists even on freestanding compilers. */
34090 # include <limits.h>
34092 # include <assert.h>
34097 /* Override any GCC internal prototype to avoid an error.
34098 Use char because int might match the return type of a GCC
34099 builtin and then its argument prototype would still apply. */
34104 /* The GNU C library defines this for functions which it implements
34105 to always fail with ENOSYS. Some functions are actually named
34106 something starting with __ and the normal name is an alias. */
34107 #if defined __stub_strndup || defined __stub___strndup
34119 rm -f conftest.$ac_objext conftest$ac_exeext
34120 if { (ac_try="$ac_link"
34121 case "(($ac_try" in
34122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123 *) ac_try_echo=$ac_try;;
34125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126 (eval "$ac_link") 2>conftest.er1
34128 grep -v '^ *+' conftest.er1 >conftest.err
34130 cat conftest.err >&5
34131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132 (exit $ac_status); } && {
34133 test -z "$ac_c_werror_flag" ||
34134 test ! -s conftest.err
34135 } && test -s conftest$ac_exeext &&
34136 $as_test_x conftest$ac_exeext; then
34137 ac_cv_func_strndup=yes
34139 echo "$as_me: failed program was:" >&5
34140 sed 's/^/| /' conftest.$ac_ext >&5
34142 ac_cv_func_strndup=no
34145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34146 conftest$ac_exeext conftest.$ac_ext
34148 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
34149 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
34150 if test $ac_cv_func_strndup = yes; then
34151 cat >conftest.$ac_ext <<_ACEOF
34154 cat confdefs.h >>conftest.$ac_ext
34155 cat >>conftest.$ac_ext <<_ACEOF
34156 /* end confdefs.h. */
34163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34164 $EGREP "too risky" >/dev/null 2>&1; then
34165 gl_cv_func_strndup=no
34167 gl_cv_func_strndup=yes
34172 gl_cv_func_strndup=no
34176 cat >conftest.$ac_ext <<_ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h. */
34183 #include <string.h>
34184 #include <stdlib.h>
34189 #ifndef HAVE_DECL_STRNDUP
34190 extern char *strndup (const char *, size_t);
34193 s = strndup ("some longer string", 15);
34195 s = strndup ("shorter string", 13);
34196 return s[13] != '\0';
34201 rm -f conftest$ac_exeext
34202 if { (ac_try="$ac_link"
34203 case "(($ac_try" in
34204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205 *) ac_try_echo=$ac_try;;
34207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208 (eval "$ac_link") 2>&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34212 { (case "(($ac_try" in
34213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34214 *) ac_try_echo=$ac_try;;
34216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34217 (eval "$ac_try") 2>&5
34219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); }; }; then
34221 gl_cv_func_strndup=yes
34223 echo "$as_me: program exited with status $ac_status" >&5
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34227 ( exit $ac_status )
34228 gl_cv_func_strndup=no
34230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34235 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
34236 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
34237 if test $gl_cv_func_strndup = yes; then
34239 cat >>confdefs.h <<\_ACEOF
34240 #define HAVE_STRNDUP 1
34253 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
34270 if test $ac_cv_have_decl_strnlen = no; then
34271 HAVE_DECL_STRNLEN=0
34274 { echo "$as_me:$LINENO: checking for working strnlen" >&5
34275 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
34276 if test "${ac_cv_func_strnlen_working+set}" = set; then
34277 echo $ECHO_N "(cached) $ECHO_C" >&6
34279 if test "$cross_compiling" = yes; then
34280 ac_cv_func_strnlen_working=no
34282 cat >conftest.$ac_ext <<_ACEOF
34285 cat confdefs.h >>conftest.$ac_ext
34286 cat >>conftest.$ac_ext <<_ACEOF
34287 /* end confdefs.h. */
34288 $ac_includes_default
34294 #define S_LEN (sizeof S - 1)
34296 /* At least one implementation is buggy: that of AIX 4.3 would
34297 give strnlen (S, 1) == 3. */
34300 for (i = 0; i < S_LEN + 1; ++i)
34302 int expected = i <= S_LEN ? i : S_LEN;
34303 if (strnlen (S, i) != expected)
34312 rm -f conftest$ac_exeext
34313 if { (ac_try="$ac_link"
34314 case "(($ac_try" in
34315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34316 *) ac_try_echo=$ac_try;;
34318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34319 (eval "$ac_link") 2>&5
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34323 { (case "(($ac_try" in
34324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34325 *) ac_try_echo=$ac_try;;
34327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34328 (eval "$ac_try") 2>&5
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; }; then
34332 ac_cv_func_strnlen_working=yes
34334 echo "$as_me: program exited with status $ac_status" >&5
34335 echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34338 ( exit $ac_status )
34339 ac_cv_func_strnlen_working=no
34341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34346 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
34347 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
34348 test $ac_cv_func_strnlen_working = no &&
34356 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
34359 if test $ac_cv_func_strnlen_working = no; then
34360 # This is necessary because automake-1.6.1 doesn't understand
34361 # that the above use of AC_FUNC_STRNLEN means we may have to use
34363 #AC_LIBOBJ([strnlen])
34365 cat >>confdefs.h <<\_ACEOF
34366 #define strnlen rpl_strnlen
34380 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
34381 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
34382 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
34383 echo $ECHO_N "(cached) $ECHO_C" >&6
34385 cat >conftest.$ac_ext <<_ACEOF
34388 cat confdefs.h >>conftest.$ac_ext
34389 cat >>conftest.$ac_ext <<_ACEOF
34390 /* end confdefs.h. */
34391 #include <inttypes.h>
34393 inttypes_h_defines_strtoimax
34396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34397 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
34398 gl_cv_func_strtoimax_macro=yes
34400 gl_cv_func_strtoimax_macro=no
34405 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
34406 echo "${ECHO_T}$gl_cv_func_strtoimax_macro" >&6; }
34408 if test "$gl_cv_func_strtoimax_macro" != yes; then
34418 for ac_func in strtoimax
34420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34424 echo $ECHO_N "(cached) $ECHO_C" >&6
34426 cat >conftest.$ac_ext <<_ACEOF
34429 cat confdefs.h >>conftest.$ac_ext
34430 cat >>conftest.$ac_ext <<_ACEOF
34431 /* end confdefs.h. */
34432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34434 #define $ac_func innocuous_$ac_func
34436 /* System header to define __stub macros and hopefully few prototypes,
34437 which can conflict with char $ac_func (); below.
34438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34439 <limits.h> exists even on freestanding compilers. */
34442 # include <limits.h>
34444 # include <assert.h>
34449 /* Override any GCC internal prototype to avoid an error.
34450 Use char because int might match the return type of a GCC
34451 builtin and then its argument prototype would still apply. */
34456 /* The GNU C library defines this for functions which it implements
34457 to always fail with ENOSYS. Some functions are actually named
34458 something starting with __ and the normal name is an alias. */
34459 #if defined __stub_$ac_func || defined __stub___$ac_func
34466 return $ac_func ();
34471 rm -f conftest.$ac_objext conftest$ac_exeext
34472 if { (ac_try="$ac_link"
34473 case "(($ac_try" in
34474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34475 *) ac_try_echo=$ac_try;;
34477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34478 (eval "$ac_link") 2>conftest.er1
34480 grep -v '^ *+' conftest.er1 >conftest.err
34482 cat conftest.err >&5
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); } && {
34485 test -z "$ac_c_werror_flag" ||
34486 test ! -s conftest.err
34487 } && test -s conftest$ac_exeext &&
34488 $as_test_x conftest$ac_exeext; then
34489 eval "$as_ac_var=yes"
34491 echo "$as_me: failed program was:" >&5
34492 sed 's/^/| /' conftest.$ac_ext >&5
34494 eval "$as_ac_var=no"
34497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34498 conftest$ac_exeext conftest.$ac_ext
34500 ac_res=`eval echo '${'$as_ac_var'}'`
34501 { echo "$as_me:$LINENO: result: $ac_res" >&5
34502 echo "${ECHO_T}$ac_res" >&6; }
34503 if test `eval echo '${'$as_ac_var'}'` = yes; then
34504 cat >>confdefs.h <<_ACEOF
34505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34510 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34516 if test $ac_cv_func_strtoimax = no; then
34518 { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
34519 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
34520 if test "${ac_cv_have_decl_strtoll+set}" = set; then
34521 echo $ECHO_N "(cached) $ECHO_C" >&6
34523 cat >conftest.$ac_ext <<_ACEOF
34526 cat confdefs.h >>conftest.$ac_ext
34527 cat >>conftest.$ac_ext <<_ACEOF
34528 /* end confdefs.h. */
34529 $ac_includes_default
34541 rm -f conftest.$ac_objext
34542 if { (ac_try="$ac_compile"
34543 case "(($ac_try" in
34544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545 *) ac_try_echo=$ac_try;;
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548 (eval "$ac_compile") 2>conftest.er1
34550 grep -v '^ *+' conftest.er1 >conftest.err
34552 cat conftest.err >&5
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); } && {
34555 test -z "$ac_c_werror_flag" ||
34556 test ! -s conftest.err
34557 } && test -s conftest.$ac_objext; then
34558 ac_cv_have_decl_strtoll=yes
34560 echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34563 ac_cv_have_decl_strtoll=no
34566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
34569 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
34570 if test $ac_cv_have_decl_strtoll = yes; then
34572 cat >>confdefs.h <<_ACEOF
34573 #define HAVE_DECL_STRTOLL 1
34578 cat >>confdefs.h <<_ACEOF
34579 #define HAVE_DECL_STRTOLL 0
34605 for ac_func in strtol
34607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34611 echo $ECHO_N "(cached) $ECHO_C" >&6
34613 cat >conftest.$ac_ext <<_ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h. */
34619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34621 #define $ac_func innocuous_$ac_func
34623 /* System header to define __stub macros and hopefully few prototypes,
34624 which can conflict with char $ac_func (); below.
34625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34626 <limits.h> exists even on freestanding compilers. */
34629 # include <limits.h>
34631 # include <assert.h>
34636 /* Override any GCC internal prototype to avoid an error.
34637 Use char because int might match the return type of a GCC
34638 builtin and then its argument prototype would still apply. */
34643 /* The GNU C library defines this for functions which it implements
34644 to always fail with ENOSYS. Some functions are actually named
34645 something starting with __ and the normal name is an alias. */
34646 #if defined __stub_$ac_func || defined __stub___$ac_func
34653 return $ac_func ();
34658 rm -f conftest.$ac_objext conftest$ac_exeext
34659 if { (ac_try="$ac_link"
34660 case "(($ac_try" in
34661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662 *) ac_try_echo=$ac_try;;
34664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665 (eval "$ac_link") 2>conftest.er1
34667 grep -v '^ *+' conftest.er1 >conftest.err
34669 cat conftest.err >&5
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); } && {
34672 test -z "$ac_c_werror_flag" ||
34673 test ! -s conftest.err
34674 } && test -s conftest$ac_exeext &&
34675 $as_test_x conftest$ac_exeext; then
34676 eval "$as_ac_var=yes"
34678 echo "$as_me: failed program was:" >&5
34679 sed 's/^/| /' conftest.$ac_ext >&5
34681 eval "$as_ac_var=no"
34684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34685 conftest$ac_exeext conftest.$ac_ext
34687 ac_res=`eval echo '${'$as_ac_var'}'`
34688 { echo "$as_me:$LINENO: result: $ac_res" >&5
34689 echo "${ECHO_T}$ac_res" >&6; }
34690 if test `eval echo '${'$as_ac_var'}'` = yes; then
34691 cat >>confdefs.h <<_ACEOF
34692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34697 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34707 if test "$ac_cv_type_long_long_int" = yes; then
34717 for ac_func in strtoll
34719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34723 echo $ECHO_N "(cached) $ECHO_C" >&6
34725 cat >conftest.$ac_ext <<_ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h. */
34731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34733 #define $ac_func innocuous_$ac_func
34735 /* System header to define __stub macros and hopefully few prototypes,
34736 which can conflict with char $ac_func (); below.
34737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34738 <limits.h> exists even on freestanding compilers. */
34741 # include <limits.h>
34743 # include <assert.h>
34748 /* Override any GCC internal prototype to avoid an error.
34749 Use char because int might match the return type of a GCC
34750 builtin and then its argument prototype would still apply. */
34755 /* The GNU C library defines this for functions which it implements
34756 to always fail with ENOSYS. Some functions are actually named
34757 something starting with __ and the normal name is an alias. */
34758 #if defined __stub_$ac_func || defined __stub___$ac_func
34765 return $ac_func ();
34770 rm -f conftest.$ac_objext conftest$ac_exeext
34771 if { (ac_try="$ac_link"
34772 case "(($ac_try" in
34773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34774 *) ac_try_echo=$ac_try;;
34776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34777 (eval "$ac_link") 2>conftest.er1
34779 grep -v '^ *+' conftest.er1 >conftest.err
34781 cat conftest.err >&5
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); } && {
34784 test -z "$ac_c_werror_flag" ||
34785 test ! -s conftest.err
34786 } && test -s conftest$ac_exeext &&
34787 $as_test_x conftest$ac_exeext; then
34788 eval "$as_ac_var=yes"
34790 echo "$as_me: failed program was:" >&5
34791 sed 's/^/| /' conftest.$ac_ext >&5
34793 eval "$as_ac_var=no"
34796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34797 conftest$ac_exeext conftest.$ac_ext
34799 ac_res=`eval echo '${'$as_ac_var'}'`
34800 { echo "$as_me:$LINENO: result: $ac_res" >&5
34801 echo "${ECHO_T}$ac_res" >&6; }
34802 if test `eval echo '${'$as_ac_var'}'` = yes; then
34803 cat >>confdefs.h <<_ACEOF
34804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34809 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34815 if test $ac_cv_func_strtoll = no; then
34837 for ac_func in strtoul
34839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34843 echo $ECHO_N "(cached) $ECHO_C" >&6
34845 cat >conftest.$ac_ext <<_ACEOF
34848 cat confdefs.h >>conftest.$ac_ext
34849 cat >>conftest.$ac_ext <<_ACEOF
34850 /* end confdefs.h. */
34851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34853 #define $ac_func innocuous_$ac_func
34855 /* System header to define __stub macros and hopefully few prototypes,
34856 which can conflict with char $ac_func (); below.
34857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34858 <limits.h> exists even on freestanding compilers. */
34861 # include <limits.h>
34863 # include <assert.h>
34868 /* Override any GCC internal prototype to avoid an error.
34869 Use char because int might match the return type of a GCC
34870 builtin and then its argument prototype would still apply. */
34875 /* The GNU C library defines this for functions which it implements
34876 to always fail with ENOSYS. Some functions are actually named
34877 something starting with __ and the normal name is an alias. */
34878 #if defined __stub_$ac_func || defined __stub___$ac_func
34885 return $ac_func ();
34890 rm -f conftest.$ac_objext conftest$ac_exeext
34891 if { (ac_try="$ac_link"
34892 case "(($ac_try" in
34893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34894 *) ac_try_echo=$ac_try;;
34896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34897 (eval "$ac_link") 2>conftest.er1
34899 grep -v '^ *+' conftest.er1 >conftest.err
34901 cat conftest.err >&5
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); } && {
34904 test -z "$ac_c_werror_flag" ||
34905 test ! -s conftest.err
34906 } && test -s conftest$ac_exeext &&
34907 $as_test_x conftest$ac_exeext; then
34908 eval "$as_ac_var=yes"
34910 echo "$as_me: failed program was:" >&5
34911 sed 's/^/| /' conftest.$ac_ext >&5
34913 eval "$as_ac_var=no"
34916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34917 conftest$ac_exeext conftest.$ac_ext
34919 ac_res=`eval echo '${'$as_ac_var'}'`
34920 { echo "$as_me:$LINENO: result: $ac_res" >&5
34921 echo "${ECHO_T}$ac_res" >&6; }
34922 if test `eval echo '${'$as_ac_var'}'` = yes; then
34923 cat >>confdefs.h <<_ACEOF
34924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34929 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34939 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
34949 for ac_func in strtoull
34951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34955 echo $ECHO_N "(cached) $ECHO_C" >&6
34957 cat >conftest.$ac_ext <<_ACEOF
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h. */
34963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34965 #define $ac_func innocuous_$ac_func
34967 /* System header to define __stub macros and hopefully few prototypes,
34968 which can conflict with char $ac_func (); below.
34969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34970 <limits.h> exists even on freestanding compilers. */
34973 # include <limits.h>
34975 # include <assert.h>
34980 /* Override any GCC internal prototype to avoid an error.
34981 Use char because int might match the return type of a GCC
34982 builtin and then its argument prototype would still apply. */
34987 /* The GNU C library defines this for functions which it implements
34988 to always fail with ENOSYS. Some functions are actually named
34989 something starting with __ and the normal name is an alias. */
34990 #if defined __stub_$ac_func || defined __stub___$ac_func
34997 return $ac_func ();
35002 rm -f conftest.$ac_objext conftest$ac_exeext
35003 if { (ac_try="$ac_link"
35004 case "(($ac_try" in
35005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35006 *) ac_try_echo=$ac_try;;
35008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35009 (eval "$ac_link") 2>conftest.er1
35011 grep -v '^ *+' conftest.er1 >conftest.err
35013 cat conftest.err >&5
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); } && {
35016 test -z "$ac_c_werror_flag" ||
35017 test ! -s conftest.err
35018 } && test -s conftest$ac_exeext &&
35019 $as_test_x conftest$ac_exeext; then
35020 eval "$as_ac_var=yes"
35022 echo "$as_me: failed program was:" >&5
35023 sed 's/^/| /' conftest.$ac_ext >&5
35025 eval "$as_ac_var=no"
35028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35029 conftest$ac_exeext conftest.$ac_ext
35031 ac_res=`eval echo '${'$as_ac_var'}'`
35032 { echo "$as_me:$LINENO: result: $ac_res" >&5
35033 echo "${ECHO_T}$ac_res" >&6; }
35034 if test `eval echo '${'$as_ac_var'}'` = yes; then
35035 cat >>confdefs.h <<_ACEOF
35036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35041 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35047 if test $ac_cv_func_strtoull = no; then
35063 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
35064 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
35065 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
35066 echo $ECHO_N "(cached) $ECHO_C" >&6
35068 cat >conftest.$ac_ext <<_ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h. */
35074 #include <inttypes.h>
35076 inttypes_h_defines_strtoumax
35079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35080 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
35081 gl_cv_func_strtoumax_macro=yes
35083 gl_cv_func_strtoumax_macro=no
35088 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
35089 echo "${ECHO_T}$gl_cv_func_strtoumax_macro" >&6; }
35091 if test "$gl_cv_func_strtoumax_macro" != yes; then
35101 for ac_func in strtoumax
35103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35107 echo $ECHO_N "(cached) $ECHO_C" >&6
35109 cat >conftest.$ac_ext <<_ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h. */
35115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35117 #define $ac_func innocuous_$ac_func
35119 /* System header to define __stub macros and hopefully few prototypes,
35120 which can conflict with char $ac_func (); below.
35121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35122 <limits.h> exists even on freestanding compilers. */
35125 # include <limits.h>
35127 # include <assert.h>
35132 /* Override any GCC internal prototype to avoid an error.
35133 Use char because int might match the return type of a GCC
35134 builtin and then its argument prototype would still apply. */
35139 /* The GNU C library defines this for functions which it implements
35140 to always fail with ENOSYS. Some functions are actually named
35141 something starting with __ and the normal name is an alias. */
35142 #if defined __stub_$ac_func || defined __stub___$ac_func
35149 return $ac_func ();
35154 rm -f conftest.$ac_objext conftest$ac_exeext
35155 if { (ac_try="$ac_link"
35156 case "(($ac_try" in
35157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158 *) ac_try_echo=$ac_try;;
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161 (eval "$ac_link") 2>conftest.er1
35163 grep -v '^ *+' conftest.er1 >conftest.err
35165 cat conftest.err >&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } && {
35168 test -z "$ac_c_werror_flag" ||
35169 test ! -s conftest.err
35170 } && test -s conftest$ac_exeext &&
35171 $as_test_x conftest$ac_exeext; then
35172 eval "$as_ac_var=yes"
35174 echo "$as_me: failed program was:" >&5
35175 sed 's/^/| /' conftest.$ac_ext >&5
35177 eval "$as_ac_var=no"
35180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35181 conftest$ac_exeext conftest.$ac_ext
35183 ac_res=`eval echo '${'$as_ac_var'}'`
35184 { echo "$as_me:$LINENO: result: $ac_res" >&5
35185 echo "${ECHO_T}$ac_res" >&6; }
35186 if test `eval echo '${'$as_ac_var'}'` = yes; then
35187 cat >>confdefs.h <<_ACEOF
35188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35193 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35199 if test $ac_cv_func_strtoumax = no; then
35201 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
35202 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
35203 if test "${ac_cv_have_decl_strtoull+set}" = set; then
35204 echo $ECHO_N "(cached) $ECHO_C" >&6
35206 cat >conftest.$ac_ext <<_ACEOF
35209 cat confdefs.h >>conftest.$ac_ext
35210 cat >>conftest.$ac_ext <<_ACEOF
35211 /* end confdefs.h. */
35212 $ac_includes_default
35224 rm -f conftest.$ac_objext
35225 if { (ac_try="$ac_compile"
35226 case "(($ac_try" in
35227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35228 *) ac_try_echo=$ac_try;;
35230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35231 (eval "$ac_compile") 2>conftest.er1
35233 grep -v '^ *+' conftest.er1 >conftest.err
35235 cat conftest.err >&5
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); } && {
35238 test -z "$ac_c_werror_flag" ||
35239 test ! -s conftest.err
35240 } && test -s conftest.$ac_objext; then
35241 ac_cv_have_decl_strtoull=yes
35243 echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35246 ac_cv_have_decl_strtoull=no
35249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35251 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
35252 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
35253 if test $ac_cv_have_decl_strtoull = yes; then
35255 cat >>confdefs.h <<_ACEOF
35256 #define HAVE_DECL_STRTOULL 1
35261 cat >>confdefs.h <<_ACEOF
35262 #define HAVE_DECL_STRTOULL 0
35287 if test $ac_cv_func_lstat = yes; then
35309 if test $gl_cv_have_include_next = yes; then
35310 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
35312 { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
35313 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
35314 if test "${gl_cv_next_sys_stat_h+set}" = set; then
35315 echo $ECHO_N "(cached) $ECHO_C" >&6
35318 if test $ac_cv_header_sys_stat_h = yes; then
35319 cat >conftest.$ac_ext <<_ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 #include <sys/stat.h>
35329 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35330 *) gl_absname_cpp="$ac_cpp" ;;
35332 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35333 sed -n '\#/sys/stat.h#{
35334 s#.*"\(.*/sys/stat.h\)".*#\1#
35340 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
35344 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
35345 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
35347 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
35351 SYS_STAT_H='sys/stat.h'
35354 { echo "$as_me:$LINENO: checking for nlink_t" >&5
35355 echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6; }
35356 if test "${ac_cv_type_nlink_t+set}" = set; then
35357 echo $ECHO_N "(cached) $ECHO_C" >&6
35359 cat >conftest.$ac_ext <<_ACEOF
35362 cat confdefs.h >>conftest.$ac_ext
35363 cat >>conftest.$ac_ext <<_ACEOF
35364 /* end confdefs.h. */
35365 #include <sys/types.h>
35366 #include <sys/stat.h>
35368 typedef nlink_t ac__type_new_;
35372 if ((ac__type_new_ *) 0)
35374 if (sizeof (ac__type_new_))
35380 rm -f conftest.$ac_objext
35381 if { (ac_try="$ac_compile"
35382 case "(($ac_try" in
35383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35384 *) ac_try_echo=$ac_try;;
35386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35387 (eval "$ac_compile") 2>conftest.er1
35389 grep -v '^ *+' conftest.er1 >conftest.err
35391 cat conftest.err >&5
35392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393 (exit $ac_status); } && {
35394 test -z "$ac_c_werror_flag" ||
35395 test ! -s conftest.err
35396 } && test -s conftest.$ac_objext; then
35397 ac_cv_type_nlink_t=yes
35399 echo "$as_me: failed program was:" >&5
35400 sed 's/^/| /' conftest.$ac_ext >&5
35402 ac_cv_type_nlink_t=no
35405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35407 { echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
35408 echo "${ECHO_T}$ac_cv_type_nlink_t" >&6; }
35409 if test $ac_cv_type_nlink_t = yes; then
35413 cat >>confdefs.h <<\_ACEOF
35414 #define nlink_t int
35421 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
35422 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
35423 if test -z "$MKDIR_P"; then
35424 if test "${ac_cv_path_mkdir+set}" = set; then
35425 echo $ECHO_N "(cached) $ECHO_C" >&6
35427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35428 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
35431 test -z "$as_dir" && as_dir=.
35432 for ac_prog in mkdir gmkdir; do
35433 for ac_exec_ext in '' $ac_executable_extensions; do
35434 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
35435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
35436 'mkdir (GNU coreutils) '* | \
35437 'mkdir (coreutils) '* | \
35438 'mkdir (fileutils) '4.1*)
35439 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
35449 if test "${ac_cv_path_mkdir+set}" = set; then
35450 MKDIR_P="$ac_cv_path_mkdir -p"
35452 # As a last resort, use the slow shell script. Don't cache a
35453 # value for MKDIR_P within a source directory, because that will
35454 # break other packages using the cache if that directory is
35455 # removed, or if the value is a relative name.
35456 test -d ./--version && rmdir ./--version
35457 MKDIR_P="$ac_install_sh -d"
35460 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
35461 echo "${ECHO_T}$MKDIR_P" >&6; }
35466 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
35467 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
35468 if test -z "$MKDIR_P"; then
35469 if test "${ac_cv_path_mkdir+set}" = set; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35473 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
35476 test -z "$as_dir" && as_dir=.
35477 for ac_prog in mkdir gmkdir; do
35478 for ac_exec_ext in '' $ac_executable_extensions; do
35479 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
35480 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
35481 'mkdir (GNU coreutils) '* | \
35482 'mkdir (coreutils) '* | \
35483 'mkdir (fileutils) '4.1*)
35484 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
35494 if test "${ac_cv_path_mkdir+set}" = set; then
35495 MKDIR_P="$ac_cv_path_mkdir -p"
35497 # As a last resort, use the slow shell script. Don't cache a
35498 # value for MKDIR_P within a source directory, because that will
35499 # break other packages using the cache if that directory is
35500 # removed, or if the value is a relative name.
35501 test -d ./--version && rmdir ./--version
35502 MKDIR_P="$ac_install_sh -d"
35505 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
35506 echo "${ECHO_T}$MKDIR_P" >&6; }
35515 if test $ac_cv_header_sysexits_h = yes; then
35528 if test $gl_cv_have_include_next = yes; then
35529 gl_cv_next_sysexits_h='<'sysexits.h'>'
35531 { echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
35532 echo $ECHO_N "checking absolute name of <sysexits.h>... $ECHO_C" >&6; }
35533 if test "${gl_cv_next_sysexits_h+set}" = set; then
35534 echo $ECHO_N "(cached) $ECHO_C" >&6
35537 if test $ac_cv_header_sysexits_h = yes; then
35538 cat >conftest.$ac_ext <<_ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h. */
35544 #include <sysexits.h>
35548 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35549 *) gl_absname_cpp="$ac_cpp" ;;
35551 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35552 sed -n '\#/sysexits.h#{
35553 s#.*"\(.*/sysexits.h\)".*#\1#
35559 gl_cv_next_sysexits_h='<'sysexits.h'>'
35563 { echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
35564 echo "${ECHO_T}$gl_cv_next_sysexits_h" >&6; }
35566 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
35570 cat >conftest.$ac_ext <<_ACEOF
35573 cat confdefs.h >>conftest.$ac_ext
35574 cat >>conftest.$ac_ext <<_ACEOF
35575 /* end confdefs.h. */
35576 #include <sysexits.h>
35588 case EX_UNAVAILABLE:
35605 rm -f conftest.$ac_objext
35606 if { (ac_try="$ac_compile"
35607 case "(($ac_try" in
35608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35609 *) ac_try_echo=$ac_try;;
35611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35612 (eval "$ac_compile") 2>conftest.er1
35614 grep -v '^ *+' conftest.er1 >conftest.err
35616 cat conftest.err >&5
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); } && {
35619 test -z "$ac_c_werror_flag" ||
35620 test ! -s conftest.err
35621 } && test -s conftest.$ac_objext; then
35624 echo "$as_me: failed program was:" >&5
35625 sed 's/^/| /' conftest.$ac_ext >&5
35627 SYSEXITS_H=sysexits.h
35630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35633 SYSEXITS_H=sysexits.h
35649 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
35664 { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
35665 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
35666 if test "${gl_cv_time_r_posix+set}" = set; then
35667 echo $ECHO_N "(cached) $ECHO_C" >&6
35669 cat >conftest.$ac_ext <<_ACEOF
35672 cat confdefs.h >>conftest.$ac_ext
35673 cat >>conftest.$ac_ext <<_ACEOF
35674 /* end confdefs.h. */
35679 /* We don't need to append 'restrict's to the argument types,
35680 even though the POSIX signature has the 'restrict's,
35681 since C99 says they can't affect type compatibility. */
35682 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
35684 /* Check the return type is a pointer. On HP-UX 10 it is 'int'. */
35685 *localtime_r (0, 0);
35690 rm -f conftest.$ac_objext
35691 if { (ac_try="$ac_compile"
35692 case "(($ac_try" in
35693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35694 *) ac_try_echo=$ac_try;;
35696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35697 (eval "$ac_compile") 2>conftest.er1
35699 grep -v '^ *+' conftest.er1 >conftest.err
35701 cat conftest.err >&5
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); } && {
35704 test -z "$ac_c_werror_flag" ||
35705 test ! -s conftest.err
35706 } && test -s conftest.$ac_objext; then
35707 gl_cv_time_r_posix=yes
35709 echo "$as_me: failed program was:" >&5
35710 sed 's/^/| /' conftest.$ac_ext >&5
35712 gl_cv_time_r_posix=no
35715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35717 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
35718 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
35719 if test $gl_cv_time_r_posix = yes; then
35720 REPLACE_LOCALTIME_R=0
35722 REPLACE_LOCALTIME_R=1
35731 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
35755 if test $gl_cv_have_include_next = yes; then
35756 gl_cv_next_unistd_h='<'unistd.h'>'
35758 { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
35759 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
35760 if test "${gl_cv_next_unistd_h+set}" = set; then
35761 echo $ECHO_N "(cached) $ECHO_C" >&6
35764 if test $ac_cv_header_unistd_h = yes; then
35765 cat >conftest.$ac_ext <<_ACEOF
35768 cat confdefs.h >>conftest.$ac_ext
35769 cat >>conftest.$ac_ext <<_ACEOF
35770 /* end confdefs.h. */
35771 #include <unistd.h>
35775 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35776 *) gl_absname_cpp="$ac_cpp" ;;
35778 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35779 sed -n '\#/unistd.h#{
35780 s#.*"\(.*/unistd.h\)".*#\1#
35786 gl_cv_next_unistd_h='<'unistd.h'>'
35790 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
35791 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
35793 NEXT_UNISTD_H=$gl_cv_next_unistd_h
35804 if test $ac_cv_header_unistd_h = yes; then
35826 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
35836 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
35846 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
35866 gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
35869 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
35870 # and Cygwin never let anyone (even root) unlink directories.
35871 # If anyone knows of another system for which unlink can never
35872 # remove a directory, please report it to <bug-coreutils@gnu.org>.
35873 # Unfortunately this is difficult to test for, since it requires root access
35874 # and might create garbage in the file system,
35875 # so the code below simply relies on the kernel name and version number.
35878 *-*-linux-* | *-*-linux | \
35879 *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
35882 cat >>confdefs.h <<\_ACEOF
35883 #define UNLINK_CANNOT_UNLINK_DIR 1
35890 cat >>confdefs.h <<\_ACEOF
35891 #define USE_UNLOCKED_IO 1
35953 for ac_func in unsetenv
35955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35959 echo $ECHO_N "(cached) $ECHO_C" >&6
35961 cat >conftest.$ac_ext <<_ACEOF
35964 cat confdefs.h >>conftest.$ac_ext
35965 cat >>conftest.$ac_ext <<_ACEOF
35966 /* end confdefs.h. */
35967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35969 #define $ac_func innocuous_$ac_func
35971 /* System header to define __stub macros and hopefully few prototypes,
35972 which can conflict with char $ac_func (); below.
35973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35974 <limits.h> exists even on freestanding compilers. */
35977 # include <limits.h>
35979 # include <assert.h>
35984 /* Override any GCC internal prototype to avoid an error.
35985 Use char because int might match the return type of a GCC
35986 builtin and then its argument prototype would still apply. */
35991 /* The GNU C library defines this for functions which it implements
35992 to always fail with ENOSYS. Some functions are actually named
35993 something starting with __ and the normal name is an alias. */
35994 #if defined __stub_$ac_func || defined __stub___$ac_func
36001 return $ac_func ();
36006 rm -f conftest.$ac_objext conftest$ac_exeext
36007 if { (ac_try="$ac_link"
36008 case "(($ac_try" in
36009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36010 *) ac_try_echo=$ac_try;;
36012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36013 (eval "$ac_link") 2>conftest.er1
36015 grep -v '^ *+' conftest.er1 >conftest.err
36017 cat conftest.err >&5
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); } && {
36020 test -z "$ac_c_werror_flag" ||
36021 test ! -s conftest.err
36022 } && test -s conftest$ac_exeext &&
36023 $as_test_x conftest$ac_exeext; then
36024 eval "$as_ac_var=yes"
36026 echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36029 eval "$as_ac_var=no"
36032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36033 conftest$ac_exeext conftest.$ac_ext
36035 ac_res=`eval echo '${'$as_ac_var'}'`
36036 { echo "$as_me:$LINENO: result: $ac_res" >&5
36037 echo "${ECHO_T}$ac_res" >&6; }
36038 if test `eval echo '${'$as_ac_var'}'` = yes; then
36039 cat >>confdefs.h <<_ACEOF
36040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36046 if test $ac_cv_func_unsetenv = no; then
36056 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
36068 { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
36069 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
36070 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
36071 echo $ECHO_N "(cached) $ECHO_C" >&6
36073 cat >conftest.$ac_ext <<_ACEOF
36076 cat confdefs.h >>conftest.$ac_ext
36077 cat >>conftest.$ac_ext <<_ACEOF
36078 /* end confdefs.h. */
36079 #include <stdlib.h>
36084 #if defined(__STDC__) || defined(__cplusplus)
36085 int unsetenv (const char *name);
36098 rm -f conftest.$ac_objext
36099 if { (ac_try="$ac_compile"
36100 case "(($ac_try" in
36101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36102 *) ac_try_echo=$ac_try;;
36104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36105 (eval "$ac_compile") 2>conftest.er1
36107 grep -v '^ *+' conftest.er1 >conftest.err
36109 cat conftest.err >&5
36110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111 (exit $ac_status); } && {
36112 test -z "$ac_c_werror_flag" ||
36113 test ! -s conftest.err
36114 } && test -s conftest.$ac_objext; then
36115 gt_cv_func_unsetenv_ret='int'
36117 echo "$as_me: failed program was:" >&5
36118 sed 's/^/| /' conftest.$ac_ext >&5
36120 gt_cv_func_unsetenv_ret='void'
36123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36125 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
36126 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
36127 if test $gt_cv_func_unsetenv_ret = 'void'; then
36138 if test $ac_cv_func_utime_null = no; then
36147 gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
36150 cat >>confdefs.h <<\_ACEOF
36151 #define utime rpl_utime
36162 { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
36163 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
36164 if test "${ac_cv_func_utimes_null+set}" = set; then
36165 echo $ECHO_N "(cached) $ECHO_C" >&6
36167 rm -f conftest.data; > conftest.data
36168 if test "$cross_compiling" = yes; then
36169 ac_cv_func_utimes_null=no
36171 cat >conftest.$ac_ext <<_ACEOF
36174 cat confdefs.h >>conftest.$ac_ext
36175 cat >>conftest.$ac_ext <<_ACEOF
36176 /* end confdefs.h. */
36178 /* In case stat has been defined to rpl_stat, undef it here. */
36180 #include <sys/types.h>
36181 #include <sys/stat.h>
36182 #include <sys/time.h>
36186 return ! (stat ("conftest.data", &s) == 0
36187 && utimes ("conftest.data", 0) == 0
36188 && stat ("conftest.data", &t) == 0
36189 && t.st_mtime >= s.st_mtime
36190 && t.st_mtime - s.st_mtime < 120));
36193 rm -f conftest$ac_exeext
36194 if { (ac_try="$ac_link"
36195 case "(($ac_try" in
36196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197 *) ac_try_echo=$ac_try;;
36199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36200 (eval "$ac_link") 2>&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36204 { (case "(($ac_try" in
36205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36206 *) ac_try_echo=$ac_try;;
36208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36209 (eval "$ac_try") 2>&5
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; }; then
36213 ac_cv_func_utimes_null=yes
36215 echo "$as_me: program exited with status $ac_status" >&5
36216 echo "$as_me: failed program was:" >&5
36217 sed 's/^/| /' conftest.$ac_ext >&5
36219 ( exit $ac_status )
36220 ac_cv_func_utimes_null=no
36222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36226 rm -f core core.* *.core
36228 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
36229 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
36231 if test $ac_cv_func_utimes_null = yes; then
36233 cat >>confdefs.h <<\_ACEOF
36234 #define HAVE_UTIMES_NULL 1
36252 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
36278 if test $ac_cv_func_vasnprintf = no; then
36294 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
36304 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
36314 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
36324 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
36326 if test $ac_cv_func_vasnprintf = yes; then
36328 cat >>confdefs.h <<\_ACEOF
36329 #define REPLACE_VASNPRINTF 1
36343 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
36344 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
36345 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
36346 echo $ECHO_N "(cached) $ECHO_C" >&6
36348 cat >conftest.$ac_ext <<_ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h. */
36354 $ac_includes_default
36355 typedef ptrdiff_t ac__type_new_;
36359 if ((ac__type_new_ *) 0)
36361 if (sizeof (ac__type_new_))
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
36384 ac_cv_type_ptrdiff_t=yes
36386 echo "$as_me: failed program was:" >&5
36387 sed 's/^/| /' conftest.$ac_ext >&5
36389 ac_cv_type_ptrdiff_t=no
36392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36394 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
36395 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
36396 if test $ac_cv_type_ptrdiff_t = yes; then
36400 cat >>confdefs.h <<\_ACEOF
36401 #define ptrdiff_t long
36416 for ac_func in snprintf wcslen
36418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36422 echo $ECHO_N "(cached) $ECHO_C" >&6
36424 cat >conftest.$ac_ext <<_ACEOF
36427 cat confdefs.h >>conftest.$ac_ext
36428 cat >>conftest.$ac_ext <<_ACEOF
36429 /* end confdefs.h. */
36430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36432 #define $ac_func innocuous_$ac_func
36434 /* System header to define __stub macros and hopefully few prototypes,
36435 which can conflict with char $ac_func (); below.
36436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36437 <limits.h> exists even on freestanding compilers. */
36440 # include <limits.h>
36442 # include <assert.h>
36447 /* Override any GCC internal prototype to avoid an error.
36448 Use char because int might match the return type of a GCC
36449 builtin and then its argument prototype would still apply. */
36454 /* The GNU C library defines this for functions which it implements
36455 to always fail with ENOSYS. Some functions are actually named
36456 something starting with __ and the normal name is an alias. */
36457 #if defined __stub_$ac_func || defined __stub___$ac_func
36464 return $ac_func ();
36469 rm -f conftest.$ac_objext conftest$ac_exeext
36470 if { (ac_try="$ac_link"
36471 case "(($ac_try" in
36472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36473 *) ac_try_echo=$ac_try;;
36475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36476 (eval "$ac_link") 2>conftest.er1
36478 grep -v '^ *+' conftest.er1 >conftest.err
36480 cat conftest.err >&5
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); } && {
36483 test -z "$ac_c_werror_flag" ||
36484 test ! -s conftest.err
36485 } && test -s conftest$ac_exeext &&
36486 $as_test_x conftest$ac_exeext; then
36487 eval "$as_ac_var=yes"
36489 echo "$as_me: failed program was:" >&5
36490 sed 's/^/| /' conftest.$ac_ext >&5
36492 eval "$as_ac_var=no"
36495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36496 conftest$ac_exeext conftest.$ac_ext
36498 ac_res=`eval echo '${'$as_ac_var'}'`
36499 { echo "$as_me:$LINENO: result: $ac_res" >&5
36500 echo "${ECHO_T}$ac_res" >&6; }
36501 if test `eval echo '${'$as_ac_var'}'` = yes; then
36502 cat >>confdefs.h <<_ACEOF
36503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36509 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
36510 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
36511 if test "${ac_cv_have_decl__snprintf+set}" = set; then
36512 echo $ECHO_N "(cached) $ECHO_C" >&6
36514 cat >conftest.$ac_ext <<_ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h. */
36533 rm -f conftest.$ac_objext
36534 if { (ac_try="$ac_compile"
36535 case "(($ac_try" in
36536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36537 *) ac_try_echo=$ac_try;;
36539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36540 (eval "$ac_compile") 2>conftest.er1
36542 grep -v '^ *+' conftest.er1 >conftest.err
36544 cat conftest.err >&5
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); } && {
36547 test -z "$ac_c_werror_flag" ||
36548 test ! -s conftest.err
36549 } && test -s conftest.$ac_objext; then
36550 ac_cv_have_decl__snprintf=yes
36552 echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36555 ac_cv_have_decl__snprintf=no
36558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36560 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
36561 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
36562 if test $ac_cv_have_decl__snprintf = yes; then
36564 cat >>confdefs.h <<_ACEOF
36565 #define HAVE_DECL__SNPRINTF 1
36570 cat >>confdefs.h <<_ACEOF
36571 #define HAVE_DECL__SNPRINTF 0
36586 gl_cv_func_vsnprintf_usable=no
36588 for ac_func in vsnprintf
36590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36594 echo $ECHO_N "(cached) $ECHO_C" >&6
36596 cat >conftest.$ac_ext <<_ACEOF
36599 cat confdefs.h >>conftest.$ac_ext
36600 cat >>conftest.$ac_ext <<_ACEOF
36601 /* end confdefs.h. */
36602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36604 #define $ac_func innocuous_$ac_func
36606 /* System header to define __stub macros and hopefully few prototypes,
36607 which can conflict with char $ac_func (); below.
36608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36609 <limits.h> exists even on freestanding compilers. */
36612 # include <limits.h>
36614 # include <assert.h>
36619 /* Override any GCC internal prototype to avoid an error.
36620 Use char because int might match the return type of a GCC
36621 builtin and then its argument prototype would still apply. */
36626 /* The GNU C library defines this for functions which it implements
36627 to always fail with ENOSYS. Some functions are actually named
36628 something starting with __ and the normal name is an alias. */
36629 #if defined __stub_$ac_func || defined __stub___$ac_func
36636 return $ac_func ();
36641 rm -f conftest.$ac_objext conftest$ac_exeext
36642 if { (ac_try="$ac_link"
36643 case "(($ac_try" in
36644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36645 *) ac_try_echo=$ac_try;;
36647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36648 (eval "$ac_link") 2>conftest.er1
36650 grep -v '^ *+' conftest.er1 >conftest.err
36652 cat conftest.err >&5
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); } && {
36655 test -z "$ac_c_werror_flag" ||
36656 test ! -s conftest.err
36657 } && test -s conftest$ac_exeext &&
36658 $as_test_x conftest$ac_exeext; then
36659 eval "$as_ac_var=yes"
36661 echo "$as_me: failed program was:" >&5
36662 sed 's/^/| /' conftest.$ac_ext >&5
36664 eval "$as_ac_var=no"
36667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36668 conftest$ac_exeext conftest.$ac_ext
36670 ac_res=`eval echo '${'$as_ac_var'}'`
36671 { echo "$as_me:$LINENO: result: $ac_res" >&5
36672 echo "${ECHO_T}$ac_res" >&6; }
36673 if test `eval echo '${'$as_ac_var'}'` = yes; then
36674 cat >>confdefs.h <<_ACEOF
36675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36681 if test $ac_cv_func_vsnprintf = yes; then
36684 { echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
36685 echo $ECHO_N "checking whether snprintf respects a size of 1... $ECHO_C" >&6; }
36686 if test "${gl_cv_func_snprintf_size1+set}" = set; then
36687 echo $ECHO_N "(cached) $ECHO_C" >&6
36690 if test "$cross_compiling" = yes; then
36691 gl_cv_func_snprintf_size1="guessing yes"
36693 cat >conftest.$ac_ext <<_ACEOF
36696 cat confdefs.h >>conftest.$ac_ext
36697 cat >>conftest.$ac_ext <<_ACEOF
36698 /* end confdefs.h. */
36703 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
36704 snprintf (buf, 1, "%d", 12345);
36705 return buf[1] != 'E';
36708 rm -f conftest$ac_exeext
36709 if { (ac_try="$ac_link"
36710 case "(($ac_try" in
36711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36712 *) ac_try_echo=$ac_try;;
36714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36715 (eval "$ac_link") 2>&5
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36719 { (case "(($ac_try" in
36720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36721 *) ac_try_echo=$ac_try;;
36723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36724 (eval "$ac_try") 2>&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); }; }; then
36728 gl_cv_func_snprintf_size1=yes
36730 echo "$as_me: program exited with status $ac_status" >&5
36731 echo "$as_me: failed program was:" >&5
36732 sed 's/^/| /' conftest.$ac_ext >&5
36734 ( exit $ac_status )
36735 gl_cv_func_snprintf_size1=no
36737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36743 { echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
36744 echo "${ECHO_T}$gl_cv_func_snprintf_size1" >&6; }
36746 case "$gl_cv_func_snprintf_size1" in
36748 gl_cv_func_vsnprintf_usable=yes
36752 if test $gl_cv_func_vsnprintf_usable = no; then
36763 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
36765 if test $ac_cv_func_vsnprintf = yes; then
36766 REPLACE_VSNPRINTF=1
36775 if test $ac_cv_have_decl_vsnprintf = no; then
36776 HAVE_DECL_VSNPRINTF=0
36785 { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
36786 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
36787 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
36788 echo $ECHO_N "(cached) $ECHO_C" >&6
36790 cat >conftest.$ac_ext <<_ACEOF
36794 rm -f conftest.$ac_objext
36795 if { (ac_try="$ac_compile"
36796 case "(($ac_try" in
36797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36798 *) ac_try_echo=$ac_try;;
36800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36801 (eval "$ac_compile") 2>conftest.er1
36803 grep -v '^ *+' conftest.er1 >conftest.err
36805 cat conftest.err >&5
36806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807 (exit $ac_status); } && {
36808 test -z "$ac_c_werror_flag" ||
36809 test ! -s conftest.err
36810 } && test -s conftest.$ac_objext; then
36811 gl_cv_header_wchar_h_standalone=yes
36813 echo "$as_me: failed program was:" >&5
36814 sed 's/^/| /' conftest.$ac_ext >&5
36816 gl_cv_header_wchar_h_standalone=no
36819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36821 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
36822 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
36825 if test $gt_cv_c_wint_t = yes; then
36832 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
36842 if test $ac_cv_header_wchar_h = yes; then
36859 if test $gl_cv_have_include_next = yes; then
36860 gl_cv_next_wchar_h='<'wchar.h'>'
36862 { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
36863 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
36864 if test "${gl_cv_next_wchar_h+set}" = set; then
36865 echo $ECHO_N "(cached) $ECHO_C" >&6
36868 if test $ac_cv_header_wchar_h = yes; then
36869 cat >conftest.$ac_ext <<_ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h. */
36879 aix*) gl_absname_cpp="$ac_cpp -C" ;;
36880 *) gl_absname_cpp="$ac_cpp" ;;
36882 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36883 sed -n '\#/wchar.h#{
36884 s#.*"\(.*/wchar.h\)".*#\1#
36890 gl_cv_next_wchar_h='<'wchar.h'>'
36894 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
36895 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
36897 NEXT_WCHAR_H=$gl_cv_next_wchar_h
36912 if test $ac_cv_func_wcrtomb = no; then
36921 { echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
36922 echo $ECHO_N "checking whether wcrtomb return value is correct... $ECHO_C" >&6; }
36923 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
36924 echo $ECHO_N "(cached) $ECHO_C" >&6
36928 # Guess no on OSF/1 and Solaris.
36929 osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
36930 # Guess yes otherwise.
36931 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
36933 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
36934 if test "$cross_compiling" = yes; then
36935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36936 See \`config.log' for more details." >&5
36937 echo "$as_me: error: cannot run test program while cross compiling
36938 See \`config.log' for more details." >&2;}
36939 { (exit 1); exit 1; }; }
36941 cat >conftest.$ac_ext <<_ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36948 #include <locale.h>
36950 #include <string.h>
36954 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
36956 if (wcrtomb (NULL, 0, NULL) != 1)
36959 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
36961 if (wcrtomb (NULL, 0, NULL) != 1)
36964 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36966 if (wcrtomb (NULL, 0, NULL) != 1)
36969 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36971 if (wcrtomb (NULL, 0, NULL) != 1)
36977 rm -f conftest$ac_exeext
36978 if { (ac_try="$ac_link"
36979 case "(($ac_try" in
36980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36981 *) ac_try_echo=$ac_try;;
36983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36984 (eval "$ac_link") 2>&5
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36988 { (case "(($ac_try" in
36989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36990 *) ac_try_echo=$ac_try;;
36992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36993 (eval "$ac_try") 2>&5
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; }; then
36997 gl_cv_func_wcrtomb_retval=yes
36999 echo "$as_me: program exited with status $ac_status" >&5
37000 echo "$as_me: failed program was:" >&5
37001 sed 's/^/| /' conftest.$ac_ext >&5
37003 ( exit $ac_status )
37004 gl_cv_func_wcrtomb_retval=no
37006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37013 { echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
37014 echo "${ECHO_T}$gl_cv_func_wcrtomb_retval" >&6; }
37015 case "$gl_cv_func_wcrtomb_retval" in
37017 *) REPLACE_WCRTOMB=1 ;;
37020 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
37033 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
37052 if test $ac_cv_func_iswcntrl = yes; then
37067 if test $gt_cv_c_wint_t = yes; then
37075 if test $ac_cv_header_wctype_h = yes; then
37076 if test $ac_cv_func_iswcntrl = yes; then
37077 { echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
37078 echo $ECHO_N "checking whether iswcntrl works... $ECHO_C" >&6; }
37079 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
37080 echo $ECHO_N "(cached) $ECHO_C" >&6
37083 if test "$cross_compiling" = yes; then
37084 cat >conftest.$ac_ext <<_ACEOF
37087 cat confdefs.h >>conftest.$ac_ext
37088 cat >>conftest.$ac_ext <<_ACEOF
37089 /* end confdefs.h. */
37090 #include <stdlib.h>
37091 #if __GNU_LIBRARY__ == 1
37092 Linux libc5 i18n is broken.
37102 rm -f conftest.$ac_objext
37103 if { (ac_try="$ac_compile"
37104 case "(($ac_try" in
37105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37106 *) ac_try_echo=$ac_try;;
37108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37109 (eval "$ac_compile") 2>conftest.er1
37111 grep -v '^ *+' conftest.er1 >conftest.err
37113 cat conftest.err >&5
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); } && {
37116 test -z "$ac_c_werror_flag" ||
37117 test ! -s conftest.err
37118 } && test -s conftest.$ac_objext; then
37119 gl_cv_func_iswcntrl_works=yes
37121 echo "$as_me: failed program was:" >&5
37122 sed 's/^/| /' conftest.$ac_ext >&5
37124 gl_cv_func_iswcntrl_works=no
37127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37130 cat >conftest.$ac_ext <<_ACEOF
37133 cat confdefs.h >>conftest.$ac_ext
37134 cat >>conftest.$ac_ext <<_ACEOF
37135 /* end confdefs.h. */
37136 #include <stddef.h>
37140 #include <wctype.h>
37141 int main () { return iswprint ('x') == 0; }
37143 rm -f conftest$ac_exeext
37144 if { (ac_try="$ac_link"
37145 case "(($ac_try" in
37146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37147 *) ac_try_echo=$ac_try;;
37149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37150 (eval "$ac_link") 2>&5
37152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37154 { (case "(($ac_try" in
37155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37156 *) ac_try_echo=$ac_try;;
37158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37159 (eval "$ac_try") 2>&5
37161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162 (exit $ac_status); }; }; then
37163 gl_cv_func_iswcntrl_works=yes
37165 echo "$as_me: program exited with status $ac_status" >&5
37166 echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37169 ( exit $ac_status )
37170 gl_cv_func_iswcntrl_works=no
37172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37178 { echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
37179 echo "${ECHO_T}$gl_cv_func_iswcntrl_works" >&6; }
37180 if test $gl_cv_func_iswcntrl_works = yes; then
37195 if test $gl_cv_have_include_next = yes; then
37196 gl_cv_next_wctype_h='<'wctype.h'>'
37198 { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
37199 echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
37200 if test "${gl_cv_next_wctype_h+set}" = set; then
37201 echo $ECHO_N "(cached) $ECHO_C" >&6
37204 if test $ac_cv_header_wctype_h = yes; then
37205 cat >conftest.$ac_ext <<_ACEOF
37208 cat confdefs.h >>conftest.$ac_ext
37209 cat >>conftest.$ac_ext <<_ACEOF
37210 /* end confdefs.h. */
37211 #include <wctype.h>
37215 aix*) gl_absname_cpp="$ac_cpp -C" ;;
37216 *) gl_absname_cpp="$ac_cpp" ;;
37218 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37219 sed -n '\#/wctype.h#{
37220 s#.*"\(.*/wctype.h\)".*#\1#
37226 gl_cv_next_wctype_h='<'wctype.h'>'
37230 { echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
37231 echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
37233 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
37244 if test "$gl_cv_func_iswcntrl_works" = no; then
37272 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
37273 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
37274 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
37275 echo $ECHO_N "(cached) $ECHO_C" >&6
37277 cat >conftest.$ac_ext <<_ACEOF
37280 cat confdefs.h >>conftest.$ac_ext
37281 cat >>conftest.$ac_ext <<_ACEOF
37282 /* end confdefs.h. */
37284 /* AIX 3.2.5 declares wcwidth in <string.h>. */
37285 #include <string.h>
37286 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37288 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
37289 before <wchar.h>. */
37290 #include <stddef.h>
37307 rm -f conftest.$ac_objext
37308 if { (ac_try="$ac_compile"
37309 case "(($ac_try" in
37310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37311 *) ac_try_echo=$ac_try;;
37313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37314 (eval "$ac_compile") 2>conftest.er1
37316 grep -v '^ *+' conftest.er1 >conftest.err
37318 cat conftest.err >&5
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); } && {
37321 test -z "$ac_c_werror_flag" ||
37322 test ! -s conftest.err
37323 } && test -s conftest.$ac_objext; then
37324 ac_cv_have_decl_wcwidth=yes
37326 echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37329 ac_cv_have_decl_wcwidth=no
37332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37334 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
37335 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
37336 if test $ac_cv_have_decl_wcwidth = yes; then
37338 cat >>confdefs.h <<_ACEOF
37339 #define HAVE_DECL_WCWIDTH 1
37344 cat >>confdefs.h <<_ACEOF
37345 #define HAVE_DECL_WCWIDTH 0
37352 if test $ac_cv_have_decl_wcwidth != yes; then
37353 HAVE_DECL_WCWIDTH=0
37356 if test $ac_cv_func_wcwidth = no; then
37359 { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
37360 echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; }
37361 if test "${gl_cv_func_wcwidth_works+set}" = set; then
37362 echo $ECHO_N "(cached) $ECHO_C" >&6
37365 if test "$cross_compiling" = yes; then
37366 gl_cv_func_wcwidth_works="guessing no"
37368 cat >conftest.$ac_ext <<_ACEOF
37371 cat confdefs.h >>conftest.$ac_ext
37372 cat >>conftest.$ac_ext <<_ACEOF
37373 /* end confdefs.h. */
37375 #include <locale.h>
37376 /* AIX 3.2.5 declares wcwidth in <string.h>. */
37377 #include <string.h>
37378 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37380 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
37381 before <wchar.h>. */
37382 #include <stddef.h>
37386 #if !HAVE_DECL_WCWIDTH
37388 # ifdef __cplusplus
37395 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
37396 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
37401 rm -f conftest$ac_exeext
37402 if { (ac_try="$ac_link"
37403 case "(($ac_try" in
37404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405 *) ac_try_echo=$ac_try;;
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408 (eval "$ac_link") 2>&5
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37412 { (case "(($ac_try" in
37413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37414 *) ac_try_echo=$ac_try;;
37416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37417 (eval "$ac_try") 2>&5
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); }; }; then
37421 gl_cv_func_wcwidth_works=yes
37423 echo "$as_me: program exited with status $ac_status" >&5
37424 echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37427 ( exit $ac_status )
37428 gl_cv_func_wcwidth_works=no
37430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37436 { echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
37437 echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; }
37438 case "$gl_cv_func_wcwidth_works" in
37440 *no) REPLACE_WCWIDTH=1 ;;
37443 if test $REPLACE_WCWIDTH = 1; then
37452 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
37456 if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
37484 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
37504 gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
37513 for ac_header in stdint.h
37515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37520 echo $ECHO_N "(cached) $ECHO_C" >&6
37522 ac_res=`eval echo '${'$as_ac_Header'}'`
37523 { echo "$as_me:$LINENO: result: $ac_res" >&5
37524 echo "${ECHO_T}$ac_res" >&6; }
37526 # Is the header compilable?
37527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37529 cat >conftest.$ac_ext <<_ACEOF
37532 cat confdefs.h >>conftest.$ac_ext
37533 cat >>conftest.$ac_ext <<_ACEOF
37534 /* end confdefs.h. */
37535 $ac_includes_default
37536 #include <$ac_header>
37538 rm -f conftest.$ac_objext
37539 if { (ac_try="$ac_compile"
37540 case "(($ac_try" in
37541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37542 *) ac_try_echo=$ac_try;;
37544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37545 (eval "$ac_compile") 2>conftest.er1
37547 grep -v '^ *+' conftest.er1 >conftest.err
37549 cat conftest.err >&5
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); } && {
37552 test -z "$ac_c_werror_flag" ||
37553 test ! -s conftest.err
37554 } && test -s conftest.$ac_objext; then
37555 ac_header_compiler=yes
37557 echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37560 ac_header_compiler=no
37563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37565 echo "${ECHO_T}$ac_header_compiler" >&6; }
37567 # Is the header present?
37568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37570 cat >conftest.$ac_ext <<_ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h. */
37576 #include <$ac_header>
37578 if { (ac_try="$ac_cpp conftest.$ac_ext"
37579 case "(($ac_try" in
37580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581 *) ac_try_echo=$ac_try;;
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37586 grep -v '^ *+' conftest.er1 >conftest.err
37588 cat conftest.err >&5
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); } >/dev/null && {
37591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37592 test ! -s conftest.err
37594 ac_header_preproc=yes
37596 echo "$as_me: failed program was:" >&5
37597 sed 's/^/| /' conftest.$ac_ext >&5
37599 ac_header_preproc=no
37602 rm -f conftest.err conftest.$ac_ext
37603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37604 echo "${ECHO_T}$ac_header_preproc" >&6; }
37606 # So? What about this header?
37607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37613 ac_header_preproc=yes
37616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37629 ## ------------------------------ ##
37630 ## Report this to bug-tar@gnu.org ##
37631 ## ------------------------------ ##
37633 ) | sed "s/^/$as_me: WARNING: /" >&2
37636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37639 echo $ECHO_N "(cached) $ECHO_C" >&6
37641 eval "$as_ac_Header=\$ac_header_preproc"
37643 ac_res=`eval echo '${'$as_ac_Header'}'`
37644 { echo "$as_me:$LINENO: result: $ac_res" >&5
37645 echo "${ECHO_T}$ac_res" >&6; }
37648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37649 cat >>confdefs.h <<_ACEOF
37650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37672 gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
37682 gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
37692 gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
37715 gl_source_base='.#bootmp/tests'
37723 LIBTAR_LIBDEPS="$gl_libdeps"
37725 LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
37737 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37738 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
37739 if test "${ac_cv_header_time+set}" = set; then
37740 echo $ECHO_N "(cached) $ECHO_C" >&6
37742 cat >conftest.$ac_ext <<_ACEOF
37745 cat confdefs.h >>conftest.$ac_ext
37746 cat >>conftest.$ac_ext <<_ACEOF
37747 /* end confdefs.h. */
37748 #include <sys/types.h>
37749 #include <sys/time.h>
37755 if ((struct tm *) 0)
37761 rm -f conftest.$ac_objext
37762 if { (ac_try="$ac_compile"
37763 case "(($ac_try" in
37764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37765 *) ac_try_echo=$ac_try;;
37767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37768 (eval "$ac_compile") 2>conftest.er1
37770 grep -v '^ *+' conftest.er1 >conftest.err
37772 cat conftest.err >&5
37773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774 (exit $ac_status); } && {
37775 test -z "$ac_c_werror_flag" ||
37776 test ! -s conftest.err
37777 } && test -s conftest.$ac_objext; then
37778 ac_cv_header_time=yes
37780 echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37783 ac_cv_header_time=no
37786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37788 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37789 echo "${ECHO_T}$ac_cv_header_time" >&6; }
37790 if test $ac_cv_header_time = yes; then
37792 cat >>confdefs.h <<\_ACEOF
37793 #define TIME_WITH_SYS_TIME 1
37798 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37799 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
37800 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37801 echo $ECHO_N "(cached) $ECHO_C" >&6
37803 cat >conftest.$ac_ext <<_ACEOF
37806 cat confdefs.h >>conftest.$ac_ext
37807 cat >>conftest.$ac_ext <<_ACEOF
37808 /* end confdefs.h. */
37809 $ac_includes_default
37813 static struct stat ac_aggr;
37814 if (ac_aggr.st_blksize)
37820 rm -f conftest.$ac_objext
37821 if { (ac_try="$ac_compile"
37822 case "(($ac_try" in
37823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37824 *) ac_try_echo=$ac_try;;
37826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37827 (eval "$ac_compile") 2>conftest.er1
37829 grep -v '^ *+' conftest.er1 >conftest.err
37831 cat conftest.err >&5
37832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833 (exit $ac_status); } && {
37834 test -z "$ac_c_werror_flag" ||
37835 test ! -s conftest.err
37836 } && test -s conftest.$ac_objext; then
37837 ac_cv_member_struct_stat_st_blksize=yes
37839 echo "$as_me: failed program was:" >&5
37840 sed 's/^/| /' conftest.$ac_ext >&5
37842 cat >conftest.$ac_ext <<_ACEOF
37845 cat confdefs.h >>conftest.$ac_ext
37846 cat >>conftest.$ac_ext <<_ACEOF
37847 /* end confdefs.h. */
37848 $ac_includes_default
37852 static struct stat ac_aggr;
37853 if (sizeof ac_aggr.st_blksize)
37859 rm -f conftest.$ac_objext
37860 if { (ac_try="$ac_compile"
37861 case "(($ac_try" in
37862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37863 *) ac_try_echo=$ac_try;;
37865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37866 (eval "$ac_compile") 2>conftest.er1
37868 grep -v '^ *+' conftest.er1 >conftest.err
37870 cat conftest.err >&5
37871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872 (exit $ac_status); } && {
37873 test -z "$ac_c_werror_flag" ||
37874 test ! -s conftest.err
37875 } && test -s conftest.$ac_objext; then
37876 ac_cv_member_struct_stat_st_blksize=yes
37878 echo "$as_me: failed program was:" >&5
37879 sed 's/^/| /' conftest.$ac_ext >&5
37881 ac_cv_member_struct_stat_st_blksize=no
37884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37890 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
37891 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37893 cat >>confdefs.h <<_ACEOF
37894 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37898 cat >>confdefs.h <<\_ACEOF
37899 #define HAVE_ST_BLKSIZE 1
37911 # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
37914 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
37915 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
37916 if test "${ac_cv_search_setsockopt+set}" = set; then
37917 echo $ECHO_N "(cached) $ECHO_C" >&6
37919 ac_func_search_save_LIBS=$LIBS
37920 cat >conftest.$ac_ext <<_ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h. */
37927 /* Override any GCC internal prototype to avoid an error.
37928 Use char because int might match the return type of a GCC
37929 builtin and then its argument prototype would still apply. */
37933 char setsockopt ();
37937 return setsockopt ();
37942 for ac_lib in '' socket; do
37943 if test -z "$ac_lib"; then
37944 ac_res="none required"
37947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37949 rm -f conftest.$ac_objext conftest$ac_exeext
37950 if { (ac_try="$ac_link"
37951 case "(($ac_try" in
37952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37953 *) ac_try_echo=$ac_try;;
37955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37956 (eval "$ac_link") 2>conftest.er1
37958 grep -v '^ *+' conftest.er1 >conftest.err
37960 cat conftest.err >&5
37961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); } && {
37963 test -z "$ac_c_werror_flag" ||
37964 test ! -s conftest.err
37965 } && test -s conftest$ac_exeext &&
37966 $as_test_x conftest$ac_exeext; then
37967 ac_cv_search_setsockopt=$ac_res
37969 echo "$as_me: failed program was:" >&5
37970 sed 's/^/| /' conftest.$ac_ext >&5
37975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37977 if test "${ac_cv_search_setsockopt+set}" = set; then
37981 if test "${ac_cv_search_setsockopt+set}" = set; then
37984 ac_cv_search_setsockopt=no
37986 rm conftest.$ac_ext
37987 LIBS=$ac_func_search_save_LIBS
37989 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
37990 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
37991 ac_res=$ac_cv_search_setsockopt
37992 if test "$ac_res" != no; then
37993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37996 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
37997 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
37998 if test "${ac_cv_search_setsockopt+set}" = set; then
37999 echo $ECHO_N "(cached) $ECHO_C" >&6
38001 ac_func_search_save_LIBS=$LIBS
38002 cat >conftest.$ac_ext <<_ACEOF
38005 cat confdefs.h >>conftest.$ac_ext
38006 cat >>conftest.$ac_ext <<_ACEOF
38007 /* end confdefs.h. */
38009 /* Override any GCC internal prototype to avoid an error.
38010 Use char because int might match the return type of a GCC
38011 builtin and then its argument prototype would still apply. */
38015 char setsockopt ();
38019 return setsockopt ();
38024 for ac_lib in '' socket; do
38025 if test -z "$ac_lib"; then
38026 ac_res="none required"
38029 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
38031 rm -f conftest.$ac_objext conftest$ac_exeext
38032 if { (ac_try="$ac_link"
38033 case "(($ac_try" in
38034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38035 *) ac_try_echo=$ac_try;;
38037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38038 (eval "$ac_link") 2>conftest.er1
38040 grep -v '^ *+' conftest.er1 >conftest.err
38042 cat conftest.err >&5
38043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044 (exit $ac_status); } && {
38045 test -z "$ac_c_werror_flag" ||
38046 test ! -s conftest.err
38047 } && test -s conftest$ac_exeext &&
38048 $as_test_x conftest$ac_exeext; then
38049 ac_cv_search_setsockopt=$ac_res
38051 echo "$as_me: failed program was:" >&5
38052 sed 's/^/| /' conftest.$ac_ext >&5
38057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38059 if test "${ac_cv_search_setsockopt+set}" = set; then
38063 if test "${ac_cv_search_setsockopt+set}" = set; then
38066 ac_cv_search_setsockopt=no
38068 rm conftest.$ac_ext
38069 LIBS=$ac_func_search_save_LIBS
38071 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
38072 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
38073 ac_res=$ac_cv_search_setsockopt
38074 if test "$ac_res" != no; then
38075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38081 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
38082 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
38083 if test "${ac_cv_search_setsockopt+set}" = set; then
38084 echo $ECHO_N "(cached) $ECHO_C" >&6
38086 ac_func_search_save_LIBS=$LIBS
38087 cat >conftest.$ac_ext <<_ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h. */
38094 /* Override any GCC internal prototype to avoid an error.
38095 Use char because int might match the return type of a GCC
38096 builtin and then its argument prototype would still apply. */
38100 char setsockopt ();
38104 return setsockopt ();
38109 for ac_lib in '' nsl; do
38110 if test -z "$ac_lib"; then
38111 ac_res="none required"
38114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
38116 rm -f conftest.$ac_objext conftest$ac_exeext
38117 if { (ac_try="$ac_link"
38118 case "(($ac_try" in
38119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38120 *) ac_try_echo=$ac_try;;
38122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38123 (eval "$ac_link") 2>conftest.er1
38125 grep -v '^ *+' conftest.er1 >conftest.err
38127 cat conftest.err >&5
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); } && {
38130 test -z "$ac_c_werror_flag" ||
38131 test ! -s conftest.err
38132 } && test -s conftest$ac_exeext &&
38133 $as_test_x conftest$ac_exeext; then
38134 ac_cv_search_setsockopt=$ac_res
38136 echo "$as_me: failed program was:" >&5
38137 sed 's/^/| /' conftest.$ac_ext >&5
38142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38144 if test "${ac_cv_search_setsockopt+set}" = set; then
38148 if test "${ac_cv_search_setsockopt+set}" = set; then
38151 ac_cv_search_setsockopt=no
38153 rm conftest.$ac_ext
38154 LIBS=$ac_func_search_save_LIBS
38156 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
38157 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
38158 ac_res=$ac_cv_search_setsockopt
38159 if test "$ac_res" != no; then
38160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38165 case "$ac_cv_search_setsockopt" in
38166 -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
38172 if test $ac_cv_header_sys_mtio_h = yes; then
38173 { echo "$as_me:$LINENO: checking for remote tape header files" >&5
38174 echo $ECHO_N "checking for remote tape header files... $ECHO_C" >&6; }
38175 if test "${pu_cv_header_rmt+set}" = set; then
38176 echo $ECHO_N "(cached) $ECHO_C" >&6
38178 cat >conftest.$ac_ext <<_ACEOF
38181 cat confdefs.h >>conftest.$ac_ext
38182 cat >>conftest.$ac_ext <<_ACEOF
38183 /* end confdefs.h. */
38186 # include <sgtty.h>
38188 #include <sys/socket.h>
38190 if { (ac_try="$ac_cpp conftest.$ac_ext"
38191 case "(($ac_try" in
38192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38193 *) ac_try_echo=$ac_try;;
38195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38198 grep -v '^ *+' conftest.er1 >conftest.err
38200 cat conftest.err >&5
38201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38202 (exit $ac_status); } >/dev/null && {
38203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38204 test ! -s conftest.err
38206 pu_cv_header_rmt=yes
38208 echo "$as_me: failed program was:" >&5
38209 sed 's/^/| /' conftest.$ac_ext >&5
38211 pu_cv_header_rmt=no
38214 rm -f conftest.err conftest.$ac_ext
38216 { echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
38217 echo "${ECHO_T}$pu_cv_header_rmt" >&6; }
38218 test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
38224 for ac_header in sys/mtio.h
38226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38231 echo $ECHO_N "(cached) $ECHO_C" >&6
38233 ac_res=`eval echo '${'$as_ac_Header'}'`
38234 { echo "$as_me:$LINENO: result: $ac_res" >&5
38235 echo "${ECHO_T}$ac_res" >&6; }
38237 # Is the header compilable?
38238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38240 cat >conftest.$ac_ext <<_ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h. */
38246 $ac_includes_default
38247 #include <$ac_header>
38249 rm -f conftest.$ac_objext
38250 if { (ac_try="$ac_compile"
38251 case "(($ac_try" in
38252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38253 *) ac_try_echo=$ac_try;;
38255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38256 (eval "$ac_compile") 2>conftest.er1
38258 grep -v '^ *+' conftest.er1 >conftest.err
38260 cat conftest.err >&5
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); } && {
38263 test -z "$ac_c_werror_flag" ||
38264 test ! -s conftest.err
38265 } && test -s conftest.$ac_objext; then
38266 ac_header_compiler=yes
38268 echo "$as_me: failed program was:" >&5
38269 sed 's/^/| /' conftest.$ac_ext >&5
38271 ac_header_compiler=no
38274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38276 echo "${ECHO_T}$ac_header_compiler" >&6; }
38278 # Is the header present?
38279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38281 cat >conftest.$ac_ext <<_ACEOF
38284 cat confdefs.h >>conftest.$ac_ext
38285 cat >>conftest.$ac_ext <<_ACEOF
38286 /* end confdefs.h. */
38287 #include <$ac_header>
38289 if { (ac_try="$ac_cpp conftest.$ac_ext"
38290 case "(($ac_try" in
38291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38292 *) ac_try_echo=$ac_try;;
38294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38297 grep -v '^ *+' conftest.er1 >conftest.err
38299 cat conftest.err >&5
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); } >/dev/null && {
38302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38303 test ! -s conftest.err
38305 ac_header_preproc=yes
38307 echo "$as_me: failed program was:" >&5
38308 sed 's/^/| /' conftest.$ac_ext >&5
38310 ac_header_preproc=no
38313 rm -f conftest.err conftest.$ac_ext
38314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38315 echo "${ECHO_T}$ac_header_preproc" >&6; }
38317 # So? What about this header?
38318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38324 ac_header_preproc=yes
38327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38340 ## ------------------------------ ##
38341 ## Report this to bug-tar@gnu.org ##
38342 ## ------------------------------ ##
38344 ) | sed "s/^/$as_me: WARNING: /" >&2
38347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38350 echo $ECHO_N "(cached) $ECHO_C" >&6
38352 eval "$as_ac_Header=\$ac_header_preproc"
38354 ac_res=`eval echo '${'$as_ac_Header'}'`
38355 { echo "$as_me:$LINENO: result: $ac_res" >&5
38356 echo "${ECHO_T}$ac_res" >&6; }
38359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38360 cat >>confdefs.h <<_ACEOF
38361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38368 { echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
38369 echo $ECHO_N "checking which ioctl field to test for reversed bytes... $ECHO_C" >&6; }
38370 if test "${pu_cv_header_mtio_check_field+set}" = set; then
38371 echo $ECHO_N "(cached) $ECHO_C" >&6
38373 cat >conftest.$ac_ext <<_ACEOF
38376 cat confdefs.h >>conftest.$ac_ext
38377 cat >>conftest.$ac_ext <<_ACEOF
38378 /* end confdefs.h. */
38379 #include <sys/mtio.h>
38382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38383 $EGREP "mt_model" >/dev/null 2>&1; then
38384 pu_cv_header_mtio_check_field=mt_model
38386 pu_cv_header_mtio_check_field=mt_type
38391 { echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
38392 echo "${ECHO_T}$pu_cv_header_mtio_check_field" >&6; }
38394 cat >>confdefs.h <<_ACEOF
38395 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
38401 if test "x$DEFAULT_RMT_DIR" != x; then
38402 DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
38404 DEFAULT_RMT_DIR='$(libexecdir)'
38407 { echo "$as_me:$LINENO: checking whether to build rmt" >&5
38408 echo $ECHO_N "checking whether to build rmt... $ECHO_C" >&6; }
38410 # Check whether --with-rmt was given.
38411 if test "${with_rmt+set}" = set; then
38412 withval=$with_rmt; case $withval in
38413 yes|no) { { echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
38414 echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
38415 { (exit 1); exit 1; }; };;
38416 /*) DEFAULT_RMT_COMMAND=$withval
38417 { echo "$as_me:$LINENO: result: no, use $withval instead" >&5
38418 echo "${ECHO_T}no, use $withval instead" >&6; };;
38419 *) { { echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
38420 echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
38421 { (exit 1); exit 1; }; };;
38424 { echo "$as_me:$LINENO: result: yes" >&5
38425 echo "${ECHO_T}yes" >&6; }
38427 if test "$PU_RMT_PROG" = ""; then
38428 { echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
38429 echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
38435 if test "x$DEFAULT_RMT_COMMAND" != x; then
38437 cat >>confdefs.h <<_ACEOF
38438 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
38494 for ac_header in sys/buf.h
38496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38500 echo $ECHO_N "(cached) $ECHO_C" >&6
38502 cat >conftest.$ac_ext <<_ACEOF
38505 cat confdefs.h >>conftest.$ac_ext
38506 cat >>conftest.$ac_ext <<_ACEOF
38507 /* end confdefs.h. */
38508 #if HAVE_SYS_PARAM_H
38509 #include <sys/param.h>
38512 #include <$ac_header>
38514 rm -f conftest.$ac_objext
38515 if { (ac_try="$ac_compile"
38516 case "(($ac_try" in
38517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38518 *) ac_try_echo=$ac_try;;
38520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38521 (eval "$ac_compile") 2>conftest.er1
38523 grep -v '^ *+' conftest.er1 >conftest.err
38525 cat conftest.err >&5
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); } && {
38528 test -z "$ac_c_werror_flag" ||
38529 test ! -s conftest.err
38530 } && test -s conftest.$ac_objext; then
38531 eval "$as_ac_Header=yes"
38533 echo "$as_me: failed program was:" >&5
38534 sed 's/^/| /' conftest.$ac_ext >&5
38536 eval "$as_ac_Header=no"
38539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38541 ac_res=`eval echo '${'$as_ac_Header'}'`
38542 { echo "$as_me:$LINENO: result: $ac_res" >&5
38543 echo "${ECHO_T}$ac_res" >&6; }
38544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38545 cat >>confdefs.h <<_ACEOF
38546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38556 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
38557 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
38558 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
38559 echo $ECHO_N "(cached) $ECHO_C" >&6
38561 cat >conftest.$ac_ext <<_ACEOF
38564 cat confdefs.h >>conftest.$ac_ext
38565 cat >>conftest.$ac_ext <<_ACEOF
38566 /* end confdefs.h. */
38567 $ac_includes_default
38571 static struct stat ac_aggr;
38572 if (ac_aggr.st_blksize)
38578 rm -f conftest.$ac_objext
38579 if { (ac_try="$ac_compile"
38580 case "(($ac_try" in
38581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38582 *) ac_try_echo=$ac_try;;
38584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38585 (eval "$ac_compile") 2>conftest.er1
38587 grep -v '^ *+' conftest.er1 >conftest.err
38589 cat conftest.err >&5
38590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591 (exit $ac_status); } && {
38592 test -z "$ac_c_werror_flag" ||
38593 test ! -s conftest.err
38594 } && test -s conftest.$ac_objext; then
38595 ac_cv_member_struct_stat_st_blksize=yes
38597 echo "$as_me: failed program was:" >&5
38598 sed 's/^/| /' conftest.$ac_ext >&5
38600 cat >conftest.$ac_ext <<_ACEOF
38603 cat confdefs.h >>conftest.$ac_ext
38604 cat >>conftest.$ac_ext <<_ACEOF
38605 /* end confdefs.h. */
38606 $ac_includes_default
38610 static struct stat ac_aggr;
38611 if (sizeof ac_aggr.st_blksize)
38617 rm -f conftest.$ac_objext
38618 if { (ac_try="$ac_compile"
38619 case "(($ac_try" in
38620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621 *) ac_try_echo=$ac_try;;
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624 (eval "$ac_compile") 2>conftest.er1
38626 grep -v '^ *+' conftest.er1 >conftest.err
38628 cat conftest.err >&5
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); } && {
38631 test -z "$ac_c_werror_flag" ||
38632 test ! -s conftest.err
38633 } && test -s conftest.$ac_objext; then
38634 ac_cv_member_struct_stat_st_blksize=yes
38636 echo "$as_me: failed program was:" >&5
38637 sed 's/^/| /' conftest.$ac_ext >&5
38639 ac_cv_member_struct_stat_st_blksize=no
38642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38647 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
38648 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
38649 if test $ac_cv_member_struct_stat_st_blksize = yes; then
38651 cat >>confdefs.h <<_ACEOF
38652 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
38683 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
38685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38689 echo $ECHO_N "(cached) $ECHO_C" >&6
38691 cat >conftest.$ac_ext <<_ACEOF
38694 cat confdefs.h >>conftest.$ac_ext
38695 cat >>conftest.$ac_ext <<_ACEOF
38696 /* end confdefs.h. */
38697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38699 #define $ac_func innocuous_$ac_func
38701 /* System header to define __stub macros and hopefully few prototypes,
38702 which can conflict with char $ac_func (); below.
38703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38704 <limits.h> exists even on freestanding compilers. */
38707 # include <limits.h>
38709 # include <assert.h>
38714 /* Override any GCC internal prototype to avoid an error.
38715 Use char because int might match the return type of a GCC
38716 builtin and then its argument prototype would still apply. */
38721 /* The GNU C library defines this for functions which it implements
38722 to always fail with ENOSYS. Some functions are actually named
38723 something starting with __ and the normal name is an alias. */
38724 #if defined __stub_$ac_func || defined __stub___$ac_func
38731 return $ac_func ();
38736 rm -f conftest.$ac_objext conftest$ac_exeext
38737 if { (ac_try="$ac_link"
38738 case "(($ac_try" in
38739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38740 *) ac_try_echo=$ac_try;;
38742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38743 (eval "$ac_link") 2>conftest.er1
38745 grep -v '^ *+' conftest.er1 >conftest.err
38747 cat conftest.err >&5
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); } && {
38750 test -z "$ac_c_werror_flag" ||
38751 test ! -s conftest.err
38752 } && test -s conftest$ac_exeext &&
38753 $as_test_x conftest$ac_exeext; then
38754 eval "$as_ac_var=yes"
38756 echo "$as_me: failed program was:" >&5
38757 sed 's/^/| /' conftest.$ac_ext >&5
38759 eval "$as_ac_var=no"
38762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38763 conftest$ac_exeext conftest.$ac_ext
38765 ac_res=`eval echo '${'$as_ac_var'}'`
38766 { echo "$as_me:$LINENO: result: $ac_res" >&5
38767 echo "${ECHO_T}$ac_res" >&6; }
38768 if test `eval echo '${'$as_ac_var'}'` = yes; then
38769 cat >>confdefs.h <<_ACEOF
38770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38776 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
38777 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
38778 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
38779 echo $ECHO_N "(cached) $ECHO_C" >&6
38781 cat >conftest.$ac_ext <<_ACEOF
38784 cat confdefs.h >>conftest.$ac_ext
38785 cat >>conftest.$ac_ext <<_ACEOF
38786 /* end confdefs.h. */
38800 rm -f conftest.$ac_objext
38801 if { (ac_try="$ac_compile"
38802 case "(($ac_try" in
38803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38804 *) ac_try_echo=$ac_try;;
38806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38807 (eval "$ac_compile") 2>conftest.er1
38809 grep -v '^ *+' conftest.er1 >conftest.err
38811 cat conftest.err >&5
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); } && {
38814 test -z "$ac_c_werror_flag" ||
38815 test ! -s conftest.err
38816 } && test -s conftest.$ac_objext; then
38817 ac_cv_have_decl_getgrgid=yes
38819 echo "$as_me: failed program was:" >&5
38820 sed 's/^/| /' conftest.$ac_ext >&5
38822 ac_cv_have_decl_getgrgid=no
38825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38827 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
38828 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
38829 if test $ac_cv_have_decl_getgrgid = yes; then
38831 cat >>confdefs.h <<_ACEOF
38832 #define HAVE_DECL_GETGRGID 1
38837 cat >>confdefs.h <<_ACEOF
38838 #define HAVE_DECL_GETGRGID 0
38845 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
38846 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
38847 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
38848 echo $ECHO_N "(cached) $ECHO_C" >&6
38850 cat >conftest.$ac_ext <<_ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h. */
38869 rm -f conftest.$ac_objext
38870 if { (ac_try="$ac_compile"
38871 case "(($ac_try" in
38872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38873 *) ac_try_echo=$ac_try;;
38875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38876 (eval "$ac_compile") 2>conftest.er1
38878 grep -v '^ *+' conftest.er1 >conftest.err
38880 cat conftest.err >&5
38881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); } && {
38883 test -z "$ac_c_werror_flag" ||
38884 test ! -s conftest.err
38885 } && test -s conftest.$ac_objext; then
38886 ac_cv_have_decl_getpwuid=yes
38888 echo "$as_me: failed program was:" >&5
38889 sed 's/^/| /' conftest.$ac_ext >&5
38891 ac_cv_have_decl_getpwuid=no
38894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38896 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
38897 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
38898 if test $ac_cv_have_decl_getpwuid = yes; then
38900 cat >>confdefs.h <<_ACEOF
38901 #define HAVE_DECL_GETPWUID 1
38906 cat >>confdefs.h <<_ACEOF
38907 #define HAVE_DECL_GETPWUID 0
38914 { echo "$as_me:$LINENO: checking whether time is declared" >&5
38915 echo $ECHO_N "checking whether time is declared... $ECHO_C" >&6; }
38916 if test "${ac_cv_have_decl_time+set}" = set; then
38917 echo $ECHO_N "(cached) $ECHO_C" >&6
38919 cat >conftest.$ac_ext <<_ACEOF
38922 cat confdefs.h >>conftest.$ac_ext
38923 cat >>conftest.$ac_ext <<_ACEOF
38924 /* end confdefs.h. */
38938 rm -f conftest.$ac_objext
38939 if { (ac_try="$ac_compile"
38940 case "(($ac_try" in
38941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38942 *) ac_try_echo=$ac_try;;
38944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38945 (eval "$ac_compile") 2>conftest.er1
38947 grep -v '^ *+' conftest.er1 >conftest.err
38949 cat conftest.err >&5
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); } && {
38952 test -z "$ac_c_werror_flag" ||
38953 test ! -s conftest.err
38954 } && test -s conftest.$ac_objext; then
38955 ac_cv_have_decl_time=yes
38957 echo "$as_me: failed program was:" >&5
38958 sed 's/^/| /' conftest.$ac_ext >&5
38960 ac_cv_have_decl_time=no
38963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
38966 echo "${ECHO_T}$ac_cv_have_decl_time" >&6; }
38967 if test $ac_cv_have_decl_time = yes; then
38969 cat >>confdefs.h <<_ACEOF
38970 #define HAVE_DECL_TIME 1
38975 cat >>confdefs.h <<_ACEOF
38976 #define HAVE_DECL_TIME 0
38985 for ac_func in waitpid
38987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38991 echo $ECHO_N "(cached) $ECHO_C" >&6
38993 cat >conftest.$ac_ext <<_ACEOF
38996 cat confdefs.h >>conftest.$ac_ext
38997 cat >>conftest.$ac_ext <<_ACEOF
38998 /* end confdefs.h. */
38999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39001 #define $ac_func innocuous_$ac_func
39003 /* System header to define __stub macros and hopefully few prototypes,
39004 which can conflict with char $ac_func (); below.
39005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39006 <limits.h> exists even on freestanding compilers. */
39009 # include <limits.h>
39011 # include <assert.h>
39016 /* Override any GCC internal prototype to avoid an error.
39017 Use char because int might match the return type of a GCC
39018 builtin and then its argument prototype would still apply. */
39023 /* The GNU C library defines this for functions which it implements
39024 to always fail with ENOSYS. Some functions are actually named
39025 something starting with __ and the normal name is an alias. */
39026 #if defined __stub_$ac_func || defined __stub___$ac_func
39033 return $ac_func ();
39038 rm -f conftest.$ac_objext conftest$ac_exeext
39039 if { (ac_try="$ac_link"
39040 case "(($ac_try" in
39041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39042 *) ac_try_echo=$ac_try;;
39044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39045 (eval "$ac_link") 2>conftest.er1
39047 grep -v '^ *+' conftest.er1 >conftest.err
39049 cat conftest.err >&5
39050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051 (exit $ac_status); } && {
39052 test -z "$ac_c_werror_flag" ||
39053 test ! -s conftest.err
39054 } && test -s conftest$ac_exeext &&
39055 $as_test_x conftest$ac_exeext; then
39056 eval "$as_ac_var=yes"
39058 echo "$as_me: failed program was:" >&5
39059 sed 's/^/| /' conftest.$ac_ext >&5
39061 eval "$as_ac_var=no"
39064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39065 conftest$ac_exeext conftest.$ac_ext
39067 ac_res=`eval echo '${'$as_ac_var'}'`
39068 { echo "$as_me:$LINENO: result: $ac_res" >&5
39069 echo "${ECHO_T}$ac_res" >&6; }
39070 if test `eval echo '${'$as_ac_var'}'` = yes; then
39071 cat >>confdefs.h <<_ACEOF
39072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39076 case " $LIBOBJS " in
39077 *" $ac_func.$ac_objext "* ) ;;
39078 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
39087 { echo "$as_me:$LINENO: checking for remote shell" >&5
39088 echo $ECHO_N "checking for remote shell... $ECHO_C" >&6; }
39089 if test "${tar_cv_path_RSH+set}" = set; then
39090 echo $ECHO_N "(cached) $ECHO_C" >&6
39092 if test -n "$RSH"; then
39093 tar_cv_path_RSH=$RSH
39096 for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
39097 /usr/bin/nsh /usr/bin/rcmd
39099 # Prefer a non-symlink rsh to a symlink one, so that binaries built
39100 # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
39101 # will run on AIX 4.3.0, which has only /usr/bin/rsh.
39102 if test -f $ac_file; then
39103 if (test -h $ac_file) 2>/dev/null; then
39104 test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
39106 tar_cv_path_RSH=$ac_file
39113 { echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
39114 echo "${ECHO_T}$tar_cv_path_RSH" >&6; }
39115 if test $tar_cv_path_RSH = no; then
39117 for ac_header in netdb.h
39119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39124 echo $ECHO_N "(cached) $ECHO_C" >&6
39126 ac_res=`eval echo '${'$as_ac_Header'}'`
39127 { echo "$as_me:$LINENO: result: $ac_res" >&5
39128 echo "${ECHO_T}$ac_res" >&6; }
39130 # Is the header compilable?
39131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39133 cat >conftest.$ac_ext <<_ACEOF
39136 cat confdefs.h >>conftest.$ac_ext
39137 cat >>conftest.$ac_ext <<_ACEOF
39138 /* end confdefs.h. */
39139 $ac_includes_default
39140 #include <$ac_header>
39142 rm -f conftest.$ac_objext
39143 if { (ac_try="$ac_compile"
39144 case "(($ac_try" in
39145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39146 *) ac_try_echo=$ac_try;;
39148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39149 (eval "$ac_compile") 2>conftest.er1
39151 grep -v '^ *+' conftest.er1 >conftest.err
39153 cat conftest.err >&5
39154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39155 (exit $ac_status); } && {
39156 test -z "$ac_c_werror_flag" ||
39157 test ! -s conftest.err
39158 } && test -s conftest.$ac_objext; then
39159 ac_header_compiler=yes
39161 echo "$as_me: failed program was:" >&5
39162 sed 's/^/| /' conftest.$ac_ext >&5
39164 ac_header_compiler=no
39167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39169 echo "${ECHO_T}$ac_header_compiler" >&6; }
39171 # Is the header present?
39172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39174 cat >conftest.$ac_ext <<_ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h. */
39180 #include <$ac_header>
39182 if { (ac_try="$ac_cpp conftest.$ac_ext"
39183 case "(($ac_try" in
39184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39185 *) ac_try_echo=$ac_try;;
39187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39190 grep -v '^ *+' conftest.er1 >conftest.err
39192 cat conftest.err >&5
39193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39194 (exit $ac_status); } >/dev/null && {
39195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39196 test ! -s conftest.err
39198 ac_header_preproc=yes
39200 echo "$as_me: failed program was:" >&5
39201 sed 's/^/| /' conftest.$ac_ext >&5
39203 ac_header_preproc=no
39206 rm -f conftest.err conftest.$ac_ext
39207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39208 echo "${ECHO_T}$ac_header_preproc" >&6; }
39210 # So? What about this header?
39211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39217 ac_header_preproc=yes
39220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39233 ## ------------------------------ ##
39234 ## Report this to bug-tar@gnu.org ##
39235 ## ------------------------------ ##
39237 ) | sed "s/^/$as_me: WARNING: /" >&2
39240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39243 echo $ECHO_N "(cached) $ECHO_C" >&6
39245 eval "$as_ac_Header=\$ac_header_preproc"
39247 ac_res=`eval echo '${'$as_ac_Header'}'`
39248 { echo "$as_me:$LINENO: result: $ac_res" >&5
39249 echo "${ECHO_T}$ac_res" >&6; }
39252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39253 cat >>confdefs.h <<_ACEOF
39254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39263 cat >>confdefs.h <<_ACEOF
39264 #define REMOTE_SHELL "$tar_cv_path_RSH"
39269 { echo "$as_me:$LINENO: checking for default archive format" >&5
39270 echo $ECHO_N "checking for default archive format... $ECHO_C" >&6; }
39274 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
39275 DEFAULT_ARCHIVE_FORMAT="GNU"
39277 case $DEFAULT_ARCHIVE_FORMAT in
39278 V7|OLDGNU|USTAR|POSIX|GNU) ;;
39279 *) { { echo "$as_me:$LINENO: error: Invalid format name" >&5
39280 echo "$as_me: error: Invalid format name" >&2;}
39281 { (exit 1); exit 1; }; };;
39284 cat >>confdefs.h <<_ACEOF
39285 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
39288 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
39289 echo "${ECHO_T}$DEFAULT_ARCHIVE_FORMAT" >&6; }
39291 { echo "$as_me:$LINENO: checking for default archive" >&5
39292 echo $ECHO_N "checking for default archive... $ECHO_C" >&6; }
39295 if test -z "$DEFAULT_ARCHIVE"; then
39298 if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
39299 { echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
39300 echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
39302 # FIXME: Look for DEFTAPE in <sys/mtio.h>.
39303 # FIXME: Let DEVICE_PREFIX be configured from the environment.
39304 # FIXME: Rearrange, here.
39305 case $DEFAULT_ARCHIVE in
39308 cat >>confdefs.h <<\_ACEOF
39309 #define DENSITY_LETTER 1
39312 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
39315 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
39321 case "$device_prefix" in
39324 cat >>confdefs.h <<_ACEOF
39325 #define DEVICE_PREFIX "$device_prefix"
39332 cat >>confdefs.h <<_ACEOF
39333 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
39336 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
39337 echo "${ECHO_T}$DEFAULT_ARCHIVE" >&6; }
39340 { echo "$as_me:$LINENO: checking for default blocking" >&5
39341 echo $ECHO_N "checking for default blocking... $ECHO_C" >&6; }
39342 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
39344 cat >>confdefs.h <<_ACEOF
39345 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
39348 { echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
39349 echo "${ECHO_T}$DEFAULT_BLOCKING" >&6; }
39351 { echo "$as_me:$LINENO: checking for default quoting style" >&5
39352 echo $ECHO_N "checking for default quoting style... $ECHO_C" >&6; }
39355 DEFAULT_QUOTING_STYLE="escape"
39358 case $DEFAULT_QUOTING_STYLE in
39359 literal|shell|shell-always|c|escape|locale|clocale) ;;
39360 *) { { echo "$as_me:$LINENO: error: Invalid quoting style" >&5
39361 echo "$as_me: error: Invalid quoting style" >&2;}
39362 { (exit 1); exit 1; }; };;
39364 { echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
39365 echo "${ECHO_T}$DEFAULT_QUOTING_STYLE" >&6; }
39366 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
39368 cat >>confdefs.h <<_ACEOF
39369 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
39375 if test "X$prefix" = "XNONE"; then
39376 acl_final_prefix="$ac_default_prefix"
39378 acl_final_prefix="$prefix"
39380 if test "X$exec_prefix" = "XNONE"; then
39381 acl_final_exec_prefix='${prefix}'
39383 acl_final_exec_prefix="$exec_prefix"
39385 acl_save_prefix="$prefix"
39386 prefix="$acl_final_prefix"
39387 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
39388 prefix="$acl_save_prefix"
39391 # Check whether --with-gnu-ld was given.
39392 if test "${with_gnu_ld+set}" = set; then
39393 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
39398 # Prepare PATH_SEPARATOR.
39399 # The user is always right.
39400 if test "${PATH_SEPARATOR+set}" != set; then
39401 echo "#! /bin/sh" >conf$$.sh
39402 echo "exit 0" >>conf$$.sh
39404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39412 if test "$GCC" = yes; then
39413 # Check if gcc -print-prog-name=ld gives a path.
39414 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
39415 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
39418 # gcc leaves a trailing carriage return which upsets mingw
39419 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
39421 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
39424 # Accept absolute paths.
39425 [\\/]* | [A-Za-z]:[\\/]*)
39426 re_direlt='/[^/][^/]*/\.\./'
39427 # Canonicalize the path of ld
39428 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
39429 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
39430 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
39432 test -z "$LD" && LD="$ac_prog"
39435 # If it fails, then pretend we aren't using GCC.
39439 # If it is relative, then search for the first ld in PATH.
39440 with_gnu_ld=unknown
39443 elif test "$with_gnu_ld" = yes; then
39444 { echo "$as_me:$LINENO: checking for GNU ld" >&5
39445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
39447 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
39448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
39450 if test "${acl_cv_path_LD+set}" = set; then
39451 echo $ECHO_N "(cached) $ECHO_C" >&6
39453 if test -z "$LD"; then
39454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
39455 for ac_dir in $PATH; do
39456 test -z "$ac_dir" && ac_dir=.
39457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
39458 acl_cv_path_LD="$ac_dir/$ac_prog"
39459 # Check to see if the program is GNU ld. I'd rather use --version,
39460 # but apparently some GNU ld's only accept -v.
39461 # Break only if it was the GNU/non-GNU ld that we prefer.
39462 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
39463 *GNU* | *'with BFD'*)
39464 test "$with_gnu_ld" != no && break ;;
39466 test "$with_gnu_ld" != yes && break ;;
39472 acl_cv_path_LD="$LD" # Let the user override the test with a path.
39476 LD="$acl_cv_path_LD"
39477 if test -n "$LD"; then
39478 { echo "$as_me:$LINENO: result: $LD" >&5
39479 echo "${ECHO_T}$LD" >&6; }
39481 { echo "$as_me:$LINENO: result: no" >&5
39482 echo "${ECHO_T}no" >&6; }
39484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
39485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
39486 { (exit 1); exit 1; }; }
39487 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
39488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
39489 if test "${acl_cv_prog_gnu_ld+set}" = set; then
39490 echo $ECHO_N "(cached) $ECHO_C" >&6
39492 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
39493 case `$LD -v 2>&1 </dev/null` in
39494 *GNU* | *'with BFD'*)
39495 acl_cv_prog_gnu_ld=yes ;;
39497 acl_cv_prog_gnu_ld=no ;;
39500 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
39501 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
39502 with_gnu_ld=$acl_cv_prog_gnu_ld
39507 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
39508 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
39509 if test "${acl_cv_rpath+set}" = set; then
39510 echo $ECHO_N "(cached) $ECHO_C" >&6
39513 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
39514 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
39516 rm -f ./conftest.sh
39520 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
39521 echo "${ECHO_T}$acl_cv_rpath" >&6; }
39523 acl_libext="$acl_cv_libext"
39524 acl_shlibext="$acl_cv_shlibext"
39525 acl_libname_spec="$acl_cv_libname_spec"
39526 acl_library_names_spec="$acl_cv_library_names_spec"
39527 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
39528 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
39529 acl_hardcode_direct="$acl_cv_hardcode_direct"
39530 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
39531 # Check whether --enable-rpath was given.
39532 if test "${enable_rpath+set}" = set; then
39533 enableval=$enable_rpath; :
39545 { echo "$as_me:$LINENO: checking for 64-bit host" >&5
39546 echo $ECHO_N "checking for 64-bit host... $ECHO_C" >&6; }
39547 if test "${gl_cv_solaris_64bit+set}" = set; then
39548 echo $ECHO_N "(cached) $ECHO_C" >&6
39550 cat >conftest.$ac_ext <<_ACEOF
39553 cat confdefs.h >>conftest.$ac_ext
39554 cat >>conftest.$ac_ext <<_ACEOF
39555 /* end confdefs.h. */
39562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39563 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
39564 gl_cv_solaris_64bit=yes
39566 gl_cv_solaris_64bit=no
39572 { echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
39573 echo "${ECHO_T}$gl_cv_solaris_64bit" >&6; }
39574 if test $gl_cv_solaris_64bit = yes; then
39575 acl_libdirstem=lib/64
39576 case "$host_cpu" in
39577 sparc*) acl_libdirstem2=lib/sparcv9 ;;
39578 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
39583 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
39584 if test -n "$searchpath"; then
39585 acl_save_IFS="${IFS= }"; IFS=":"
39586 for searchdir in $searchpath; do
39587 if test -d "$searchdir"; then
39588 case "$searchdir" in
39589 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
39590 *) searchdir=`cd "$searchdir" && pwd`
39591 case "$searchdir" in
39592 */lib64 ) acl_libdirstem=lib64 ;;
39597 IFS="$acl_save_IFS"
39601 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
39616 acl_save_prefix="$prefix"
39617 prefix="$acl_final_prefix"
39618 acl_save_exec_prefix="$exec_prefix"
39619 exec_prefix="$acl_final_exec_prefix"
39621 eval additional_includedir=\"$includedir\"
39622 eval additional_libdir=\"$libdir\"
39624 exec_prefix="$acl_save_exec_prefix"
39625 prefix="$acl_save_prefix"
39628 # Check whether --with-libiconv-prefix was given.
39629 if test "${with_libiconv_prefix+set}" = set; then
39630 withval=$with_libiconv_prefix;
39631 if test "X$withval" = "Xno"; then
39634 if test "X$withval" = "X"; then
39636 acl_save_prefix="$prefix"
39637 prefix="$acl_final_prefix"
39638 acl_save_exec_prefix="$exec_prefix"
39639 exec_prefix="$acl_final_exec_prefix"
39641 eval additional_includedir=\"$includedir\"
39642 eval additional_libdir=\"$libdir\"
39644 exec_prefix="$acl_save_exec_prefix"
39645 prefix="$acl_save_prefix"
39648 additional_includedir="$withval/include"
39649 additional_libdir="$withval/$acl_libdirstem"
39650 if test "$acl_libdirstem2" != "$acl_libdirstem" \
39651 && ! test -d "$withval/$acl_libdirstem"; then
39652 additional_libdir="$withval/$acl_libdirstem2"
39665 names_already_handled=
39666 names_next_round='iconv '
39667 while test -n "$names_next_round"; do
39668 names_this_round="$names_next_round"
39670 for name in $names_this_round; do
39672 for n in $names_already_handled; do
39673 if test "$n" = "$name"; then
39674 already_handled=yes
39678 if test -z "$already_handled"; then
39679 names_already_handled="$names_already_handled $name"
39680 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39681 eval value=\"\$HAVE_LIB$uppername\"
39682 if test -n "$value"; then
39683 if test "$value" = yes; then
39684 eval value=\"\$LIB$uppername\"
39685 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
39686 eval value=\"\$LTLIB$uppername\"
39687 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
39696 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
39697 if test -n "$acl_shlibext"; then
39698 shrext=".$acl_shlibext" # typically: shrext=.so
39702 if test $use_additional = yes; then
39703 dir="$additional_libdir"
39704 if test -n "$acl_shlibext"; then
39705 if test -f "$dir/$libname$shrext"; then
39707 found_so="$dir/$libname$shrext"
39709 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39710 ver=`(cd "$dir" && \
39711 for f in "$libname$shrext".*; do echo "$f"; done \
39712 | sed -e "s,^$libname$shrext\\\\.,," \
39713 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39714 | sed 1q ) 2>/dev/null`
39715 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39717 found_so="$dir/$libname$shrext.$ver"
39720 eval library_names=\"$acl_library_names_spec\"
39721 for f in $library_names; do
39722 if test -f "$dir/$f"; then
39731 if test "X$found_dir" = "X"; then
39732 if test -f "$dir/$libname.$acl_libext"; then
39734 found_a="$dir/$libname.$acl_libext"
39737 if test "X$found_dir" != "X"; then
39738 if test -f "$dir/$libname.la"; then
39739 found_la="$dir/$libname.la"
39743 if test "X$found_dir" = "X"; then
39744 for x in $LDFLAGS $LTLIBICONV; do
39746 acl_save_prefix="$prefix"
39747 prefix="$acl_final_prefix"
39748 acl_save_exec_prefix="$exec_prefix"
39749 exec_prefix="$acl_final_exec_prefix"
39751 exec_prefix="$acl_save_exec_prefix"
39752 prefix="$acl_save_prefix"
39756 dir=`echo "X$x" | sed -e 's/^X-L//'`
39757 if test -n "$acl_shlibext"; then
39758 if test -f "$dir/$libname$shrext"; then
39760 found_so="$dir/$libname$shrext"
39762 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39763 ver=`(cd "$dir" && \
39764 for f in "$libname$shrext".*; do echo "$f"; done \
39765 | sed -e "s,^$libname$shrext\\\\.,," \
39766 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39767 | sed 1q ) 2>/dev/null`
39768 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39770 found_so="$dir/$libname$shrext.$ver"
39773 eval library_names=\"$acl_library_names_spec\"
39774 for f in $library_names; do
39775 if test -f "$dir/$f"; then
39784 if test "X$found_dir" = "X"; then
39785 if test -f "$dir/$libname.$acl_libext"; then
39787 found_a="$dir/$libname.$acl_libext"
39790 if test "X$found_dir" != "X"; then
39791 if test -f "$dir/$libname.la"; then
39792 found_la="$dir/$libname.la"
39797 if test "X$found_dir" != "X"; then
39802 if test "X$found_dir" != "X"; then
39803 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
39804 if test "X$found_so" != "X"; then
39805 if test "$enable_rpath" = no \
39806 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
39807 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
39808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39811 for x in $ltrpathdirs; do
39812 if test "X$x" = "X$found_dir"; then
39817 if test -z "$haveit"; then
39818 ltrpathdirs="$ltrpathdirs $found_dir"
39820 if test "$acl_hardcode_direct" = yes; then
39821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39823 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
39824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39826 for x in $rpathdirs; do
39827 if test "X$x" = "X$found_dir"; then
39832 if test -z "$haveit"; then
39833 rpathdirs="$rpathdirs $found_dir"
39837 for x in $LDFLAGS $LIBICONV; do
39839 acl_save_prefix="$prefix"
39840 prefix="$acl_final_prefix"
39841 acl_save_exec_prefix="$exec_prefix"
39842 exec_prefix="$acl_final_exec_prefix"
39844 exec_prefix="$acl_save_exec_prefix"
39845 prefix="$acl_save_prefix"
39847 if test "X$x" = "X-L$found_dir"; then
39852 if test -z "$haveit"; then
39853 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
39855 if test "$acl_hardcode_minus_L" != no; then
39856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39858 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39864 if test "X$found_a" != "X"; then
39865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
39867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
39870 additional_includedir=
39871 case "$found_dir" in
39872 */$acl_libdirstem | */$acl_libdirstem/)
39873 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39874 if test "$name" = 'iconv'; then
39875 LIBICONV_PREFIX="$basedir"
39877 additional_includedir="$basedir/include"
39879 */$acl_libdirstem2 | */$acl_libdirstem2/)
39880 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
39881 if test "$name" = 'iconv'; then
39882 LIBICONV_PREFIX="$basedir"
39884 additional_includedir="$basedir/include"
39887 if test "X$additional_includedir" != "X"; then
39888 if test "X$additional_includedir" != "X/usr/include"; then
39890 if test "X$additional_includedir" = "X/usr/local/include"; then
39891 if test -n "$GCC"; then
39893 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39897 if test -z "$haveit"; then
39898 for x in $CPPFLAGS $INCICONV; do
39900 acl_save_prefix="$prefix"
39901 prefix="$acl_final_prefix"
39902 acl_save_exec_prefix="$exec_prefix"
39903 exec_prefix="$acl_final_exec_prefix"
39905 exec_prefix="$acl_save_exec_prefix"
39906 prefix="$acl_save_prefix"
39908 if test "X$x" = "X-I$additional_includedir"; then
39913 if test -z "$haveit"; then
39914 if test -d "$additional_includedir"; then
39915 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
39921 if test -n "$found_la"; then
39922 save_libdir="$libdir"
39923 case "$found_la" in
39924 */* | *\\*) . "$found_la" ;;
39925 *) . "./$found_la" ;;
39927 libdir="$save_libdir"
39928 for dep in $dependency_libs; do
39931 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39932 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
39933 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
39935 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
39936 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
39937 if test -n "$GCC"; then
39939 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39943 if test -z "$haveit"; then
39945 for x in $LDFLAGS $LIBICONV; do
39947 acl_save_prefix="$prefix"
39948 prefix="$acl_final_prefix"
39949 acl_save_exec_prefix="$exec_prefix"
39950 exec_prefix="$acl_final_exec_prefix"
39952 exec_prefix="$acl_save_exec_prefix"
39953 prefix="$acl_save_prefix"
39955 if test "X$x" = "X-L$additional_libdir"; then
39960 if test -z "$haveit"; then
39961 if test -d "$additional_libdir"; then
39962 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
39966 for x in $LDFLAGS $LTLIBICONV; do
39968 acl_save_prefix="$prefix"
39969 prefix="$acl_final_prefix"
39970 acl_save_exec_prefix="$exec_prefix"
39971 exec_prefix="$acl_final_exec_prefix"
39973 exec_prefix="$acl_save_exec_prefix"
39974 prefix="$acl_save_prefix"
39976 if test "X$x" = "X-L$additional_libdir"; then
39981 if test -z "$haveit"; then
39982 if test -d "$additional_libdir"; then
39983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
39990 dir=`echo "X$dep" | sed -e 's/^X-R//'`
39991 if test "$enable_rpath" != no; then
39993 for x in $rpathdirs; do
39994 if test "X$x" = "X$dir"; then
39999 if test -z "$haveit"; then
40000 rpathdirs="$rpathdirs $dir"
40003 for x in $ltrpathdirs; do
40004 if test "X$x" = "X$dir"; then
40009 if test -z "$haveit"; then
40010 ltrpathdirs="$ltrpathdirs $dir"
40015 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40018 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40021 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
40022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
40028 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
40029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
40035 if test "X$rpathdirs" != "X"; then
40036 if test -n "$acl_hardcode_libdir_separator"; then
40038 for found_dir in $rpathdirs; do
40039 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
40041 acl_save_libdir="$libdir"
40043 eval flag=\"$acl_hardcode_libdir_flag_spec\"
40044 libdir="$acl_save_libdir"
40045 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
40047 for found_dir in $rpathdirs; do
40048 acl_save_libdir="$libdir"
40049 libdir="$found_dir"
40050 eval flag=\"$acl_hardcode_libdir_flag_spec\"
40051 libdir="$acl_save_libdir"
40052 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
40056 if test "X$ltrpathdirs" != "X"; then
40057 for found_dir in $ltrpathdirs; do
40058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
40073 am_save_CPPFLAGS="$CPPFLAGS"
40075 for element in $INCICONV; do
40077 for x in $CPPFLAGS; do
40079 acl_save_prefix="$prefix"
40080 prefix="$acl_final_prefix"
40081 acl_save_exec_prefix="$exec_prefix"
40082 exec_prefix="$acl_final_exec_prefix"
40084 exec_prefix="$acl_save_exec_prefix"
40085 prefix="$acl_save_prefix"
40087 if test "X$x" = "X$element"; then
40092 if test -z "$haveit"; then
40093 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40098 { echo "$as_me:$LINENO: checking for iconv" >&5
40099 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
40100 if test "${am_cv_func_iconv+set}" = set; then
40101 echo $ECHO_N "(cached) $ECHO_C" >&6
40104 am_cv_func_iconv="no, consider installing GNU libiconv"
40106 cat >conftest.$ac_ext <<_ACEOF
40109 cat confdefs.h >>conftest.$ac_ext
40110 cat >>conftest.$ac_ext <<_ACEOF
40111 /* end confdefs.h. */
40112 #include <stdlib.h>
40117 iconv_t cd = iconv_open("","");
40118 iconv(cd,NULL,NULL,NULL,NULL);
40124 rm -f conftest.$ac_objext conftest$ac_exeext
40125 if { (ac_try="$ac_link"
40126 case "(($ac_try" in
40127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40128 *) ac_try_echo=$ac_try;;
40130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40131 (eval "$ac_link") 2>conftest.er1
40133 grep -v '^ *+' conftest.er1 >conftest.err
40135 cat conftest.err >&5
40136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 (exit $ac_status); } && {
40138 test -z "$ac_c_werror_flag" ||
40139 test ! -s conftest.err
40140 } && test -s conftest$ac_exeext &&
40141 $as_test_x conftest$ac_exeext; then
40142 am_cv_func_iconv=yes
40144 echo "$as_me: failed program was:" >&5
40145 sed 's/^/| /' conftest.$ac_ext >&5
40150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40151 conftest$ac_exeext conftest.$ac_ext
40152 if test "$am_cv_func_iconv" != yes; then
40153 am_save_LIBS="$LIBS"
40154 LIBS="$LIBS $LIBICONV"
40155 cat >conftest.$ac_ext <<_ACEOF
40158 cat confdefs.h >>conftest.$ac_ext
40159 cat >>conftest.$ac_ext <<_ACEOF
40160 /* end confdefs.h. */
40161 #include <stdlib.h>
40166 iconv_t cd = iconv_open("","");
40167 iconv(cd,NULL,NULL,NULL,NULL);
40173 rm -f conftest.$ac_objext conftest$ac_exeext
40174 if { (ac_try="$ac_link"
40175 case "(($ac_try" in
40176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40177 *) ac_try_echo=$ac_try;;
40179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40180 (eval "$ac_link") 2>conftest.er1
40182 grep -v '^ *+' conftest.er1 >conftest.err
40184 cat conftest.err >&5
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); } && {
40187 test -z "$ac_c_werror_flag" ||
40188 test ! -s conftest.err
40189 } && test -s conftest$ac_exeext &&
40190 $as_test_x conftest$ac_exeext; then
40191 am_cv_lib_iconv=yes
40192 am_cv_func_iconv=yes
40194 echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40201 conftest$ac_exeext conftest.$ac_ext
40202 LIBS="$am_save_LIBS"
40206 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40207 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
40208 if test "$am_cv_func_iconv" = yes; then
40209 { echo "$as_me:$LINENO: checking for working iconv" >&5
40210 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
40211 if test "${am_cv_func_iconv_works+set}" = set; then
40212 echo $ECHO_N "(cached) $ECHO_C" >&6
40215 am_save_LIBS="$LIBS"
40216 if test $am_cv_lib_iconv = yes; then
40217 LIBS="$LIBS $LIBICONV"
40219 if test "$cross_compiling" = yes; then
40221 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
40222 *) am_cv_func_iconv_works="guessing yes" ;;
40225 cat >conftest.$ac_ext <<_ACEOF
40228 cat confdefs.h >>conftest.$ac_ext
40229 cat >>conftest.$ac_ext <<_ACEOF
40230 /* end confdefs.h. */
40233 #include <string.h>
40236 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
40239 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
40240 if (cd_utf8_to_88591 != (iconv_t)(-1))
40242 static const char input[] = "\342\202\254"; /* EURO SIGN */
40244 const char *inptr = input;
40245 size_t inbytesleft = strlen (input);
40246 char *outptr = buf;
40247 size_t outbytesleft = sizeof (buf);
40248 size_t res = iconv (cd_utf8_to_88591,
40249 (char **) &inptr, &inbytesleft,
40250 &outptr, &outbytesleft);
40255 #if 0 /* This bug could be worked around by the caller. */
40256 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
40258 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
40259 if (cd_88591_to_utf8 != (iconv_t)(-1))
40261 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
40263 const char *inptr = input;
40264 size_t inbytesleft = strlen (input);
40265 char *outptr = buf;
40266 size_t outbytesleft = sizeof (buf);
40267 size_t res = iconv (cd_88591_to_utf8,
40268 (char **) &inptr, &inbytesleft,
40269 &outptr, &outbytesleft);
40275 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
40277 if (/* Try standardized names. */
40278 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
40279 /* Try IRIX, OSF/1 names. */
40280 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
40281 /* Try AIX names. */
40282 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
40283 /* Try HP-UX names. */
40284 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
40289 rm -f conftest$ac_exeext
40290 if { (ac_try="$ac_link"
40291 case "(($ac_try" in
40292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40293 *) ac_try_echo=$ac_try;;
40295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40296 (eval "$ac_link") 2>&5
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40300 { (case "(($ac_try" in
40301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40302 *) ac_try_echo=$ac_try;;
40304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40305 (eval "$ac_try") 2>&5
40307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308 (exit $ac_status); }; }; then
40309 am_cv_func_iconv_works=yes
40311 echo "$as_me: program exited with status $ac_status" >&5
40312 echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40315 ( exit $ac_status )
40316 am_cv_func_iconv_works=no
40318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40322 LIBS="$am_save_LIBS"
40325 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
40326 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
40327 case "$am_cv_func_iconv_works" in
40328 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
40329 *) am_func_iconv=yes ;;
40332 am_func_iconv=no am_cv_lib_iconv=no
40334 if test "$am_func_iconv" = yes; then
40336 cat >>confdefs.h <<\_ACEOF
40337 #define HAVE_ICONV 1
40341 if test "$am_cv_lib_iconv" = yes; then
40342 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40343 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
40344 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
40345 echo "${ECHO_T}$LIBICONV" >&6; }
40347 CPPFLAGS="$am_save_CPPFLAGS"
40354 if test "$am_cv_func_iconv" = yes; then
40355 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
40356 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
40357 if test "${am_cv_proto_iconv+set}" = set; then
40358 echo $ECHO_N "(cached) $ECHO_C" >&6
40361 cat >conftest.$ac_ext <<_ACEOF
40364 cat confdefs.h >>conftest.$ac_ext
40365 cat >>conftest.$ac_ext <<_ACEOF
40366 /* end confdefs.h. */
40368 #include <stdlib.h>
40374 #if defined(__STDC__) || defined(__cplusplus)
40375 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
40388 rm -f conftest.$ac_objext
40389 if { (ac_try="$ac_compile"
40390 case "(($ac_try" in
40391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40392 *) ac_try_echo=$ac_try;;
40394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40395 (eval "$ac_compile") 2>conftest.er1
40397 grep -v '^ *+' conftest.er1 >conftest.err
40399 cat conftest.err >&5
40400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40401 (exit $ac_status); } && {
40402 test -z "$ac_c_werror_flag" ||
40403 test ! -s conftest.err
40404 } && test -s conftest.$ac_objext; then
40405 am_cv_proto_iconv_arg1=""
40407 echo "$as_me: failed program was:" >&5
40408 sed 's/^/| /' conftest.$ac_ext >&5
40410 am_cv_proto_iconv_arg1="const"
40413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40414 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);"
40417 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
40418 { echo "$as_me:$LINENO: result: ${ac_t:-
40419 }$am_cv_proto_iconv" >&5
40420 echo "${ECHO_T}${ac_t:-
40421 }$am_cv_proto_iconv" >&6; }
40423 cat >>confdefs.h <<_ACEOF
40424 #define ICONV_CONST $am_cv_proto_iconv_arg1
40430 for ac_header in iconv.h
40432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40437 echo $ECHO_N "(cached) $ECHO_C" >&6
40439 ac_res=`eval echo '${'$as_ac_Header'}'`
40440 { echo "$as_me:$LINENO: result: $ac_res" >&5
40441 echo "${ECHO_T}$ac_res" >&6; }
40443 # Is the header compilable?
40444 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40446 cat >conftest.$ac_ext <<_ACEOF
40449 cat confdefs.h >>conftest.$ac_ext
40450 cat >>conftest.$ac_ext <<_ACEOF
40451 /* end confdefs.h. */
40452 $ac_includes_default
40453 #include <$ac_header>
40455 rm -f conftest.$ac_objext
40456 if { (ac_try="$ac_compile"
40457 case "(($ac_try" in
40458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40459 *) ac_try_echo=$ac_try;;
40461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40462 (eval "$ac_compile") 2>conftest.er1
40464 grep -v '^ *+' conftest.er1 >conftest.err
40466 cat conftest.err >&5
40467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468 (exit $ac_status); } && {
40469 test -z "$ac_c_werror_flag" ||
40470 test ! -s conftest.err
40471 } && test -s conftest.$ac_objext; then
40472 ac_header_compiler=yes
40474 echo "$as_me: failed program was:" >&5
40475 sed 's/^/| /' conftest.$ac_ext >&5
40477 ac_header_compiler=no
40480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40482 echo "${ECHO_T}$ac_header_compiler" >&6; }
40484 # Is the header present?
40485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40487 cat >conftest.$ac_ext <<_ACEOF
40490 cat confdefs.h >>conftest.$ac_ext
40491 cat >>conftest.$ac_ext <<_ACEOF
40492 /* end confdefs.h. */
40493 #include <$ac_header>
40495 if { (ac_try="$ac_cpp conftest.$ac_ext"
40496 case "(($ac_try" in
40497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40498 *) ac_try_echo=$ac_try;;
40500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40503 grep -v '^ *+' conftest.er1 >conftest.err
40505 cat conftest.err >&5
40506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507 (exit $ac_status); } >/dev/null && {
40508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40509 test ! -s conftest.err
40511 ac_header_preproc=yes
40513 echo "$as_me: failed program was:" >&5
40514 sed 's/^/| /' conftest.$ac_ext >&5
40516 ac_header_preproc=no
40519 rm -f conftest.err conftest.$ac_ext
40520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40521 echo "${ECHO_T}$ac_header_preproc" >&6; }
40523 # So? What about this header?
40524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40530 ac_header_preproc=yes
40533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40546 ## ------------------------------ ##
40547 ## Report this to bug-tar@gnu.org ##
40548 ## ------------------------------ ##
40550 ) | sed "s/^/$as_me: WARNING: /" >&2
40553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40556 echo $ECHO_N "(cached) $ECHO_C" >&6
40558 eval "$as_ac_Header=\$ac_header_preproc"
40560 ac_res=`eval echo '${'$as_ac_Header'}'`
40561 { echo "$as_me:$LINENO: result: $ac_res" >&5
40562 echo "${ECHO_T}$ac_res" >&6; }
40565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40566 cat >>confdefs.h <<_ACEOF
40567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40574 { echo "$as_me:$LINENO: checking for iconv_t" >&5
40575 echo $ECHO_N "checking for iconv_t... $ECHO_C" >&6; }
40576 if test "${ac_cv_type_iconv_t+set}" = set; then
40577 echo $ECHO_N "(cached) $ECHO_C" >&6
40579 cat >conftest.$ac_ext <<_ACEOF
40582 cat confdefs.h >>conftest.$ac_ext
40583 cat >>conftest.$ac_ext <<_ACEOF
40584 /* end confdefs.h. */
40586 #ifdef HAVE_ICONV_H
40587 # include <iconv.h>
40591 typedef iconv_t ac__type_new_;
40595 if ((ac__type_new_ *) 0)
40597 if (sizeof (ac__type_new_))
40603 rm -f conftest.$ac_objext
40604 if { (ac_try="$ac_compile"
40605 case "(($ac_try" in
40606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40607 *) ac_try_echo=$ac_try;;
40609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40610 (eval "$ac_compile") 2>conftest.er1
40612 grep -v '^ *+' conftest.er1 >conftest.err
40614 cat conftest.err >&5
40615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616 (exit $ac_status); } && {
40617 test -z "$ac_c_werror_flag" ||
40618 test ! -s conftest.err
40619 } && test -s conftest.$ac_objext; then
40620 ac_cv_type_iconv_t=yes
40622 echo "$as_me: failed program was:" >&5
40623 sed 's/^/| /' conftest.$ac_ext >&5
40625 ac_cv_type_iconv_t=no
40628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40630 { echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
40631 echo "${ECHO_T}$ac_cv_type_iconv_t" >&6; }
40632 if test $ac_cv_type_iconv_t = yes; then
40636 cat >>confdefs.h <<\_ACEOF
40637 #define iconv_t int
40645 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40646 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
40647 # Check whether --enable-nls was given.
40648 if test "${enable_nls+set}" = set; then
40649 enableval=$enable_nls; USE_NLS=$enableval
40654 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
40655 echo "${ECHO_T}$USE_NLS" >&6; }
40660 GETTEXT_MACRO_VERSION=0.17
40665 # Prepare PATH_SEPARATOR.
40666 # The user is always right.
40667 if test "${PATH_SEPARATOR+set}" != set; then
40668 echo "#! /bin/sh" >conf$$.sh
40669 echo "exit 0" >>conf$$.sh
40671 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40679 # Find out how to test for executable files. Don't use a zero-byte file,
40680 # as systems may use methods other than mode bits to determine executability.
40681 cat >conf$$.file <<_ASEOF
40685 chmod +x conf$$.file
40686 if test -x conf$$.file >/dev/null 2>&1; then
40687 ac_executable_p="test -x"
40689 ac_executable_p="test -f"
40693 # Extract the first word of "msgfmt", so it can be a program name with args.
40694 set dummy msgfmt; ac_word=$2
40695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40697 if test "${ac_cv_path_MSGFMT+set}" = set; then
40698 echo $ECHO_N "(cached) $ECHO_C" >&6
40702 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
40705 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
40706 for ac_dir in $PATH; do
40708 test -z "$ac_dir" && ac_dir=.
40709 for ac_exec_ext in '' $ac_executable_extensions; do
40710 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
40711 echo "$as_me: trying $ac_dir/$ac_word..." >&5
40712 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
40713 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40714 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
40721 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
40725 MSGFMT="$ac_cv_path_MSGFMT"
40726 if test "$MSGFMT" != ":"; then
40727 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
40728 echo "${ECHO_T}$MSGFMT" >&6; }
40730 { echo "$as_me:$LINENO: result: no" >&5
40731 echo "${ECHO_T}no" >&6; }
40734 # Extract the first word of "gmsgfmt", so it can be a program name with args.
40735 set dummy gmsgfmt; ac_word=$2
40736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40738 if test "${ac_cv_path_GMSGFMT+set}" = set; then
40739 echo $ECHO_N "(cached) $ECHO_C" >&6
40743 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
40746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40747 for as_dir in $PATH
40750 test -z "$as_dir" && as_dir=.
40751 for ac_exec_ext in '' $ac_executable_extensions; do
40752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40753 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
40754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40761 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
40765 GMSGFMT=$ac_cv_path_GMSGFMT
40766 if test -n "$GMSGFMT"; then
40767 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
40768 echo "${ECHO_T}$GMSGFMT" >&6; }
40770 { echo "$as_me:$LINENO: result: no" >&5
40771 echo "${ECHO_T}no" >&6; }
40776 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
40777 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
40778 *) MSGFMT_015=$MSGFMT ;;
40781 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
40782 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
40783 *) GMSGFMT_015=$GMSGFMT ;;
40788 # Prepare PATH_SEPARATOR.
40789 # The user is always right.
40790 if test "${PATH_SEPARATOR+set}" != set; then
40791 echo "#! /bin/sh" >conf$$.sh
40792 echo "exit 0" >>conf$$.sh
40794 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40802 # Find out how to test for executable files. Don't use a zero-byte file,
40803 # as systems may use methods other than mode bits to determine executability.
40804 cat >conf$$.file <<_ASEOF
40808 chmod +x conf$$.file
40809 if test -x conf$$.file >/dev/null 2>&1; then
40810 ac_executable_p="test -x"
40812 ac_executable_p="test -f"
40816 # Extract the first word of "xgettext", so it can be a program name with args.
40817 set dummy xgettext; ac_word=$2
40818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40820 if test "${ac_cv_path_XGETTEXT+set}" = set; then
40821 echo $ECHO_N "(cached) $ECHO_C" >&6
40823 case "$XGETTEXT" in
40825 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
40828 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
40829 for ac_dir in $PATH; do
40831 test -z "$ac_dir" && ac_dir=.
40832 for ac_exec_ext in '' $ac_executable_extensions; do
40833 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
40834 echo "$as_me: trying $ac_dir/$ac_word..." >&5
40835 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
40836 (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
40837 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
40844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
40848 XGETTEXT="$ac_cv_path_XGETTEXT"
40849 if test "$XGETTEXT" != ":"; then
40850 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
40851 echo "${ECHO_T}$XGETTEXT" >&6; }
40853 { echo "$as_me:$LINENO: result: no" >&5
40854 echo "${ECHO_T}no" >&6; }
40859 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
40860 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
40861 *) XGETTEXT_015=$XGETTEXT ;;
40866 # Prepare PATH_SEPARATOR.
40867 # The user is always right.
40868 if test "${PATH_SEPARATOR+set}" != set; then
40869 echo "#! /bin/sh" >conf$$.sh
40870 echo "exit 0" >>conf$$.sh
40872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40880 # Find out how to test for executable files. Don't use a zero-byte file,
40881 # as systems may use methods other than mode bits to determine executability.
40882 cat >conf$$.file <<_ASEOF
40886 chmod +x conf$$.file
40887 if test -x conf$$.file >/dev/null 2>&1; then
40888 ac_executable_p="test -x"
40890 ac_executable_p="test -f"
40894 # Extract the first word of "msgmerge", so it can be a program name with args.
40895 set dummy msgmerge; ac_word=$2
40896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40898 if test "${ac_cv_path_MSGMERGE+set}" = set; then
40899 echo $ECHO_N "(cached) $ECHO_C" >&6
40901 case "$MSGMERGE" in
40903 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
40906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
40907 for ac_dir in $PATH; do
40909 test -z "$ac_dir" && ac_dir=.
40910 for ac_exec_ext in '' $ac_executable_extensions; do
40911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
40912 echo "$as_me: trying $ac_dir/$ac_word..." >&5
40913 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
40914 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
40921 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
40925 MSGMERGE="$ac_cv_path_MSGMERGE"
40926 if test "$MSGMERGE" != ":"; then
40927 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
40928 echo "${ECHO_T}$MSGMERGE" >&6; }
40930 { echo "$as_me:$LINENO: result: no" >&5
40931 echo "${ECHO_T}no" >&6; }
40935 test -n "$localedir" || localedir='${datadir}/locale'
40938 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
40941 ac_config_commands="$ac_config_commands po-directories"
40967 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
40968 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
40969 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
40970 echo $ECHO_N "(cached) $ECHO_C" >&6
40972 gt_save_LIBS="$LIBS"
40973 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
40974 cat >conftest.$ac_ext <<_ACEOF
40977 cat confdefs.h >>conftest.$ac_ext
40978 cat >>conftest.$ac_ext <<_ACEOF
40979 /* end confdefs.h. */
40980 #include <CoreFoundation/CFPreferences.h>
40984 CFPreferencesCopyAppValue(NULL, NULL)
40989 rm -f conftest.$ac_objext conftest$ac_exeext
40990 if { (ac_try="$ac_link"
40991 case "(($ac_try" in
40992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40993 *) ac_try_echo=$ac_try;;
40995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40996 (eval "$ac_link") 2>conftest.er1
40998 grep -v '^ *+' conftest.er1 >conftest.err
41000 cat conftest.err >&5
41001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41002 (exit $ac_status); } && {
41003 test -z "$ac_c_werror_flag" ||
41004 test ! -s conftest.err
41005 } && test -s conftest$ac_exeext &&
41006 $as_test_x conftest$ac_exeext; then
41007 gt_cv_func_CFPreferencesCopyAppValue=yes
41009 echo "$as_me: failed program was:" >&5
41010 sed 's/^/| /' conftest.$ac_ext >&5
41012 gt_cv_func_CFPreferencesCopyAppValue=no
41015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41016 conftest$ac_exeext conftest.$ac_ext
41017 LIBS="$gt_save_LIBS"
41019 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
41020 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
41021 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
41023 cat >>confdefs.h <<\_ACEOF
41024 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
41028 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
41029 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
41030 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
41031 echo $ECHO_N "(cached) $ECHO_C" >&6
41033 gt_save_LIBS="$LIBS"
41034 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
41035 cat >conftest.$ac_ext <<_ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h. */
41041 #include <CoreFoundation/CFLocale.h>
41045 CFLocaleCopyCurrent();
41050 rm -f conftest.$ac_objext conftest$ac_exeext
41051 if { (ac_try="$ac_link"
41052 case "(($ac_try" in
41053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41054 *) ac_try_echo=$ac_try;;
41056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41057 (eval "$ac_link") 2>conftest.er1
41059 grep -v '^ *+' conftest.er1 >conftest.err
41061 cat conftest.err >&5
41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); } && {
41064 test -z "$ac_c_werror_flag" ||
41065 test ! -s conftest.err
41066 } && test -s conftest$ac_exeext &&
41067 $as_test_x conftest$ac_exeext; then
41068 gt_cv_func_CFLocaleCopyCurrent=yes
41070 echo "$as_me: failed program was:" >&5
41071 sed 's/^/| /' conftest.$ac_ext >&5
41073 gt_cv_func_CFLocaleCopyCurrent=no
41076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41077 conftest$ac_exeext conftest.$ac_ext
41078 LIBS="$gt_save_LIBS"
41080 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
41081 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
41082 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
41084 cat >>confdefs.h <<\_ACEOF
41085 #define HAVE_CFLOCALECOPYCURRENT 1
41090 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
41091 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
41103 case " $gt_needs " in
41104 *" need-formatstring-macros "*) gt_api_version=3 ;;
41105 *" need-ngettext "*) gt_api_version=2 ;;
41106 *) gt_api_version=1 ;;
41108 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
41109 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
41111 if test "$USE_NLS" = "yes"; then
41112 gt_use_preinstalled_gnugettext=no
41115 if test $gt_api_version -ge 3; then
41116 gt_revision_test_code='
41117 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
41118 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
41120 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
41123 gt_revision_test_code=
41125 if test $gt_api_version -ge 2; then
41126 gt_expression_test_code=' + * ngettext ("", "", 0)'
41128 gt_expression_test_code=
41131 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
41132 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
41133 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
41134 echo $ECHO_N "(cached) $ECHO_C" >&6
41136 cat >conftest.$ac_ext <<_ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h. */
41142 #include <libintl.h>
41143 $gt_revision_test_code
41144 extern int _nl_msg_cat_cntr;
41145 extern int *_nl_domain_bindings;
41149 bindtextdomain ("", "");
41150 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
41155 rm -f conftest.$ac_objext conftest$ac_exeext
41156 if { (ac_try="$ac_link"
41157 case "(($ac_try" in
41158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41159 *) ac_try_echo=$ac_try;;
41161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41162 (eval "$ac_link") 2>conftest.er1
41164 grep -v '^ *+' conftest.er1 >conftest.err
41166 cat conftest.err >&5
41167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168 (exit $ac_status); } && {
41169 test -z "$ac_c_werror_flag" ||
41170 test ! -s conftest.err
41171 } && test -s conftest$ac_exeext &&
41172 $as_test_x conftest$ac_exeext; then
41173 eval "$gt_func_gnugettext_libc=yes"
41175 echo "$as_me: failed program was:" >&5
41176 sed 's/^/| /' conftest.$ac_ext >&5
41178 eval "$gt_func_gnugettext_libc=no"
41181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41182 conftest$ac_exeext conftest.$ac_ext
41184 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
41185 { echo "$as_me:$LINENO: result: $ac_res" >&5
41186 echo "${ECHO_T}$ac_res" >&6; }
41188 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
41194 am_save_CPPFLAGS="$CPPFLAGS"
41196 for element in $INCICONV; do
41198 for x in $CPPFLAGS; do
41200 acl_save_prefix="$prefix"
41201 prefix="$acl_final_prefix"
41202 acl_save_exec_prefix="$exec_prefix"
41203 exec_prefix="$acl_final_exec_prefix"
41205 exec_prefix="$acl_save_exec_prefix"
41206 prefix="$acl_save_prefix"
41208 if test "X$x" = "X$element"; then
41213 if test -z "$haveit"; then
41214 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
41219 { echo "$as_me:$LINENO: checking for iconv" >&5
41220 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
41221 if test "${am_cv_func_iconv+set}" = set; then
41222 echo $ECHO_N "(cached) $ECHO_C" >&6
41225 am_cv_func_iconv="no, consider installing GNU libiconv"
41227 cat >conftest.$ac_ext <<_ACEOF
41230 cat confdefs.h >>conftest.$ac_ext
41231 cat >>conftest.$ac_ext <<_ACEOF
41232 /* end confdefs.h. */
41233 #include <stdlib.h>
41238 iconv_t cd = iconv_open("","");
41239 iconv(cd,NULL,NULL,NULL,NULL);
41245 rm -f conftest.$ac_objext conftest$ac_exeext
41246 if { (ac_try="$ac_link"
41247 case "(($ac_try" in
41248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41249 *) ac_try_echo=$ac_try;;
41251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41252 (eval "$ac_link") 2>conftest.er1
41254 grep -v '^ *+' conftest.er1 >conftest.err
41256 cat conftest.err >&5
41257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41258 (exit $ac_status); } && {
41259 test -z "$ac_c_werror_flag" ||
41260 test ! -s conftest.err
41261 } && test -s conftest$ac_exeext &&
41262 $as_test_x conftest$ac_exeext; then
41263 am_cv_func_iconv=yes
41265 echo "$as_me: failed program was:" >&5
41266 sed 's/^/| /' conftest.$ac_ext >&5
41271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41272 conftest$ac_exeext conftest.$ac_ext
41273 if test "$am_cv_func_iconv" != yes; then
41274 am_save_LIBS="$LIBS"
41275 LIBS="$LIBS $LIBICONV"
41276 cat >conftest.$ac_ext <<_ACEOF
41279 cat confdefs.h >>conftest.$ac_ext
41280 cat >>conftest.$ac_ext <<_ACEOF
41281 /* end confdefs.h. */
41282 #include <stdlib.h>
41287 iconv_t cd = iconv_open("","");
41288 iconv(cd,NULL,NULL,NULL,NULL);
41294 rm -f conftest.$ac_objext conftest$ac_exeext
41295 if { (ac_try="$ac_link"
41296 case "(($ac_try" in
41297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41298 *) ac_try_echo=$ac_try;;
41300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41301 (eval "$ac_link") 2>conftest.er1
41303 grep -v '^ *+' conftest.er1 >conftest.err
41305 cat conftest.err >&5
41306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307 (exit $ac_status); } && {
41308 test -z "$ac_c_werror_flag" ||
41309 test ! -s conftest.err
41310 } && test -s conftest$ac_exeext &&
41311 $as_test_x conftest$ac_exeext; then
41312 am_cv_lib_iconv=yes
41313 am_cv_func_iconv=yes
41315 echo "$as_me: failed program was:" >&5
41316 sed 's/^/| /' conftest.$ac_ext >&5
41321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41322 conftest$ac_exeext conftest.$ac_ext
41323 LIBS="$am_save_LIBS"
41327 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
41328 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
41329 if test "$am_cv_func_iconv" = yes; then
41330 { echo "$as_me:$LINENO: checking for working iconv" >&5
41331 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
41332 if test "${am_cv_func_iconv_works+set}" = set; then
41333 echo $ECHO_N "(cached) $ECHO_C" >&6
41336 am_save_LIBS="$LIBS"
41337 if test $am_cv_lib_iconv = yes; then
41338 LIBS="$LIBS $LIBICONV"
41340 if test "$cross_compiling" = yes; then
41342 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
41343 *) am_cv_func_iconv_works="guessing yes" ;;
41346 cat >conftest.$ac_ext <<_ACEOF
41349 cat confdefs.h >>conftest.$ac_ext
41350 cat >>conftest.$ac_ext <<_ACEOF
41351 /* end confdefs.h. */
41354 #include <string.h>
41357 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
41360 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
41361 if (cd_utf8_to_88591 != (iconv_t)(-1))
41363 static const char input[] = "\342\202\254"; /* EURO SIGN */
41365 const char *inptr = input;
41366 size_t inbytesleft = strlen (input);
41367 char *outptr = buf;
41368 size_t outbytesleft = sizeof (buf);
41369 size_t res = iconv (cd_utf8_to_88591,
41370 (char **) &inptr, &inbytesleft,
41371 &outptr, &outbytesleft);
41376 #if 0 /* This bug could be worked around by the caller. */
41377 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
41379 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
41380 if (cd_88591_to_utf8 != (iconv_t)(-1))
41382 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
41384 const char *inptr = input;
41385 size_t inbytesleft = strlen (input);
41386 char *outptr = buf;
41387 size_t outbytesleft = sizeof (buf);
41388 size_t res = iconv (cd_88591_to_utf8,
41389 (char **) &inptr, &inbytesleft,
41390 &outptr, &outbytesleft);
41396 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
41398 if (/* Try standardized names. */
41399 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
41400 /* Try IRIX, OSF/1 names. */
41401 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
41402 /* Try AIX names. */
41403 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
41404 /* Try HP-UX names. */
41405 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
41410 rm -f conftest$ac_exeext
41411 if { (ac_try="$ac_link"
41412 case "(($ac_try" in
41413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41414 *) ac_try_echo=$ac_try;;
41416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41417 (eval "$ac_link") 2>&5
41419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41421 { (case "(($ac_try" in
41422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41423 *) ac_try_echo=$ac_try;;
41425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41426 (eval "$ac_try") 2>&5
41428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429 (exit $ac_status); }; }; then
41430 am_cv_func_iconv_works=yes
41432 echo "$as_me: program exited with status $ac_status" >&5
41433 echo "$as_me: failed program was:" >&5
41434 sed 's/^/| /' conftest.$ac_ext >&5
41436 ( exit $ac_status )
41437 am_cv_func_iconv_works=no
41439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41443 LIBS="$am_save_LIBS"
41446 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
41447 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
41448 case "$am_cv_func_iconv_works" in
41449 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
41450 *) am_func_iconv=yes ;;
41453 am_func_iconv=no am_cv_lib_iconv=no
41455 if test "$am_func_iconv" = yes; then
41457 cat >>confdefs.h <<\_ACEOF
41458 #define HAVE_ICONV 1
41462 if test "$am_cv_lib_iconv" = yes; then
41463 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
41464 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
41465 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
41466 echo "${ECHO_T}$LIBICONV" >&6; }
41468 CPPFLAGS="$am_save_CPPFLAGS"
41485 acl_save_prefix="$prefix"
41486 prefix="$acl_final_prefix"
41487 acl_save_exec_prefix="$exec_prefix"
41488 exec_prefix="$acl_final_exec_prefix"
41490 eval additional_includedir=\"$includedir\"
41491 eval additional_libdir=\"$libdir\"
41493 exec_prefix="$acl_save_exec_prefix"
41494 prefix="$acl_save_prefix"
41497 # Check whether --with-libintl-prefix was given.
41498 if test "${with_libintl_prefix+set}" = set; then
41499 withval=$with_libintl_prefix;
41500 if test "X$withval" = "Xno"; then
41503 if test "X$withval" = "X"; then
41505 acl_save_prefix="$prefix"
41506 prefix="$acl_final_prefix"
41507 acl_save_exec_prefix="$exec_prefix"
41508 exec_prefix="$acl_final_exec_prefix"
41510 eval additional_includedir=\"$includedir\"
41511 eval additional_libdir=\"$libdir\"
41513 exec_prefix="$acl_save_exec_prefix"
41514 prefix="$acl_save_prefix"
41517 additional_includedir="$withval/include"
41518 additional_libdir="$withval/$acl_libdirstem"
41519 if test "$acl_libdirstem2" != "$acl_libdirstem" \
41520 && ! test -d "$withval/$acl_libdirstem"; then
41521 additional_libdir="$withval/$acl_libdirstem2"
41534 names_already_handled=
41535 names_next_round='intl '
41536 while test -n "$names_next_round"; do
41537 names_this_round="$names_next_round"
41539 for name in $names_this_round; do
41541 for n in $names_already_handled; do
41542 if test "$n" = "$name"; then
41543 already_handled=yes
41547 if test -z "$already_handled"; then
41548 names_already_handled="$names_already_handled $name"
41549 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
41550 eval value=\"\$HAVE_LIB$uppername\"
41551 if test -n "$value"; then
41552 if test "$value" = yes; then
41553 eval value=\"\$LIB$uppername\"
41554 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
41555 eval value=\"\$LTLIB$uppername\"
41556 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
41565 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
41566 if test -n "$acl_shlibext"; then
41567 shrext=".$acl_shlibext" # typically: shrext=.so
41571 if test $use_additional = yes; then
41572 dir="$additional_libdir"
41573 if test -n "$acl_shlibext"; then
41574 if test -f "$dir/$libname$shrext"; then
41576 found_so="$dir/$libname$shrext"
41578 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
41579 ver=`(cd "$dir" && \
41580 for f in "$libname$shrext".*; do echo "$f"; done \
41581 | sed -e "s,^$libname$shrext\\\\.,," \
41582 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
41583 | sed 1q ) 2>/dev/null`
41584 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
41586 found_so="$dir/$libname$shrext.$ver"
41589 eval library_names=\"$acl_library_names_spec\"
41590 for f in $library_names; do
41591 if test -f "$dir/$f"; then
41600 if test "X$found_dir" = "X"; then
41601 if test -f "$dir/$libname.$acl_libext"; then
41603 found_a="$dir/$libname.$acl_libext"
41606 if test "X$found_dir" != "X"; then
41607 if test -f "$dir/$libname.la"; then
41608 found_la="$dir/$libname.la"
41612 if test "X$found_dir" = "X"; then
41613 for x in $LDFLAGS $LTLIBINTL; do
41615 acl_save_prefix="$prefix"
41616 prefix="$acl_final_prefix"
41617 acl_save_exec_prefix="$exec_prefix"
41618 exec_prefix="$acl_final_exec_prefix"
41620 exec_prefix="$acl_save_exec_prefix"
41621 prefix="$acl_save_prefix"
41625 dir=`echo "X$x" | sed -e 's/^X-L//'`
41626 if test -n "$acl_shlibext"; then
41627 if test -f "$dir/$libname$shrext"; then
41629 found_so="$dir/$libname$shrext"
41631 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
41632 ver=`(cd "$dir" && \
41633 for f in "$libname$shrext".*; do echo "$f"; done \
41634 | sed -e "s,^$libname$shrext\\\\.,," \
41635 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
41636 | sed 1q ) 2>/dev/null`
41637 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
41639 found_so="$dir/$libname$shrext.$ver"
41642 eval library_names=\"$acl_library_names_spec\"
41643 for f in $library_names; do
41644 if test -f "$dir/$f"; then
41653 if test "X$found_dir" = "X"; then
41654 if test -f "$dir/$libname.$acl_libext"; then
41656 found_a="$dir/$libname.$acl_libext"
41659 if test "X$found_dir" != "X"; then
41660 if test -f "$dir/$libname.la"; then
41661 found_la="$dir/$libname.la"
41666 if test "X$found_dir" != "X"; then
41671 if test "X$found_dir" != "X"; then
41672 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
41673 if test "X$found_so" != "X"; then
41674 if test "$enable_rpath" = no \
41675 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
41676 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
41677 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41680 for x in $ltrpathdirs; do
41681 if test "X$x" = "X$found_dir"; then
41686 if test -z "$haveit"; then
41687 ltrpathdirs="$ltrpathdirs $found_dir"
41689 if test "$acl_hardcode_direct" = yes; then
41690 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41692 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
41693 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41695 for x in $rpathdirs; do
41696 if test "X$x" = "X$found_dir"; then
41701 if test -z "$haveit"; then
41702 rpathdirs="$rpathdirs $found_dir"
41706 for x in $LDFLAGS $LIBINTL; do
41708 acl_save_prefix="$prefix"
41709 prefix="$acl_final_prefix"
41710 acl_save_exec_prefix="$exec_prefix"
41711 exec_prefix="$acl_final_exec_prefix"
41713 exec_prefix="$acl_save_exec_prefix"
41714 prefix="$acl_save_prefix"
41716 if test "X$x" = "X-L$found_dir"; then
41721 if test -z "$haveit"; then
41722 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
41724 if test "$acl_hardcode_minus_L" != no; then
41725 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
41727 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
41733 if test "X$found_a" != "X"; then
41734 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
41736 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
41739 additional_includedir=
41740 case "$found_dir" in
41741 */$acl_libdirstem | */$acl_libdirstem/)
41742 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
41743 if test "$name" = 'intl'; then
41744 LIBINTL_PREFIX="$basedir"
41746 additional_includedir="$basedir/include"
41748 */$acl_libdirstem2 | */$acl_libdirstem2/)
41749 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
41750 if test "$name" = 'intl'; then
41751 LIBINTL_PREFIX="$basedir"
41753 additional_includedir="$basedir/include"
41756 if test "X$additional_includedir" != "X"; then
41757 if test "X$additional_includedir" != "X/usr/include"; then
41759 if test "X$additional_includedir" = "X/usr/local/include"; then
41760 if test -n "$GCC"; then
41762 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
41766 if test -z "$haveit"; then
41767 for x in $CPPFLAGS $INCINTL; do
41769 acl_save_prefix="$prefix"
41770 prefix="$acl_final_prefix"
41771 acl_save_exec_prefix="$exec_prefix"
41772 exec_prefix="$acl_final_exec_prefix"
41774 exec_prefix="$acl_save_exec_prefix"
41775 prefix="$acl_save_prefix"
41777 if test "X$x" = "X-I$additional_includedir"; then
41782 if test -z "$haveit"; then
41783 if test -d "$additional_includedir"; then
41784 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
41790 if test -n "$found_la"; then
41791 save_libdir="$libdir"
41792 case "$found_la" in
41793 */* | *\\*) . "$found_la" ;;
41794 *) . "./$found_la" ;;
41796 libdir="$save_libdir"
41797 for dep in $dependency_libs; do
41800 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
41801 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
41802 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
41804 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
41805 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
41806 if test -n "$GCC"; then
41808 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
41812 if test -z "$haveit"; then
41814 for x in $LDFLAGS $LIBINTL; do
41816 acl_save_prefix="$prefix"
41817 prefix="$acl_final_prefix"
41818 acl_save_exec_prefix="$exec_prefix"
41819 exec_prefix="$acl_final_exec_prefix"
41821 exec_prefix="$acl_save_exec_prefix"
41822 prefix="$acl_save_prefix"
41824 if test "X$x" = "X-L$additional_libdir"; then
41829 if test -z "$haveit"; then
41830 if test -d "$additional_libdir"; then
41831 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
41835 for x in $LDFLAGS $LTLIBINTL; do
41837 acl_save_prefix="$prefix"
41838 prefix="$acl_final_prefix"
41839 acl_save_exec_prefix="$exec_prefix"
41840 exec_prefix="$acl_final_exec_prefix"
41842 exec_prefix="$acl_save_exec_prefix"
41843 prefix="$acl_save_prefix"
41845 if test "X$x" = "X-L$additional_libdir"; then
41850 if test -z "$haveit"; then
41851 if test -d "$additional_libdir"; then
41852 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
41859 dir=`echo "X$dep" | sed -e 's/^X-R//'`
41860 if test "$enable_rpath" != no; then
41862 for x in $rpathdirs; do
41863 if test "X$x" = "X$dir"; then
41868 if test -z "$haveit"; then
41869 rpathdirs="$rpathdirs $dir"
41872 for x in $ltrpathdirs; do
41873 if test "X$x" = "X$dir"; then
41878 if test -z "$haveit"; then
41879 ltrpathdirs="$ltrpathdirs $dir"
41884 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
41887 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
41890 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
41891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
41897 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
41898 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
41904 if test "X$rpathdirs" != "X"; then
41905 if test -n "$acl_hardcode_libdir_separator"; then
41907 for found_dir in $rpathdirs; do
41908 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
41910 acl_save_libdir="$libdir"
41912 eval flag=\"$acl_hardcode_libdir_flag_spec\"
41913 libdir="$acl_save_libdir"
41914 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
41916 for found_dir in $rpathdirs; do
41917 acl_save_libdir="$libdir"
41918 libdir="$found_dir"
41919 eval flag=\"$acl_hardcode_libdir_flag_spec\"
41920 libdir="$acl_save_libdir"
41921 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
41925 if test "X$ltrpathdirs" != "X"; then
41926 for found_dir in $ltrpathdirs; do
41927 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
41936 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
41937 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
41938 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
41939 echo $ECHO_N "(cached) $ECHO_C" >&6
41941 gt_save_CPPFLAGS="$CPPFLAGS"
41942 CPPFLAGS="$CPPFLAGS $INCINTL"
41943 gt_save_LIBS="$LIBS"
41944 LIBS="$LIBS $LIBINTL"
41945 cat >conftest.$ac_ext <<_ACEOF
41948 cat confdefs.h >>conftest.$ac_ext
41949 cat >>conftest.$ac_ext <<_ACEOF
41950 /* end confdefs.h. */
41951 #include <libintl.h>
41952 $gt_revision_test_code
41953 extern int _nl_msg_cat_cntr;
41958 const char *_nl_expand_alias (const char *);
41962 bindtextdomain ("", "");
41963 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
41968 rm -f conftest.$ac_objext conftest$ac_exeext
41969 if { (ac_try="$ac_link"
41970 case "(($ac_try" in
41971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41972 *) ac_try_echo=$ac_try;;
41974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41975 (eval "$ac_link") 2>conftest.er1
41977 grep -v '^ *+' conftest.er1 >conftest.err
41979 cat conftest.err >&5
41980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41981 (exit $ac_status); } && {
41982 test -z "$ac_c_werror_flag" ||
41983 test ! -s conftest.err
41984 } && test -s conftest$ac_exeext &&
41985 $as_test_x conftest$ac_exeext; then
41986 eval "$gt_func_gnugettext_libintl=yes"
41988 echo "$as_me: failed program was:" >&5
41989 sed 's/^/| /' conftest.$ac_ext >&5
41991 eval "$gt_func_gnugettext_libintl=no"
41994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41995 conftest$ac_exeext conftest.$ac_ext
41996 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
41997 LIBS="$LIBS $LIBICONV"
41998 cat >conftest.$ac_ext <<_ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42004 #include <libintl.h>
42005 $gt_revision_test_code
42006 extern int _nl_msg_cat_cntr;
42011 const char *_nl_expand_alias (const char *);
42015 bindtextdomain ("", "");
42016 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
42021 rm -f conftest.$ac_objext conftest$ac_exeext
42022 if { (ac_try="$ac_link"
42023 case "(($ac_try" in
42024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42025 *) ac_try_echo=$ac_try;;
42027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42028 (eval "$ac_link") 2>conftest.er1
42030 grep -v '^ *+' conftest.er1 >conftest.err
42032 cat conftest.err >&5
42033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42034 (exit $ac_status); } && {
42035 test -z "$ac_c_werror_flag" ||
42036 test ! -s conftest.err
42037 } && test -s conftest$ac_exeext &&
42038 $as_test_x conftest$ac_exeext; then
42039 LIBINTL="$LIBINTL $LIBICONV"
42040 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
42041 eval "$gt_func_gnugettext_libintl=yes"
42044 echo "$as_me: failed program was:" >&5
42045 sed 's/^/| /' conftest.$ac_ext >&5
42050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42051 conftest$ac_exeext conftest.$ac_ext
42053 CPPFLAGS="$gt_save_CPPFLAGS"
42054 LIBS="$gt_save_LIBS"
42056 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
42057 { echo "$as_me:$LINENO: result: $ac_res" >&5
42058 echo "${ECHO_T}$ac_res" >&6; }
42061 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
42062 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
42063 && test "$PACKAGE" != gettext-runtime \
42064 && test "$PACKAGE" != gettext-tools; }; then
42065 gt_use_preinstalled_gnugettext=yes
42074 if test -n "$INTL_MACOSX_LIBS"; then
42075 if test "$gt_use_preinstalled_gnugettext" = "yes" \
42076 || test "$nls_cv_use_gnu_gettext" = "yes"; then
42077 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
42078 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
42082 if test "$gt_use_preinstalled_gnugettext" = "yes" \
42083 || test "$nls_cv_use_gnu_gettext" = "yes"; then
42085 cat >>confdefs.h <<\_ACEOF
42086 #define ENABLE_NLS 1
42094 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
42095 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
42096 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
42097 echo "${ECHO_T}$USE_NLS" >&6; }
42098 if test "$USE_NLS" = "yes"; then
42099 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
42100 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
42101 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
42102 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
42103 gt_source="external libintl"
42108 gt_source="included intl directory"
42110 { echo "$as_me:$LINENO: result: $gt_source" >&5
42111 echo "${ECHO_T}$gt_source" >&6; }
42114 if test "$USE_NLS" = "yes"; then
42116 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
42117 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
42118 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
42119 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
42120 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
42121 echo "${ECHO_T}$LIBINTL" >&6; }
42123 for element in $INCINTL; do
42125 for x in $CPPFLAGS; do
42127 acl_save_prefix="$prefix"
42128 prefix="$acl_final_prefix"
42129 acl_save_exec_prefix="$exec_prefix"
42130 exec_prefix="$acl_final_exec_prefix"
42132 exec_prefix="$acl_save_exec_prefix"
42133 prefix="$acl_save_prefix"
42135 if test "X$x" = "X$element"; then
42140 if test -z "$haveit"; then
42141 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
42148 cat >>confdefs.h <<\_ACEOF
42149 #define HAVE_GETTEXT 1
42153 cat >>confdefs.h <<\_ACEOF
42154 #define HAVE_DCGETTEXT 1
42164 INTLLIBS="$LIBINTL"
42173 # Initialize the test suite.
42174 ac_config_commands="$ac_config_commands tests/atconfig"
42177 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
42178 # FIXME: tests/preset?
42180 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
42185 # Check whether --enable-backup-scripts was given.
42186 if test "${enable_backup_scripts+set}" = set; then
42187 enableval=$enable_backup_scripts; case $enableval in
42188 yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
42189 BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
42196 if date +%Y-%m-%d 2>/dev/null >&2; then
42197 BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
42199 BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
42202 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
42204 cat >confcache <<\_ACEOF
42205 # This file is a shell script that caches the results of configure
42206 # tests run on this system so they can be shared between configure
42207 # scripts and configure runs, see configure's option --config-cache.
42208 # It is not useful on other systems. If it contains results you don't
42209 # want to keep, you may remove or edit it.
42211 # config.status only pays attention to the cache file if you give it
42212 # the --recheck option to rerun configure.
42214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42216 # following values.
42220 # The following way of writing the cache mishandles newlines in values,
42221 # but we know of no workaround that is simple, portable, and efficient.
42222 # So, we kill variables containing newlines.
42223 # Ultrix sh set writes to stderr and can't be redirected directly,
42224 # and sets the high bit in the cache file unless we assign to the vars.
42226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42227 eval ac_val=\$$ac_var
42231 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42232 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42235 _ | IFS | as_nl) ;; #(
42236 *) $as_unset $ac_var ;;
42242 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42243 *${as_nl}ac_space=\ *)
42244 # `set' does not quote correctly, so add quotes (double-quote
42245 # substitution turns \\\\ into \\, and sed turns \\ into \).
42248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42251 # `set' quotes correctly as required by POSIX, so do not add quotes.
42252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42263 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42265 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42266 if test -w "$cache_file"; then
42267 test "x$cache_file" != "x/dev/null" &&
42268 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42269 echo "$as_me: updating cache $cache_file" >&6;}
42270 cat confcache >$cache_file
42272 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42273 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42279 # Let make expand exec_prefix.
42280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42282 DEFS=-DHAVE_CONFIG_H
42286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42287 # 1. Remove the extension, and $U if already installed.
42288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42289 ac_i=`echo "$ac_i" | sed "$ac_script"`
42290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42291 # will be set to the directory where LIBOBJS objects are built.
42292 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42293 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42295 LIBOBJS=$ac_libobjs
42297 LTLIBOBJS=$ac_ltlibobjs
42300 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42301 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42302 Usually this means the macro was only invoked conditionally." >&5
42303 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42304 Usually this means the macro was only invoked conditionally." >&2;}
42305 { (exit 1); exit 1; }; }
42307 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42308 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42309 Usually this means the macro was only invoked conditionally." >&5
42310 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42311 Usually this means the macro was only invoked conditionally." >&2;}
42312 { (exit 1); exit 1; }; }
42314 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
42315 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
42316 Usually this means the macro was only invoked conditionally." >&5
42317 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
42318 Usually this means the macro was only invoked conditionally." >&2;}
42319 { (exit 1); exit 1; }; }
42324 if test -n "$gl_LIBOBJS"; then
42325 # Remove the extension.
42326 sed_drop_objext='s/\.o$//;s/\.obj$//'
42327 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
42328 gl_libobjs="$gl_libobjs $i.$ac_objext"
42329 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
42332 gl_LIBOBJS=$gl_libobjs
42334 gl_LTLIBOBJS=$gl_ltlibobjs
42340 if test -n "$gltests_LIBOBJS"; then
42341 # Remove the extension.
42342 sed_drop_objext='s/\.o$//;s/\.obj$//'
42343 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
42344 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
42345 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
42348 gltests_LIBOBJS=$gltests_libobjs
42350 gltests_LTLIBOBJS=$gltests_ltlibobjs
42354 : ${CONFIG_STATUS=./config.status}
42355 ac_clean_files_save=$ac_clean_files
42356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42357 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42358 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42359 cat >$CONFIG_STATUS <<_ACEOF
42361 # Generated by $as_me.
42362 # Run this file to recreate the current configuration.
42363 # Compiler output produced by configure, useful for debugging
42364 # configure, is in config.log if it exists.
42367 ac_cs_recheck=false
42369 SHELL=\${CONFIG_SHELL-$SHELL}
42372 cat >>$CONFIG_STATUS <<\_ACEOF
42373 ## --------------------- ##
42374 ## M4sh Initialization. ##
42375 ## --------------------- ##
42377 # Be more Bourne compatible
42378 DUALCASE=1; export DUALCASE # for MKS sh
42379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42382 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42383 # is contrary to our usage. Disable this feature.
42384 alias -g '${1+"$@"}'='"$@"'
42385 setopt NO_GLOB_SUBST
42387 case `(set -o) 2>/dev/null` in
42388 *posix*) set -o posix ;;
42397 # Avoid depending upon Character Ranges.
42398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42401 as_cr_digits='0123456789'
42402 as_cr_alnum=$as_cr_Letters$as_cr_digits
42404 # The user is always right.
42405 if test "${PATH_SEPARATOR+set}" != set; then
42406 echo "#! /bin/sh" >conf$$.sh
42407 echo "exit 0" >>conf$$.sh
42409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42417 # Support unset when possible.
42418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42426 # We need space, tab and new line, in precisely that order. Quoting is
42427 # there to prevent editors from complaining about space-tab.
42428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42429 # splitting by setting IFS to empty value.)
42434 # Find who we are. Look in the path if we contain no directory separator.
42436 *[\\/]* ) as_myself=$0 ;;
42437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42438 for as_dir in $PATH
42441 test -z "$as_dir" && as_dir=.
42442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42448 # We did not find ourselves, most probably we were run as `sh COMMAND'
42449 # in which case we are not to be found in the path.
42450 if test "x$as_myself" = x; then
42453 if test ! -f "$as_myself"; then
42454 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42455 { (exit 1); exit 1; }
42458 # Work around bugs in pre-3.0 UWIN ksh.
42459 for as_var in ENV MAIL MAILPATH
42460 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42468 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42469 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42470 LC_TELEPHONE LC_TIME
42472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42473 eval $as_var=C; export $as_var
42475 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42479 # Required to use basename.
42480 if expr a : '\(a\)' >/dev/null 2>&1 &&
42481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42488 as_basename=basename
42494 # Name of the executable.
42495 as_me=`$as_basename -- "$0" ||
42496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42497 X"$0" : 'X\(//\)$' \| \
42498 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42500 sed '/^.*\/\([^/][^/]*\)\/*$/{
42519 as_lineno_1=$LINENO
42520 as_lineno_2=$LINENO
42521 test "x$as_lineno_1" != "x$as_lineno_2" &&
42522 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42525 # uniformly replaced by the line number. The first 'sed' inserts a
42526 # line-number line after each line using $LINENO; the second 'sed'
42527 # does the real work. The second script uses 'N' to pair each
42528 # line-number line with the line containing $LINENO, and appends
42529 # trailing '-' during substitution so that $LINENO is not a special
42530 # case at line end.
42531 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42532 # scripts with optimization help from Paolo Bonzini. Blame Lee
42533 # E. McMahon (1931-1989) for sed's syntax. :-)
42545 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42548 ' >$as_me.lineno &&
42549 chmod +x "$as_me.lineno" ||
42550 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42551 { (exit 1); exit 1; }; }
42553 # Don't try to exec as it changes $[0], causing all sort of problems
42554 # (the dirname of $[0] is not the place where we might find the
42555 # original and so on. Autoconf is especially sensitive to this).
42556 . "./$as_me.lineno"
42557 # Exit status is that of the last command.
42562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42568 ECHO_C= ECHO_N= ECHO_T=
42569 case `echo -n x` in
42571 case `echo 'x\c'` in
42572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42579 if expr a : '\(a\)' >/dev/null 2>&1 &&
42580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42586 rm -f conf$$ conf$$.exe conf$$.file
42587 if test -d conf$$.dir; then
42588 rm -f conf$$.dir/conf$$.file
42594 if ln -s conf$$.file conf$$ 2>/dev/null; then
42596 # ... but there are two gotchas:
42597 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42598 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42599 # In both cases, we have to default to `cp -p'.
42600 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42602 elif ln conf$$.file conf$$ 2>/dev/null; then
42607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42608 rmdir conf$$.dir 2>/dev/null
42610 if mkdir -p . 2>/dev/null; then
42613 test -d ./-p && rmdir ./-p
42617 if test -x / >/dev/null 2>&1; then
42618 as_test_x='test -x'
42620 if ls -dL / >/dev/null 2>&1; then
42627 if test -d "$1"; then
42633 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42634 ???[sx]*):;;*)false;;esac;fi
42638 as_executable_p=$as_test_x
42640 # Sed expression to map a string onto a valid CPP name.
42641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42643 # Sed expression to map a string onto a valid variable name.
42644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42649 # Save the log message, to keep $[0] and so on meaningful, and to
42650 # report actual input values of CONFIG_FILES etc. instead of their
42651 # values after options handling.
42653 This file was extended by GNU tar $as_me 1.22, which was
42654 generated by GNU Autoconf 2.61. Invocation command line was
42656 CONFIG_FILES = $CONFIG_FILES
42657 CONFIG_HEADERS = $CONFIG_HEADERS
42658 CONFIG_LINKS = $CONFIG_LINKS
42659 CONFIG_COMMANDS = $CONFIG_COMMANDS
42662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42667 cat >>$CONFIG_STATUS <<_ACEOF
42668 # Files that config.status was made for.
42669 config_files="$ac_config_files"
42670 config_headers="$ac_config_headers"
42671 config_commands="$ac_config_commands"
42675 cat >>$CONFIG_STATUS <<\_ACEOF
42677 \`$as_me' instantiates files from templates according to the
42678 current configuration.
42680 Usage: $0 [OPTIONS] [FILE]...
42682 -h, --help print this help, then exit
42683 -V, --version print version number and configuration settings, then exit
42684 -q, --quiet do not print progress messages
42685 -d, --debug don't remove temporary files
42686 --recheck update $as_me by reconfiguring in the same conditions
42687 --file=FILE[:TEMPLATE]
42688 instantiate the configuration file FILE
42689 --header=FILE[:TEMPLATE]
42690 instantiate the configuration header FILE
42692 Configuration files:
42695 Configuration headers:
42698 Configuration commands:
42701 Report bugs to <bug-autoconf@gnu.org>."
42704 cat >>$CONFIG_STATUS <<_ACEOF
42706 GNU tar config.status 1.22
42707 configured by $0, generated by GNU Autoconf 2.61,
42708 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42710 Copyright (C) 2006 Free Software Foundation, Inc.
42711 This config.status script is free software; the Free Software Foundation
42712 gives unlimited permission to copy, distribute and modify it."
42720 cat >>$CONFIG_STATUS <<\_ACEOF
42721 # If no file are specified by the user, then we need to provide default
42722 # value. By we need to know if files were specified by the user.
42728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42740 # Handling of the options.
42741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42744 echo "$ac_cs_version"; exit ;;
42745 --debug | --debu | --deb | --de | --d | -d )
42747 --file | --fil | --fi | --f )
42749 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42750 ac_need_defaults=false;;
42751 --header | --heade | --head | --hea )
42753 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42754 ac_need_defaults=false;;
42756 # Conflict between --help and --header
42757 { echo "$as_me: error: ambiguous option: $1
42758 Try \`$0 --help' for more information." >&2
42759 { (exit 1); exit 1; }; };;
42760 --help | --hel | -h )
42761 echo "$ac_cs_usage"; exit ;;
42762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42766 # This is an error.
42767 -*) { echo "$as_me: error: unrecognized option: $1
42768 Try \`$0 --help' for more information." >&2
42769 { (exit 1); exit 1; }; } ;;
42771 *) ac_config_targets="$ac_config_targets $1"
42772 ac_need_defaults=false ;;
42778 ac_configure_extra_args=
42780 if $ac_cs_silent; then
42782 ac_configure_extra_args="$ac_configure_extra_args --silent"
42786 cat >>$CONFIG_STATUS <<_ACEOF
42787 if \$ac_cs_recheck; then
42788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42789 CONFIG_SHELL=$SHELL
42790 export CONFIG_SHELL
42791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42795 cat >>$CONFIG_STATUS <<\_ACEOF
42799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42800 ## Running $as_me. ##
42806 cat >>$CONFIG_STATUS <<_ACEOF
42810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42811 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42812 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42813 # from automake < 1.5.
42814 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42815 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42816 LINGUAS="${LINGUAS-%UNSET%}"
42821 cat >>$CONFIG_STATUS <<\_ACEOF
42823 # Handling of arguments.
42824 for ac_config_target in $ac_config_targets
42826 case $ac_config_target in
42827 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
42828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42829 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
42830 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
42831 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42832 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
42833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42834 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
42835 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42836 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42837 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42838 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
42839 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42843 { (exit 1); exit 1; }; };;
42848 # If the user did not use the arguments to specify the items to instantiate,
42849 # then the envvar interface is used. Set only those that are not.
42850 # We use the long form for the default assignment because of an extremely
42851 # bizarre bug on SunOS 4.1.3.
42852 if $ac_need_defaults; then
42853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42858 # Have a temporary directory for convenience. Make it in the build tree
42859 # simply because there is no reason against having it here, and in addition,
42860 # creating and moving files from /tmp can sometimes cause problems.
42861 # Hook for its removal unless debugging.
42862 # Note that there is a small window in which the directory will not be cleaned:
42863 # after its creation but before its name has been assigned to `$tmp'.
42867 trap 'exit_status=$?
42868 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42870 trap '{ (exit 1); exit 1; }' 1 2 13 15
42872 # Create a (secure) tmp directory for tmp files.
42875 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42876 test -n "$tmp" && test -d "$tmp"
42879 tmp=./conf$$-$RANDOM
42880 (umask 077 && mkdir "$tmp")
42883 echo "$me: cannot create a temporary directory in ." >&2
42884 { (exit 1); exit 1; }
42888 # Set up the sed scripts for CONFIG_FILES section.
42891 # No need to generate the scripts if there are no CONFIG_FILES.
42892 # This happens for instance when ./config.status config.h
42893 if test -n "$CONFIG_FILES"; then
42900 for ac_last_try in false false false false false :; do
42901 cat >conf$$subs.sed <<_ACEOF
42902 SHELL!$SHELL$ac_delim
42903 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42904 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42905 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42906 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42907 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42908 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42909 exec_prefix!$exec_prefix$ac_delim
42910 prefix!$prefix$ac_delim
42911 program_transform_name!$program_transform_name$ac_delim
42912 bindir!$bindir$ac_delim
42913 sbindir!$sbindir$ac_delim
42914 libexecdir!$libexecdir$ac_delim
42915 datarootdir!$datarootdir$ac_delim
42916 datadir!$datadir$ac_delim
42917 sysconfdir!$sysconfdir$ac_delim
42918 sharedstatedir!$sharedstatedir$ac_delim
42919 localstatedir!$localstatedir$ac_delim
42920 includedir!$includedir$ac_delim
42921 oldincludedir!$oldincludedir$ac_delim
42922 docdir!$docdir$ac_delim
42923 infodir!$infodir$ac_delim
42924 htmldir!$htmldir$ac_delim
42925 dvidir!$dvidir$ac_delim
42926 pdfdir!$pdfdir$ac_delim
42927 psdir!$psdir$ac_delim
42928 libdir!$libdir$ac_delim
42929 localedir!$localedir$ac_delim
42930 mandir!$mandir$ac_delim
42931 DEFS!$DEFS$ac_delim
42932 ECHO_C!$ECHO_C$ac_delim
42933 ECHO_N!$ECHO_N$ac_delim
42934 ECHO_T!$ECHO_T$ac_delim
42935 LIBS!$LIBS$ac_delim
42936 build_alias!$build_alias$ac_delim
42937 host_alias!$host_alias$ac_delim
42938 target_alias!$target_alias$ac_delim
42939 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42940 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42941 INSTALL_DATA!$INSTALL_DATA$ac_delim
42942 am__isrc!$am__isrc$ac_delim
42943 CYGPATH_W!$CYGPATH_W$ac_delim
42944 PACKAGE!$PACKAGE$ac_delim
42945 VERSION!$VERSION$ac_delim
42946 ACLOCAL!$ACLOCAL$ac_delim
42947 AUTOCONF!$AUTOCONF$ac_delim
42948 AUTOMAKE!$AUTOMAKE$ac_delim
42949 AUTOHEADER!$AUTOHEADER$ac_delim
42950 MAKEINFO!$MAKEINFO$ac_delim
42951 install_sh!$install_sh$ac_delim
42952 STRIP!$STRIP$ac_delim
42953 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
42954 mkdir_p!$mkdir_p$ac_delim
42956 SET_MAKE!$SET_MAKE$ac_delim
42957 am__leading_dot!$am__leading_dot$ac_delim
42958 AMTAR!$AMTAR$ac_delim
42959 am__tar!$am__tar$ac_delim
42960 am__untar!$am__untar$ac_delim
42962 CFLAGS!$CFLAGS$ac_delim
42963 LDFLAGS!$LDFLAGS$ac_delim
42964 CPPFLAGS!$CPPFLAGS$ac_delim
42965 ac_ct_CC!$ac_ct_CC$ac_delim
42966 EXEEXT!$EXEEXT$ac_delim
42967 OBJEXT!$OBJEXT$ac_delim
42968 DEPDIR!$DEPDIR$ac_delim
42969 am__include!$am__include$ac_delim
42970 am__quote!$am__quote$ac_delim
42971 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
42972 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
42973 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
42974 CCDEPMODE!$CCDEPMODE$ac_delim
42975 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
42976 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
42977 RANLIB!$RANLIB$ac_delim
42978 YACC!$YACC$ac_delim
42979 YFLAGS!$YFLAGS$ac_delim
42980 build!$build$ac_delim
42981 build_cpu!$build_cpu$ac_delim
42982 build_vendor!$build_vendor$ac_delim
42983 build_os!$build_os$ac_delim
42984 host!$host$ac_delim
42985 host_cpu!$host_cpu$ac_delim
42986 host_vendor!$host_vendor$ac_delim
42987 host_os!$host_os$ac_delim
42989 GREP!$GREP$ac_delim
42990 EGREP!$EGREP$ac_delim
42991 STDBOOL_H!$STDBOOL_H$ac_delim
42992 HAVE__BOOL!$HAVE__BOOL$ac_delim
42993 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
42994 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
42995 ALLOCA!$ALLOCA$ac_delim
42996 ALLOCA_H!$ALLOCA_H$ac_delim
42997 GETOPT_H!$GETOPT_H$ac_delim
42998 GNULIB_BTOWC!$GNULIB_BTOWC$ac_delim
43001 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43003 elif $ac_last_try; then
43004 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43005 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43006 { (exit 1); exit 1; }; }
43008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43012 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43013 if test -n "$ac_eof"; then
43014 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43015 ac_eof=`expr $ac_eof + 1`
43018 cat >>$CONFIG_STATUS <<_ACEOF
43019 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43023 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43024 s/^/s,@/; s/!/@,|#_!!_#|/
43027 s/'"$ac_delim"'$/,g/; t
43029 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43030 ' >>$CONFIG_STATUS <conf$$subs.sed
43031 rm -f conf$$subs.sed
43032 cat >>$CONFIG_STATUS <<_ACEOF
43038 for ac_last_try in false false false false false :; do
43039 cat >conf$$subs.sed <<_ACEOF
43040 GNULIB_WCTOB!$GNULIB_WCTOB$ac_delim
43041 GNULIB_MBSINIT!$GNULIB_MBSINIT$ac_delim
43042 GNULIB_MBRTOWC!$GNULIB_MBRTOWC$ac_delim
43043 GNULIB_MBRLEN!$GNULIB_MBRLEN$ac_delim
43044 GNULIB_MBSRTOWCS!$GNULIB_MBSRTOWCS$ac_delim
43045 GNULIB_MBSNRTOWCS!$GNULIB_MBSNRTOWCS$ac_delim
43046 GNULIB_WCRTOMB!$GNULIB_WCRTOMB$ac_delim
43047 GNULIB_WCSRTOMBS!$GNULIB_WCSRTOMBS$ac_delim
43048 GNULIB_WCSNRTOMBS!$GNULIB_WCSNRTOMBS$ac_delim
43049 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
43050 HAVE_BTOWC!$HAVE_BTOWC$ac_delim
43051 HAVE_MBSINIT!$HAVE_MBSINIT$ac_delim
43052 HAVE_MBRTOWC!$HAVE_MBRTOWC$ac_delim
43053 HAVE_MBRLEN!$HAVE_MBRLEN$ac_delim
43054 HAVE_MBSRTOWCS!$HAVE_MBSRTOWCS$ac_delim
43055 HAVE_MBSNRTOWCS!$HAVE_MBSNRTOWCS$ac_delim
43056 HAVE_WCRTOMB!$HAVE_WCRTOMB$ac_delim
43057 HAVE_WCSRTOMBS!$HAVE_WCSRTOMBS$ac_delim
43058 HAVE_WCSNRTOMBS!$HAVE_WCSNRTOMBS$ac_delim
43059 HAVE_DECL_WCTOB!$HAVE_DECL_WCTOB$ac_delim
43060 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
43061 REPLACE_MBSTATE_T!$REPLACE_MBSTATE_T$ac_delim
43062 REPLACE_BTOWC!$REPLACE_BTOWC$ac_delim
43063 REPLACE_WCTOB!$REPLACE_WCTOB$ac_delim
43064 REPLACE_MBSINIT!$REPLACE_MBSINIT$ac_delim
43065 REPLACE_MBRTOWC!$REPLACE_MBRTOWC$ac_delim
43066 REPLACE_MBRLEN!$REPLACE_MBRLEN$ac_delim
43067 REPLACE_MBSRTOWCS!$REPLACE_MBSRTOWCS$ac_delim
43068 REPLACE_MBSNRTOWCS!$REPLACE_MBSNRTOWCS$ac_delim
43069 REPLACE_WCRTOMB!$REPLACE_WCRTOMB$ac_delim
43070 REPLACE_WCSRTOMBS!$REPLACE_WCSRTOMBS$ac_delim
43071 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
43072 WCHAR_H!$WCHAR_H$ac_delim
43073 LOCALE_FR!$LOCALE_FR$ac_delim
43074 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
43075 GNULIB_CLOSE!$GNULIB_CLOSE$ac_delim
43076 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
43077 GNULIB_ENVIRON!$GNULIB_ENVIRON$ac_delim
43078 GNULIB_EUIDACCESS!$GNULIB_EUIDACCESS$ac_delim
43079 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
43080 GNULIB_FSYNC!$GNULIB_FSYNC$ac_delim
43081 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
43082 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
43083 GNULIB_GETDOMAINNAME!$GNULIB_GETDOMAINNAME$ac_delim
43084 GNULIB_GETDTABLESIZE!$GNULIB_GETDTABLESIZE$ac_delim
43085 GNULIB_GETHOSTNAME!$GNULIB_GETHOSTNAME$ac_delim
43086 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
43087 GNULIB_GETPAGESIZE!$GNULIB_GETPAGESIZE$ac_delim
43088 GNULIB_GETUSERSHELL!$GNULIB_GETUSERSHELL$ac_delim
43089 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
43090 GNULIB_LINK!$GNULIB_LINK$ac_delim
43091 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
43092 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
43093 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
43094 GNULIB_UNISTD_H_SIGPIPE!$GNULIB_UNISTD_H_SIGPIPE$ac_delim
43095 GNULIB_WRITE!$GNULIB_WRITE$ac_delim
43096 HAVE_DUP2!$HAVE_DUP2$ac_delim
43097 HAVE_EUIDACCESS!$HAVE_EUIDACCESS$ac_delim
43098 HAVE_FSYNC!$HAVE_FSYNC$ac_delim
43099 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
43100 HAVE_GETDOMAINNAME!$HAVE_GETDOMAINNAME$ac_delim
43101 HAVE_GETDTABLESIZE!$HAVE_GETDTABLESIZE$ac_delim
43102 HAVE_GETHOSTNAME!$HAVE_GETHOSTNAME$ac_delim
43103 HAVE_GETPAGESIZE!$HAVE_GETPAGESIZE$ac_delim
43104 HAVE_GETUSERSHELL!$HAVE_GETUSERSHELL$ac_delim
43105 HAVE_LINK!$HAVE_LINK$ac_delim
43106 HAVE_READLINK!$HAVE_READLINK$ac_delim
43107 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
43108 HAVE_DECL_ENVIRON!$HAVE_DECL_ENVIRON$ac_delim
43109 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
43110 HAVE_OS_H!$HAVE_OS_H$ac_delim
43111 HAVE_SYS_PARAM_H!$HAVE_SYS_PARAM_H$ac_delim
43112 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
43113 REPLACE_CLOSE!$REPLACE_CLOSE$ac_delim
43114 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
43115 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
43116 REPLACE_GETPAGESIZE!$REPLACE_GETPAGESIZE$ac_delim
43117 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
43118 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
43119 REPLACE_WRITE!$REPLACE_WRITE$ac_delim
43120 UNISTD_H_HAVE_WINSOCK2_H!$UNISTD_H_HAVE_WINSOCK2_H$ac_delim
43121 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
43122 GNULIB_DIRFD!$GNULIB_DIRFD$ac_delim
43123 GNULIB_SCANDIR!$GNULIB_SCANDIR$ac_delim
43124 GNULIB_ALPHASORT!$GNULIB_ALPHASORT$ac_delim
43125 HAVE_DECL_DIRFD!$HAVE_DECL_DIRFD$ac_delim
43126 HAVE_SCANDIR!$HAVE_SCANDIR$ac_delim
43127 HAVE_ALPHASORT!$HAVE_ALPHASORT$ac_delim
43128 DIRENT_H!$DIRENT_H$ac_delim
43129 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
43130 INCLUDE_NEXT_AS_FIRST_DIRECTIVE!$INCLUDE_NEXT_AS_FIRST_DIRECTIVE$ac_delim
43131 PRAGMA_SYSTEM_HEADER!$PRAGMA_SYSTEM_HEADER$ac_delim
43132 NEXT_DIRENT_H!$NEXT_DIRENT_H$ac_delim
43133 NEXT_ERRNO_H!$NEXT_ERRNO_H$ac_delim
43134 ERRNO_H!$ERRNO_H$ac_delim
43135 EMULTIHOP_HIDDEN!$EMULTIHOP_HIDDEN$ac_delim
43136 EMULTIHOP_VALUE!$EMULTIHOP_VALUE$ac_delim
43139 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43141 elif $ac_last_try; then
43142 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43143 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43144 { (exit 1); exit 1; }; }
43146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43150 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43151 if test -n "$ac_eof"; then
43152 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43153 ac_eof=`expr $ac_eof + 1`
43156 cat >>$CONFIG_STATUS <<_ACEOF
43157 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43161 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43162 s/^/s,@/; s/!/@,|#_!!_#|/
43165 s/'"$ac_delim"'$/,g/; t
43167 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43168 ' >>$CONFIG_STATUS <conf$$subs.sed
43169 rm -f conf$$subs.sed
43170 cat >>$CONFIG_STATUS <<_ACEOF
43176 for ac_last_try in false false false false false :; do
43177 cat >conf$$subs.sed <<_ACEOF
43178 ENOLINK_HIDDEN!$ENOLINK_HIDDEN$ac_delim
43179 ENOLINK_VALUE!$ENOLINK_VALUE$ac_delim
43180 EOVERFLOW_HIDDEN!$EOVERFLOW_HIDDEN$ac_delim
43181 EOVERFLOW_VALUE!$EOVERFLOW_VALUE$ac_delim
43182 GNULIB_OPEN!$GNULIB_OPEN$ac_delim
43183 REPLACE_OPEN!$REPLACE_OPEN$ac_delim
43184 GNULIB_FPRINTF!$GNULIB_FPRINTF$ac_delim
43185 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
43186 GNULIB_PRINTF!$GNULIB_PRINTF$ac_delim
43187 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
43188 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
43189 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
43190 GNULIB_VFPRINTF!$GNULIB_VFPRINTF$ac_delim
43191 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
43192 GNULIB_VPRINTF!$GNULIB_VPRINTF$ac_delim
43193 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
43194 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
43195 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
43196 GNULIB_DPRINTF!$GNULIB_DPRINTF$ac_delim
43197 GNULIB_VDPRINTF!$GNULIB_VDPRINTF$ac_delim
43198 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
43199 GNULIB_OBSTACK_PRINTF!$GNULIB_OBSTACK_PRINTF$ac_delim
43200 GNULIB_OBSTACK_PRINTF_POSIX!$GNULIB_OBSTACK_PRINTF_POSIX$ac_delim
43201 GNULIB_FOPEN!$GNULIB_FOPEN$ac_delim
43202 GNULIB_FREOPEN!$GNULIB_FREOPEN$ac_delim
43203 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
43204 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
43205 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
43206 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
43207 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
43208 GNULIB_FCLOSE!$GNULIB_FCLOSE$ac_delim
43209 GNULIB_FPUTC!$GNULIB_FPUTC$ac_delim
43210 GNULIB_PUTC!$GNULIB_PUTC$ac_delim
43211 GNULIB_PUTCHAR!$GNULIB_PUTCHAR$ac_delim
43212 GNULIB_FPUTS!$GNULIB_FPUTS$ac_delim
43213 GNULIB_PUTS!$GNULIB_PUTS$ac_delim
43214 GNULIB_FWRITE!$GNULIB_FWRITE$ac_delim
43215 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
43216 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
43217 GNULIB_PERROR!$GNULIB_PERROR$ac_delim
43218 GNULIB_STDIO_H_SIGPIPE!$GNULIB_STDIO_H_SIGPIPE$ac_delim
43219 REPLACE_STDIO_WRITE_FUNCS!$REPLACE_STDIO_WRITE_FUNCS$ac_delim
43220 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
43221 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
43222 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
43223 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
43224 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
43225 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
43226 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
43227 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
43228 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
43229 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
43230 HAVE_DPRINTF!$HAVE_DPRINTF$ac_delim
43231 REPLACE_DPRINTF!$REPLACE_DPRINTF$ac_delim
43232 HAVE_VDPRINTF!$HAVE_VDPRINTF$ac_delim
43233 REPLACE_VDPRINTF!$REPLACE_VDPRINTF$ac_delim
43234 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
43235 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
43236 HAVE_DECL_OBSTACK_PRINTF!$HAVE_DECL_OBSTACK_PRINTF$ac_delim
43237 REPLACE_OBSTACK_PRINTF!$REPLACE_OBSTACK_PRINTF$ac_delim
43238 REPLACE_FOPEN!$REPLACE_FOPEN$ac_delim
43239 REPLACE_FREOPEN!$REPLACE_FREOPEN$ac_delim
43240 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
43241 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
43242 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
43243 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
43244 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
43245 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
43246 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
43247 REPLACE_FCLOSE!$REPLACE_FCLOSE$ac_delim
43248 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
43249 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
43250 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
43251 REPLACE_PERROR!$REPLACE_PERROR$ac_delim
43252 LIB_CLOSE!$LIB_CLOSE$ac_delim
43253 NEXT_FCNTL_H!$NEXT_FCNTL_H$ac_delim
43254 FCNTL_H!$FCNTL_H$ac_delim
43255 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
43256 FLOAT_H!$FLOAT_H$ac_delim
43257 FNMATCH_H!$FNMATCH_H$ac_delim
43258 LIBINTL!$LIBINTL$ac_delim
43259 LTLIBINTL!$LTLIBINTL$ac_delim
43260 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
43261 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
43262 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
43263 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
43264 SYS_TIME_H!$SYS_TIME_H$ac_delim
43265 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
43266 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
43267 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
43268 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
43269 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
43270 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
43271 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
43272 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
43273 APPLE_UNIVERSAL_BUILD!$APPLE_UNIVERSAL_BUILD$ac_delim
43274 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
43277 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43279 elif $ac_last_try; then
43280 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43281 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43282 { (exit 1); exit 1; }; }
43284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43288 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43289 if test -n "$ac_eof"; then
43290 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43291 ac_eof=`expr $ac_eof + 1`
43294 cat >>$CONFIG_STATUS <<_ACEOF
43295 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43299 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43300 s/^/s,@/; s/!/@,|#_!!_#|/
43303 s/'"$ac_delim"'$/,g/; t
43305 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43306 ' >>$CONFIG_STATUS <conf$$subs.sed
43307 rm -f conf$$subs.sed
43308 cat >>$CONFIG_STATUS <<_ACEOF
43314 for ac_last_try in false false false false false :; do
43315 cat >conf$$subs.sed <<_ACEOF
43316 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
43317 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
43318 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
43319 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
43320 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
43321 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
43322 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
43323 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
43324 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
43325 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
43326 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
43327 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
43328 STDINT_H!$STDINT_H$ac_delim
43329 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
43330 GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
43331 GNULIB_IMAXDIV!$GNULIB_IMAXDIV$ac_delim
43332 GNULIB_STRTOIMAX!$GNULIB_STRTOIMAX$ac_delim
43333 GNULIB_STRTOUMAX!$GNULIB_STRTOUMAX$ac_delim
43334 HAVE_DECL_IMAXABS!$HAVE_DECL_IMAXABS$ac_delim
43335 HAVE_DECL_IMAXDIV!$HAVE_DECL_IMAXDIV$ac_delim
43336 HAVE_DECL_STRTOIMAX!$HAVE_DECL_STRTOIMAX$ac_delim
43337 HAVE_DECL_STRTOUMAX!$HAVE_DECL_STRTOUMAX$ac_delim
43338 NEXT_INTTYPES_H!$NEXT_INTTYPES_H$ac_delim
43339 PRIPTR_PREFIX!$PRIPTR_PREFIX$ac_delim
43340 INT32_MAX_LT_INTMAX_MAX!$INT32_MAX_LT_INTMAX_MAX$ac_delim
43341 INT64_MAX_EQ_LONG_MAX!$INT64_MAX_EQ_LONG_MAX$ac_delim
43342 UINT32_MAX_LT_UINTMAX_MAX!$UINT32_MAX_LT_UINTMAX_MAX$ac_delim
43343 UINT64_MAX_EQ_ULONG_MAX!$UINT64_MAX_EQ_ULONG_MAX$ac_delim
43344 INTTYPES_H!$INTTYPES_H$ac_delim
43345 GLIBC21!$GLIBC21$ac_delim
43346 LOCALCHARSET_TESTS_ENVIRONMENT!$LOCALCHARSET_TESTS_ENVIRONMENT$ac_delim
43347 GNULIB_LCHMOD!$GNULIB_LCHMOD$ac_delim
43348 GNULIB_LSTAT!$GNULIB_LSTAT$ac_delim
43349 HAVE_LCHMOD!$HAVE_LCHMOD$ac_delim
43350 REPLACE_LSTAT!$REPLACE_LSTAT$ac_delim
43351 REPLACE_MKDIR!$REPLACE_MKDIR$ac_delim
43352 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
43353 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
43354 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
43355 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
43356 GNULIB_ATOLL!$GNULIB_ATOLL$ac_delim
43357 GNULIB_GETLOADAVG!$GNULIB_GETLOADAVG$ac_delim
43358 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
43359 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
43360 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
43361 GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim
43362 GNULIB_RANDOM_R!$GNULIB_RANDOM_R$ac_delim
43363 GNULIB_RPMATCH!$GNULIB_RPMATCH$ac_delim
43364 GNULIB_SETENV!$GNULIB_SETENV$ac_delim
43365 GNULIB_STRTOD!$GNULIB_STRTOD$ac_delim
43366 GNULIB_STRTOLL!$GNULIB_STRTOLL$ac_delim
43367 GNULIB_STRTOULL!$GNULIB_STRTOULL$ac_delim
43368 GNULIB_UNSETENV!$GNULIB_UNSETENV$ac_delim
43369 HAVE_ATOLL!$HAVE_ATOLL$ac_delim
43370 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
43371 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
43372 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
43373 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
43374 HAVE_RANDOM_R!$HAVE_RANDOM_R$ac_delim
43375 HAVE_RPMATCH!$HAVE_RPMATCH$ac_delim
43376 HAVE_SETENV!$HAVE_SETENV$ac_delim
43377 HAVE_STRTOD!$HAVE_STRTOD$ac_delim
43378 HAVE_STRTOLL!$HAVE_STRTOLL$ac_delim
43379 HAVE_STRTOULL!$HAVE_STRTOULL$ac_delim
43380 HAVE_STRUCT_RANDOM_DATA!$HAVE_STRUCT_RANDOM_DATA$ac_delim
43381 HAVE_SYS_LOADAVG_H!$HAVE_SYS_LOADAVG_H$ac_delim
43382 HAVE_UNSETENV!$HAVE_UNSETENV$ac_delim
43383 HAVE_DECL_GETLOADAVG!$HAVE_DECL_GETLOADAVG$ac_delim
43384 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
43385 REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim
43386 REPLACE_STRTOD!$REPLACE_STRTOD$ac_delim
43387 VOID_UNSETENV!$VOID_UNSETENV$ac_delim
43388 LOCALE_JA!$LOCALE_JA$ac_delim
43389 LOCALE_FR_UTF8!$LOCALE_FR_UTF8$ac_delim
43390 LOCALE_ZH_CN!$LOCALE_ZH_CN$ac_delim
43391 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
43392 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
43393 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
43394 GNULIB_RAWMEMCHR!$GNULIB_RAWMEMCHR$ac_delim
43395 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
43396 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
43397 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
43398 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
43399 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
43400 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
43401 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
43402 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
43403 GNULIB_STRSTR!$GNULIB_STRSTR$ac_delim
43404 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
43405 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
43406 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
43407 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
43408 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
43409 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
43410 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
43411 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
43412 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
43415 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43417 elif $ac_last_try; then
43418 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43420 { (exit 1); exit 1; }; }
43422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43427 if test -n "$ac_eof"; then
43428 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43429 ac_eof=`expr $ac_eof + 1`
43432 cat >>$CONFIG_STATUS <<_ACEOF
43433 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
43434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43438 s/^/s,@/; s/!/@,|#_!!_#|/
43441 s/'"$ac_delim"'$/,g/; t
43443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43444 ' >>$CONFIG_STATUS <conf$$subs.sed
43445 rm -f conf$$subs.sed
43446 cat >>$CONFIG_STATUS <<_ACEOF
43452 for ac_last_try in false false false false false :; do
43453 cat >conf$$subs.sed <<_ACEOF
43454 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
43455 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
43456 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
43457 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
43458 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
43459 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
43460 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
43461 GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim
43462 GNULIB_STRSIGNAL!$GNULIB_STRSIGNAL$ac_delim
43463 GNULIB_STRVERSCMP!$GNULIB_STRVERSCMP$ac_delim
43464 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
43465 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
43466 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
43467 HAVE_RAWMEMCHR!$HAVE_RAWMEMCHR$ac_delim
43468 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
43469 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
43470 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
43471 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
43472 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
43473 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
43474 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
43475 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
43476 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
43477 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
43478 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
43479 HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim
43480 HAVE_DECL_STRSIGNAL!$HAVE_DECL_STRSIGNAL$ac_delim
43481 HAVE_STRVERSCMP!$HAVE_STRVERSCMP$ac_delim
43482 REPLACE_MEMMEM!$REPLACE_MEMMEM$ac_delim
43483 REPLACE_STRDUP!$REPLACE_STRDUP$ac_delim
43484 REPLACE_STRSTR!$REPLACE_STRSTR$ac_delim
43485 REPLACE_STRCASESTR!$REPLACE_STRCASESTR$ac_delim
43486 REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim
43487 REPLACE_STRSIGNAL!$REPLACE_STRSIGNAL$ac_delim
43488 STDARG_H!$STDARG_H$ac_delim
43489 NEXT_STDARG_H!$NEXT_STDARG_H$ac_delim
43490 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
43491 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
43492 HAVE_RANDOM_H!$HAVE_RANDOM_H$ac_delim
43493 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
43494 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
43495 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
43496 NEXT_STRINGS_H!$NEXT_STRINGS_H$ac_delim
43497 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
43498 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
43499 SYS_STAT_H!$SYS_STAT_H$ac_delim
43500 NEXT_SYSEXITS_H!$NEXT_SYSEXITS_H$ac_delim
43501 HAVE_SYSEXITS_H!$HAVE_SYSEXITS_H$ac_delim
43502 SYSEXITS_H!$SYSEXITS_H$ac_delim
43503 REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
43504 REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
43505 REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
43506 REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
43507 NEXT_TIME_H!$NEXT_TIME_H$ac_delim
43508 TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
43509 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
43510 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
43511 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
43512 HAVE_WINT_T!$HAVE_WINT_T$ac_delim
43513 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
43514 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
43515 HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
43516 NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
43517 HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
43518 WCTYPE_H!$WCTYPE_H$ac_delim
43519 REPLACE_ISWCNTRL!$REPLACE_ISWCNTRL$ac_delim
43520 LIBTAR_LIBDEPS!$LIBTAR_LIBDEPS$ac_delim
43521 LIBTAR_LTLIBDEPS!$LIBTAR_LTLIBDEPS$ac_delim
43522 LIB_SETSOCKOPT!$LIB_SETSOCKOPT$ac_delim
43523 PU_RMT_PROG!$PU_RMT_PROG$ac_delim
43524 DEFAULT_RMT_DIR!$DEFAULT_RMT_DIR$ac_delim
43525 DEFAULT_RMT_COMMAND!$DEFAULT_RMT_COMMAND$ac_delim
43526 LIBOBJS!$LIBOBJS$ac_delim
43527 DEFAULT_ARCHIVE_FORMAT!$DEFAULT_ARCHIVE_FORMAT$ac_delim
43528 DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
43529 DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
43530 DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
43531 LIBICONV!$LIBICONV$ac_delim
43532 LTLIBICONV!$LTLIBICONV$ac_delim
43533 USE_NLS!$USE_NLS$ac_delim
43534 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
43535 MSGFMT!$MSGFMT$ac_delim
43536 GMSGFMT!$GMSGFMT$ac_delim
43537 MSGFMT_015!$MSGFMT_015$ac_delim
43538 GMSGFMT_015!$GMSGFMT_015$ac_delim
43539 XGETTEXT!$XGETTEXT$ac_delim
43540 XGETTEXT_015!$XGETTEXT_015$ac_delim
43541 MSGMERGE!$MSGMERGE$ac_delim
43542 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
43543 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43544 INTLLIBS!$INTLLIBS$ac_delim
43545 POSUB!$POSUB$ac_delim
43546 AUTOM4TE!$AUTOM4TE$ac_delim
43547 BACKUP_LIBEXEC_SCRIPTS!$BACKUP_LIBEXEC_SCRIPTS$ac_delim
43548 BACKUP_SBIN_SCRIPTS!$BACKUP_SBIN_SCRIPTS$ac_delim
43549 BACKUP_SED_COND!$BACKUP_SED_COND$ac_delim
43550 LTLIBOBJS!$LTLIBOBJS$ac_delim
43553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43555 elif $ac_last_try; then
43556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43558 { (exit 1); exit 1; }; }
43560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43565 if test -n "$ac_eof"; then
43566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43567 ac_eof=`expr $ac_eof + 1`
43570 cat >>$CONFIG_STATUS <<_ACEOF
43571 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
43572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43576 s/^/s,@/; s/!/@,|#_!!_#|/
43579 s/'"$ac_delim"'$/,g/; t
43581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43582 ' >>$CONFIG_STATUS <conf$$subs.sed
43583 rm -f conf$$subs.sed
43584 cat >>$CONFIG_STATUS <<_ACEOF
43590 for ac_last_try in false false false false false :; do
43591 cat >conf$$subs.sed <<_ACEOF
43592 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
43593 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
43594 gltests_LIBOBJS!$gltests_LIBOBJS$ac_delim
43595 gltests_LTLIBOBJS!$gltests_LTLIBOBJS$ac_delim
43598 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
43600 elif $ac_last_try; then
43601 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43603 { (exit 1); exit 1; }; }
43605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43610 if test -n "$ac_eof"; then
43611 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43612 ac_eof=`expr $ac_eof + 1`
43615 cat >>$CONFIG_STATUS <<_ACEOF
43616 cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof
43617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43621 s/^/s,@/; s/!/@,|#_!!_#|/
43624 s/'"$ac_delim"'$/,g/; t
43626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43627 ' >>$CONFIG_STATUS <conf$$subs.sed
43628 rm -f conf$$subs.sed
43629 cat >>$CONFIG_STATUS <<_ACEOF
43636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43638 # trailing colons and then remove the whole line if VPATH becomes empty
43639 # (actually we leave an empty line to preserve line numbers).
43640 if test "x$srcdir" = x.; then
43641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43642 s/:*\$(srcdir):*/:/
43643 s/:*\${srcdir}:*/:/
43645 s/^\([^=]*=[ ]*\):*/\1/
43651 cat >>$CONFIG_STATUS <<\_ACEOF
43652 fi # test -n "$CONFIG_FILES"
43655 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
43658 :[FHLC]) ac_mode=$ac_tag; continue;;
43660 case $ac_mode$ac_tag in
43662 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43663 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43664 { (exit 1); exit 1; }; };;
43665 :[FH]-) ac_tag=-:-;;
43666 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43683 -) ac_f="$tmp/stdin";;
43684 *) # Look for the file first in the build tree, then in the source tree
43685 # (if the path is not absolute). The absolute path cannot be DOS-style,
43686 # because $ac_f cannot contain `:'.
43690 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43692 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43693 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43694 { (exit 1); exit 1; }; };;
43696 ac_file_inputs="$ac_file_inputs $ac_f"
43699 # Let's still pretend it is `configure' which instantiates (i.e., don't
43700 # use $as_me), people would be surprised to read:
43701 # /* config.h. Generated by config.status. */
43702 configure_input="Generated from "`IFS=:
43703 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43704 if test x"$ac_file" != x-; then
43705 configure_input="$ac_file. $configure_input"
43706 { echo "$as_me:$LINENO: creating $ac_file" >&5
43707 echo "$as_me: creating $ac_file" >&6;}
43711 *:-:* | *:-) cat >"$tmp/stdin";;
43716 ac_dir=`$as_dirname -- "$ac_file" ||
43717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43718 X"$ac_file" : 'X\(//\)[^/]' \| \
43719 X"$ac_file" : 'X\(//\)$' \| \
43720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43726 /^X\(\/\/\)[^/].*/{
43741 -*) as_dir=./$as_dir;;
43743 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43747 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43748 *) as_qdir=$as_dir;;
43750 as_dirs="'$as_qdir' $as_dirs"
43751 as_dir=`$as_dirname -- "$as_dir" ||
43752 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43753 X"$as_dir" : 'X\(//\)[^/]' \| \
43754 X"$as_dir" : 'X\(//\)$' \| \
43755 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43761 /^X\(\/\/\)[^/].*/{
43774 test -d "$as_dir" && break
43776 test -z "$as_dirs" || eval "mkdir $as_dirs"
43777 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43778 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43779 { (exit 1); exit 1; }; }; }
43783 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43785 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43786 # A ".." for each directory in $ac_dir_suffix.
43787 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43788 case $ac_top_builddir_sub in
43789 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43790 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43793 ac_abs_top_builddir=$ac_pwd
43794 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43795 # for backward compatibility:
43796 ac_top_builddir=$ac_top_build_prefix
43799 .) # We are building in place.
43801 ac_top_srcdir=$ac_top_builddir_sub
43802 ac_abs_top_srcdir=$ac_pwd ;;
43803 [\\/]* | ?:[\\/]* ) # Absolute name.
43804 ac_srcdir=$srcdir$ac_dir_suffix;
43805 ac_top_srcdir=$srcdir
43806 ac_abs_top_srcdir=$srcdir ;;
43807 *) # Relative name.
43808 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43809 ac_top_srcdir=$ac_top_build_prefix$srcdir
43810 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43812 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43822 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43823 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43825 ac_MKDIR_P=$MKDIR_P
43827 [\\/$]* | ?:[\\/]* ) ;;
43828 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43832 cat >>$CONFIG_STATUS <<\_ACEOF
43833 # If the template does not know about datarootdir, expand it.
43834 # FIXME: This hack should be removed a few years after 2.60.
43835 ac_datarootdir_hack=; ac_datarootdir_seen=
43837 case `sed -n '/datarootdir/ {
43846 ' $ac_file_inputs` in
43847 *datarootdir*) ac_datarootdir_seen=yes;;
43848 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43849 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43850 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43852 cat >>$CONFIG_STATUS <<_ACEOF
43853 ac_datarootdir_hack='
43854 s&@datadir@&$datadir&g
43855 s&@docdir@&$docdir&g
43856 s&@infodir@&$infodir&g
43857 s&@localedir@&$localedir&g
43858 s&@mandir@&$mandir&g
43859 s&\\\${datarootdir}&$datarootdir&g' ;;
43863 # Neutralize VPATH when `$srcdir' = `.'.
43864 # Shell code in configure.ac might set extrasub.
43865 # FIXME: do we really want to maintain this feature?
43866 cat >>$CONFIG_STATUS <<_ACEOF
43870 cat >>$CONFIG_STATUS <<\_ACEOF
43872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43873 s&@configure_input@&$configure_input&;t t
43874 s&@top_builddir@&$ac_top_builddir_sub&;t t
43875 s&@srcdir@&$ac_srcdir&;t t
43876 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43877 s&@top_srcdir@&$ac_top_srcdir&;t t
43878 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43879 s&@builddir@&$ac_builddir&;t t
43880 s&@abs_builddir@&$ac_abs_builddir&;t t
43881 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43882 s&@INSTALL@&$ac_INSTALL&;t t
43883 s&@MKDIR_P@&$ac_MKDIR_P&;t t
43884 $ac_datarootdir_hack
43885 " $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" | sed -f "$tmp/subs-6.sed" >$tmp/out
43887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43888 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43890 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43891 which seems to be undefined. Please make sure it is defined." >&5
43892 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43893 which seems to be undefined. Please make sure it is defined." >&2;}
43897 -) cat "$tmp/out"; rm -f "$tmp/out";;
43898 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43907 # Transform confdefs.h into a sed script `conftest.defines', that
43908 # substitutes the proper values into config.h.in to produce config.h.
43909 rm -f conftest.defines conftest.tail
43910 # First, append a space to every undef/define line, to ease matching.
43911 echo 's/$/ /' >conftest.defines
43912 # Then, protect against being on the right side of a sed subst, or in
43913 # an unquoted here document, in config.status. If some macros were
43914 # called several times there might be several #defines for the same
43915 # symbol, which is useless. But do not sort them, since the last
43916 # AC_DEFINE must be honored.
43917 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43918 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43919 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43920 # PARAMS is the parameter list in the macro definition--in most cases, it's
43921 # just an empty string.
43922 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43923 ac_dB='\\)[ (].*,\\1define\\2'
43931 s/^[ ]*#[ ]*define[ ][ ]*//
43936 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43937 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43938 ' >>conftest.defines
43940 # Remove the space that was appended to ease matching.
43941 # Then replace #undef with comments. This is necessary, for
43942 # example, in the case of _POSIX_SOURCE, which is predefined and required
43943 # on some systems where configure will not decide to define it.
43944 # (The regexp can be short, since the line contains either #define or #undef.)
43946 s,^[ #]*u.*,/* & */,' >>conftest.defines
43948 # Break up conftest.defines:
43949 ac_max_sed_lines=50
43951 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43952 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43953 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43955 ac_in='$ac_file_inputs'
43956 ac_out='"$tmp/out1"'
43957 ac_nxt='"$tmp/out2"'
43961 # Write a here document:
43962 cat >>$CONFIG_STATUS <<_ACEOF
43963 # First, check the format of the line:
43964 cat >"\$tmp/defines.sed" <<\\CEOF
43965 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43966 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43970 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43972 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43973 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43974 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43975 grep . conftest.tail >/dev/null || break
43976 rm -f conftest.defines
43977 mv conftest.tail conftest.defines
43979 rm -f conftest.defines conftest.tail
43981 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43982 cat >>$CONFIG_STATUS <<\_ACEOF
43983 if test x"$ac_file" != x-; then
43984 echo "/* $configure_input */" >"$tmp/config.h"
43985 cat "$ac_result" >>"$tmp/config.h"
43986 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43987 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43988 echo "$as_me: $ac_file is unchanged" >&6;}
43991 mv "$tmp/config.h" $ac_file
43994 echo "/* $configure_input */"
43998 # Compute $ac_file's index in $config_headers.
44001 for _am_header in $config_headers :; do
44002 case $_am_header in
44003 $_am_arg | $_am_arg:* )
44006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
44010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44011 X"$_am_arg" : 'X\(//\)[^/]' \| \
44012 X"$_am_arg" : 'X\(//\)$' \| \
44013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
44015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44019 /^X\(\/\/\)[^/].*/{
44031 s/.*/./; q'`/stamp-h$_am_stamp_count
44034 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44035 echo "$as_me: executing $ac_file commands" >&6;}
44040 case $ac_file$ac_mode in
44041 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44042 # Strip MF so we end up with the name of the file.
44043 mf=`echo "$mf" | sed -e 's/:.*$//'`
44044 # Check whether this is an Automake generated Makefile or not.
44045 # We used to match only the files named `Makefile.in', but
44046 # some people rename them; so instead we look at the file content.
44047 # Grep'ing the first line is not enough: some people post-process
44048 # each Makefile.in and add a new line on top of each file to say so.
44049 # Grep'ing the whole file is not good either: AIX grep has a line
44050 # limit of 2048, but all sed's we know have understand at least 4000.
44051 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
44052 dirpart=`$as_dirname -- "$mf" ||
44053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44054 X"$mf" : 'X\(//\)[^/]' \| \
44055 X"$mf" : 'X\(//\)$' \| \
44056 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
44058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44062 /^X\(\/\/\)[^/].*/{
44078 # Extract the definition of DEPDIR, am__include, and am__quote
44079 # from the Makefile without running `make'.
44080 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44081 test -z "$DEPDIR" && continue
44082 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44083 test -z "am__include" && continue
44084 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44085 # When using ansi2knr, U may be empty or an underscore; expand it
44086 U=`sed -n 's/^U = //p' < "$mf"`
44087 # Find all dependency output files, they are included files with
44088 # $(DEPDIR) in their names. We invoke sed twice because it is the
44089 # simplest approach to changing $(DEPDIR) to its actual value in the
44091 for file in `sed -n "
44092 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44093 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44094 # Make sure the directory exists.
44095 test -f "$dirpart/$file" && continue
44096 fdir=`$as_dirname -- "$file" ||
44097 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44098 X"$file" : 'X\(//\)[^/]' \| \
44099 X"$file" : 'X\(//\)$' \| \
44100 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
44102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44106 /^X\(\/\/\)[^/].*/{
44119 { as_dir=$dirpart/$fdir
44121 -*) as_dir=./$as_dir;;
44123 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44127 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44128 *) as_qdir=$as_dir;;
44130 as_dirs="'$as_qdir' $as_dirs"
44131 as_dir=`$as_dirname -- "$as_dir" ||
44132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44133 X"$as_dir" : 'X\(//\)[^/]' \| \
44134 X"$as_dir" : 'X\(//\)$' \| \
44135 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44141 /^X\(\/\/\)[^/].*/{
44154 test -d "$as_dir" && break
44156 test -z "$as_dirs" || eval "mkdir $as_dirs"
44157 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44158 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44159 { (exit 1); exit 1; }; }; }
44160 # echo "creating $dirpart/$file"
44161 echo '# dummy' > "$dirpart/$file"
44165 "po-directories":C)
44166 for ac_file in $CONFIG_FILES; do
44167 # Support "outfile[:infile[:infile...]]"
44169 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44171 # PO directories have a Makefile.in generated from Makefile.in.in.
44172 case "$ac_file" in */Makefile.in)
44173 # Adjust a relative srcdir.
44174 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44175 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44176 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44177 # In autoconf-2.13 it is called $ac_given_srcdir.
44178 # In autoconf-2.50 it is called $srcdir.
44179 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44180 case "$ac_given_srcdir" in
44181 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44182 /*) top_srcdir="$ac_given_srcdir" ;;
44183 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44185 # Treat a directory as a PO directory if and only if it has a
44186 # POTFILES.in file. This allows packages to have multiple PO
44187 # directories under different names or in different locations.
44188 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44189 rm -f "$ac_dir/POTFILES"
44190 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44191 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44192 POMAKEFILEDEPS="POTFILES.in"
44193 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44194 # on $ac_dir but don't depend on user-specified configuration
44196 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44197 # The LINGUAS file contains the set of available languages.
44198 if test -n "$OBSOLETE_ALL_LINGUAS"; then
44199 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44201 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44202 # Hide the ALL_LINGUAS assigment from automake < 1.5.
44203 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44204 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44206 # The set of available languages was given in configure.in.
44207 # Hide the ALL_LINGUAS assigment from automake < 1.5.
44208 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44211 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44212 # Compute UPDATEPOFILES
44213 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44214 # Compute DUMMYPOFILES
44215 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44217 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44218 case "$ac_given_srcdir" in
44220 *) srcdirpre='$(srcdir)/' ;;
44226 for lang in $ALL_LINGUAS; do
44227 POFILES="$POFILES $srcdirpre$lang.po"
44228 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44229 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44230 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44232 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44233 # environment variable.
44235 if test -n "$ALL_LINGUAS"; then
44236 for presentlang in $ALL_LINGUAS; do
44238 if test "%UNSET%" != "$LINGUAS"; then
44239 desiredlanguages="$LINGUAS"
44241 desiredlanguages="$ALL_LINGUAS"
44243 for desiredlang in $desiredlanguages; do
44244 # Use the presentlang catalog if desiredlang is
44245 # a. equal to presentlang, or
44246 # b. a variant of presentlang (because in this case,
44247 # presentlang can be used as a fallback for messages
44248 # which are not translated in the desiredlang catalog).
44249 case "$desiredlang" in
44250 "$presentlang"*) useit=yes;;
44253 if test $useit = yes; then
44254 INST_LINGUAS="$INST_LINGUAS $presentlang"
44259 if test -n "$INST_LINGUAS"; then
44260 for lang in $INST_LINGUAS; do
44261 CATALOGS="$CATALOGS $lang.gmo"
44264 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44265 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"
44266 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44267 if test -f "$f"; then
44269 *.orig | *.bak | *~) ;;
44270 *) cat "$f" >> "$ac_dir/Makefile" ;;
44278 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
44279 # Configurable variable values for building test suites.
44281 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
44283 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
44285 abs_builddir='$ac_abs_builddir'
44286 at_srcdir='$ac_srcdir'
44287 abs_srcdir='$ac_abs_srcdir'
44288 at_top_srcdir='$ac_top_srcdir'
44289 abs_top_srcdir='$ac_abs_top_srcdir'
44290 at_top_build_prefix='$ac_top_build_prefix'
44291 abs_top_builddir='$ac_abs_top_builddir'
44293 # Backward compatibility with Autotest <= 2.59b:
44294 at_top_builddir=\$at_top_build_prefix
44296 AUTOTEST_PATH='tests'
44298 SHELL=\${CONFIG_SHELL-'$SHELL'}
44306 { (exit 0); exit 0; }
44308 chmod +x $CONFIG_STATUS
44309 ac_clean_files=$ac_clean_files_save
44312 # configure is writing to config.log, and then calls config.status.
44313 # config.status does its own redirection, appending to config.log.
44314 # Unfortunately, on DOS this fails, as config.log is still kept open
44315 # by configure, so config.status won't be able to write to it; its
44316 # output is simply discarded. So we exec the FD to /dev/null,
44317 # effectively closing config.log, so it can be properly (re)opened and
44318 # appended to by config.status. When coming back to configure, we
44319 # need to make the FD available again.
44320 if test "$no_create" != yes; then
44322 ac_config_status_args=
44323 test "$silent" = yes &&
44324 ac_config_status_args="$ac_config_status_args --quiet"
44326 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44328 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44329 # would make configure fail if this is the last instruction.
44330 $ac_cs_success || { (exit 1); exit 1; }